田源
2023-08-28 ba65926011f36ae9e98d373d33b33f9ad024d6c8
Source/UBCS-WEB/src/components/template/Stage.vue
@@ -145,7 +145,6 @@
        let param = {size: pageSize, current: currentPage}
        const response = await getFlowpathList({...param, ...{templateId: this.code}})
        if (response.status === 200) {
          console.log(response)
          this.loading = false
          const data = response.data.data
          this.data = data.records
@@ -158,11 +157,9 @@
    // 获取阶段列表
    async getStagelist() {
      this.loading = false
      console.log(this.modelKey)
      const response = await stagelist({modelKey: this.modelKey})
      if (response.status === 200) {
        this.loading = false
        console.log(response.data)
        this.stageData = response.data.data
      } else this.loading = false
    },
@@ -187,7 +184,6 @@
          }
          return item
        })
        console.log(datas)
        let dataValue = datas.map(item => item.checked ? item.oid : undefined)
        this.attributeValue = dataValue.filter(item => item)
        this.attributeData = datas
@@ -212,7 +208,6 @@
    },
    // 维护
    handleMaintenance(row) {
      console.log(row)
      this.dialogNode = true
      this.modelKey = row.modelKey
      this.saveParam.modelKey = row.modelKey
@@ -228,7 +223,6 @@
      })
    },
    handleRowClick(row) {
      console.log(row)
      this.modelKey = row.modelKey
      this.saveParam.modelKey = row.modelKey
      this.dialogNode = true
@@ -242,7 +236,6 @@
      })
    },
    async handleSave(event) {
      console.log(event)
      const data = event.map(item => {
        const {id, name, attributeGroup} = item
        return {attrId: id, attrName: name, attrGroup: attributeGroup}
@@ -252,12 +245,9 @@
        processStageAttr: data,
        ...this.saveParam
      }
      console.log(this.saveParam)
      console.log(data)
      const response = await attributeSave(param)
      if (response.status === 200) {
        // loading()
        console.log(response)
        this.$message({
          type: 'success',
          message: '新增数据成功!'