update 1132 bug修复,利元亨用户隐藏终止流程按钮

This commit is contained in:
2026-03-12 10:39:06 +08:00
parent bcbc66eef0
commit f69a12e02b

View File

@@ -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>
@@ -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>