田源
2023-08-14 b642788dda56b058e2a4c40a9c43e29a5db85865
Source/UBCS-WEB/src/components/work/BusinessWork.vue
@@ -106,12 +106,21 @@
    HandlerSave(){
      this.editingRow = null;
      //保存
      batchUpdateCode(this.tableData).then(res => {
        console.log(res)
        if(res.data.data.success){
          this.$message.success("保存成功");
      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("修改成功");
        }
      })
    },
    //表格头渲染
@@ -154,7 +163,6 @@
            }
            if(editAttr.length>0) {
              debugger;
              editAttr=editAttr[0]
              columnItem.edit= 'text';//this.columnType[editAttr.edit]
              if (typeof editAttr.editConfig == "string") {