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