update 1132 bug修复,利元亨用户隐藏终止流程按钮
This commit is contained in:
@@ -71,7 +71,16 @@
|
||||
<el-table-column fixed="right" :label="$t('common.action')">
|
||||
<template #default="scope">
|
||||
<el-button type="primary" size="small" link icon="View" @click="deal(scope.row)">{{ $t('common.viewBtn') }}</el-button>
|
||||
<el-button :disabled="scope.row.status != 1" type="primary" size="small" link icon="VideoPause" @click="stop(scope.row)">
|
||||
<!-- SPDM CODE -->
|
||||
<el-button
|
||||
v-if="!enableConfigByTenant(['lyric'])"
|
||||
:disabled="scope.row.status != 1"
|
||||
type="primary"
|
||||
size="small"
|
||||
link
|
||||
icon="VideoPause"
|
||||
@click="stop(scope.row)"
|
||||
>
|
||||
{{ $t('task.terminateTheProcess') }}
|
||||
</el-button>
|
||||
</template>
|
||||
@@ -80,29 +89,29 @@
|
||||
|
||||
<pagination @current-change="currentChangeHandle" @size-change="sizeChangeHandle" v-bind="state.pagination"></pagination>
|
||||
<!-- 右侧抽屉-->
|
||||
<el-drawer v-model="rightDrawerVisible" direction="rtl" :size="processRreview ? processRreviewWidth : '400px'">
|
||||
<el-drawer v-model="rightDrawerVisible" direction="rtl" :size="processRreview ? processRreviewWidth : '400px'">
|
||||
<template #header>
|
||||
<h3>{{ currentData?.name }}</h3>
|
||||
</template>
|
||||
<template #default>
|
||||
<!-- SPDM CODE -->
|
||||
<div class="spdm-approve-preview">
|
||||
<div v-show="processRreview" class="spdm-content">
|
||||
<SpdmView :processId="processInstanceId" @load="previewLoadFun" />
|
||||
</div>
|
||||
<div class="spdm-default">
|
||||
<el-card class="box-card">
|
||||
<form-render ref="formRenderRef" :form-list="currentOpenFlowForm"></form-render>
|
||||
</el-card>
|
||||
<flow-node-format
|
||||
:disableSelect="true"
|
||||
:formData="formValue"
|
||||
:processInstanceId="currentData.processInstanceId"
|
||||
:flow-id="currentData.flowId"
|
||||
ref="flowNodeFormatRef"
|
||||
></flow-node-format>
|
||||
</div>
|
||||
</div>
|
||||
<!-- SPDM CODE -->
|
||||
<div class="spdm-approve-preview">
|
||||
<div v-show="processRreview" class="spdm-content">
|
||||
<SpdmView :processId="processInstanceId" @load="previewLoadFun" />
|
||||
</div>
|
||||
<div class="spdm-default">
|
||||
<el-card class="box-card">
|
||||
<form-render ref="formRenderRef" :form-list="currentOpenFlowForm"></form-render>
|
||||
</el-card>
|
||||
<flow-node-format
|
||||
:disableSelect="true"
|
||||
:formData="formValue"
|
||||
:processInstanceId="currentData.processInstanceId"
|
||||
:flow-id="currentData.flowId"
|
||||
ref="flowNodeFormatRef"
|
||||
></flow-node-format>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-drawer>
|
||||
</div>
|
||||
@@ -111,13 +120,14 @@
|
||||
<script setup lang="ts">
|
||||
import FormRender from '/@/views/flow/form/render/FormRender.vue';
|
||||
import FlowNodeFormat from '/@/views/flow/form/tools/FlowNodeFormatData.vue';
|
||||
import {queryMineStarted, stopProcessInstance} from '/@/api/flow/task';
|
||||
import {detail} from '/@/api/flow/processInstance';
|
||||
import {BasicTableProps, useTable} from '/@/hooks/table';
|
||||
import { queryMineStarted, stopProcessInstance } from '/@/api/flow/task';
|
||||
import { detail } from '/@/api/flow/processInstance';
|
||||
import { BasicTableProps, useTable } from '/@/hooks/table';
|
||||
import { useTagName } from './useTagName';
|
||||
import SpdmView from '/@/spdm/views/preview.vue'; // SPDM CODE
|
||||
import { enableConfigByTenant } from '/@/spdm/utils/index'; // SPDM CODE
|
||||
|
||||
const { tagName } = useTagName()
|
||||
const { tagName } = useTagName();
|
||||
|
||||
const rightDrawerVisible = ref(false);
|
||||
|
||||
@@ -125,7 +135,7 @@ const loading = ref(false);
|
||||
|
||||
const processInstanceId = ref('');
|
||||
const processRreview = ref(false);
|
||||
const processRreviewWidth = ref(0)
|
||||
const processRreviewWidth = ref(0);
|
||||
|
||||
const queryRef = ref();
|
||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
@@ -136,7 +146,7 @@ const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
},
|
||||
});
|
||||
|
||||
const {tableStyle, getDataList, currentChangeHandle, sortChangeHandle, sizeChangeHandle} = useTable(state);
|
||||
const { tableStyle, getDataList, currentChangeHandle, sortChangeHandle, sizeChangeHandle } = useTable(state);
|
||||
function stop(row) {
|
||||
stopProcessInstance({
|
||||
processInstanceId: row.processInstanceId,
|
||||
@@ -183,5 +193,5 @@ const formValue = computed(() => {
|
||||
const previewLoadFun = (width: any) => {
|
||||
processRreview.value = true;
|
||||
processRreviewWidth.value = width;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user