|
|
@ -51,11 +51,12 @@ import dayjs from 'dayjs' |
|
|
const adminStore = useAdminStore() |
|
|
const adminStore = useAdminStore() |
|
|
const { adminData, menuTree } = storeToRefs(adminStore) |
|
|
const { adminData, menuTree } = storeToRefs(adminStore) |
|
|
import { permissionMapping, findMenuById } from "@/utils/menuTreePermission.js" |
|
|
import { permissionMapping, findMenuById } from "@/utils/menuTreePermission.js" |
|
|
|
|
|
|
|
|
const defaultTime = [ |
|
|
const defaultTime = [ |
|
|
new Date(2000, 1, 1, 0, 0, 0), |
|
|
new Date(2000, 1, 1, 0, 0, 0), |
|
|
new Date(2000, 2, 1, 23, 59, 59), |
|
|
new Date(2000, 2, 1, 23, 59, 59), |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
const canLook = ref(findMenuById(menuTree.value, permissionMapping.new_version_gold_query)) |
|
|
const tableData = ref([]) |
|
|
const tableData = ref([]) |
|
|
const dateRange = ref([]) |
|
|
const dateRange = ref([]) |
|
|
const searchObj = ref({ |
|
|
const searchObj = ref({ |
|
|
@ -69,6 +70,10 @@ const pagination = ref({ |
|
|
}) |
|
|
}) |
|
|
//获取新表数据 |
|
|
//获取新表数据 |
|
|
const get = async function () { |
|
|
const get = async function () { |
|
|
|
|
|
if(!canLook.value){ |
|
|
|
|
|
ElMessage.error('无此权限') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
try { |
|
|
try { |
|
|
if (searchObj.value.name || searchObj.value.jwcode) { |
|
|
if (searchObj.value.name || searchObj.value.jwcode) { |
|
|
const startTime = dateRange.value && dateRange.value[0] ? moment(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') : "" |
|
|
const startTime = dateRange.value && dateRange.value[0] ? moment(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') : "" |
|
|
|