浏览代码

no message

linwenxin 5 月之前
父节点
当前提交
94d9b4434f
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/views/workOrder/workOrderPool/detailModule/workOrderInfo/mixins/basicInfo.js

+ 4 - 4
src/views/workOrder/workOrderPool/detailModule/workOrderInfo/mixins/basicInfo.js

@@ -320,7 +320,7 @@ export default {
               this.orderInfo.province =
                 [...this.provinceList.map((v, i) => ({ value: v.id, label: v.name })), ...this.provinceList_cp].find(
                   item => item.value === val
-                )?.name || ''
+                )?.label || ''
               // 清除市区街道以及详细地址数据
               this.delDataK(1)
               lbsAmapRegion({ pid: val }).then(res => {
@@ -358,7 +358,7 @@ export default {
               this.orderInfo.city = [
                 ...this.cityList.map((v, i) => ({ value: v.id, label: v.name })),
                 ...this.cityList_cp
-              ].find(item => item.value === val).name
+              ].find(item => item.value === val).label
               // 清除区街道以及详细地址数据
               this.delDataK(2)
               lbsAmapRegion({ pid: val }).then(res => {
@@ -397,7 +397,7 @@ export default {
               this.orderInfo.area = [
                 ...this.areaList.map((v, i) => ({ value: v.id, label: v.name })),
                 ...this.areaList_cp
-              ].find(item => item.value === val).name
+              ].find(item => item.value === val).label
               // 清除街道以及详细地址数据
               this.delDataK(3)
               lbsAmapRegion({ pid: val }).then(res => {
@@ -435,7 +435,7 @@ export default {
               this.orderInfo.street = [
                 ...this.streetList.map((v, i) => ({ value: v.id, label: v.name })),
                 ...this.streetList_cp
-              ].find(item => item.value === val).name
+              ].find(item => item.value === val).label
               // 清除详细地址数据
               this.delDataK(4)
             }