feat: There is no way the, 【0719】海外标准入库 入库后 海外法规库 国家地区乱码

This commit is contained in:
396572590@qq.com
2022-07-20 16:55:45 +08:00
parent 1bdc4d1dff
commit b41e050da2
@@ -3045,7 +3045,16 @@ export default {
this.sarStandardsInfoEO = JSON.parse(JSON.stringify(item))
this.defaultCheckedKeys = [this.sarStandardsInfoEO.standSystem];
if (item.country !== undefined && item.country !== null && item.country !== '') {
this.sarStandardsInfoEO.country = item.country.split(",");
if((typeof item.country) === 'string' && item.country.indexOf("[") !== -1 && item.country.indexOf("]") !== -1){
const str = JSON.parse(item.country);
if((typeof str) === 'string'){
this.sarStandardsInfoEO.country = str.split(",");
}else {
this.sarStandardsInfoEO.country = str
}
}else{
this.sarStandardsInfoEO.country = item.country.split(",");
}
}
this.sarStandardsInfoEO.standSort = item.standSort
if (this.sarStandardsInfoEO.putTime != null && this.sarStandardsInfoEO.putTime !== '') {