From 80f9f6e11941427401bcb2f2ba03d00edf09f735 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期五, 29 三月 2024 10:19:31 +0800 Subject: [PATCH] 整合代码 --- Source/ProjectWeb/src/views/base/buttonTable.js | 17 ++++++++--------- Source/ProjectWeb/vue.config.js | 2 +- Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue | 16 +++++++--------- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue index 8326916..f7373e3 100644 --- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue +++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue @@ -101,15 +101,6 @@ } }, watch:{ - sourceData:{ - handler(newval) { - //婧愭暟鎹湁鍙樺寲鏃跺彉鏇村綋鍓嶅尯鍩熸暟鎹� - console.log(this.areasName); - console.log(newval); - } - } - }, - watch:{ slotData:{ handler(newV){ this.getDictList(newV) @@ -139,6 +130,13 @@ deep: true, immediate: true, }, + sourceData:{ + handler(newval) { + //婧愭暟鎹湁鍙樺寲鏃跺彉鏇村綋鍓嶅尯鍩熸暟鎹� + console.log(this.areasName); + console.log(newval); + } + } }, methods: { //杞寲鏁版嵁 diff --git a/Source/ProjectWeb/src/views/base/buttonTable.js b/Source/ProjectWeb/src/views/base/buttonTable.js index 80c6508..9b5342f 100644 --- a/Source/ProjectWeb/src/views/base/buttonTable.js +++ b/Source/ProjectWeb/src/views/base/buttonTable.js @@ -1,5 +1,5 @@ export default { - buttonClick(item,that) { + buttonClick(item, that) { that.formName = item.name; const location = item.paramVOS.webUiButtonLocation; const method = item.paramVOS.webUiButtonMethods; @@ -7,9 +7,9 @@ const messageAllText = '璇疯嚦灏戦�夋嫨涓�鏉℃暟鎹紒' const handlers = { - add: () => this.handleAdd(that,location), - edit: () => this.handleEdit(that,location, messageOnlyText), - delete: () => this.handleDelete(that,location, messageAllText), + add: () => this.handleAdd(that, location), + edit: () => this.handleEdit(that, location, messageOnlyText), + delete: () => this.handleDelete(that, location, messageAllText), }; const handler = handlers[method]; @@ -20,7 +20,7 @@ } }, - handleAdd(that,location) { + handleAdd(that, location) { if (location === 'top') { that.visible = true; } else { @@ -29,12 +29,11 @@ }, - handleEdit(that,location, messageOnlyText) { + handleEdit(that, location, messageOnlyText) { if (location === 'menu') { that.visible = true; that.$refs.dynamicForm.form = that.scope.row; - console.log('1',that.scope.row) - console.log(that.scope.row) + } else if (location === 'top' && that.selectList.length === 1) { that.visible = true; that.$refs.dynamicForm.form = that.selectList[0]; @@ -44,7 +43,7 @@ }, - handleDelete(that,location, messageAllText) { + handleDelete(that, location, messageAllText) { if (location === 'top') { if (that.selectList.length <= 0) { that.$message.warning(messageAllText); diff --git a/Source/ProjectWeb/vue.config.js b/Source/ProjectWeb/vue.config.js index 199d2f0..5a976af 100644 --- a/Source/ProjectWeb/vue.config.js +++ b/Source/ProjectWeb/vue.config.js @@ -29,7 +29,7 @@ target: 'http://192.168.0.103:12000/web', // target: 'http://dev.vci-tech.com:37000', //杩滅▼婕旂ず鏈嶅姟鍦板潃,鍙敤浜庣洿鎺ュ惎鍔ㄩ」鐩� - //target: 'https://saber.bladex.vip/api', + //target: 'https://saber.bladex.vip/api/', ws: true, pathRewrite: { '^/api': '/' -- Gitblit v1.9.3