From 8b2a0199527fa2d2f0fd4c420dd374e42c496c48 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期三, 09 十月 2024 11:32:28 +0800
Subject: [PATCH] 1
---
src/views/tpm/MachineTab.vue | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/src/views/tpm/MachineTab.vue b/src/views/tpm/MachineTab.vue
index 13edf48..84cc486 100644
--- a/src/views/tpm/MachineTab.vue
+++ b/src/views/tpm/MachineTab.vue
@@ -1,15 +1,15 @@
<!--
* @Date: 2024-04-27 20:04:34
- * @LastEditors: Sneed
- * @LastEditTime: 2024-05-07 22:23:47
- * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/tpm/MachineTab.vue
+ * @LastEditors: gaoshp
+ * @LastEditTime: 2024-09-24 21:03:08
+ * @FilePath: /cps-web/src/views/tpm/MachineTab.vue
-->
<template>
<el-container>
<el-aside width="200px" v-loading="showGrouploading">
<el-container>
<el-main class="nopadding">
- <el-tree ref="group" default-expand-all node-key="id" :data="group"
+ <el-tree :expand-on-click-node="false" ref="group" default-expand-all node-key="id" :data="group"
:current-node-key="params.groupId" :highlight-current="true" @node-click="nodeClick"></el-tree>
</el-main>
</el-container>
@@ -58,7 +58,7 @@
<el-button-group>
<el-button text type="primary" size="small"
@click="table_edit(scope.row, scope.$index)">缂栬緫</el-button>
- <el-popconfirm cancel-button-text="鍋滅敤" confirm-button-text="鍒犻櫎"
+ <el-popconfirm width="220" cancel-button-text="鍋滅敤" confirm-button-text="鍒犻櫎"
title="鍒犻櫎鏁版嵁浼氬奖鍝嶅凡鍏宠仈鐨勪笟鍔� ,鑻ユ偍鎯冲湪宸插叧鑱旂殑涓氬姟涓緷鐒舵樉绀鸿繖浜涙暟鎹�, 鎮ㄥ彲浠ラ�夋嫨 鍋滅敤 鎿嶄綔銆傚仠鐢ㄥ悗姝ゆ暟鎹皢涓嶈兘鍐嶈鏂颁笟鍔′娇鐢ㄣ��"
@confirm="table_del(scope.row, scope.$index, '0')"
@cancel="table_del(scope.row, scope.$index, '1')">
@@ -138,10 +138,12 @@
this.$refs.table.reload(this.params)
},
table_add() {
- this.$refs.dialog.open('add')
+ this.$refs.dialog.open('add', {
+ groupId: this.params.groupId
+ })
},
table_edit(row) {
- this.$refs.dialog.open('add', { id: row.id })
+ this.$refs.dialog.open('edit', { id: row.id })
},
success() {
this.getTreeData()
@@ -153,6 +155,8 @@
if (res.code === 200) {
this.$message.success("鎿嶄綔鎴愬姛");
this.getTreeData()
+ } else {
+ this.$message.error(res.msg);
}
})
},
@@ -169,6 +173,8 @@
if (res.code === 200) {
this.$message.success("鎿嶄綔鎴愬姛");
this.getTreeData()
+ } else {
+ this.$message.error(res.msg);
}
})
},
--
Gitblit v1.9.3