|
|
@@ -41,7 +41,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { ref, reactive, computed, onMounted, onUnmounted } from 'vue'
|
|
|
+import { ref, reactive, computed } from 'vue'
|
|
|
import { useUserStore } from '@/store/user'
|
|
|
import { useConfigStore } from '@/store/config'
|
|
|
import QueryView from '@/pages/pendingVerification/components/query/QueryView.vue'
|
|
|
@@ -49,6 +49,7 @@ import Item from '@/pages/pendingVerification/list/Item.vue'
|
|
|
import NavBar from '@/components/NavBar/NavBar.vue'
|
|
|
import { requestFunc, TaskOrderFuncName } from '@/api/ApiRouter/taskOrder'
|
|
|
import { PressureCheckerMyTaskStatus, PressureReportType } from '@/utils/dictMap'
|
|
|
+import { onShow } from '@dcloudio/uni-app'
|
|
|
|
|
|
defineOptions({
|
|
|
name: 'PendingApprovalList',
|
|
|
@@ -157,14 +158,10 @@ const refreshListener = () => {
|
|
|
refreshList()
|
|
|
}
|
|
|
|
|
|
-onMounted(() => {
|
|
|
+onShow(() => {
|
|
|
refreshList()
|
|
|
uni.$on('RefreshApprovalListApi', refreshListener)
|
|
|
})
|
|
|
-
|
|
|
-onUnmounted(() => {
|
|
|
- uni.$off('RefreshApprovalListApi', refreshListener)
|
|
|
-})
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|