From e2fdfe540eaf160dc7d063c60667041edcc64e86 Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期二, 05 十一月 2024 22:55:14 +0800 Subject: [PATCH] 处理显示名称 --- src/views/dnc/file/admin/index.vue | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/dnc/file/admin/index.vue b/src/views/dnc/file/admin/index.vue index e496f68..55e0b2d 100644 --- a/src/views/dnc/file/admin/index.vue +++ b/src/views/dnc/file/admin/index.vue @@ -1,7 +1,7 @@ <!-- * @Date: 2024-05-20 21:43:10 * @LastEditors: Sneed - * @LastEditTime: 2024-06-06 23:06:11 + * @LastEditTime: 2024-06-16 16:19:14 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/dnc/file/admin/index.vue --> <template> @@ -9,7 +9,7 @@ <el-card shadow="never" style="height: 100%;" body-style="height: 100%"> <el-container> <el-aside width="200px"> - <el-tree ref="group" node-key="id" :props="{ + <el-tree :expand-on-click-node="false" ref="group" node-key="id" :props="{ label: 'name', hasChildren: 'id' }" :load="loadNode" @node-click="nodeClick" lazy></el-tree> @@ -49,8 +49,11 @@ <el-table-column label="鎿嶄綔" fixed="right" align="right" width="160"> <template #default="scope"> <el-button-group> - <el-button text type="primary" size="small" - @click="del([scope.row])">鍒犻櫎</el-button> + <el-popconfirm width="220" title="纭畾灏嗛�夋嫨鐨勬暟鎹垹闄�" @confirm="del([scope.row], '0')"> + <template #reference> + <el-button text type="primary" size="small">鍒犻櫎</el-button> + </template> + </el-popconfirm> </el-button-group> </template> </el-table-column> @@ -112,7 +115,7 @@ }) }, init() { - this.$HTTP.post(`/api/blade-cps/group/groupWorkstation`, { groupCategory: 1, groupType: 'group_workstation' }).then(res => { + this.$HTTP.post(`/api/smis/group/groupWorkstation`, { groupCategory: 1, groupType: 'group_workstation' }).then(res => { this.treeData = this.formatData(res.data) }) -- Gitblit v1.9.3