From 4065d7d35cd985b3da52efb6bede8bb1ae0674a2 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期日, 02 六月 2024 20:47:56 +0800
Subject: [PATCH] 完善FTP设置
---
src/views/tpm/MachineGroup.vue | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/views/tpm/MachineGroup.vue b/src/views/tpm/MachineGroup.vue
index e77729e..3c561a9 100644
--- a/src/views/tpm/MachineGroup.vue
+++ b/src/views/tpm/MachineGroup.vue
@@ -1,7 +1,7 @@
<!--
* @Date: 2024-04-27 20:02:44
* @LastEditors: Sneed
- * @LastEditTime: 2024-04-27 21:40:33
+ * @LastEditTime: 2024-04-27 22:21:36
* @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/tpm/MachineGroup.vue
-->
<template>
@@ -19,7 +19,7 @@
<el-header>
<div class="left-panel">
<el-button @click="addChild" type="primary" plain>鏂板涓嬬骇</el-button>
- <el-button @click="del" type="danger" plain>鍒犻櫎</el-button>
+ <el-button :disabled="!form.id" @click="del" type="danger" plain>鍒犻櫎</el-button>
</div>
</el-header>
<el-main class="">
@@ -83,6 +83,9 @@
}
},
addChild() {
+ if (!this.form.id) {
+ return
+ }
let { name, id, groupType, groupCategory } = this.form
this.form.id = ''
this.form.name = ''
--
Gitblit v1.9.3