Vue3 重构:重构工作流的表单

This commit is contained in:
YunaiV
2023-03-23 22:50:48 +08:00
parent 6f8499c4d0
commit abbaeabc3a
7 changed files with 262 additions and 276 deletions

View File

@ -374,7 +374,7 @@ const formDetailPreview = ref({
const handleFormDetail = async (row) => {
if (row.formType == 10) {
// 设置表单
const data = await FormApi.getFormApi(row.formId)
const data = await FormApi.getForm(row.formId)
setConfAndFields2(formDetailPreview, data.conf, data.fields)
// 弹窗打开
formDetailVisible.value = true
@ -588,7 +588,7 @@ const uploadClose = () => {
// ========== 初始化 ==========
onMounted(() => {
// 获得流程表单的下拉框的数据
FormApi.getSimpleFormsApi().then((data) => {
FormApi.getSimpleFormList().then((data) => {
forms.value = data
})
})