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

View File

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