Commit ff5ce3ca by 李伟康

Merge branch 'feature/586/lwk' into 'SAAS+V5.8.6'

修复: 修复考试管理模块新增页和详情页的表单问题

See merge request !981
2 parents d770afb7 19d706bc
Pipeline #246 for ff5ce3ca failed in 0 seconds
...@@ -244,7 +244,7 @@ export default { ...@@ -244,7 +244,7 @@ export default {
{ {
label: "品牌", label: "品牌",
name: "carBrand", name: "carBrand",
message: "数据来源:车联网平台门店-主营品牌;非必选,未选时所有品牌驻店均需学习", message: "数据来源:车联网平台门店-主营品牌; 非必选,未选时所有品牌驻店均需学习",
addHtml: "carBrandHtml", addHtml: "carBrandHtml",
isHide: true, isHide: true,
}, },
...@@ -399,8 +399,10 @@ export default { ...@@ -399,8 +399,10 @@ export default {
return; return;
} }
let { postTypeOpt } = this.baseData; let { postTypeOpt } = this.baseData;
if (!positionName) { let name = postTypeOpt.find(item => item.oid == positionCode)?.name || "";
positionName = postTypeOpt.find(item => item.oid == positionCode)?.name || ""; if (name) {
positionName = name;
this.addForm.positionName = name;
} }
const carBrandList = await getCarBrandList({ const carBrandList = await getCarBrandList({
positionName, positionName,
......
...@@ -21,7 +21,9 @@ ...@@ -21,7 +21,9 @@
:rules="rules"> :rules="rules">
<el-row :gutter="20"> <el-row :gutter="20">
<template v-for="(item, key) in item.infoData"> <template v-for="(item, key) in item.infoData">
<el-col :key="key" :span="item.col ? item.col : 12"> <el-col v-if="!item.hide || !item.hide(detailInfo)"
:key="key"
:span="item.col ? item.col : 12">
<el-form-item :label="`${item.title}:`" <el-form-item :label="`${item.title}:`"
:prop="item.key"> :prop="item.key">
<template v-if="item.type == 'imgList'"> <template v-if="item.type == 'imgList'">
...@@ -320,6 +322,9 @@ export default { ...@@ -320,6 +322,9 @@ export default {
title: "品牌", title: "品牌",
key: "brandNames", key: "brandNames",
col: 24, col: 24,
hide: (row) => {
return !row.brandNames;
},
}, },
{ {
title: "考试时间", title: "考试时间",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!