更新
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
// export const URL = "https://yushengapi.qxyushen.top";
|
export const URL = "https://yushengapi.qxyushen.top";
|
||||||
export const URL = "https://test.vespa.qxyushen.top";
|
// export const URL = "https://test.vespa.qxyushen.top";
|
||||||
// https://vespa.qxyushen.top 正式
|
// https://vespa.qxyushen.top 正式
|
||||||
// http://1.13.101.98
|
// http://1.13.101.98
|
||||||
// https://test.vespa.qxyushen.top
|
// https://test.vespa.qxyushen.top
|
||||||
|
|||||||
@@ -61,11 +61,11 @@ export function useData() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "累计获取数量",
|
label: "累计获取数量",
|
||||||
prop: "is_tester"
|
prop: "total_num"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "用户礼物数量",
|
label: "用户礼物数量",
|
||||||
prop: "is_use_give"
|
prop: "num"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "获取时间",
|
label: "获取时间",
|
||||||
|
|||||||
@@ -420,64 +420,64 @@ export function useData() {
|
|||||||
const exportFormRef = ref(null)
|
const exportFormRef = ref(null)
|
||||||
const exportExcel = () => {
|
const exportExcel = () => {
|
||||||
let exportTableList = []
|
let exportTableList = []
|
||||||
// addDialog({
|
addDialog({
|
||||||
// title: `导出数据`,
|
title: `导出数据`,
|
||||||
// props: {
|
props: {
|
||||||
// formInline: {
|
formInline: {
|
||||||
// time: ''
|
time: ''
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// width: "40%",
|
width: "40%",
|
||||||
// closeOnClickModal: false,
|
closeOnClickModal: false,
|
||||||
// contentRenderer: () => h(ExportForm, { ref: exportFormRef, formInline: null }),
|
contentRenderer: () => h(ExportForm, { ref: exportFormRef, formInline: null }),
|
||||||
// beforeSure: (done, { options }) => {
|
beforeSure: (done, { options }) => {
|
||||||
// const FormRef = exportFormRef.value.getRef();
|
const FormRef = exportFormRef.value.getRef();
|
||||||
// const curData = options.props.formInline;
|
const curData = options.props.formInline;
|
||||||
// const exportData = async (formData) => {
|
const exportData = async (formData) => {
|
||||||
// const { data, code } = await queryList({
|
const { data, code } = await queryList({
|
||||||
// ...searchForm.value,
|
...searchForm.value,
|
||||||
// coin1: searchForm.value.coin1 ? searchForm.value.coin1 : '',
|
coin1: searchForm.value.coin1 ? searchForm.value.coin1 : '',
|
||||||
// coin2: searchForm.value.coin2 ? searchForm.value.coin2 : '',
|
coin2: searchForm.value.coin2 ? searchForm.value.coin2 : '',
|
||||||
// page: pagination.value.currentPage,
|
page: 1,
|
||||||
// page_limit: pagination.value.pageSize
|
page_limit: 10000
|
||||||
// });
|
});
|
||||||
// if (code) {
|
if (code) {
|
||||||
// exportTableList = data.lists;
|
exportTableList = data.lists;
|
||||||
// const res = exportTableList.map(item => {
|
const res = exportTableList.map(item => {
|
||||||
// const arr = [];
|
const arr = [];
|
||||||
// tableLabel.value.forEach(column => {
|
tableLabel.value.forEach(column => {
|
||||||
// arr.push(item[column.prop as string]);
|
arr.push(item[column.prop as string]);
|
||||||
// });
|
});
|
||||||
// return arr;
|
return arr;
|
||||||
// });
|
});
|
||||||
// const titleList = [];
|
const titleList = [];
|
||||||
// tableLabel.value.forEach(column => {
|
tableLabel.value.forEach(column => {
|
||||||
// titleList.push(column.label);
|
titleList.push(column.label);
|
||||||
// });
|
});
|
||||||
// res.unshift(titleList);
|
res.unshift(titleList);
|
||||||
// const workSheet = utils.aoa_to_sheet(res);
|
const workSheet = utils.aoa_to_sheet(res);
|
||||||
// const workBook = utils.book_new();
|
const workBook = utils.book_new();
|
||||||
// utils.book_append_sheet(workBook, workSheet, "数据报表");
|
utils.book_append_sheet(workBook, workSheet, "数据报表");
|
||||||
// writeFile(workBook, `礼物记录列表统计${formData.start_time} - ${formData.end_time}.xlsx`);
|
writeFile(workBook, `想会员列表统计${formData.start_time} - ${formData.end_time}.xlsx`);
|
||||||
// message("导出成功", {
|
message("导出成功", {
|
||||||
// type: "success"
|
type: "success"
|
||||||
// });
|
});
|
||||||
// done()
|
done()
|
||||||
// } else {
|
} else {
|
||||||
// message("获取数据失败,请重试!", {
|
message("获取数据失败,请重试!", {
|
||||||
// type: "error"
|
type: "error"
|
||||||
// });
|
});
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// FormRef.validate(valid => {
|
FormRef.validate(valid => {
|
||||||
// if (valid) {
|
if (valid) {
|
||||||
// if (curData.time && curData.time.length) {
|
if (curData.time && curData.time.length) {
|
||||||
// exportData({ start_time: curData.time[0] || '', end_time: curData.time[1] || '' })
|
exportData({ start_time: curData.time[0] || '', end_time: curData.time[1] || '' })
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
// 找回账号
|
// 找回账号
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
|
|||||||
proxyReq.method = 'OPTIONS';
|
proxyReq.method = 'OPTIONS';
|
||||||
// https://test.vespa.qxyushen.top
|
// https://test.vespa.qxyushen.top
|
||||||
// 'http://yushenggliht.qxyushen.top'
|
// 'http://yushenggliht.qxyushen.top'
|
||||||
// res.setHeader('Access-Control-Allow-Origin', 'http://yushenggliht.qxyushen.top');
|
res.setHeader('Access-Control-Allow-Origin', 'http://yushenggliht.qxyushen.top');
|
||||||
res.setHeader('Access-Control-Allow-Origin', 'https://test.vespa.qxyushen.top');
|
// res.setHeader('Access-Control-Allow-Origin', 'https://test.vespa.qxyushen.top');
|
||||||
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
|
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
|
||||||
res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization');
|
res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization');
|
||||||
res.end();
|
res.end();
|
||||||
|
|||||||
Reference in New Issue
Block a user