feat: 国内外标准 反向标准显示逻辑

This commit is contained in:
super_liu
2021-07-30 00:47:40 +08:00
parent b0b3d81dd6
commit 7d00bbfa51
3 changed files with 25 additions and 3 deletions
@@ -186,6 +186,7 @@ export default {
replaceLawsNumRow: [], // 代替政策号 数组内容
replaceTotal: 0,
selectedListRep: [],
ids: [],
replaceLoading: true,
replacePage: 1
@@ -297,6 +298,7 @@ export default {
// 代替政策编号确定
replaceLawsNumModelBt () {
let textArr = []
this.ids = []
if (typeof this.value === 'string') {
if (this.value) {
@@ -322,12 +324,14 @@ export default {
} else {
texts = item.standSortShow !== null ? item.standSortShow + ' ' + item.standNumber : item.standNumber
}
this.ids.push(item.id);
textArr.push(texts)
textArr = [...new Set(textArr)]
this.replaceLawsNumModel = false
})
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
this.$emit('input', textArr.join(','))
this.$emit('popoverHide', this.ids, this.config.attrField);
this.$refs.selections.clearSelection()
},
// 点击查看