update:
1. fix log module
This commit is contained in:
@@ -6,6 +6,7 @@ export default {
|
|||||||
searchMenuSpan: 6,
|
searchMenuSpan: 6,
|
||||||
border: true,
|
border: true,
|
||||||
index: true,
|
index: true,
|
||||||
|
menu: false,
|
||||||
viewBtn: true,
|
viewBtn: true,
|
||||||
delBtn: false,
|
delBtn: false,
|
||||||
addBtn: false,
|
addBtn: false,
|
||||||
@@ -49,18 +50,21 @@ export default {
|
|||||||
label: '业务类型',
|
label: '业务类型',
|
||||||
prop: 'sourceType',
|
prop: 'sourceType',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '来源id',
|
label: '来源id',
|
||||||
prop: 'sourceId',
|
prop: 'sourceId',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
overHidden: true,
|
overHidden: true,
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '来源详情',
|
label: '来源详情',
|
||||||
prop: 'sourceDetail',
|
prop: 'sourceDetail',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
overHidden: true,
|
overHidden: true,
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '收入/支出',
|
label: '收入/支出',
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export default {
|
|||||||
addBtn: false,
|
addBtn: false,
|
||||||
editBtn: false,
|
editBtn: false,
|
||||||
selection: false,
|
selection: false,
|
||||||
|
menu: false,
|
||||||
dialogClickModal: false,
|
dialogClickModal: false,
|
||||||
column: [
|
column: [
|
||||||
{
|
{
|
||||||
@@ -56,18 +57,21 @@ export default {
|
|||||||
label: '业务类型',
|
label: '业务类型',
|
||||||
prop: 'sourceType',
|
prop: 'sourceType',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '来源id',
|
label: '来源id',
|
||||||
prop: 'sourceId',
|
prop: 'sourceId',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
overHidden: true,
|
overHidden: true,
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '来源详情',
|
label: '来源详情',
|
||||||
prop: 'sourceDetail',
|
prop: 'sourceDetail',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
overHidden: true,
|
overHidden: true,
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '收入/支出',
|
label: '收入/支出',
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ export default {
|
|||||||
searchMenuSpan: 6,
|
searchMenuSpan: 6,
|
||||||
border: true,
|
border: true,
|
||||||
index: true,
|
index: true,
|
||||||
|
menu: false,
|
||||||
viewBtn: true,
|
viewBtn: true,
|
||||||
delBtn: false,
|
delBtn: false,
|
||||||
addBtn: false,
|
addBtn: false,
|
||||||
@@ -49,6 +50,7 @@ export default {
|
|||||||
label: '业务类型',
|
label: '业务类型',
|
||||||
prop: 'sourceType',
|
prop: 'sourceType',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -56,12 +58,14 @@ export default {
|
|||||||
prop: 'sourceId',
|
prop: 'sourceId',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
overHidden: true,
|
overHidden: true,
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '来源详情',
|
label: '来源详情',
|
||||||
prop: 'sourceDetail',
|
prop: 'sourceDetail',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
overHidden: true,
|
overHidden: true,
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '收入/支出',
|
label: '收入/支出',
|
||||||
|
|||||||
@@ -56,18 +56,21 @@ export default {
|
|||||||
label: '业务类型',
|
label: '业务类型',
|
||||||
prop: 'sourceType',
|
prop: 'sourceType',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '来源id',
|
label: '来源id',
|
||||||
prop: 'sourceId',
|
prop: 'sourceId',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
overHidden: true,
|
overHidden: true,
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '来源详情',
|
label: '来源详情',
|
||||||
prop: 'sourceDetail',
|
prop: 'sourceDetail',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
overHidden: true,
|
overHidden: true,
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '收入/支出',
|
label: '收入/支出',
|
||||||
|
|||||||
@@ -1,25 +1,25 @@
|
|||||||
<template>
|
<template>
|
||||||
<basic-container>
|
<basic-container>
|
||||||
<avue-crud
|
<avue-crud
|
||||||
:option="option"
|
:option="option"
|
||||||
v-model:search="search"
|
v-model:search="search"
|
||||||
v-model:page="page"
|
v-model:page="page"
|
||||||
v-model="form"
|
v-model="form"
|
||||||
:table-loading="loading"
|
:table-loading="loading"
|
||||||
:data="data"
|
:data="data"
|
||||||
:permission="permissionList"
|
:permission="permissionList"
|
||||||
:before-open="beforeOpen"
|
:before-open="beforeOpen"
|
||||||
ref="crud"
|
ref="crud"
|
||||||
@row-update="rowUpdate"
|
@row-update="rowUpdate"
|
||||||
@row-save="rowSave"
|
@row-save="rowSave"
|
||||||
@row-del="rowDel"
|
@row-del="rowDel"
|
||||||
@search-change="searchChange"
|
@search-change="searchChange"
|
||||||
@search-reset="searchReset"
|
@search-reset="searchReset"
|
||||||
@selection-change="selectionChange"
|
@selection-change="selectionChange"
|
||||||
@current-change="currentChange"
|
@current-change="currentChange"
|
||||||
@size-change="sizeChange"
|
@size-change="sizeChange"
|
||||||
@refresh-change="refreshChange"
|
@refresh-change="refreshChange"
|
||||||
@on-load="onLoad"
|
@on-load="onLoad"
|
||||||
>
|
>
|
||||||
<template #menu-left>
|
<template #menu-left>
|
||||||
<!-- <el-button type="danger"-->
|
<!-- <el-button type="danger"-->
|
||||||
@@ -45,11 +45,11 @@
|
|||||||
|
|
||||||
<el-dialog :title="`导出用户积分流水`" append-to-body v-model="exportFlowBox" width="1000px">
|
<el-dialog :title="`导出用户积分流水`" append-to-body v-model="exportFlowBox" width="1000px">
|
||||||
<avue-form
|
<avue-form
|
||||||
:option="exportFlowOption"
|
:option="exportFlowOption"
|
||||||
:data="exportFlowData"
|
:data="exportFlowData"
|
||||||
v-model="exportFlowFrom"
|
v-model="exportFlowFrom"
|
||||||
@submit="exportFlowSubmit"
|
@submit="exportFlowSubmit"
|
||||||
ref="stateCrud"
|
ref="stateCrud"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
@@ -57,13 +57,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getList, getDetail, add, update, remove } from '@/api/common/commonUserPointLog';
|
import {getList, getDetail, add, update, remove} from '@/api/common/commonUserPointLog';
|
||||||
import option from '@/option/common/commonUserPointLog';
|
import option from '@/option/common/commonUserPointLog';
|
||||||
import { mapGetters } from 'vuex';
|
import {mapGetters} from 'vuex';
|
||||||
import { exportBlob } from '@/api/common';
|
import {exportBlob} from '@/api/common';
|
||||||
import { getToken } from '@/utils/auth';
|
import {getToken} from '@/utils/auth';
|
||||||
import { downloadXls } from '@/utils/util';
|
import {downloadXls} from '@/utils/util';
|
||||||
import { dateNow } from '@/utils/date';
|
import {dateNow} from '@/utils/date';
|
||||||
import NProgress from 'nprogress';
|
import NProgress from 'nprogress';
|
||||||
import 'nprogress/nprogress.css';
|
import 'nprogress/nprogress.css';
|
||||||
|
|
||||||
@@ -91,14 +91,6 @@ export default {
|
|||||||
menu: false,
|
menu: false,
|
||||||
labelWidth: 200,
|
labelWidth: 200,
|
||||||
column: [
|
column: [
|
||||||
{
|
|
||||||
label: '账号',
|
|
||||||
prop: 'account',
|
|
||||||
type: 'input',
|
|
||||||
rules: [
|
|
||||||
{ required: true, message: "账号不能为空", trigger: "blur" }
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: "时间范围",
|
label: "时间范围",
|
||||||
prop: "searchDateRange", // 关键点:这个prop将绑定一个数组
|
prop: "searchDateRange", // 关键点:这个prop将绑定一个数组
|
||||||
@@ -107,9 +99,15 @@ export default {
|
|||||||
valueFormat: 'YYYY-MM-DD hh:mm:ss',
|
valueFormat: 'YYYY-MM-DD hh:mm:ss',
|
||||||
searchRange: true,
|
searchRange: true,
|
||||||
rules: [
|
rules: [
|
||||||
{ required: true, message: "时间范围不能为空", trigger: "blur" }
|
{required: true, message: "时间范围不能为空", trigger: "blur"}
|
||||||
],
|
],
|
||||||
|
span: 24
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '账号',
|
||||||
|
prop: 'account',
|
||||||
|
type: 'input',
|
||||||
|
span: 24
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -139,34 +137,34 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
rowSave(row, done, loading) {
|
rowSave(row, done, loading) {
|
||||||
add(row).then(
|
add(row).then(
|
||||||
() => {
|
() => {
|
||||||
this.onLoad(this.page);
|
this.onLoad(this.page);
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: '操作成功!',
|
message: '操作成功!',
|
||||||
});
|
});
|
||||||
done();
|
done();
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
loading();
|
loading();
|
||||||
window.console.log(error);
|
window.console.log(error);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
rowUpdate(row, index, done, loading) {
|
rowUpdate(row, index, done, loading) {
|
||||||
update(row).then(
|
update(row).then(
|
||||||
() => {
|
() => {
|
||||||
this.onLoad(this.page);
|
this.onLoad(this.page);
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: '操作成功!',
|
message: '操作成功!',
|
||||||
});
|
});
|
||||||
done();
|
done();
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
loading();
|
loading();
|
||||||
console.log(error);
|
console.log(error);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
rowDel(row) {
|
rowDel(row) {
|
||||||
@@ -175,16 +173,16 @@ export default {
|
|||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
return remove(row.id);
|
return remove(row.id);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.onLoad(this.page);
|
this.onLoad(this.page);
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: '操作成功!',
|
message: '操作成功!',
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
},
|
},
|
||||||
handleDelete() {
|
handleDelete() {
|
||||||
if (this.selectionList.length === 0) {
|
if (this.selectionList.length === 0) {
|
||||||
@@ -196,21 +194,21 @@ export default {
|
|||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
return remove(this.ids);
|
return remove(this.ids);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.onLoad(this.page);
|
this.onLoad(this.page);
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: '操作成功!',
|
message: '操作成功!',
|
||||||
|
});
|
||||||
|
this.$refs.crud.toggleSelection();
|
||||||
});
|
});
|
||||||
this.$refs.crud.toggleSelection();
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
handleExport() {
|
handleExport() {
|
||||||
let downloadUrl = `//common/user-point-log/commonUserPointLog/export-commonUserPointLog?${
|
let downloadUrl = `/common/user-point-log/commonUserPointLog/export-commonUserPointLog?${
|
||||||
this.website.tokenHeader
|
this.website.tokenHeader
|
||||||
}=${getToken()}`;
|
}=${getToken()}`;
|
||||||
const {} = this.query;
|
const {} = this.query;
|
||||||
let values = {};
|
let values = {};
|
||||||
@@ -278,16 +276,16 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
openExportBox(){
|
openExportBox() {
|
||||||
this.exportFlowBox = true;
|
this.exportFlowBox = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
exportFlowSubmit(form, done){
|
exportFlowSubmit(form, done) {
|
||||||
NProgress.start();
|
NProgress.start();
|
||||||
exportBlob(
|
exportBlob(
|
||||||
`/common/user-point-log/exportFlowToExcel?${
|
`/common/user-point-log/export?${
|
||||||
this.website.tokenHeader
|
this.website.tokenHeader
|
||||||
}=${getToken()}&account=${form.account}&searchDateRange=${form.searchDateRange}`
|
}=${getToken()}&account=${form.account}&searchDateRange=${form.searchDateRange}`
|
||||||
).then(res => {
|
).then(res => {
|
||||||
downloadXls(res.data, `用户积分流水表${this.$dayjs().format('YYYY-MM-DD')}.xlsx`);
|
downloadXls(res.data, `用户积分流水表${this.$dayjs().format('YYYY-MM-DD')}.xlsx`);
|
||||||
NProgress.done();
|
NProgress.done();
|
||||||
|
|||||||
@@ -91,14 +91,6 @@ export default {
|
|||||||
menu: false,
|
menu: false,
|
||||||
labelWidth: 200,
|
labelWidth: 200,
|
||||||
column: [
|
column: [
|
||||||
{
|
|
||||||
label: '账号',
|
|
||||||
prop: 'account',
|
|
||||||
type: 'input',
|
|
||||||
rules: [
|
|
||||||
{ required: true, message: "账号不能为空", trigger: "blur" }
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: "时间范围",
|
label: "时间范围",
|
||||||
prop: "searchDateRange", // 关键点:这个prop将绑定一个数组
|
prop: "searchDateRange", // 关键点:这个prop将绑定一个数组
|
||||||
@@ -109,7 +101,13 @@ export default {
|
|||||||
rules: [
|
rules: [
|
||||||
{ required: true, message: "时间范围不能为空", trigger: "blur" }
|
{ required: true, message: "时间范围不能为空", trigger: "blur" }
|
||||||
],
|
],
|
||||||
|
span: 24
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '账号',
|
||||||
|
prop: 'account',
|
||||||
|
type: 'input',
|
||||||
|
span: 24
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -285,7 +283,7 @@ export default {
|
|||||||
exportFlowSubmit(form, done){
|
exportFlowSubmit(form, done){
|
||||||
NProgress.start();
|
NProgress.start();
|
||||||
exportBlob(
|
exportBlob(
|
||||||
`/market/benefit-point-log/exportFlowToExcel?${
|
`/market/benefit-point-log/export?${
|
||||||
this.website.tokenHeader
|
this.website.tokenHeader
|
||||||
}=${getToken()}&account=${form.account}&searchDateRange=${form.searchDateRange}`
|
}=${getToken()}&account=${form.account}&searchDateRange=${form.searchDateRange}`
|
||||||
).then(res => {
|
).then(res => {
|
||||||
|
|||||||
@@ -90,14 +90,6 @@ export default {
|
|||||||
menu: false,
|
menu: false,
|
||||||
labelWidth: 200,
|
labelWidth: 200,
|
||||||
column: [
|
column: [
|
||||||
{
|
|
||||||
label: '账户',
|
|
||||||
prop: 'account',
|
|
||||||
type: 'input',
|
|
||||||
rules: [
|
|
||||||
{ required: true, message: "账号不能为空", trigger: "blur" }
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: "时间范围",
|
label: "时间范围",
|
||||||
prop: "searchDateRange", // 关键点:这个prop将绑定一个数组
|
prop: "searchDateRange", // 关键点:这个prop将绑定一个数组
|
||||||
@@ -106,9 +98,15 @@ export default {
|
|||||||
valueFormat: 'YYYY-MM-DD hh:mm:ss',
|
valueFormat: 'YYYY-MM-DD hh:mm:ss',
|
||||||
searchRange: true,
|
searchRange: true,
|
||||||
rules: [
|
rules: [
|
||||||
{ required: true, message: "时间范围不能为空", trigger: "blur" }
|
{required: true, message: "时间范围不能为空", trigger: "blur"}
|
||||||
],
|
],
|
||||||
|
span: 24
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '账号',
|
||||||
|
prop: 'account',
|
||||||
|
type: 'input',
|
||||||
|
span: 24
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -208,7 +206,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleExport() {
|
handleExport() {
|
||||||
let downloadUrl = `//common/cash-coupon-log/commonCashCouponLog/export-commonCashCouponLog?${
|
let downloadUrl = `/common/cash-coupon-log/commonCashCouponLog/export?${
|
||||||
this.website.tokenHeader
|
this.website.tokenHeader
|
||||||
}=${getToken()}`;
|
}=${getToken()}`;
|
||||||
const {} = this.query;
|
const {} = this.query;
|
||||||
@@ -285,7 +283,7 @@ export default {
|
|||||||
|
|
||||||
NProgress.start();
|
NProgress.start();
|
||||||
exportBlob(
|
exportBlob(
|
||||||
`/market/cash-coupon-log/exportFlowToExcel?${
|
`/market/cash-coupon-log/export?${
|
||||||
this.website.tokenHeader
|
this.website.tokenHeader
|
||||||
}=${getToken()}&account=${form.account}&searchDateRange=${form.searchDateRange}`
|
}=${getToken()}&account=${form.account}&searchDateRange=${form.searchDateRange}`
|
||||||
).then(res => {
|
).then(res => {
|
||||||
|
|||||||
@@ -91,14 +91,6 @@ export default {
|
|||||||
menu: false,
|
menu: false,
|
||||||
labelWidth: 200,
|
labelWidth: 200,
|
||||||
column: [
|
column: [
|
||||||
{
|
|
||||||
label: '账号',
|
|
||||||
prop: 'account',
|
|
||||||
type: 'input',
|
|
||||||
rules: [
|
|
||||||
{ required: true, message: "账号不能为空", trigger: "blur" }
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: "时间范围",
|
label: "时间范围",
|
||||||
prop: "searchDateRange", // 关键点:这个prop将绑定一个数组
|
prop: "searchDateRange", // 关键点:这个prop将绑定一个数组
|
||||||
@@ -107,9 +99,15 @@ export default {
|
|||||||
valueFormat: 'YYYY-MM-DD hh:mm:ss',
|
valueFormat: 'YYYY-MM-DD hh:mm:ss',
|
||||||
searchRange: true,
|
searchRange: true,
|
||||||
rules: [
|
rules: [
|
||||||
{ required: true, message: "时间范围不能为空", trigger: "blur" }
|
{required: true, message: "时间范围不能为空", trigger: "blur"}
|
||||||
],
|
],
|
||||||
|
span: 24
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '账号',
|
||||||
|
prop: 'account',
|
||||||
|
type: 'input',
|
||||||
|
span: 24
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -285,7 +283,7 @@ export default {
|
|||||||
exportFlowSubmit(form, done){
|
exportFlowSubmit(form, done){
|
||||||
NProgress.start();
|
NProgress.start();
|
||||||
exportBlob(
|
exportBlob(
|
||||||
`/market/benefit-commission-log/exportFlowToExcel?${
|
`/market/benefit-commission-log/export?${
|
||||||
this.website.tokenHeader
|
this.website.tokenHeader
|
||||||
}=${getToken()}&account=${form.account}&searchDateRange=${form.searchDateRange}`
|
}=${getToken()}&account=${form.account}&searchDateRange=${form.searchDateRange}`
|
||||||
).then(res => {
|
).then(res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user