wangting
2023-08-14 7ea3c09ea0dbe8f1dd50beb520b5358edcc82b61
Source/UBCS-WEB/src/components/work/BusinessWork.vue
@@ -104,24 +104,26 @@
  },
  methods:{
    HandlerSave(){
      this.editingRow = null;
      //保存
      let datas=this.tableData.map(item=> {
        let newitem = {
          codeClassifyOid: item.codeclsfid,
          templateOid: this.templateId,
          editInProcess: true,
          data: item,
          oid:item.oid,
          ts:item.ts
        }
        return newitem;
      })
      batchUpdateCode(datas).then(res => {
        if(res.data.data.success){
          this.$message.success("修改成功");
        }
      })
      if(!validatenull(this.editingRow)) {
        this.editingRow = null;
        //保存
        let datas = this.tableData.map(item => {
          let newitem = {
            codeClassifyOid: item.codeclsfid,
            templateOid: this.templateId,
            editInProcess: true,
            data: item,
            oid: item.oid,
            ts: item.ts
          }
          return newitem;
        })
        batchUpdateCode(datas).then(res => {
          if (res.data.data.success) {
            this.$message.success("修改成功");
          }
        })
      }
    },
    //表格头渲染
    CrudHeaderRend() {