From 4d3f7f10d422fd6eee128fa32bc48ce7b10ec09d Mon Sep 17 00:00:00 2001 From: wangting <wangting@vci-tech.com> Date: 星期二, 07 一月 2025 18:24:21 +0800 Subject: [PATCH] 属性定义参照类型改成下拉树选择,处理值域显示不正确的问题,属性名选择改为下拉搜索 --- Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/components/dialog.vue | 24 +++++++++++++++++------- 1 files changed, 17 insertions(+), 7 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/components/dialog.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/components/dialog.vue index c47afba..04e6ac3 100644 --- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/components/dialog.vue +++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/components/dialog.vue @@ -20,7 +20,7 @@ :option="treeOption" @node-click="nodeClick"> <span slot-scope="{ node, data }" class="el-tree-node__label"> - <span style="font-size: 15px"> + <span> <i class="el-icon-s-promotion"></i> {{ (node || {}).label }} </span> @@ -48,6 +48,11 @@ <el-tag :type="row.plTypeType === 'business' ? '' : 'success'"> {{ row.plTypeType === 'business' ? '涓氬姟绫诲瀷' : '閾炬帴绫诲瀷' }} </el-tag> + </template> + <template slot="plImage" slot-scope="{row}"> + <span class="avue-icon"> + <icon-show :name="row.plImage"></icon-show> + </span> </template> </avue-crud> </div> @@ -82,7 +87,7 @@ lastIndex: null, selectList: [], data: [], - option: { + option: { ...basicOption, addBtn: false, height: 420, @@ -102,8 +107,8 @@ search: true }, { - label: 'C/S绫昏矾寰�', - prop: 'plCSClass', + label: '鍥炬爣', + prop: 'plImage', search: true, searchLabelWidth:120, overHidden: true, @@ -163,6 +168,7 @@ this.dialog.loading = false; this.dialog.showDialog = false; this.$refs.tree.setCurrentKey(null); + this.$emit('cancelAction',null); }, submitDialog() { if (this.selectList.length==0) { @@ -179,8 +185,9 @@ this.$emit('updataAction', this.selectList[0]); } - this.cancelDialog(); - + this.dialog.loading = false; + this.dialog.showDialog = false; + this.$refs.tree.setCurrentKey(null); }, // 宸︿晶鏍戣姹� getTreeList(status) { @@ -218,6 +225,9 @@ this.data = data; this.tableLoading = false; + this.$nextTick(function (){ + this.$refs.crud.doLayout() + }) }) }, @@ -237,7 +247,7 @@ this.lastIndex = newIndex; }, () => { - this.selectList = []; + this.selectList = [row]; } ); }, -- Gitblit v1.9.3