修改bug 56660 本地工具-标准拆分,文本状态的下拉选项有重复的

This commit is contained in:
hanshaozhuang
2022-07-20 14:17:18 +08:00
parent 5ac72cbf4a
commit 39d909d619
+12 -5
View File
@@ -1518,15 +1518,22 @@ export default {
})
},
getFileSel () {
this.$http.get('lawss/sarStandAttrDetails/getFileFieldForSel1', {}, {
this.$http.get('sys/dictype/getDicTypeListCode', {}, {
_this: this
}, res => {
if (res.ok) {
const standFileClassifyOptions = []
res.data.map(item => {
if (item.label !== '相关资料') {
standFileClassifyOptions.push(item)
}
res.data.lawsTextState.map(item => {
item.label += '(政策)'
standFileClassifyOptions.push(item)
})
res.data.TEXTSTATUSBUSS.map(item => {
item.label += '(企标)'
standFileClassifyOptions.push(item)
})
res.data.WBZTCLASS.map(item => {
item.label += '(国内外)'
standFileClassifyOptions.push(item)
})
this.standFileClassifyOptions = standFileClassifyOptions
}