fix: 编辑集群备注
parent
c7c9b76705
commit
2d310224c8
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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`, {
|
||||
|
|
Loading…
Reference in New Issue