审批流页面刷新

This commit is contained in:
xh
2025-12-20 02:55:11 +08:00
parent 8724fa1056
commit c021aed739
6 changed files with 47 additions and 10 deletions

View File

@@ -133,7 +133,7 @@ function submit() {
}
flow_history_pass({
applyId: formData.id,
nextNodeAdminId: formData.applyUserId || 0,
nextNodeAdminId: formData.applyUserId || '',
passRemark: formData.passRemark
}).then(() => {
BeforeClose()

View File

@@ -92,7 +92,7 @@
</div>
</template>
<script lang="ts" setup>
import { shallowRef, reactive, defineAsyncComponent } from 'vue'
import { shallowRef, reactive, defineAsyncComponent, onMounted, onActivated } from 'vue'
import {
flow_apply_delete,
flow_apply_lists,
@@ -180,5 +180,13 @@ const SaveViewForm = (id, form_data) => {
})
})
}
getLists()
onMounted(() => {
getLists()
})
onActivated(() => {
if (!pager.loading) {
getLists()
}
})
</script>

View File

@@ -150,7 +150,15 @@
</div>
</template>
<script lang="ts" setup>
import { ref, reactive, shallowRef, nextTick, defineAsyncComponent } from 'vue'
import {
ref,
reactive,
shallowRef,
nextTick,
defineAsyncComponent,
onMounted,
onActivated
} from 'vue'
import {
flow_apply_delete,
flow_apply_lists,
@@ -266,5 +274,12 @@ const SaveViewForm = (id, form_data) => {
})
})
}
getLists()
onMounted(() => {
getLists()
})
onActivated(() => {
if (!pager.loading) {
getLists()
}
})
</script>

View File

@@ -133,7 +133,7 @@ function submit() {
}
flow_history_pass({
applyId: formData.id,
nextNodeAdminId: formData.applyUserId || 0,
nextNodeAdminId: formData.applyUserId || '',
passRemark: formData.passRemark
}).then(() => {
BeforeClose()

View File

@@ -68,7 +68,7 @@
</div>
</template>
<script lang="ts" setup>
import { shallowRef, reactive, defineAsyncComponent } from 'vue'
import { shallowRef, reactive, defineAsyncComponent, onMounted, onActivated } from 'vue'
import { flow_apply_detail } from '@/api/flow/flow_apply'
import { flow_history_list } from '@/api/flow/flow_history'
import type { type_flow_apply } from '@/api/flow/flow_apply'
@@ -124,5 +124,12 @@ const OpenViewForm = async (row: any) => {
viewFormRef.value?.open(applyDetail, row, form_json, form_data)
}
getLists()
onMounted(() => {
getLists()
})
onActivated(() => {
if (!pager.loading) {
getLists()
}
})
</script>

View File

@@ -69,7 +69,7 @@
</div>
</template>
<script lang="ts" setup>
import { shallowRef, reactive, defineAsyncComponent } from 'vue'
import { shallowRef, reactive, defineAsyncComponent, onMounted, onActivated } from 'vue'
import { flow_apply_detail } from '@/api/flow/flow_apply'
import { flow_history_list, flow_history_edit } from '@/api/flow/flow_history'
import type { type_flow_history } from '@/api/flow/flow_history'
@@ -167,5 +167,12 @@ const closeBack = () => {
getLists()
}
getLists()
onMounted(() => {
getLists()
})
onActivated(() => {
if (!pager.loading) {
getLists()
}
})
</script>