shikeying
2023-03-22 47d7d2c1e141d805b28c54ac8cf6d5b6f1a2610d
src/views/workflow/leave/index.vue
@@ -90,7 +90,7 @@
      <el-table-column label="原因" align="center" prop="reason"/>
      <el-table-column label="开始时间" align="center" prop="leave_start_time" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.leaveStartTime, '{y}-{m}-{d}') }}</span>
          <span>{{ parseTime(scope.row.leave_start_time, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="结束时间" align="center" prop="leave_end_time" width="180">
@@ -235,6 +235,7 @@
  import leaveHistoryForm from "./leaveHistoryForm";
  import {getToken} from "@/utils/auth";
  export default {
    name: 'Leave',
@@ -404,14 +405,13 @@
      },
      /** 进度查看 */
      checkTheSchedule(row) {
        getDefinitionsByInstanceId(row.instanceId).then(response => {
          let data = response.data
        getDefinitionsByInstanceId(row.instance_id).then(response => {
          let data = response.data;
          localStorage.setItem("Authorization", getToken());
          // this.url = '/bpmnjs/index.html?type=lookBpmn&deploymentFileUUID='+data.deploymentID+'&deploymentName='+ encodeURI(data.resourceName);
          this.modelerUrl = '/bpmnjs/index.html?type=lookBpmn&instanceId=' + row.instanceId + '&deploymentFileUUID=' + data.deploymentID + '&deploymentName=' + encodeURI(data.resourceName);
          this.modelVisible = true
          this.modelerUrl = '/bpmnjs/index.html?type=lookBpmn&instanceId=' + row.instance_id + '&deploymentFileUUID=' + data.deploymentID + '&deploymentName=' + encodeURI(data.resourceName);
          this.modelVisible = true;
        })
      },
      /** 提交按钮 */
      submitForm() {
@@ -419,15 +419,15 @@
          if (valid) {
            if (this.form.id != null) {
              updateLeave(this.form).then(response => {
                this.msgSuccess('修改成功')
                this.open = false
                this.getList()
                this.$modal.msgSuccess('修改成功');
                this.open = false;
                this.getList();
              })
            } else {
              addLeave(this.form).then(response => {
                this.msgSuccess('新增成功')
                this.open = false
                this.getList()
                this.$modal.msgSuccess('新增成功');
                this.open = false;
                this.getList();
              })
            }
          }