[update 89123] 标准拆分批量编辑多选日期
This commit is contained in:
@@ -216,39 +216,13 @@ export default {
|
|||||||
uploadName: '',
|
uploadName: '',
|
||||||
type: 'add',
|
type: 'add',
|
||||||
hiddenFieldList: ['item_num', 'item_title', 'item_content', 'interpretation_articles', 'translation'], // 隐藏的字段
|
hiddenFieldList: ['item_num', 'item_title', 'item_content', 'interpretation_articles', 'translation'], // 隐藏的字段
|
||||||
radioDictSelect: ['is_long_effect'], // 使用radio样式的数据字典单选
|
radioDictSelect: [], // 使用radio样式的数据字典单选
|
||||||
disabledFieldList: [], // 禁用的字段
|
disabledFieldList: [], // 禁用的字段
|
||||||
specialPlaceholder: {}, // 特殊的placeholder
|
specialPlaceholder: {}, // 特殊的placeholder
|
||||||
optionsData: {} // 通过接口获取的下拉数据
|
optionsData: {} // 通过接口获取的下拉数据
|
||||||
// interpretationArticlesList: [] // 条文解读数据
|
// interpretationArticlesList: [] // 条文解读数据
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
|
||||||
// 是否长期有效,是的话新认证实施日期、已认证实施日期、新注册实施日期为多选,否则为单选
|
|
||||||
'formInline.is_long_effect': {
|
|
||||||
handler (value) {
|
|
||||||
console.log('是否长期有效', value)
|
|
||||||
const indexArr = []
|
|
||||||
// 新认证实施日期
|
|
||||||
indexArr[0] = this.dataList.findIndex(tt => tt.dbFieldName === 'new_cer_implement_date')
|
|
||||||
// 已认证实施日期
|
|
||||||
indexArr[1] = this.dataList.findIndex(tt => tt.dbFieldName === 'cer_implement_date')
|
|
||||||
// 新注册实施日期
|
|
||||||
indexArr[2] = this.dataList.findIndex(tt => tt.dbFieldName === 'new_register_implement_date')
|
|
||||||
if (value === YesOrNoEnum.YES.value) {
|
|
||||||
indexArr.forEach(index => {
|
|
||||||
this.$set(this.dataList[index], 'fieldShowType', FieldType.DATE_MORE.value)
|
|
||||||
})
|
|
||||||
} else if (value === YesOrNoEnum.NO.value) {
|
|
||||||
indexArr.forEach(index => {
|
|
||||||
this.$set(this.dataList[index], 'fieldShowType', FieldType.DATE_SINGLE.value)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
this.$forceUpdate()
|
|
||||||
},
|
|
||||||
immediate: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
open (ids) {
|
open (ids) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
@@ -279,8 +253,6 @@ export default {
|
|||||||
// this.interpretationArticlesList = [
|
// this.interpretationArticlesList = [
|
||||||
// { id: '', itemContent: null }
|
// { id: '', itemContent: null }
|
||||||
// ]
|
// ]
|
||||||
// 是否长期有效默认选否
|
|
||||||
this.$set(this.formInline, 'is_long_effect', YesOrNoEnum.NO.value)
|
|
||||||
this.dataList = res.result
|
this.dataList = res.result
|
||||||
this.ruleList = res.result
|
this.ruleList = res.result
|
||||||
this.integrateData()
|
this.integrateData()
|
||||||
|
|||||||
Reference in New Issue
Block a user