|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<flow-form :data="formData" @submit="submitNextActivity">
|
|
|
<card title="基础信息" style="height: auto">
|
|
|
- <van-form required="true" ref="form" >
|
|
|
+ <van-form required="true" ref="form">
|
|
|
<van-cell-group inset>
|
|
|
<van-field
|
|
|
v-model="formData.userNickname"
|
|
@@ -36,10 +36,10 @@
|
|
|
<van-cell title="替补人员" :value="item.changer"/>
|
|
|
<van-cell title="备注" :value="item.bz"/>
|
|
|
</card-cell>
|
|
|
-<!-- <template #right>-->
|
|
|
-<!-- <van-button square type="primary" text="编辑" @click="detailView(index,item)"/>-->
|
|
|
-<!-- <van-button square type="danger" text="删除" @click="detailDelte(index)"/>-->
|
|
|
-<!-- </template>-->
|
|
|
+ <!-- <template #right>-->
|
|
|
+ <!-- <van-button square type="primary" text="编辑" @click="detailView(index,item)"/>-->
|
|
|
+ <!-- <van-button square type="danger" text="删除" @click="detailDelte(index)"/>-->
|
|
|
+ <!-- </template>-->
|
|
|
</van-swipe-cell>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -58,15 +58,15 @@ import {DICT_TYPE, getDictLabel} from "@/utils/dict";
|
|
|
|
|
|
const route = useRoute();
|
|
|
const form = ref(null);
|
|
|
+
|
|
|
interface FormDataType {
|
|
|
}
|
|
|
-const formData = ref<FormDataType>({
|
|
|
-})
|
|
|
-const detailData = ref({
|
|
|
-})
|
|
|
+
|
|
|
+const formData = ref<FormDataType>({})
|
|
|
+const detailData = ref({})
|
|
|
|
|
|
|
|
|
-const { activityInstanceId, participant,flowInstanceId,read } = route.query as {
|
|
|
+const {activityInstanceId, participant, flowInstanceId, read} = route.query as {
|
|
|
activityInstanceId: string;
|
|
|
participant: string;
|
|
|
flowInstanceId: string;
|
|
@@ -77,10 +77,8 @@ const activityData: FlowDTO = {
|
|
|
participantId: participant,
|
|
|
flowOpinion: ''
|
|
|
}
|
|
|
-const submitNextActivity = async (NextActivity: ()=>Promise<any>) => {
|
|
|
- form.value.validate().then(async () => {
|
|
|
- NextActivity();
|
|
|
- });
|
|
|
+const submitNextActivity = async (NextActivity: () => Promise<any>) => {
|
|
|
+ NextActivity();
|
|
|
};
|
|
|
const jsonToFormData = (json: any): FormData | null => {
|
|
|
const keys: string[] = Object.keys(json)
|