【update】标签管理对应bug的修改1

This commit is contained in:
fengchenchen
2023-10-30 10:34:26 +08:00
parent d3211108ec
commit a4f6fced5b
7 changed files with 43 additions and 32 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ module.exports = {
documentSplitList: '文档拆分列表展示', documentSplitList: '文档拆分列表展示',
selectSplitListDisplay: '请选择是否文档拆分列表展示', selectSplitListDisplay: '请选择是否文档拆分列表展示',
// 标签项内容管理 // 标签项内容管理
labelItemName: '标签名称', labelItemName: '标签名称',
// 字段列表 // 字段列表
name: '名称', name: '名称',
dataValue: '数据值', dataValue: '数据值',
+4 -4
View File
@@ -23,9 +23,9 @@ module.exports = {
module: '所属模块', module: '所属模块',
required: '是否必填', required: '是否必填',
optionContent: '选项内容', optionContent: '选项内容',
documentLibraryModuleDisplay: '文档库模块展示', documentLibraryModuleDisplay: '模块展示',
// 原来叫 文档库列表展示 后来去掉了前面的文档库
documentLibraryListDisplay: '文档库列表展示', documentLibraryListDisplay: '列表展示',
selectWhetherDisplayList: '请选择是否文档库列表展示', selectWhetherDisplayList: '请选择是否文档库列表展示',
isShowDetail: '详情页展示', isShowDetail: '详情页展示',
isShowDetailMessage: '请选择是否详情页展示', isShowDetailMessage: '请选择是否详情页展示',
@@ -45,7 +45,7 @@ module.exports = {
documentSplitList: '文档拆分列表展示', documentSplitList: '文档拆分列表展示',
selectSplitListDisplay: '请选择是否文档拆分列表展示', selectSplitListDisplay: '请选择是否文档拆分列表展示',
// 标签项内容管理 // 标签项内容管理
labelItemName: '标签名称', labelItemName: '标签名称',
// 字段列表 // 字段列表
name: '名称', name: '名称',
dataValue: '数据值', dataValue: '数据值',
@@ -37,9 +37,9 @@
<a-col :span="24"> <a-col :span="24">
<a-form-model-item :label="$t('system.tag.attributeName')" prop="dbFieldTxt"> <a-form-model-item :label="$t('system.tag.attributeName')" prop="dbFieldTxt">
<a-input <a-input
v-model="form.dbFieldTxt" :placeholder="$t('pleaseEnter') + $t('system.tag.attributeName')" v-model.trim="form.dbFieldTxt" :placeholder="$t('pleaseEnter') + $t('system.tag.attributeName')"
@change="event => event.target.value = event.target.value.trim()" @change="event => event.target.value = event.target.value.trim()"
:maxLength="120" :maxLength="50"
></a-input> ></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
@@ -47,18 +47,18 @@
<a-col :span="24"> <a-col :span="24">
<a-form-model-item :label="$t('system.tag.attributeNameEnglish')" prop="dbFieldEnName"> <a-form-model-item :label="$t('system.tag.attributeNameEnglish')" prop="dbFieldEnName">
<a-input <a-input
v-model="form.dbFieldEnName" v-model.trim="form.dbFieldEnName"
:placeholder="$t('pleaseEnter') + $t('system.tag.attributeNameEnglish')" :placeholder="$t('pleaseEnter') + $t('system.tag.attributeNameEnglish')"
@change="event => event.target.value = event.target.value.trim()" @change="event => event.target.value = event.target.value.trim()"
:maxLength="120" :maxLength="50"
></a-input> ></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<!-- 字段名称--> <!-- 字段名称 正式环境 需要注释掉开发环境可以先留着方便使用-->
<a-col :span="24"> <a-col :span="24" v-if="canOpeFlag">
<a-form-model-item :label="$t('system.tag.fieldName')" prop="dbFieldName"> <a-form-model-item :label="$t('system.tag.fieldName')" prop="dbFieldName">
<a-input <a-input
v-model="form.dbFieldName" v-model.trim="form.dbFieldName"
:placeholder="$t('pleaseEnter') + $t('system.tag.fieldName')" :placeholder="$t('pleaseEnter') + $t('system.tag.fieldName')"
@change="event => event.target.value = event.target.value.trim()" @change="event => event.target.value = event.target.value.trim()"
:maxLength="60" :maxLength="60"
@@ -68,9 +68,13 @@
<!-- 属性类型--> <!-- 属性类型-->
<a-col :span="24"> <a-col :span="24">
<a-form-model-item :label="$t('system.tag.attributeType')" prop="fieldShowType"> <a-form-model-item :label="$t('system.tag.attributeType')" prop="fieldShowType">
<j-dict-select-tag type="list" v-model="form.fieldShowType" dictCode="field_show_type" <j-dict-select-tag
:placeholder="$t('pleaseSelect') + $t('system.tag.attributeType')" type="list" v-model="form.fieldShowType"
:disabled="disabledEdit" /> dictCode="field_show_type"
:placeholder="$t('pleaseSelect') + $t('system.tag.attributeType')"
:disabled="disabledEdit"
@change="form.dictId = undefined"
/>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
@@ -111,13 +115,13 @@
</a-col> </a-col>
<template> <template>
<!--文档库模块展示--> <!--对应标准模块展示-->
<p class="tag-info">{{ $t('system.tag.documentLibraryModuleDisplay') }}</p> <p class="tag-info">{{ showText + $t('system.tag.documentLibraryModuleDisplay') }}</p>
<a-divider dashed /> <a-divider dashed />
<a-col :span="24"> <a-col :span="24">
<a-form-model-item :label="$t('system.tag.documentLibraryListDisplay')" prop="isShowList"> <a-form-model-item :label="showText + $t('system.tag.documentLibraryListDisplay')" prop="isShowList">
<j-dict-select-tag type="list" v-model="form.isShowList" dictCode="yn" <j-dict-select-tag type="list" v-model="form.isShowList" dictCode="yn"
:placeholder="$t('system.tag.selectWhetherDisplayList')" /> :placeholder="$t('pleaseSelect') + $t('whether') + showText + $t('system.tag.documentLibraryListDisplay')" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<!--详情页展示--> <!--详情页展示-->
@@ -199,10 +203,16 @@ export default {
type: { type: {
required: false, required: false,
type: Number type: Number
},
// 当前模块的名称
showText: {
required: false,
type: String
} }
}, },
data () { data () {
return { return {
canOpeFlag: process.env.VUE_APP_TAG_FLAG === '0', // 是否存在字段名称,开发环境存在
visible: false, visible: false,
title: '', title: '',
width: 800, width: 800,
@@ -231,7 +241,7 @@ export default {
], ],
dbFieldName: [ dbFieldName: [
{ required: true, message: this.$t('PleaseEnterYourEnglishName'), trigger: 'blur' }, { required: false, message: this.$t('PleaseEnterYourEnglishName'), trigger: 'blur' },
{ min: 1, max: 60, message: this.$t('cantExeed') + '60' + this.$t('characters'), trigger: 'blur' }, { min: 1, max: 60, message: this.$t('cantExeed') + '60' + this.$t('characters'), trigger: 'blur' },
{ validator: this.test } { validator: this.test }
], ],
@@ -267,7 +277,7 @@ export default {
], ],
// 文档库模块展示 // 文档库模块展示
isShowList: [ isShowList: [
{ required: true, message: this.$t('system.tag.selectWhetherDisplayList'), trigger: 'change' } { required: true, message: this.$t('pleaseSelect') + this.$t('whether') + this.showText + this.$t('system.tag.documentLibraryListDisplay'), trigger: 'change' }
], ],
// 详情页展示 // 详情页展示
isShowForm: [ isShowForm: [
@@ -12,10 +12,8 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<div style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons"> <div style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
<a-button class="box-button" @click="searchReset">{{ $t('reset') }}</a-button> <a-button icon="search" class="box-button" style="margin-left: 8px" type="primary" @click="searchQuery">{{ $t('query') }}</a-button>
<a-button class="box-button" style="margin-left: 8px" type="primary" @click="searchQuery"> <a-button icon="reload" class="box-button" @click="searchReset">{{ $t('reset') }}</a-button>
{{ $t('query') }}
</a-button>
</div> </div>
</a-row> </a-row>
</a-form> </a-form>
+7 -2
View File
@@ -21,10 +21,10 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<div style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons"> <div style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
<a-button class="box-button" @click="searchReset">{{ $t('reset') }}</a-button> <a-button icon="search" class="box-button" style="margin-left: 8px" type="primary" @click="searchQuery">
<a-button class="box-button" style="margin-left: 8px" type="primary" @click="searchQuery">
{{ $t('query') }} {{ $t('query') }}
</a-button> </a-button>
<a-button icon="reload" class="box-button" @click="searchReset">{{ $t('reset') }}</a-button>
</div> </div>
</a-row> </a-row>
</a-form> </a-form>
@@ -93,6 +93,11 @@ export default {
type: { type: {
required: false, required: false,
type: Number type: Number
},
// 当前模块的名称
showText: {
required: false,
type: String
} }
}, },
data () { data () {
+2 -4
View File
@@ -17,10 +17,8 @@
</a-col> </a-col>
<div style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons"> <div style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
<a-col :span="8"> <a-col :span="8">
<a-button class="box-button" @click="searchReset">{{ $t('reset') }}</a-button> <a-button icon="search" class="box-button" style="margin-left: 8px" type="primary" @click="searchQuery">{{ $t('query') }}</a-button>
<a-button class="box-button" style="margin-left: 8px" type="primary" @click="searchQuery"> <a-button icon="reload" class="box-button" @click="searchReset">{{ $t('reset') }}</a-button>
{{ $t('query') }}
</a-button>
</a-col> </a-col>
</div> </div>
</a-row> </a-row>
+1 -1
View File
@@ -3,7 +3,7 @@
<a-spin :spinning="spinning"> <a-spin :spinning="spinning">
<a-tabs :default-active-key="1" @change="callbackTab"> <a-tabs :default-active-key="1" @change="callbackTab">
<a-tab-pane v-for='item in tabArr' :key="item.value" :tab="item.showText"> <a-tab-pane v-for='item in tabArr' :key="item.value" :tab="item.showText">
<component :is='item.comp' :type='item.value' :property="item.props"></component> <component :is='item.comp' :type='item.value' :show-text="item.showText" :property="item.props"></component>
</a-tab-pane> </a-tab-pane>
</a-tabs> </a-tabs>
</a-spin> </a-spin>