diff --git a/admin/src/components/flow/XForm/index.vue b/admin/src/components/flow/XForm/index.vue index 41779f6..ef16e9f 100644 --- a/admin/src/components/flow/XForm/index.vue +++ b/admin/src/components/flow/XForm/index.vue @@ -17,9 +17,13 @@ function getFieldWidgets() { } function getData() { return new Promise((resolve, reject) => { - const jsonData = designerRef.value.getFormJson() - console.log('jsonData', jsonData) - resolve({ formData: jsonData }) + try { + const jsonData = designerRef.value.getFormJson() + console.log('jsonData', jsonData) + resolve({ formData: jsonData }) + } catch (error) { + reject(error) + } }) } const props = defineProps({ @@ -44,7 +48,7 @@ defineExpose({ diff --git a/admin/src/components/flow/flowEdit/PropertyPanel.vue b/admin/src/components/flow/flowEdit/PropertyPanel.vue index 1ce7f2d..aeee14e 100644 --- a/admin/src/components/flow/flowEdit/PropertyPanel.vue +++ b/admin/src/components/flow/flowEdit/PropertyPanel.vue @@ -1,128 +1,94 @@ diff --git a/admin/src/components/flow/flowEdit/PropertyPanel/FieldAuth.vue b/admin/src/components/flow/flowEdit/PropertyPanel/FieldAuth.vue new file mode 100644 index 0000000..66bc041 --- /dev/null +++ b/admin/src/components/flow/flowEdit/PropertyPanel/FieldAuth.vue @@ -0,0 +1,40 @@ + + + + + diff --git a/admin/src/components/flow/flowEdit/PropertyPanel/UserTask.vue b/admin/src/components/flow/flowEdit/PropertyPanel/UserTask.vue new file mode 100644 index 0000000..2b99be6 --- /dev/null +++ b/admin/src/components/flow/flowEdit/PropertyPanel/UserTask.vue @@ -0,0 +1,131 @@ + + + + + diff --git a/admin/src/views/flow/flow_apply/components/apply_submit.vue b/admin/src/views/flow/flow_apply/components/apply_submit.vue index 84f6251..6883f8e 100644 --- a/admin/src/views/flow/flow_apply/components/apply_submit.vue +++ b/admin/src/views/flow/flow_apply/components/apply_submit.vue @@ -153,4 +153,3 @@ defineExpose({ // margin: 0; /* 如果页面出现垂直滚动条,则加入此行CSS以消除之 */ // } -@/api/flow/flow_history diff --git a/admin/src/views/flow/flow_apply/edit.vue b/admin/src/views/flow/flow_apply/edit.vue index c534a75..be41d39 100644 --- a/admin/src/views/flow/flow_apply/edit.vue +++ b/admin/src/views/flow/flow_apply/edit.vue @@ -236,4 +236,3 @@ defineExpose({ getDetail }) -@/api/flow/flow_apply@/api/flow/flow_template diff --git a/admin/src/views/flow/flow_apply/index.vue b/admin/src/views/flow/flow_apply/index.vue index 1df8575..b0479a6 100644 --- a/admin/src/views/flow/flow_apply/index.vue +++ b/admin/src/views/flow/flow_apply/index.vue @@ -227,4 +227,3 @@ const SaveViewForm = (id, form_data) => { } getLists() -@/api/flow/flow_apply diff --git a/admin/src/views/flow/flow_history/edit.vue b/admin/src/views/flow/flow_history/edit.vue index 2b98d5a..2c59191 100644 --- a/admin/src/views/flow/flow_history/edit.vue +++ b/admin/src/views/flow/flow_history/edit.vue @@ -211,4 +211,3 @@ defineExpose({ getDetail }) -@/api/flow/flow_history diff --git a/admin/src/views/flow/flow_history/index.vue b/admin/src/views/flow/flow_history/index.vue index 6409b93..bc0f920 100644 --- a/admin/src/views/flow/flow_history/index.vue +++ b/admin/src/views/flow/flow_history/index.vue @@ -134,4 +134,3 @@ const handleDelete = async (id: number) => { getLists() -@/api/flow/flow_history diff --git a/admin/src/views/flow/flow_history/todo.vue b/admin/src/views/flow/flow_history/todo.vue index ca68363..30fb5c7 100644 --- a/admin/src/views/flow/flow_history/todo.vue +++ b/admin/src/views/flow/flow_history/todo.vue @@ -153,4 +153,3 @@ const OpenApplySubmit = async (row: any) => { } getLists() -@/api/flow/flow_apply@/api/flow/flow_history diff --git a/admin/src/views/flow/flow_template/edit.vue b/admin/src/views/flow/flow_template/edit.vue index de18a56..e12723f 100644 --- a/admin/src/views/flow/flow_template/edit.vue +++ b/admin/src/views/flow/flow_template/edit.vue @@ -150,4 +150,3 @@ defineExpose({ getDetail }) -@/api/flow/flow_template diff --git a/admin/src/views/flow/flow_template/index.vue b/admin/src/views/flow/flow_template/index.vue index fa7164a..02e1c62 100644 --- a/admin/src/views/flow/flow_template/index.vue +++ b/admin/src/views/flow/flow_template/index.vue @@ -181,4 +181,3 @@ const handleConfig = async (data: any) => { } getLists() -@/api/flow/flow_template