Commit 803379a9 authored by 刘殿昕's avatar 刘殿昕

云资源id

parent ce79b10a
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
v-for="(item, index) in workSpaceOptions" v-for="(item, index) in workSpaceOptions"
:key="index" :key="index"
:label="item.namespace" :label="item.namespace"
:value="id" :value="index"
></el-option> ></el-option>
</el-select> </el-select>
</div> </div>
...@@ -338,7 +338,7 @@ ...@@ -338,7 +338,7 @@
:stripe="true" :stripe="true"
:datas="dataDiskList" :datas="dataDiskList"
@primary-del="delItem" @primary-del="delItem"
height="260" max-height="260"
></table-um> ></table-um>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -823,6 +823,7 @@ export default { ...@@ -823,6 +823,7 @@ export default {
{ value: 2, label: "" } { value: 2, label: "" }
], ],
workSpace: "", workSpace: "",
workSpaceId: "",
workSpaceOptions: [], workSpaceOptions: [],
optionsCPU: [ optionsCPU: [
{ value: "8", label: "8" }, { value: "8", label: "8" },
...@@ -950,9 +951,11 @@ export default { ...@@ -950,9 +951,11 @@ export default {
}, },
handleChange() {}, handleChange() {},
getForm(val) { getForm(val) {
console.log(val)
if (val !== "") { if (val !== "") {
let paramsOld = this.workSpaceOptions[val]; let paramsOld = this.workSpaceOptions[val];
this.paramsOld = paramsOld; this.paramsOld = paramsOld;
this.workSpaceId = paramsOld.Id;
this.formOld.namespace = paramsOld.namespace; this.formOld.namespace = paramsOld.namespace;
this.formOld.workplace = paramsOld.workplace; this.formOld.workplace = paramsOld.workplace;
this.formOld.workplacedesc = paramsOld.workplacedesc; this.formOld.workplacedesc = paramsOld.workplacedesc;
...@@ -1046,7 +1049,7 @@ export default { ...@@ -1046,7 +1049,7 @@ export default {
}); });
} else { } else {
let query = { let query = {
resource_id: this.workSpace, resource_id: this.workSpaceId,
resource_apply: { resource_apply: {
apply_file: this.formOld.apply_file, apply_file: this.formOld.apply_file,
cpu: Number(this.formOld.cpu), cpu: Number(this.formOld.cpu),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment