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