|
|
|
@ -247,8 +247,8 @@
|
|
|
|
|
</a-modal>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" setup name="任务管理">
|
|
|
|
|
import { ref, onMounted, watch } from 'vue'
|
|
|
|
|
<script lang="ts" setup name="任务台账">
|
|
|
|
|
import { ref, onMounted, watch,onActivated } from 'vue'
|
|
|
|
|
import { formatParams } from '/@/hooks/web/common'
|
|
|
|
|
import { searchFormSchema } from './columns'
|
|
|
|
|
import { useOptionsStore } from '/@/store/modules/options'
|
|
|
|
@ -258,6 +258,7 @@ import { useMessage } from '../../hooks/web/useMessage'
|
|
|
|
|
import { useRoute, useRouter } from 'vue-router';
|
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
|
const route = useRoute();
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
import {
|
|
|
|
|
GetCurrentTotalStat, GetPageAsync, TaskManageTruckGetInfoByTaskId,
|
|
|
|
|
TaskManageTruckPrintTemplateWithHistoryList,
|
|
|
|
@ -302,11 +303,12 @@ onMounted(() => {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
watch(() => route.fullPath, (val) => {
|
|
|
|
|
if (val === '/taskmanage') {
|
|
|
|
|
refshTotalStat()
|
|
|
|
|
}
|
|
|
|
|
}, { deep: true });
|
|
|
|
|
|
|
|
|
|
router.afterEach((to, from) => {
|
|
|
|
|
if (to.fullPath === '/taskmanage') {
|
|
|
|
|
refshTotalStat();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const levelreLoading = ref(false)
|
|
|
|
|
const levelLoading = ref(false)
|
|
|
|
@ -593,7 +595,6 @@ function handledbclick(row) {
|
|
|
|
|
handleEdit(row)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
function handleEdit(data) {
|
|
|
|
|
switch (data.tasK_TYPE) {
|
|
|
|
|
case 'VGM_COMPARE':
|
|
|
|
|