[update] 标签管理增加新增是否显示字段

This commit is contained in:
lideqin
2023-09-19 14:52:29 +08:00
parent 5a6ce8fd96
commit ab4469aed8
3 changed files with 19 additions and 7 deletions
@@ -127,6 +127,13 @@
:placeholder="$t('system.tag.isShowDetailMessage')" />
</a-form-model-item>
</a-col>
<!--新增是否展示-->
<a-col :span="24">
<a-form-model-item :label="$t('system.tag.isShowAddForm')" prop="isShowFormCreate">
<j-dict-select-tag type="list" v-model="form.isShowFormCreate" dictCode="yn"
:placeholder="$t('system.tag.isShowAddFormMessage')" />
</a-form-model-item>
</a-col>
<!--展示区域-->
<a-col :span="24">
<a-form-model-item :label="$t('system.tag.showArea')" prop="showArea">
@@ -156,12 +163,6 @@
<template>
<p class="tag-info">{{ $t('system.tag.displayOtherModules') }}</p>
<a-divider dashed />
<a-col :span="24">
<a-form-model-item :label="$t('system.tag.regulationsListDisplay')" prop="isShowLawsList">
<j-dict-select-tag type="list" v-model="form.isShowLawsList" dictCode="yn"
:placeholder="$t('system.tag.selectDisplayListRegulations')" />
</a-form-model-item>
</a-col>
<!--搜索中心展示-->
<a-col :span="24">
<a-form-model-item :label="$t('system.tag.searchCenterDisplay')" prop="isShowSearch">
@@ -272,6 +273,10 @@ export default {
isShowForm: [
{ required: true, message: this.$t('system.tag.isShowDetailMessage'), trigger: 'change' }
],
// 新增表单展示
isShowFormCreate: [
{ required: true, message: this.$t('system.tag.isShowAddFormMessage'), trigger: 'change' }
],
// 展示区域
showArea: [
{ required: true, message: this.$t('pleaseSelect') + this.$t('system.tag.showArea'), trigger: 'change' }
@@ -319,7 +324,8 @@ export default {
add () {
this.edit({
isModel: this.type, // 默认所属模块
isShowForm: 1 // 默认在详情页展示
isShowForm: 1, // 默认在详情页展示
isShowFormCreate: 1 // 默认在新增表单展示
})
},
edit (record) {