wangting
2023-08-09 ca2df0e483405adbe9ca93b3c3e85cca1664ec46
流程处理时业务数据的保存
已修改2个文件
17 ■■■■■ 文件已修改
Source/UBCS-WEB/src/components/work/BusinessWork.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/work/process/leave/handle.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/work/BusinessWork.vue
@@ -106,12 +106,19 @@
    HandlerSave(){
      this.editingRow = null;
      //保存
      batchUpdateCode(this.tableData).then(res => {
        console.log(res)
      let datas=this.tableData.map(item=> {
        let newitem = Object.assign(item, {
          codeClassifyOid: item.codeclsfid,
          templateOid: this.templateId,
          editInProcess: true,
          data: item
        });
        return newitem;
      })
      batchUpdateCode(datas).then(res => {
        if(res.data.data.success){
          this.$message.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") {
Source/UBCS-WEB/src/views/work/process/leave/handle.vue
@@ -166,7 +166,6 @@
      }
    },
    handelExecute(event) {
      console.log(event)
      if(this.$refs.businesswork.hasEditor){
        this.$refs.businesswork.HandlerSave()
      }