|
|
|
@ -189,7 +189,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup> |
|
|
|
import { onMounted, reactive, ref } from 'vue' |
|
|
|
import { onMounted, reactive, ref, watch } from 'vue' |
|
|
|
import { ElMessage } from 'element-plus' |
|
|
|
import API from '@/util/http.js' |
|
|
|
import moment from 'moment' |
|
|
|
@ -200,7 +200,17 @@ import { permissionMapping, hasMenuPermission } from "@/utils/menuTreePermission |
|
|
|
import ConfirmDialog from '@/components/dialogs/ConfirmDialog.vue'; |
|
|
|
|
|
|
|
const adminStore = useAdminStore(); |
|
|
|
const { adminData, menuTree } = storeToRefs(adminStore); |
|
|
|
const { adminData, menuTree, flag } = storeToRefs(adminStore); |
|
|
|
// 监听全局flag状态变化 |
|
|
|
watch(flag, (newFlag, oldFlag) => { |
|
|
|
// 当flag状态改变时,重新发送请求 |
|
|
|
if (newFlag !== oldFlag) { |
|
|
|
get() |
|
|
|
getStats() |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
const defaultTime = [ |
|
|
|
new Date(2000, 1, 1, 0, 0, 0), |
|
|
|
new Date(2000, 2, 1, 23, 59, 59), |
|
|
|
@ -343,7 +353,8 @@ const get = async function (val) { |
|
|
|
refundAudit: { |
|
|
|
...searchForm.value, |
|
|
|
sortField: sortField.value, |
|
|
|
sortOrder: sortOrder.value |
|
|
|
sortOrder: sortOrder.value, |
|
|
|
flag: flag.value |
|
|
|
} |
|
|
|
} |
|
|
|
console.log('看看传给后端的参数:', params) |
|
|
|
@ -472,7 +483,8 @@ const getStats = async () => { |
|
|
|
pageNum: pagination.value.pageNum, |
|
|
|
pageSize: pagination.value.pageSize, |
|
|
|
refundAudit: { |
|
|
|
...searchForm.value |
|
|
|
...searchForm.value, |
|
|
|
flag: flag.value |
|
|
|
} |
|
|
|
} |
|
|
|
if (searchForm.value.jwcode) { |
|
|
|
|