From 4a017d8e3fa7c403e91998267a95a65cd5272fdd Mon Sep 17 00:00:00 2001 From: 田源 <tianyuan@vci-tech.com> Date: 星期三, 08 一月 2025 09:59:32 +0800 Subject: [PATCH] 修改bug表中bug和部分样式 --- Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue | 50 ++++++++++++++++++++++++++++++++------------------ 1 files changed, 32 insertions(+), 18 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue index efa462c..9eef2a3 100644 --- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue @@ -13,20 +13,30 @@ @selection-change="selectChangeHandler" @row-click="rowClickHandler"> <template slot="menuLeft" slot-scope="scope"> - <el-button v-if="permissionChildrenList.UiPageLayoutAddBtn" icon="el-icon-plus" plain size="small" type="primary" - @click="addClickHandler">澧炲姞 + <el-button v-if="permissionChildrenList.UiPageLayoutAddBtn" class="button-custom-icon" plain size="small" type="primary" + @click="addClickHandler"> + <icon-show :name="permissionChildrenList.UiPageLayoutAddBtn.source"></icon-show> + 澧炲姞 </el-button> </template> <template slot="menu" slot-scope="scope"> - <el-button v-if="permissionChildrenList.UiPageLayoutDesignBtn" icon="el-icon-edit-outline" size="small" type="text" - @click="btnDesignClickHandler(scope.row)">鎸夐挳璁捐 + <el-button v-if="permissionChildrenList.UiPageLayoutDesignBtn" size="small" type="text" + @click="btnDesignClickHandler(scope.row)"> + <icon-show :name="permissionChildrenList.UiPageLayoutDesignBtn.source"></icon-show> + 鎸夐挳璁捐 </el-button> - <el-button v-if="permissionChildrenList.UiPageLayoutEditBtn" icon="el-icon-edit" size="small" type="text" @click="editBtnClick(scope.row)">缂栬緫 + <el-button v-if="permissionChildrenList.UiPageLayoutEditBtn" size="small" type="text" @click="editBtnClick(scope.row)"> + <icon-show :name="permissionChildrenList.UiPageLayoutEditBtn.source"></icon-show> + 缂栬緫 </el-button> - <el-button v-if="permissionChildrenList.UiPageLayoutDelBtn" icon="el-icon-delete" size="small" type="text" @click="rowDeleteHandler(scope.row)">鍒犻櫎 + <el-button v-if="permissionChildrenList.UiPageLayoutDelBtn" size="small" type="text" @click="rowDeleteHandler(scope.row)"> + <icon-show :name="permissionChildrenList.UiPageLayoutDelBtn.source"></icon-show> + 鍒犻櫎 </el-button> - <el-button v-if="permissionChildrenList.UiPageLayoutCloneBtn" icon="el-icon-document-copy" size="small" type="text" @click="rowCloneHandler(scope.row)">鍏嬮殕 + <el-button v-if="permissionChildrenList.UiPageLayoutCloneBtn" size="small" type="text" @click="rowCloneHandler(scope.row)"> + <icon-show :name="permissionChildrenList.UiPageLayoutCloneBtn.source"></icon-show> + 鍏嬮殕 </el-button> </template> @@ -402,13 +412,11 @@ {required: true, message: '璇疯緭鍏ュ悕绉�', trigger: 'blur'}, ], actionName: [ - {required: true, message: '璇烽�夋嫨Action', trigger: 'blur'}, + {required: true, message: '璇烽�夋嫨Action', trigger: 'change'}, ], }, // 鎸夐挳璁捐 鍩虹淇℃伅 - basicForm: { - seq: 1 - }, + basicForm: {}, treeData: [], treeOption: { menu: false, @@ -856,17 +864,18 @@ lastIndex: null, selectList: [], formDataRow: {}, + defaultForm:{}, } }, computed:{ ...mapGetters(["permission"]), permissionChildrenList() { return { - UiPageLayoutAddBtn: this.vaildData(this.permission[this.$route.query.id].UiPageLayoutAdd, false), - UiPageLayoutEditBtn: this.vaildData(this.permission[this.$route.query.id].UiPageLayoutEdit, false), - UiPageLayoutDelBtn: this.vaildData(this.permission[this.$route.query.id].UiPageLayoutDel, false), - UiPageLayoutCloneBtn: this.vaildData(this.permission[this.$route.query.id].UiPageLayoutClone, false), - UiPageLayoutDesignBtn: this.vaildData(this.permission[this.$route.query.id].UiPageLayoutDesign, false), + UiPageLayoutAddBtn: this.vaildData(this.permission[this.$route.query.id].CLSRIGHT, false), + UiPageLayoutEditBtn: this.vaildData(this.permission[this.$route.query.id].DATARIGHT, false), + UiPageLayoutDelBtn: this.vaildData(this.permission[this.$route.query.id].ATTRRIGHT, false), + UiPageLayoutCloneBtn: this.vaildData(this.permission[this.$route.query.id].CLONE, false), + UiPageLayoutDesignBtn: this.vaildData(this.permission[this.$route.query.id].UPLOAD, false), } } }, @@ -1166,13 +1175,14 @@ // 鎸夐挳璁捐琛岀偣鍑� nodeTreeClick(row) { this.nodeTreeRow = row; + this.defaultForm = {...row}; this.basicForm = {...row}; this.paramsData = row.buttonParams ? Object.entries(row.buttonParams).map(([key, value]) => ({ name: key, value: value })) : []; this.disabledBtn = true; - this.$refs.form.clearValidate() + this.$refs.form.clearValidate(); }, // 鎸夐挳璁捐鍙傛暟淇℃伅鍒犻櫎 @@ -1245,6 +1255,9 @@ this.disabledBtn = true; if (this.saveType === 'add') { this.$refs.Tree.setCurrentKey(null); + this.$refs.form.resetFields(); + }else { + this.basicForm = {...this.defaultForm}; } }, @@ -1290,6 +1303,7 @@ return false; } done(); + this.$refs.form.resetFields(); }); }, @@ -1349,7 +1363,7 @@ actionSaveHandler(val) { this.$set(this.basicForm, 'actionName', val.plName); this.$set(this.basicForm, 'actionOId', val.plOId); - this.$set(this.basicForm, 'iconPath', val.plCSClass);//鍥炬爣 + this.$set(this.basicForm, 'iconPath', val.plImage);//鍥炬爣 this.$refs.form.clearValidate('Action') }, // action閫夋嫨寮圭獥鐩存帴鍏抽棴 -- Gitblit v1.9.3