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

优化发起机构提示

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