feat: There is no way the, bug 52907 52906

This commit is contained in:
super_liu
2022-06-07 11:44:43 +08:00
parent b963899dae
commit 42cf362936
@@ -2455,14 +2455,17 @@ export default {
}, },
methods: { methods: {
filterData(data){ filterData(data){
let result = '' if(data.indexOf(",") !== -1){
let str1 = data.substring(0,1); let permission = data.split(",");
if(str1 === ','){ const list = permission.filter ( item => item !== '');
result = data.substring(1,data.length) let nameNew=Array.from(list).join(',')
this.sarBussionessStandEO['QCDW'] = result if(nameNew.length > 0){
}else { nameNew = nameNew.replace("undefined","").replace(",,",",")
this.sarBussionessStandEO['QCDW'] = data }
} this.$set(this.sarBussionessStandEO, 'QCDW', nameNew)
}else {
this.sarBussionessStandEO['QCDW'] = data
}
}, },
async getTreeAsync(){ async getTreeAsync(){