import {showLoading, hideLoading} from "@/utils/loading";
import {exportMethod} from "@/utils/";
import { timestampToDateTime, dateTimeToTimestamp, getScheduleTempTableHeaderDateArray, getNowDateTime, GetDateDiff } from "@/utils/timeDefault";
// derived.js
import axios from "axios"
import { showLoading, hideLoading } from "./loading";
import { Message } from "element-ui";
// 导出Excel公用方法
export function exportMethod(data) {
console.log(data, data.params, '3467')
axios({
method: data.method,
url: data.url,//`${data.url}${data.params ? '?' + data.params : ''}`
responseType: 'blob',
params: data.params,
headers: {
'X-Access-Token': sessionStorage.getItem("token")
}
}).then((res) => {
console.log(res)
if (res.data.success = true) {