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: '收入/支出',
|
||||||
|
|||||||
@@ -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
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -209,7 +207,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
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;
|
||||||
@@ -278,14 +276,14 @@ 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 => {
|
||||||
|
|||||||
@@ -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