fix: 编辑集群备注

develop
时启龙 2024-09-09 14:16:10 +08:00
parent c7c9b76705
commit 2d310224c8
3 changed files with 6 additions and 8 deletions

View File

@ -35,7 +35,6 @@
</template>
<script>
/* global $ */
import bind from './bind.vue'
import { getClusterList } from 'views/resource/ctstack/services/tke.js'
import { removeFloatIp, detailFloatIp } from 'views/resource/ctstack/services/floatips.js'
@ -184,7 +183,7 @@ export default {
this.modifyClusterData = {
dialog: true,
data: {
name: row.name,
remark: row.remark,
id: row.id
}
}

View File

@ -4,8 +4,8 @@
<cb-form :model="addData.data" ref="data">
<el-row :gutter="10">
<el-col :span="24">
<cb-form-item label="名称:" prop="name" validate="required" required-message="" maxlength="60">
<el-input v-model="addData.data.name"></el-input>
<cb-form-item label="名称:" prop="remark" validate="required" required-message="" maxlength="60">
<el-input v-model="addData.data.remark"></el-input>
</cb-form-item>
</el-col>
</el-row>
@ -19,7 +19,6 @@
</template>
<script>
/* global $ */
import { modifyInstance } from 'views/resource/ctstack/services/tke.js'
export default {
props: {
@ -28,7 +27,7 @@ export default {
default: function () {
return {
data: {
name: '',
remark: '',
vendorId: -1
},
dialog: false
@ -49,7 +48,7 @@ export default {
if (valid) {
const param = {
id: this.addData.data.id,
newName: this.addData.data.name
remark: this.addData.data.remark
}
modifyInstance(param).then(data => {
if (data.success) {

View File

@ -35,7 +35,7 @@ export function checkCIDR(params) {
})
}
const clusterListUrl = '/cmp/plugins/ctstack/v1/tke'
const clusterListUrl = '/cmp/plugins/ctstack/v1/containers'
// 获取伸缩组
export function getFlexibleList(params) {
return request.get(`${clusterListUrl}/group/list`, {