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

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

parent 98478996
......@@ -36,11 +36,12 @@
prop="categoryId"
v-model="form.categoryId"
type="radio"
@change="handlechange"
:enum-data="dict.categoryId"
placeholder="请输入分类id"
/>
<template v-if="form.categoryId == 1">
<template v-if="showCompany">
<Field
label="所属企业"
:span="40"
......@@ -154,6 +155,7 @@ export default {
companyData: [],
relatedCompany: {},
// 遮罩层
showCompany: false,
loading: true,
// 弹出层标题
title: "新闻",
......@@ -183,6 +185,12 @@ export default {
},
methods: {
handlechange(val) {
this.dict.categoryId[val].indexOf("企业") > -1
? (this.showCompany = true)
: (this.showCompany = false);
this.showCompany ? "" : (this.form.relatedCompany = "");
},
/** 编辑 */
edit(row) {
this.reset();
......
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