Browse Source

优化

master
陈裕财 2 years ago
parent
commit
b4630f63b5
  1. 2
      src/common/js/util.js
  2. 2
      src/components/Image/ImageCategoryTree.vue
  3. 2
      src/components/mdp-ui-ext/mdp-expand/FormData.vue
  4. 2
      src/components/mdp-ui-ext/mdp-expand/FormDataItem.vue
  5. 2
      src/components/mdp-ui-ext/mdp-image/Index.vue
  6. 2
      src/components/mdp-ui-ext/mdp-select-tag/TagSelect.vue
  7. 2
      src/components/mdp-ui/js/util.js
  8. 2
      src/components/mdp-ui/mixin/MdpSelectMixin.js
  9. 2
      src/permission.js
  10. 2
      src/store/modules/permission.js
  11. 2
      src/views/mdp/lcode/formData/Index.vue
  12. 2
      src/views/mdp/lcode/formField/Index.vue
  13. 2
      src/views/xm/core/xmIteration/XmIterationForLinkComplex.vue
  14. 2
      src/views/xm/core/xmTestCase/XmTestCaseMng.vue
  15. 2
      src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue
  16. 2
      src/views/xm/rpt/index/CompsSet.vue

2
src/common/js/util.js

@ -152,7 +152,7 @@ export default {
}, },
calcMaxHeight(cssSelector) { calcMaxHeight(cssSelector) {
debugger;
var table=cssSelector; var table=cssSelector;
if(typeof cssSelector == 'string'){ if(typeof cssSelector == 'string'){
table=document.querySelector(cssSelector); table=document.querySelector(cssSelector);

2
src/components/Image/ImageCategoryTree.vue

@ -198,7 +198,7 @@
this.$emit('current-change',data, node); this.$emit('current-change',data, node);
}, },
handleNodeClick(data, node, comp) { handleNodeClick(data, node, comp) {
debugger;
this.currentImageCategory=Object.assign({},data) this.currentImageCategory=Object.assign({},data)
this.$emit('node-click',data, node, comp); this.$emit('node-click',data, node, comp);
}, },

2
src/components/mdp-ui-ext/mdp-expand/FormData.vue

@ -127,7 +127,7 @@ import treeTool from '@/components/mdp-ui/js/treeTool.js'
editSubmit: function () { editSubmit: function () {
this.$refs.editForm.validate((valid) => { this.$refs.editForm.validate((valid) => {
if (valid) { if (valid) {
debugger
this.editLoading = true; this.editLoading = true;
let params = Object.assign({}, this.editForm); let params = Object.assign({}, this.editForm);
if(this.isExtInfosCpd){ if(this.isExtInfosCpd){

2
src/components/mdp-ui-ext/mdp-expand/FormDataItem.vue

@ -208,7 +208,7 @@
}, },
onFieldChange(val){ onFieldChange(val){
debugger;
this.$emit('input',this.editForm) this.$emit('input',this.editForm)
this.$emit('change',this.editForm,this.field) this.$emit('change',this.editForm,this.field)

2
src/components/mdp-ui-ext/mdp-image/Index.vue

@ -149,7 +149,7 @@ export default {
} }
}, },
initCurrData(){ initCurrData(){
debugger
var val=this.value var val=this.value
if(!val){ if(!val){
this.myVal=val this.myVal=val

2
src/components/mdp-ui-ext/mdp-select-tag/TagSelect.vue

@ -139,7 +139,7 @@ data() {
methods: { methods: {
// //
initCurrData(){ initCurrData(){
debugger
this.searchTableDatas(); this.searchTableDatas();
}, },

2
src/components/mdp-ui/js/util.js

@ -401,7 +401,7 @@ export default {
}, },
calcMaxHeight:function(cssSelector) { calcMaxHeight:function(cssSelector) {
debugger;
var table=cssSelector; var table=cssSelector;
if(typeof cssSelector == 'string'){ if(typeof cssSelector == 'string'){
table=document.querySelector(cssSelector); table=document.querySelector(cssSelector);

2
src/components/mdp-ui/mixin/MdpSelectMixin.js

@ -556,7 +556,7 @@ export const MdpSelectMixin = {
* @returns * @returns
*/ */
initOptionsByInitName(myVal,myName){ initOptionsByInitName(myVal,myName){
debugger
this.initOptions=myVal.map((v,idx)=>{ this.initOptions=myVal.map((v,idx)=>{
var option={} var option={}
option[this.props['id']]=v option[this.props['id']]=v

2
src/permission.js

@ -76,7 +76,7 @@ router.beforeEach((to, from, next) => {
next({ path: '/login' }) next({ path: '/login' })
}) })
}else{ }else{
debugger
store.dispatch('GenerateRoutes', {roles:store.getters.roles ,menus:store.getters.myMenus} ).then(() => { // 根据roles权限生成可访问的路由表 store.dispatch('GenerateRoutes', {roles:store.getters.roles ,menus:store.getters.myMenus} ).then(() => { // 根据roles权限生成可访问的路由表
router.addRoutes(store.getters.addRouters) // 动态添加可访问路由表 router.addRoutes(store.getters.addRouters) // 动态添加可访问路由表
next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 ,set the replace: true so the navigation will not leave a history record next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 ,set the replace: true so the navigation will not leave a history record

2
src/store/modules/permission.js

@ -80,7 +80,7 @@ function filterAsyncRouter(asyncRouterMap, roles,menus) {
return false return false
}) })
debugger
return accessedRouters return accessedRouters
} }
function filterAsyncRouterWithParentRoute(proute, roles,menus) { function filterAsyncRouterWithParentRoute(proute, roles,menus) {

2
src/views/mdp/lcode/formData/Index.vue

@ -265,7 +265,7 @@ export default {
// //
afterList(datas,isOk,apiName){ afterList(datas,isOk,apiName){
if(datas){ if(datas){
debugger;
var dataType=this.$route.params.dataType var dataType=this.$route.params.dataType
var dataField=this.$route.params.dataField var dataField=this.$route.params.dataField
var camelDf=this.$mdp.toCamel(dataField) var camelDf=this.$mdp.toCamel(dataField)

2
src/views/mdp/lcode/formField/Index.vue

@ -592,7 +592,7 @@ export default {
} }
}, },
hasChild(id){ hasChild(id){
debugger
return this.hasMyChild(id,this.selectedFields) return this.hasMyChild(id,this.selectedFields)
}, },
hasMyChild(id,children){ hasMyChild(id,children){

2
src/views/xm/core/xmIteration/XmIterationForLinkComplex.vue

@ -438,7 +438,7 @@
this.$nextTick(() => { this.$nextTick(() => {
debugger;
initDicts(this) initDicts(this)
//this.maxTableHeight = util.calcTableMaxHeight(this.$refs.pageBody.$el); //this.maxTableHeight = util.calcTableMaxHeight(this.$refs.pageBody.$el);

2
src/views/xm/core/xmTestCase/XmTestCaseMng.vue

@ -235,7 +235,7 @@ export default {
} }
this.load.list = true; this.load.list = true;
listXmTestCase(params).then((res) => { listXmTestCase(params).then((res) => {
debugger;
var tips=res.data.tips; var tips=res.data.tips;
if(tips.isOk){ if(tips.isOk){
this.pageInfo.total = res.data.total; this.pageInfo.total = res.data.total;

2
src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue

@ -477,7 +477,7 @@ import JsonViewer from 'vue-json-viewer'
this.editSomeFields(this.editForm,'execStatus',res.status==200?"2":"4") this.editSomeFields(this.editForm,'execStatus',res.status==200?"2":"4")
} }
}).catch(res=>{ }).catch(res=>{
debugger;
var func=new Function('res','env',autoStepObj.expectResult) var func=new Function('res','env',autoStepObj.expectResult)
var result=func(res,env) var result=func(res,env)
if(result==true){ if(result==true){

2
src/views/xm/rpt/index/CompsSet.vue

@ -247,7 +247,7 @@ export default {
//this.comps.forEach(k=>k.id=k.id?k.id:k.compId) //this.comps.forEach(k=>k.id=k.id?k.id:k.compId)
this.$nextTick(()=>{ this.$nextTick(()=>{
debugger
this.maxTableHeight = util.calcMaxHeight(this.$refs.table.$el) this.maxTableHeight = util.calcMaxHeight(this.$refs.table.$el)
if(this.category){ if(this.category){
this.filters.category=this.category this.filters.category=this.category

Loading…
Cancel
Save