wangting
2023-08-08 22119b6c5128b773d4e72a0a6ca1f736d0def087
Source/UBCS-WEB/src/views/work/process/leave/handle.vue
@@ -5,7 +5,7 @@
        <el-card class="dialogwarp_tab_card">
          <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane label="业务数据信息" name="first">
              <businesswork :oid="oid" :templateId="templateId"></businesswork>
              <businesswork ref="businesswork" :ids="ids" :templateId="templateId" :taskId="taskId" :modelKey="modelKey" :codeClassifyOid="codeClassifyOid" :stageAttrs="stageAttrs"></businesswork>
            </el-tab-pane>
            <el-tab-pane label="流程跟踪" name="second">
              <avue-crud :data="flowList" :option="option" ref="crud">
@@ -75,11 +75,14 @@
export default {
  data() {
    return {
      oid:'',
      ids:[],
      templateId:'',
      taskId: '',
      modelKey:'',
      codeClassifyOid:'',
      businessId: '',
      processInstanceId: '',
      stageAttrs:[],
      src: '',
      flowList: [],
      btnList: [],
@@ -140,11 +143,15 @@
    async apiGetBtnTask(id) {
      const response = await getBtnTask({ processInstanceId: id })
      const res = response.data
      this.oid=res.data.variables.ids;
      this.ids=res.data.variables.ids;
      this.templateId=res.data.variables.templateId;
      this.modelKey=res.data.variables.modelKey;
      this.codeClassifyOid=res.data.variables.codeClassifyOid;
      this.title=res.data.variables.processName;
      this.stageAttrs=res.data.stageAttrs;
      //this.taskId=res.data.variables.taskId;
      if (res.success) {
        console.log(res)
        this.btnList = res.data.toTasks
        this.btnList = res.data.toTasks;
      }
    },
    async apiExamineTask(param) {
@@ -160,6 +167,9 @@
    },
    handelExecute(event) {
      console.log(event)
      if(this.$refs.businesswork.hasEditor){
        this.$refs.businesswork.HandlerSave()
      }
      const { toName, conditionKey, conditionValue } = event
      let param = {
        comment: this.opinionVal || '同意',