[update 标签管理] 去掉条款新增编辑的使用范围、拆分表单placeholder也去掉相关提示

This commit is contained in:
danshihao
2024-06-27 16:11:06 +08:00
parent 6213011ea9
commit 0d7923d55c
3 changed files with 20 additions and 30 deletions
@@ -231,9 +231,8 @@ import {
getEditClauseContent,
getInterpretationArticlesList
} from '../../../../api/documentToolApi.js'
import UserSelection from '../../../../components/selection/UserSelection.vue'
import JMultipleDatePicker from '../../../../components/JMultipleDatePicker.vue'
import { ClauseUsableRange, FieldType, TypeOfClauseItem, YesOrNoEnum } from '../../../../enums/commonEnums'
import { FieldType, TypeOfClauseItem, YesOrNoEnum } from '../../../../enums/commonEnums'
import { getAction } from '../../../../api/manage'
import { getFormDictTreeList } from '../../../../api/api'
import STreeSelect from '../../../../components/STreeSelect'
@@ -243,7 +242,7 @@ export default {
name: 'SplitAddForm',
components: {
TreeSelection,
JMultipleDatePicker, UserSelection,
JMultipleDatePicker,
SplitDetailAddTable,
UploadFile,
StandardSelection,
@@ -722,13 +721,13 @@ export default {
* @param field
*/
getPlaceholderSuffix (field) {
let fieldUsableRange = []
if (field.usableRange) {
fieldUsableRange = field.usableRange.split(',')
}
if (fieldUsableRange.length === 1) {
return `${ClauseUsableRange.nameOfIndex(fieldUsableRange[0])}`
}
// let fieldUsableRange = []
// if (field.usableRange) {
// fieldUsableRange = field.usableRange.split(',')
// }
// if (fieldUsableRange.length === 1) {
// return `${ClauseUsableRange.nameOfIndex(fieldUsableRange[0])}`
// }
return ''
}
}
@@ -182,7 +182,7 @@ import UploadFile from '../../../../components/UploadFile.vue'
import StandardSelection from '../../../../components/selection/StandardSelection.vue'
import UserSelection from '../../../../components/selection/UserSelection.vue'
import { getDocSplitEditForm, editBatchEditClause } from '../../../../api/documentToolApi'
import { ClauseUsableRange, FieldType, YesOrNoEnum } from '../../../../enums/commonEnums'
import { FieldType, YesOrNoEnum } from '../../../../enums/commonEnums'
import { getFormDictTreeList } from '../../../../api/api'
import { getAction } from '../../../../api/manage'
import STreeSelect from '../../../../components/STreeSelect'
@@ -463,10 +463,10 @@ export default {
* @param field
*/
getPlaceholderSuffix (field) {
const fieldUsableRange = (field.usableRange || '').split(',')
if (fieldUsableRange.length === 1) {
return `${ClauseUsableRange.nameOfIndex(fieldUsableRange[0])}`
}
// const fieldUsableRange = (field.usableRange || '').split(',')
// if (fieldUsableRange.length === 1) {
// return `${ClauseUsableRange.nameOfIndex(fieldUsableRange[0])}`
// }
return ''
}
}
@@ -105,11 +105,11 @@
:placeholder="$t('pleaseSelect') + $t('system.tag.required')" />
</a-form-model-item>
<!--使用范围-->
<a-form-model-item :label="$t('system.tag.usableRange')" prop="usableRange">
<j-multi-select-tag v-model="form.usableRange"
dict-code="clause_usable_range"
:placeholder="$t('pleaseSelect') + $t('system.tag.usableRange')" />
</a-form-model-item>
<!--<a-form-model-item :label="$t('system.tag.usableRange')" prop="usableRange">-->
<!-- <j-multi-select-tag v-model="form.usableRange"-->
<!-- dict-code="clause_usable_range"-->
<!-- :placeholder="$t('pleaseSelect') + $t('system.tag.usableRange')" />-->
<!--</a-form-model-item>-->
<!-- 文档拆分列表展示-->
<template>
<p class="tag-info">{{ $t('system.tag.documentSplitDisplay') }}</p>
@@ -266,8 +266,7 @@ export default {
contentOption: [],
contentOptionSelect: [],
contentOptionTree: [],
moduleArr: TagsTypeEnums.getItemList(),
usableRangeOptions: []
moduleArr: TagsTypeEnums.getItemList()
}
},
watch: {
@@ -298,14 +297,6 @@ export default {
// 初始化一些数据
initData () {
this.loadContent()
this.getUsableRangeOptions()
},
getUsableRangeOptions () {
ajaxGetDictItems('standard_source').then(res => {
if (res.success) {
this.usableRangeOptions = (res.result || []).filter(tt => tt.value !== StandardSource.OVERSEAS.value)
}
})
},
showDrawer () {
this.visible = true