提交 93ffa4c5 编写于 作者: haochangdi's avatar haochangdi

优化发起机构提示

上级 ef273ce6
......@@ -327,9 +327,6 @@ export default {
vm = this;
vm.getComponentInfo();
if (!vm.newBuild){
vm.setEditData(this.messageObj);
}
if (!vm.newBuild && !vm.isEditor) {
this.disabled = true;
} else {
......@@ -410,6 +407,10 @@ export default {
this.optionsComponent = optionsComponent;
this.optionsCertificate = optionsCertificate;
this.organizationContent = res.data.creatorOrganizationName;
if (!vm.newBuild){
vm.status4Flag = 1;
vm.setEditData(this.messageObj);
}
}
});
},
......@@ -567,7 +568,7 @@ export default {
}
},
initTags(value) {
//console.log('value',value,'optionsComponent',this.optionsComponent);
console.log('value',value,'optionsComponent',this.optionsComponent);
this.tagsComponent = [];
let len = 0;
for (let i = 0; i < value.length; i++) {
......@@ -576,6 +577,7 @@ export default {
this.tagsComponent[len] = {};
this.tagsComponent[len].value = this.optionsComponent[j].value;
this.tagsComponent[len].name = this.optionsComponent[j].label;
// 不可编辑
if (vm.status4Flag == 1) {
this.optionsComponent[j].disabled = true;
this.tagsComponent[len].disabled = true;
......
......@@ -43,7 +43,7 @@
:content="organizationContent"
v-model="visibleName"
@click="checkDefault">
<p @click="checkDefault"> 我的机构: {{ organizationContent }} </p>
<p @click="checkDefault"> 我的机构: {{ formData.creatorOrganizationName }} </p>
</el-popover>
</el-form-item>
......@@ -229,7 +229,7 @@ export default {
return {
visibleName: false, //是否显示机构提示
orgListIndex: 1,
organizationContent: 'hcd',//机构名称
organizationContent: '',//机构名称
formData: {
id: "", //项目 id 26
projectName: "", //开放模板名称
......@@ -439,6 +439,7 @@ export default {
},
// 机构选择默认值
checkDefault() {
vm.organizationContent = vm.formData.creatorOrganizationName;
vm.formData.organizationNameList.splice(vm.orgListIndex-1, 1, vm.organizationContent);
vm.visibleName = false;
},
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册