wangting
2023-07-13 c655822a56b9d9b08b44aafa6c795832bd2fbfc7
流程中业务数据展示
已修改3个文件
38 ■■■■■ 文件已修改
Source/UBCS-WEB/src/api/GetItem.js 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/work/BusinessWork.vue 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/api/GetItem.js
@@ -51,6 +51,8 @@
  return request({
    url: 'api/ubcs-code/mdmEngineController/getFlowdUIInfoByClassifyOid',
    method: 'get',
    data
    params:{
      ...data
    }
  })
}
Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
@@ -38,7 +38,7 @@
                        size="small" style="width: 180px; margin-left: 5px; margin-top: 10px"></el-input>
            </div>
            <el-table v-if="tableData.length != 0" v-loading="isLoading" :data="tableData" max-height="700" style=""
                      @cell-click="handleCellClick" @selection-change="handleSelectionChange" @sort-change="sortChange">
                      @cell-click="handleCellClick" @row-click="handleRowClick" @selection="handleSelection" @selection-change="handleSelectionChange" @sort-change="sortChange">
              <el-table-column fixed type="selection" width="55"></el-table-column>
              <el-table-column fixed label="序号" type="index" width="55">
              </el-table-column>
@@ -210,8 +210,8 @@
      // 主数据按钮
      masterVrBtnList: [],
      fileOptions:{
        ownbizOid:"1",
        ownbizBtm:"1",
        ownbizOid:"0",
        ownbizBtm:"0",
        fileDocClassify:'!=processAuditSuggest',
        fileDocClassifyName:'',
        hasDownload:true,
@@ -273,7 +273,7 @@
    templateOid: {
      handler(newval, oldval) {
        this.parameter.code = newval;
        this.fileOptions.ownbizOid="1";
        this.fileOptions.ownbizOid="0";
        this.parameter.vars.templateOid = newval
      },
      deep: true,
@@ -361,6 +361,7 @@
    handleRowClick(row,column){
      this.fileOptions.ownbizOid= row.oid;
      this.fileOptions.ownbizBtm=row.btmname;
      this.$refs.crud.toggleRowSelection(row);
    },
    //删除
    enumDeleteRow(row) {
Source/UBCS-WEB/src/components/work/BusinessWork.vue
@@ -53,16 +53,22 @@
      tableData:[],
      editingRow: null,
      editShow: "",
      editAttr: ""
      editAttr: "",
      columnType: {
        text: "input",
        combox: "select",
        truefalse: "switch",
        number: "number",
        datetime: "datetime",
      }
    }
  },
  watch:{
    ids:{
      handler(newval,oldval){
        this.BuinessOids=newval;
        this.CrudHeaderRend()
        this.BuinseseRend()
        console.log(newval)
        console.log(this.BuinessOids)
      },
      deep:true
    }
@@ -78,11 +84,16 @@
    //表格头渲染
    CrudHeaderRend() {
      if (this.codeClassifyOid != "") {
        var data=new FormData()
        data.append('templateId', this.templateId)
        data.append('taskId', this.taskId)
        data.append('modelKey', this.modelKey)
        data.append('codeClassifyOid', this.codeClassifyOid)
        FlowTable({
          templateId: this.templateId,
          taskId    : this.taskId    ,
          modelKey: this.modelKey,
          codeClassifyOid: this.codeClassifyOid
          'templateId': this.templateId,
          'taskId': this.taskId,
          'modelKey': this.modelKey,
          'codeClassifyOid': this.codeClassifyOid
        }).then((res) => {
          this.options = res.data.tableDefineVO.seniorQueryColumns;
          this.List = res.data.tableDefineVO.cols[0];