xiejun
2023-08-15 ad58a16c9d452c2e4d534e081ea3f84001a4595a
Source/UBCS-WEB/src/components/work/BusinessWork.vue
@@ -104,15 +104,26 @@
  },
  methods:{
    HandlerSave(){
      this.editingRow = null;
      //保存
      batchUpdateCode(this.tableData).then(res => {
        console.log(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() {
@@ -154,7 +165,6 @@
            }
            if(editAttr.length>0) {
              debugger;
              editAttr=editAttr[0]
              columnItem.edit= 'text';//this.columnType[editAttr.edit]
              if (typeof editAttr.editConfig == "string") {