流程图
parent
cfe12221b4
commit
22ed2c39bf
@ -0,0 +1,19 @@
|
||||
/*
|
||||
* @Description: 流程图
|
||||
* @Author: lijj
|
||||
* @Date: 2024-04-25 15:48:33
|
||||
*/
|
||||
|
||||
import { request } from '/@/utils/request'
|
||||
import { DataResult, PageRequest } from '/@/api/model/baseModel'
|
||||
enum Api {
|
||||
list = '/mainAPI/ClientFlowTemplate/GetFlowContent'
|
||||
}
|
||||
// 流程图 (Auth)
|
||||
export function GetFlowContent(params: PageRequest) {
|
||||
return request<DataResult>({
|
||||
url: Api.list,
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
<!--
|
||||
* @Author: lijj
|
||||
* @Date: 2024-05-06 09:18:47
|
||||
* @Description: 流程图组件
|
||||
-->
|
||||
<template>
|
||||
<a-modal
|
||||
v-model:visible="visible"
|
||||
v-if="visible"
|
||||
title="流程图"
|
||||
width="80%"
|
||||
@ok="handleOk"
|
||||
>
|
||||
<FlowDesign :process="process" :fields="fields" :readonly="true" />
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, defineExpose } from 'vue'
|
||||
import FlowDesign from '/@/views/flowcenter/flowInstances/Lowflow/index.vue'
|
||||
import { GetFlowContent } from './api'
|
||||
const visible = ref(false)
|
||||
const init = (id, type) => {
|
||||
visible.value = true
|
||||
console.log(id)
|
||||
// GetFlowContent({ id, type }).then(res => {
|
||||
// console.log(res)
|
||||
// })
|
||||
}
|
||||
const fields = ref([])
|
||||
const process = ref({
|
||||
id: 'root',
|
||||
pid: null,
|
||||
type: 'start',
|
||||
name: '发起人',
|
||||
formProperties: [],
|
||||
child: {
|
||||
id: 'end',
|
||||
pid: 'root',
|
||||
type: 'end',
|
||||
name: '结束',
|
||||
child: null,
|
||||
}
|
||||
})
|
||||
const handleOk = () => {
|
||||
|
||||
}
|
||||
defineExpose({
|
||||
init
|
||||
})
|
||||
</script>
|
||||
<style>
|
||||
</style>
|
Loading…
Reference in New Issue