mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-12-24 08:12:55 +08:00
审批流页面刷新
This commit is contained in:
@@ -133,7 +133,7 @@ function submit() {
|
||||
}
|
||||
flow_history_pass({
|
||||
applyId: formData.id,
|
||||
nextNodeAdminId: formData.applyUserId || 0,
|
||||
nextNodeAdminId: formData.applyUserId || '',
|
||||
passRemark: formData.passRemark
|
||||
}).then(() => {
|
||||
BeforeClose()
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -133,7 +133,7 @@ function submit() {
|
||||
}
|
||||
flow_history_pass({
|
||||
applyId: formData.id,
|
||||
nextNodeAdminId: formData.applyUserId || 0,
|
||||
nextNodeAdminId: formData.applyUserId || '',
|
||||
passRemark: formData.passRemark
|
||||
}).then(() => {
|
||||
BeforeClose()
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user