Commit d15bbbd1 authored by 姬鋆屾's avatar 姬鋆屾

feat:修改新闻处企业关联功能

parent cd16d38e
......@@ -158,7 +158,7 @@ export default {
companyData: [],
relatedCompany: {},
// 遮罩层
showCompany: false,
showCompany: true,
loading: true,
// 弹出层标题
title: "新闻",
......@@ -189,10 +189,11 @@ export default {
methods: {
handlechange(val) {
this.dict.categoryId[val].indexOf("企业") > -1
? (this.showCompany = true)
: (this.showCompany = false);
this.showCompany ? "" : (this.form.relatedCompany = "");
this.showCompany = true;
// this.dict.categoryId[val].indexOf("企业") > -1
// ? (this.showCompany = true)
// : (this.showCompany = false);
// this.showCompany ? "" : (this.form.relatedCompany = "");
},
/** 编辑 */
edit(row) {
......@@ -235,11 +236,11 @@ export default {
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);
// data.entity.categoryId
// ? data.dict.categoryId[data.entity.categoryId].indexOf("企业") > -1
// ? (this.showCompany = true)
// : (this.showCompany = false)
// : (this.showCompany = false);
return data;
},
/**获取数据后弹框 */
......@@ -278,7 +279,7 @@ export default {
relatedCompany: "",
publishTime: null,
};
this.showCompany = false;
this.showCompany = true;
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