提交 db96d045 编写于 作者: zhentian.jia's avatar zhentian.jia

禁止编辑状态

上级 af882fee
......@@ -419,6 +419,7 @@
style="width: 350px"
placeholder="请选择组件"
@change="changeValue"
:disabled="projectStatus == 4"
>
<el-option
v-for="item in optionsComponent"
......@@ -442,7 +443,7 @@
</el-col>
</el-form-item>
<el-form-item label="配置证书:">
<el-radio-group v-model="formComponent.configure">
<el-radio-group v-model="formComponent.configure" :disabled="projectStatus == 4">
<el-radio :label="1"></el-radio>
<el-radio :label="2"></el-radio>
</el-radio-group>
......@@ -453,6 +454,7 @@
v-model="formComponent.certificate"
placeholder="请选择证书"
style="width: 350px"
:disabled="projectStatus == 4"
>
<el-option
v-for="item in optionsCertificate"
......@@ -1453,22 +1455,28 @@ export default {
}
}
}
},
appendCheck() {
},
//添加子节点
append(data, node) {
console.log("data:", data);
//console.log("node:", node);
console.log("node:", node);
if (data.children.length == 0) {
let id = data.id + "add";
const newChild = [
{ id: id, label: "testtest", children: [] },
{ id: id, label: "22", children: [] }
];
let statusValue = 0;
if(node.checked == true) {
statusValue = 1
}
//data.children.push(newChild);
let req = {
id: data.id,
status: data.status,
status: statusValue,
disabled: data.disabled
};
vm.GET("portal/scope/v1/administrative/children", req).then(res => {
......@@ -1477,6 +1485,7 @@ export default {
//console.log(administrative);
data.children = administrative;
//data.children.push(newChild);
}
});
}
......@@ -2105,6 +2114,7 @@ export default {
},
//选择组件数据绑定
handleCloseComponent(tag) {
if(this.projectStatus != 4) {
this.tagsComponent.splice(this.tagsComponent.indexOf(tag), 1);
this.formComponent.component = [];
for (let j = 0; j < this.tagsComponent.length; j++) {
......@@ -2112,6 +2122,7 @@ export default {
}
}
}
}
};
</script>
<style lang="scss">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册