haoxuan
2024-02-07 d68b036a3b3c67273b8effa3c9925ef3869a91ba
src/views/overview/OverviewListView.vue
@@ -247,8 +247,8 @@
          const list = res.data.map((item) => {
            return {
              ...item,
              from: item.fromLocation.name,
              to: item.toLocation.name
              from: item.location.jointName,
              to: item.location.jointName
            }
          })
          this.tableList.tableInfomation = list || []
@@ -268,6 +268,23 @@
      this.editConfig.visible = true
      this.editConfig.title = val
      this.editConfig.operationTypeId = this.params.id
      this.editConfig.code = this.params.code
      row.details.map((item)=>{
        item.fromLocationId=item.fromLocation.jointName
        item.toLocationId=item.toLocation.jointName
      })
      row.location={
        value:row.location.id||row.location.value,
        label:row.location.jointName||row.location.label
      }
      row.toLocation={
        value:row.toLocation.id||row.toLocation.value,
        label:row.toLocation.jointName||row.toLocation.label
      }
      row.locationID=row.location.jointName
      row.locationId=row.location.value
      // row.tolocationId=row.tolocation.value
      this.editConfig.infomation = { ...row }
    },
    // 新建
@@ -276,7 +293,9 @@
      this.addName = this.params.name
      this.editConfig.operationTypeId = this.params.id
      this.editConfig.code = this.params.code
      this.editConfig.infomation = {}
      this.editConfig.infomation = {
        // location:{jointName:""}
      }
      this.editConfig.visible = true
    },
    // 状态