|
|
|
@ -472,6 +472,7 @@ |
|
|
|
>数据导出</el-button |
|
|
|
>数据导出</el-button |
|
|
|
> |
|
|
|
> |
|
|
|
<el-button type="primary" @click="reportGenerationFun" |
|
|
|
<el-button type="primary" @click="reportGenerationFun" |
|
|
|
|
|
|
|
v-if="userStore.user?.userName === 'oumyye'" |
|
|
|
>报告生成</el-button |
|
|
|
>报告生成</el-button |
|
|
|
> |
|
|
|
> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
@ -1091,6 +1092,8 @@ import useCatchStore from "@/stores/modules/catch"; |
|
|
|
import {computed, watch} from "vue"; |
|
|
|
import {computed, watch} from "vue"; |
|
|
|
import {getListData} from "@/api/superviseReport/superviseReport"; |
|
|
|
import {getListData} from "@/api/superviseReport/superviseReport"; |
|
|
|
import {ArrowDown, ArrowUp} from "@element-plus/icons-vue"; |
|
|
|
import {ArrowDown, ArrowUp} from "@element-plus/icons-vue"; |
|
|
|
|
|
|
|
import useUserStore from "@/stores/modules/user.ts"; |
|
|
|
|
|
|
|
const userStore = useUserStore(); |
|
|
|
|
|
|
|
|
|
|
|
const catchStore = useCatchStore(); |
|
|
|
const catchStore = useCatchStore(); |
|
|
|
const dict = catchStore.getDicts([ |
|
|
|
const dict = catchStore.getDicts([ |
|
|
|
@ -1223,6 +1226,7 @@ async function handleExport() { |
|
|
|
const reportGenerationFun = async ()=>{ |
|
|
|
const reportGenerationFun = async ()=>{ |
|
|
|
// await feedback.confirm("请确定生成当前页面数据的报告"); |
|
|
|
// await feedback.confirm("请确定生成当前页面数据的报告"); |
|
|
|
debugger |
|
|
|
debugger |
|
|
|
|
|
|
|
console.log(userStore.user.userName) |
|
|
|
const reportDateRange = query.value.reportDateRange; |
|
|
|
const reportDateRange = query.value.reportDateRange; |
|
|
|
if (!reportDateRange){ |
|
|
|
if (!reportDateRange){ |
|
|
|
feedback.msgError("请选择对应报告时间") |
|
|
|
feedback.msgError("请选择对应报告时间") |
|
|
|
|