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

禁止编辑状态

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