|
@@ -64,19 +64,17 @@ export function handleDG() {
|
|
|
deliveryGoodsList.value = res;
|
|
deliveryGoodsList.value = res;
|
|
|
res.forEach(e => {
|
|
res.forEach(e => {
|
|
|
const { dgstatus, isvalid, deliverygoodsname, deliverygoodsid } = e.data
|
|
const { dgstatus, isvalid, deliverygoodsname, deliverygoodsid } = e.data
|
|
|
- if (isvalid) { // 有效
|
|
|
|
|
- const normal = 'goods_info_spot_normal', disable = 'goods_info_spot_disable';
|
|
|
|
|
- const result = { key: deliverygoodsid.toString(), title: deliverygoodsname }
|
|
|
|
|
- if (dgstatus) { //1:正常
|
|
|
|
|
- if (menuMap.has(normal)) {
|
|
|
|
|
- const index = menuMap.get(normal) as number;
|
|
|
|
|
- menuList.value[index].children?.push(result)
|
|
|
|
|
- }
|
|
|
|
|
- } else { // 0:未激活
|
|
|
|
|
- if (menuMap.has(disable)) {
|
|
|
|
|
- const index = menuMap.get(disable) as number;
|
|
|
|
|
- menuList.value[index].children?.push(result)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ const normal = 'goods_info_spot_normal', disable = 'goods_info_spot_disable';
|
|
|
|
|
+ const result = { key: deliverygoodsid.toString(), title: deliverygoodsname }
|
|
|
|
|
+ if (isvalid) { //1:正常
|
|
|
|
|
+ if (menuMap.has(normal)) {
|
|
|
|
|
+ const index = menuMap.get(normal) as number;
|
|
|
|
|
+ menuList.value[index].children?.push(result)
|
|
|
|
|
+ }
|
|
|
|
|
+ } else { // 0:未激活
|
|
|
|
|
+ if (menuMap.has(disable)) {
|
|
|
|
|
+ const index = menuMap.get(disable) as number;
|
|
|
|
|
+ menuList.value[index].children?.push(result)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|