From a52ce4c9a594e78b5931d487e05d0dd54ac8cd36 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期一, 07 十月 2024 22:38:28 +0800
Subject: [PATCH] Merge branch 'release' of http://122.9.151.159:9090/r/smart-web into release
---
src/views/tpm/MachineGroup.vue | 25 +++++++++++++++++--------
1 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/src/views/tpm/MachineGroup.vue b/src/views/tpm/MachineGroup.vue
index 3c561a9..9f54d09 100644
--- a/src/views/tpm/MachineGroup.vue
+++ b/src/views/tpm/MachineGroup.vue
@@ -1,8 +1,8 @@
<!--
* @Date: 2024-04-27 20:02:44
- * @LastEditors: Sneed
- * @LastEditTime: 2024-04-27 22:21:36
- * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/tpm/MachineGroup.vue
+ * @LastEditors: gaoshp
+ * @LastEditTime: 2024-09-29 19:33:58
+ * @FilePath: /cps-web/src/views/tpm/MachineGroup.vue
-->
<template>
<el-container>
@@ -118,11 +118,20 @@
},
save() {
this.group = []
- this.$HTTP.post('/api/blade-cps/group', this.form).then(res => {
- if (res.code === 200) {
- this.getTreeData()
- }
- })
+ if (this.form.id) {
+ this.$HTTP.put('/api/blade-cps/group', this.form).then(res => {
+ if (res.code === 200) {
+ this.getTreeData()
+ }
+ })
+ } else {
+ this.$HTTP.post('/api/blade-cps/group', this.form).then(res => {
+ if (res.code === 200) {
+ this.getTreeData()
+ }
+ })
+ }
+
}
}
}
--
Gitblit v1.9.3