From 9423f2936340d82b046ec615381c1c5e03698557 Mon Sep 17 00:00:00 2001 From: yuxc <yuxc@vci-tech.com> Date: 星期五, 27 九月 2024 17:56:53 +0800 Subject: [PATCH] 1、主要完成对获取UI上下文的定义接口的优化,优化的方向为对多次获取业务类型对象进行转换而导致耗时较久的问题继续修改,还有对多次获取属性对象进行转换对象导致耗时过长问题进行修改。 2、对树的数据查询接口的优化,对多次获取属性对象进行转换对象导致耗时过长问题进行修改。 --- Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue | 42 ++++++++++++++++++++++++++++++++++++++---- 1 files changed, 38 insertions(+), 4 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 ac69f17..bba8a82 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 @@ -160,10 +160,12 @@ <el-divider content-position="left">鍙傛暟淇℃伅</el-divider> <avue-crud ref="paramsCrud" + v-model="paramsForm" :data="paramsData" :option="paramsOption" style="margin-top: 20px" - @row-save="paramsRowSave"> + @row-save="paramsRowSave" + @row-update="paramsRowUpdate"> <template slot="menuLeft" slot-scope="scope"> <el-button :disabled="disabledBtn" icon="el-icon-plus" plain size="small" type="primary" @click="paramsRowAddClickHandler">鍒涘缓 @@ -171,6 +173,9 @@ </template> <template slot="menu" slot-scope="scope"> + <el-button :disabled="disabledBtn" icon="el-icon-edit" size="small" type="text" + @click="paramsRowEditHandler(scope.row)">淇敼 + </el-button> <el-button :disabled="disabledBtn" icon="el-icon-delete" size="small" type="text" @click="paramsRowDeleteHandler(scope.row)">鍒犻櫎 </el-button> @@ -218,6 +223,7 @@ name: "index", data() { return { + paramsForm:{}, eventOption: { ...basicOption, addBtn: false, @@ -225,6 +231,7 @@ delBtn: false, refreshBtn: false, highlightCurrentRow: true, + height: 200, column: [ { label: 'EventKey', @@ -257,7 +264,7 @@ message: '璇疯緭鍏ventValue', trigger: 'blur' } - ] + ] } ] }, @@ -279,11 +286,27 @@ column: [ { label: '鍚嶇О', - prop: 'name' + prop: 'name', + span: 24, + rules: [ + { + required: true, + message: '璇疯緭鍏ュ悕绉�', + trigger: 'blur' + } + ] }, { label: '鍊�', - prop: 'value' + prop: 'value', + span: 24, + rules: [ + { + required: true, + message: '璇疯緭鍏ュ��', + trigger: 'blur' + } + ] } ] }, @@ -1017,11 +1040,22 @@ this.paramsData.splice(row.$index, 1) }, + // 鎸夐挳璁捐淇℃伅鍙傛暟淇℃伅淇敼 + paramsRowEditHandler(row) { + this.$refs.paramsCrud.rowEdit(row); + }, + // 鎸夐挳璁捐鍙傛暟淇℃伅娣诲姞鎸夐挳 paramsRowAddClickHandler() { this.$refs.paramsCrud.rowAdd(); }, + // 鎸夐挳璁捐鍙傛暟淇℃伅淇敼淇濆瓨 + paramsRowUpdate(row, index, done, loading) { + this.paramsData.splice(index, 1, row); + done(); + }, + // 鎸夐挳璁捐鍙傛暟淇℃伅淇濆瓨 paramsRowSave(row, done, loading) { if (!row.name) { -- Gitblit v1.9.3