mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-27 01:32:03 +08:00
bpm:流程模型的列表的表单展示
This commit is contained in:
parent
ec6a46a541
commit
3466b318b1
@ -28,7 +28,7 @@
|
|||||||
<template #formId_default="{ row }">
|
<template #formId_default="{ row }">
|
||||||
<XTextButton
|
<XTextButton
|
||||||
:title="forms.find((form) => form.id === row.formId)?.name || row.formId"
|
:title="forms.find((form) => form.id === row.formId)?.name || row.formId"
|
||||||
@click="handleFormDetail(row.id)"
|
@click="handleFormDetail(row.formId)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<!-- 流程版本 -->
|
<!-- 流程版本 -->
|
||||||
@ -212,7 +212,7 @@
|
|||||||
<XButton
|
<XButton
|
||||||
type="primary"
|
type="primary"
|
||||||
:loading="dialogLoading"
|
:loading="dialogLoading"
|
||||||
@click="submitForm()"
|
@click="submitForm"
|
||||||
:title="t('action.save')"
|
:title="t('action.save')"
|
||||||
/>
|
/>
|
||||||
<!-- 按钮:关闭 -->
|
<!-- 按钮:关闭 -->
|
||||||
@ -287,6 +287,15 @@
|
|||||||
<XButton title="取 消" @click="uploadClose" />
|
<XButton title="取 消" @click="uploadClose" />
|
||||||
</template>
|
</template>
|
||||||
</XModal>
|
</XModal>
|
||||||
|
|
||||||
|
<!-- 表单详情的弹窗 -->
|
||||||
|
<XModal v-model="formDetailVisible" width="800" title="表单详情" :show-footer="false">
|
||||||
|
<ViewForm
|
||||||
|
:rule="formDetailPreview.rule"
|
||||||
|
:option="formDetailPreview.option"
|
||||||
|
v-if="formDetailVisible"
|
||||||
|
/>
|
||||||
|
</XModal>
|
||||||
</ContentWrap>
|
</ContentWrap>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -306,6 +315,10 @@ const { t } = useI18n() // 国际化
|
|||||||
const message = useMessage() // 消息弹窗
|
const message = useMessage() // 消息弹窗
|
||||||
const router = useRouter() // 路由
|
const router = useRouter() // 路由
|
||||||
|
|
||||||
|
import viewForm from '@form-create/element-ui'
|
||||||
|
const ViewForm = viewForm.$form()
|
||||||
|
import { setConfAndFields2 } from '@/utils/formCreate'
|
||||||
|
|
||||||
// ========== 列表相关 ==========
|
// ========== 列表相关 ==========
|
||||||
const [registerTable, { reload }] = useXTable({
|
const [registerTable, { reload }] = useXTable({
|
||||||
allSchemas: allSchemas,
|
allSchemas: allSchemas,
|
||||||
@ -335,10 +348,17 @@ const handleDefinitionList = (row) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 流程表单的详情按钮操作
|
// 流程表单的详情按钮操作
|
||||||
const handleFormDetail = (row) => {
|
const formDetailVisible = ref(false)
|
||||||
// TODO 芋艿:表单组件开发中
|
const formDetailPreview = ref({
|
||||||
console.log(row)
|
rule: [],
|
||||||
message.success('动态表单开发中,预计 2 月底完成')
|
option: {}
|
||||||
|
})
|
||||||
|
const handleFormDetail = async (rowId: number) => {
|
||||||
|
// 设置表单
|
||||||
|
const data = await FormApi.getFormApi(rowId)
|
||||||
|
setConfAndFields2(formDetailPreview, data.conf, data.fields)
|
||||||
|
// 弹窗打开
|
||||||
|
formDetailVisible.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// 流程图的详情按钮操作
|
// 流程图的详情按钮操作
|
||||||
|
Loading…
Reference in New Issue
Block a user