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

云资源id

parent ce79b10a
......@@ -255,7 +255,7 @@
v-for="(item, index) in workSpaceOptions"
:key="index"
:label="item.namespace"
:value="id"
:value="index"
></el-option>
</el-select>
</div>
......@@ -338,7 +338,7 @@
:stripe="true"
:datas="dataDiskList"
@primary-del="delItem"
height="260"
max-height="260"
></table-um>
</el-form-item>
</el-col>
......@@ -823,6 +823,7 @@ export default {
{ value: 2, label: "" }
],
workSpace: "",
workSpaceId: "",
workSpaceOptions: [],
optionsCPU: [
{ value: "8", label: "8" },
......@@ -950,9 +951,11 @@ export default {
},
handleChange() {},
getForm(val) {
console.log(val)
if (val !== "") {
let paramsOld = this.workSpaceOptions[val];
this.paramsOld = paramsOld;
this.workSpaceId = paramsOld.Id;
this.formOld.namespace = paramsOld.namespace;
this.formOld.workplace = paramsOld.workplace;
this.formOld.workplacedesc = paramsOld.workplacedesc;
......@@ -1046,7 +1049,7 @@ export default {
});
} else {
let query = {
resource_id: this.workSpace,
resource_id: this.workSpaceId,
resource_apply: {
apply_file: this.formOld.apply_file,
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