From ee032cd079ac6888c6750a9545a74b7048c2da1b Mon Sep 17 00:00:00 2001 From: yuxc <yuxc@vci-tech.com> Date: 星期五, 18 十月 2024 09:36:35 +0800 Subject: [PATCH] 1、增加删除卷接口。 --- Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/formDefine/index.vue | 32 ++++++++++++++++++++------------ 1 files changed, 20 insertions(+), 12 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 d6c1297..ac5f61b 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 @@ -25,6 +25,14 @@ <el-main> <basic-container> + <div v-if="!tableStatus" style="display: flex;justify-content: left;margin-top: 15px"> + <el-button icon="el-icon-plus" plain size="small" type="primary" @click="addClickHandler">澧炲姞</el-button> + <el-button icon="el-icon-delete" plain size="small" type="danger" @click="deleteClickHandler">鍒犻櫎</el-button> + <el-button icon="el-icon-document-add" plain size="small" type="primary">鍏嬮殕</el-button> + <el-button icon="el-icon-upload2" plain size="small" type="primary" @click="upLoadClickHandler">瀵煎叆</el-button> + <el-button icon="el-icon-download" plain size="small" type="primary" @click="exportClickHandler">瀵煎嚭 + </el-button> + </div> <avue-crud v-if="!tableStatus" ref="crud" @@ -61,14 +69,6 @@ </el-button> </template> </avue-crud> - <div v-if="!tableStatus" style="display: flex;justify-content: center;margin-top: 15px"> - <el-button icon="el-icon-plus" plain size="small" type="primary" @click="addClickHandler">澧炲姞</el-button> - <el-button icon="el-icon-delete" plain size="small" type="danger" @click="deleteClickHandler">鍒犻櫎</el-button> - <el-button icon="el-icon-document-add" plain size="small" type="primary">鍏嬮殕</el-button> - <el-button icon="el-icon-upload2" plain size="small" type="primary" @click="upLoadClickHandler">瀵煎叆</el-button> - <el-button icon="el-icon-download" plain size="small" type="primary" @click="exportClickHandler">瀵煎嚭 - </el-button> - </div> </basic-container> </el-main> <form-dialog ref="formDialog" :TreeNodeRow="this.nodeRow" :treeRadio="treeRadio"></form-dialog> @@ -117,6 +117,7 @@ addBtn: false, editBtn: false, delBtn: false, + calcHeight:-60, column: [ { label: '涓氬姟鍚嶇О', @@ -184,6 +185,8 @@ }); this.treeData = data; this.treeLoading = false; + }).catch(error => { + loading.close(); }); }, @@ -203,7 +206,7 @@ } else { gridLink().then(res => { const data = res.data.data.map(item => { - item.label = item.name; + item.id = item.name; return item; }); this.treeData = data; @@ -384,12 +387,10 @@ this.$message.error('璇疯嚦灏戦�夋嫨涓�鏉℃暟鎹�'); return; } - console.log(this.selectList); const params = { ids: this.selectList.map(item => item.id).join(',') } deleteByIds(params).then(res => { - console.log(res); if (res.data.code === 200) { this.$message.success('鍒犻櫎鎴愬姛'); this.getRightPortalVIDatas(); @@ -397,7 +398,14 @@ }) }, - + rowDeleteHandler(row){ + deleteByIds({ids:row.id}).then(res => { + if (res.data.code === 200) { + this.$message.success('鍒犻櫎鎴愬姛'); + this.getRightPortalVIDatas(); + } + }) + }, // 澶氶�� selectChangeHandler(row) { this.selectList = row; -- Gitblit v1.9.3