wangting
2023-08-11 dedc7cfcb2303d1f149531636bd97cfca956cc6e
Source/UBCS-WEB/src/components/work/BusinessWork.vue
@@ -106,12 +106,19 @@
    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
        }
        return newitem;
      })
      batchUpdateCode(datas).then(res => {
        if(res.data.data.success){
          this.$message.success("修改成功");
        }
      })
    },
    //表格头渲染
@@ -154,7 +161,6 @@
            }
            if(editAttr.length>0) {
              debugger;
              editAttr=editAttr[0]
              columnItem.edit= 'text';//this.columnType[editAttr.edit]
              if (typeof editAttr.editConfig == "string") {