mirror of
https://gitee.com/JavaLionLi/plus-ui.git
synced 2026-09-15 00:25:07 +08:00
Pre Merge pull request !279 from 专业坑队/dev
This commit is contained in:
commit
ae7fbf916c
@ -215,6 +215,17 @@
|
|||||||
>
|
>
|
||||||
发布流程
|
发布流程
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
v-hasPermi="['workflow:definition:publish']"
|
||||||
|
link
|
||||||
|
type="primary"
|
||||||
|
v-if="scope.row.isPublish == 1"
|
||||||
|
size="small"
|
||||||
|
icon="CircleCheck"
|
||||||
|
@click="handleUnPublish(scope.row)"
|
||||||
|
>
|
||||||
|
取消发布
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -335,6 +346,7 @@ import {
|
|||||||
importDef,
|
importDef,
|
||||||
unPublishList,
|
unPublishList,
|
||||||
publish,
|
publish,
|
||||||
|
unPublish,
|
||||||
add,
|
add,
|
||||||
edit,
|
edit,
|
||||||
getInfo,
|
getInfo,
|
||||||
@ -517,10 +529,10 @@ const handleDelete = async (row?: Partial<FlowDefinitionVo>) => {
|
|||||||
const handlePublish = async (row?: Partial<FlowDefinitionVo>) => {
|
const handlePublish = async (row?: Partial<FlowDefinitionVo>) => {
|
||||||
await modal.confirm(
|
await modal.confirm(
|
||||||
'是否确认发布流程定义编码为【' +
|
'是否确认发布流程定义编码为【' +
|
||||||
row.flowCode +
|
row.flowCode +
|
||||||
'】版本为【' +
|
'】版本为【' +
|
||||||
row.version +
|
row.version +
|
||||||
'】的数据项?,发布后会将已发布流程定义改为失效!'
|
'】的数据项?,发布后会将已发布流程定义改为失效!'
|
||||||
);
|
);
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
await publish(row.id).finally(() => setLoading(false));
|
await publish(row.id).finally(() => setLoading(false));
|
||||||
@ -528,6 +540,21 @@ const handlePublish = async (row?: Partial<FlowDefinitionVo>) => {
|
|||||||
await handleQuery();
|
await handleQuery();
|
||||||
modal.msgSuccess('发布成功');
|
modal.msgSuccess('发布成功');
|
||||||
};
|
};
|
||||||
|
/** 取消发布流程定义 */
|
||||||
|
const handleUnPublish = async (row?: Partial<FlowDefinitionVo>) => {
|
||||||
|
await modal.confirm(
|
||||||
|
'是否确认取消发布流程定义编码为【' +
|
||||||
|
row.flowCode +
|
||||||
|
'】版本为【' +
|
||||||
|
row.version +
|
||||||
|
'】的数据项?,取消发布后,此流程定义将不再显示在流程定义列表!'
|
||||||
|
);
|
||||||
|
setLoading(true);
|
||||||
|
await unPublish(row.id).finally(() => setLoading(false));
|
||||||
|
activeName.value = '1';
|
||||||
|
await handleQuery();
|
||||||
|
modal.msgSuccess('取消发布成功');
|
||||||
|
}
|
||||||
/** 挂起/激活 */
|
/** 挂起/激活 */
|
||||||
const handleProcessDefState = async (row: Partial<FlowDefinitionVo>, status: number | string | boolean) => {
|
const handleProcessDefState = async (row: Partial<FlowDefinitionVo>, status: number | string | boolean) => {
|
||||||
let msg: string;
|
let msg: string;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user