From 83aa382fd3b88ec7a564f14d41a9c8e5d43beeb3 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期一, 09 十二月 2024 10:26:31 +0800 Subject: [PATCH] 修改表单定义样式&&修改ui上下文btmName&&添加登录密码即将过期进入首页并提醒 --- Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/formDefine/index.vue | 31 ++++++++++++++++--------------- 1 files changed, 16 insertions(+), 15 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/formDefine/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/formDefine/index.vue index e1b47da..83f30a9 100644 --- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/formDefine/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/formDefine/index.vue @@ -66,7 +66,8 @@ </avue-crud> </basic-container> </el-main> - <form-dialog ref="formDialog" :TreeNodeRow="this.nodeRow" :editRow="editRow" :treeRadio="treeRadio"></form-dialog> + <form-dialog ref="formDialog" :TreeNodeRow="this.nodeRow" :editRow="editRow" :treeRadio="treeRadio" + @updataTable="getRightPortalVIDatas"></form-dialog> <table-dialog ref="tableDialog" :TreeNodeRow="this.nodeRow" :treeRadio="treeRadio" @updataTable="getRightPortalVIDatas"></table-dialog> <!-- 瀵煎叆 --> @@ -204,8 +205,9 @@ this.$refs.formDialog.getTreeList(); } else { this.$refs.tableDialog.visible = true; - this.$refs.tableDialog.getDbList(); - this.$refs.tableDialog.getSearchSelectList(); + this.$refs.tableDialog.getDbList(); // 鍙屽嚮鎿嶄綔涓嬫媺鎺ュ彛 + this.$refs.tableDialog.getSearchSelectList(); // 閫夋嫨琛ㄥ崟涓嬫媺鎺ュ彛 + this.$refs.tableDialog.getFormSelect(); // 鏌ヨ妯℃澘涓嬫媺鎺ュ彛 } }, @@ -310,7 +312,6 @@ // 缂栬緫鎸夐挳 editBtnClick(row) { - console.log('row', row); // 琛ㄦ牸 if (row.viType === 0) { const params = { @@ -329,14 +330,19 @@ // 鏇存柊琛ㄥ崟 this.$refs.tableDialog.form = { ...prmItem, + itemFieldWidthList: prmItem.itemFieldWidthList.map(item => { + return { + ...item, + $cellEdit: true, + } + }), viName: res.data.obj.viName, + itemQtName: res.data.obj.prm.formQtName, editNodeId: row.id, - itemOutFieldList: (prmItem.itemOutFieldList || []).map(item => ({id: item})), + itemOutFieldList: (prmItem.itemOutFieldList || []), itemSearchFieldList: (prmItem.itemSearchFieldList || []).map(item => ({id: item})), - itemKeyFieldList: (prmItem.itemKeyFieldList || []).map(item => ({id: item})), - searchLabel: prmItem.itemSeniorQueryCols || '', - searchNumber: prmItem.itemSeniorQueryColsCounts || '1', - searchSql: prmItem.itemQuerySql || '', + itemKeyFieldList: (prmItem.itemKeyFieldList || []), + searchNumber: '1', itemFileWidthSelect: (prmItem.itemFieldWidthList && prmItem.itemFieldWidthList.length > 0) ? prmItem.itemFieldWidthList[0].key : '', itemWidth: (prmItem.itemFieldWidthList && prmItem.itemFieldWidthList.length > 0) ? prmItem.itemFieldWidthList[0].value : '250' }; @@ -345,9 +351,6 @@ const [width = '0', height = '0'] = (prmItem.itemImgWH || '0,0').split(','); this.$refs.tableDialog.itemImgWidth = width; this.$refs.tableDialog.itemImgHeight = height; - - // 鍙屽嚮鎿嶄綔鑾峰彇鏁版嵁鏂规硶 - this.$refs.tableDialog.getDbList(); // 鏄剧ず瀵硅瘽妗� this.$refs.tableDialog.visible = true; @@ -373,9 +376,9 @@ this.$refs.formDialog.formList = updatedData; this.$refs.formDialog.getTreeList(); this.$refs.formDialog.topForm.viName = res.data.obj.viName; + this.$refs.formDialog.topForm.itemQtName = res.data.obj.prm.formQtName; this.$refs.formDialog.topForm.columnNumber = this.getValueBasedOnInput(res.data.obj.prm.showCols); this.$refs.formDialog.topForm.showColumn = res.data.obj.prm.showCols; - this.$refs.formDialog.visible = true; } }) @@ -517,7 +520,6 @@ // 鍏嬮殕鏍戠偣鍑� cloneTreeNodeClick(row) { - console.log(row); this.cloneTreeNode = row; }, @@ -573,7 +575,6 @@ confirmButtonText: '纭畾', cancelButtonText: '鍙栨秷', }).then(({value}) => { - console.log(obj); const params = { clonePortalVIDTOList: [ { -- Gitblit v1.9.3