[update 标签管理] 去掉条款新增编辑的使用范围、拆分表单placeholder也去掉相关提示
This commit is contained in:
@@ -231,9 +231,8 @@ import {
|
|||||||
getEditClauseContent,
|
getEditClauseContent,
|
||||||
getInterpretationArticlesList
|
getInterpretationArticlesList
|
||||||
} from '../../../../api/documentToolApi.js'
|
} from '../../../../api/documentToolApi.js'
|
||||||
import UserSelection from '../../../../components/selection/UserSelection.vue'
|
|
||||||
import JMultipleDatePicker from '../../../../components/JMultipleDatePicker.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 { getAction } from '../../../../api/manage'
|
||||||
import { getFormDictTreeList } from '../../../../api/api'
|
import { getFormDictTreeList } from '../../../../api/api'
|
||||||
import STreeSelect from '../../../../components/STreeSelect'
|
import STreeSelect from '../../../../components/STreeSelect'
|
||||||
@@ -243,7 +242,7 @@ export default {
|
|||||||
name: 'SplitAddForm',
|
name: 'SplitAddForm',
|
||||||
components: {
|
components: {
|
||||||
TreeSelection,
|
TreeSelection,
|
||||||
JMultipleDatePicker, UserSelection,
|
JMultipleDatePicker,
|
||||||
SplitDetailAddTable,
|
SplitDetailAddTable,
|
||||||
UploadFile,
|
UploadFile,
|
||||||
StandardSelection,
|
StandardSelection,
|
||||||
@@ -722,13 +721,13 @@ export default {
|
|||||||
* @param field
|
* @param field
|
||||||
*/
|
*/
|
||||||
getPlaceholderSuffix (field) {
|
getPlaceholderSuffix (field) {
|
||||||
let fieldUsableRange = []
|
// let fieldUsableRange = []
|
||||||
if (field.usableRange) {
|
// if (field.usableRange) {
|
||||||
fieldUsableRange = field.usableRange.split(',')
|
// fieldUsableRange = field.usableRange.split(',')
|
||||||
}
|
// }
|
||||||
if (fieldUsableRange.length === 1) {
|
// if (fieldUsableRange.length === 1) {
|
||||||
return `(${ClauseUsableRange.nameOfIndex(fieldUsableRange[0])})`
|
// return `(${ClauseUsableRange.nameOfIndex(fieldUsableRange[0])})`
|
||||||
}
|
// }
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ import UploadFile from '../../../../components/UploadFile.vue'
|
|||||||
import StandardSelection from '../../../../components/selection/StandardSelection.vue'
|
import StandardSelection from '../../../../components/selection/StandardSelection.vue'
|
||||||
import UserSelection from '../../../../components/selection/UserSelection.vue'
|
import UserSelection from '../../../../components/selection/UserSelection.vue'
|
||||||
import { getDocSplitEditForm, editBatchEditClause } from '../../../../api/documentToolApi'
|
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 { getFormDictTreeList } from '../../../../api/api'
|
||||||
import { getAction } from '../../../../api/manage'
|
import { getAction } from '../../../../api/manage'
|
||||||
import STreeSelect from '../../../../components/STreeSelect'
|
import STreeSelect from '../../../../components/STreeSelect'
|
||||||
@@ -463,10 +463,10 @@ export default {
|
|||||||
* @param field
|
* @param field
|
||||||
*/
|
*/
|
||||||
getPlaceholderSuffix (field) {
|
getPlaceholderSuffix (field) {
|
||||||
const fieldUsableRange = (field.usableRange || '').split(',')
|
// const fieldUsableRange = (field.usableRange || '').split(',')
|
||||||
if (fieldUsableRange.length === 1) {
|
// if (fieldUsableRange.length === 1) {
|
||||||
return `(${ClauseUsableRange.nameOfIndex(fieldUsableRange[0])})`
|
// return `(${ClauseUsableRange.nameOfIndex(fieldUsableRange[0])})`
|
||||||
}
|
// }
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,11 +105,11 @@
|
|||||||
:placeholder="$t('pleaseSelect') + $t('system.tag.required')" />
|
:placeholder="$t('pleaseSelect') + $t('system.tag.required')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
<!--使用范围-->
|
<!--使用范围-->
|
||||||
<a-form-model-item :label="$t('system.tag.usableRange')" prop="usableRange">
|
<!--<a-form-model-item :label="$t('system.tag.usableRange')" prop="usableRange">-->
|
||||||
<j-multi-select-tag v-model="form.usableRange"
|
<!-- <j-multi-select-tag v-model="form.usableRange"-->
|
||||||
dict-code="clause_usable_range"
|
<!-- dict-code="clause_usable_range"-->
|
||||||
:placeholder="$t('pleaseSelect') + $t('system.tag.usableRange')" />
|
<!-- :placeholder="$t('pleaseSelect') + $t('system.tag.usableRange')" />-->
|
||||||
</a-form-model-item>
|
<!--</a-form-model-item>-->
|
||||||
<!-- 文档拆分列表展示-->
|
<!-- 文档拆分列表展示-->
|
||||||
<template>
|
<template>
|
||||||
<p class="tag-info">{{ $t('system.tag.documentSplitDisplay') }}</p>
|
<p class="tag-info">{{ $t('system.tag.documentSplitDisplay') }}</p>
|
||||||
@@ -266,8 +266,7 @@ export default {
|
|||||||
contentOption: [],
|
contentOption: [],
|
||||||
contentOptionSelect: [],
|
contentOptionSelect: [],
|
||||||
contentOptionTree: [],
|
contentOptionTree: [],
|
||||||
moduleArr: TagsTypeEnums.getItemList(),
|
moduleArr: TagsTypeEnums.getItemList()
|
||||||
usableRangeOptions: []
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -298,14 +297,6 @@ export default {
|
|||||||
// 初始化一些数据
|
// 初始化一些数据
|
||||||
initData () {
|
initData () {
|
||||||
this.loadContent()
|
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 () {
|
showDrawer () {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
|||||||
Reference in New Issue
Block a user