兰宝车间质量管理系统-前端
gssong
2024-03-21 f50ed6b2c54615fa3e540bc6788a08239084d8e2
src/views/workflow/task/myDocument.vue
@@ -42,9 +42,9 @@
            </el-row>
          </template>
          <el-table v-loading="loading" :data="processInstanceList" @selection-change="handleSelectionChange">
          <el-table v-loading="loading" border :data="processInstanceList" @selection-change="handleSelectionChange">
            <el-table-column type="selection" width="55" align="center" />
            <el-table-column fixed align="center" type="index" label="序号" width="50"></el-table-column>
            <el-table-column fixed align="center" type="index" label="序号" width="60"></el-table-column>
            <el-table-column v-if="false" fixed align="center" prop="id" label="id"></el-table-column>
            <el-table-column fixed align="center" prop="processDefinitionName" label="流程定义名称"></el-table-column>
            <el-table-column fixed align="center" prop="processDefinitionKey" label="流程定义KEY"></el-table-column>
@@ -107,7 +107,7 @@
</template>
<script lang="ts" setup>
import { getCurrentSubmitByPage, deleteRuntimeProcessAndHisInst, cancelProcessApply } from '@/api/workflow/processInstance';
import { getPageByCurrent, deleteRunAndHisInstance, cancelProcessApply } from '@/api/workflow/processInstance';
import ApprovalRecord from '@/components/Process/approvalRecord.vue';
import SubmitVerify from '@/components/Process/submitVerify.vue';
import { listCategory } from '@/api/workflow/category';
@@ -218,7 +218,7 @@
//分页
const getList = () => {
  loading.value = true;
  getCurrentSubmitByPage(queryParams.value).then((resp) => {
  getPageByCurrent(queryParams.value).then((resp) => {
    processInstanceList.value = resp.rows;
    total.value = resp.total;
    loading.value = false;
@@ -231,7 +231,7 @@
  await proxy?.$modal.confirm('是否确认删除id为【' + id + '】的数据项?');
  loading.value = true;
  if ('running' === tab.value) {
    await deleteRuntimeProcessAndHisInst(id).finally(() => (loading.value = false));
    await deleteRunAndHisInstance(id).finally(() => (loading.value = false));
    getList();
  }
  proxy?.$modal.msgSuccess('删除成功');