重大危险源编码非空判断
parent
747e282b86
commit
6554d6a497
|
@ -392,6 +392,7 @@ const fnGetData = async () => {
|
||||||
: "";
|
: "";
|
||||||
thirdList.value = data.thirdList;
|
thirdList.value = data.thirdList;
|
||||||
thirdList.value.forEach((item) => {
|
thirdList.value.forEach((item) => {
|
||||||
|
if (item.majorHazardCode && item.majorHazardCode.length > 0)
|
||||||
item.majorHazardCode = JSON.parse(item.majorHazardCode);
|
item.majorHazardCode = JSON.parse(item.majorHazardCode);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -110,8 +110,10 @@ const fnGetData = async () => {
|
||||||
}
|
}
|
||||||
thirdList.value = info.value.thirdList;
|
thirdList.value = info.value.thirdList;
|
||||||
thirdList.value.forEach((item) => {
|
thirdList.value.forEach((item) => {
|
||||||
|
if (item.majorHazardCode && item.majorHazardCode.length > 0) {
|
||||||
const codeArr = JSON.parse(item.majorHazardCode);
|
const codeArr = JSON.parse(item.majorHazardCode);
|
||||||
item.majorHazardCode = codeArr.map((item) => item.code).join(",");
|
item.majorHazardCode = codeArr.map((item) => item.code).join(",");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
const { data: servicePlatformList } = await getBusServicePlatformListAll();
|
const { data: servicePlatformList } = await getBusServicePlatformListAll();
|
||||||
target.value = servicePlatformList.find(
|
target.value = servicePlatformList.find(
|
||||||
|
|
Loading…
Reference in New Issue