From 404966637eda6881a0f17683c5aacc7c1c34aed8 Mon Sep 17 00:00:00 2001 From: 田源 <tianyuan@vci-tech.com> Date: 星期四, 16 一月 2025 16:18:34 +0800 Subject: [PATCH] 增加操作类型 --- Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/components/dialog.vue | 28 +++++++++++++++++++--------- 1 files changed, 19 insertions(+), 9 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..47fc795 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,8 +20,8 @@ :option="treeOption" @node-click="nodeClick"> <span slot-scope="{ node, data }" class="el-tree-node__label"> - <span style="font-size: 15px"> - <i class="el-icon-s-promotion"></i> + <span> + <icon-show v-if="data.icon" :name="data.icon"></icon-show> {{ (node || {}).label }} </span> </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,11 +107,11 @@ search: true }, { - label: 'C/S绫昏矾寰�', - prop: 'plCSClass', + label: '鍥炬爣', + prop: 'plImage', search: true, searchLabelWidth:120, - overHidden: true, + width:80 }, { label: 'B/S閾炬帴鍦板潃', @@ -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