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