Commit 370292b1 authored by 姬鋆屾's avatar 姬鋆屾

fixed:修改线上企业频道不显示关联企业选择框得问题

parent c21244b7
......@@ -197,6 +197,7 @@ export default {
this.query = { id: row.id };
this.urls.currUrl = "news/edit";
this.getData();
this.pageInfo.type = "edit";
this.title = "修改新闻";
},
......@@ -223,12 +224,19 @@ export default {
},
/**获取数据前弹框 */
beforeRender(data) {
console.log(data);
data.entity.deptId && data.entity.deptId != ""
? (data.entity.deptId = String(data.entity.deptId))
: "";
data.entity.relatedCompany && data.entity.relatedCompany != ""
? (data.entity.relatedCompany = data.entity.relatedCompany.split(","))
: "";
data.entity.categoryId
? data.dict.categoryId[data.entity.categoryId].indexOf("企业") > -1
? (this.showCompany = true)
: (this.showCompany = false)
: (this.showCompany = false);
return data;
},
/**获取数据后弹框 */
......@@ -267,6 +275,7 @@ export default {
relatedCompany: "",
publishTime: null,
};
this.showCompany = false;
this.resetForm("form");
},
resetForm(refName) {
......
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