佣金账户, 后台界面显示优化

This commit is contained in:
2026-03-01 16:09:32 +08:00
parent b19d99d201
commit b6fcebabde
32 changed files with 1738 additions and 1554 deletions

View File

@@ -2,7 +2,7 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/advertising-log/list',
url: '/market-commission/advertising-log/page',
method: 'get',
params: {
...params,

View File

@@ -2,14 +2,14 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/agency-log/list',
url: '/market-commission/agency-log/page',
method: 'get',
params: {
...params,
current,
size,
}
})
},
});
}
export const getDetail = (id) => {

View File

@@ -2,14 +2,14 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/cocreator-log/list',
url: '/market-commission/cocreator-log/page',
method: 'get',
params: {
...params,
current,
size,
}
})
},
});
}
export const getDetail = (id) => {

View File

@@ -2,14 +2,14 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/direct-push-log/list',
url: '/market-commission/direct-push-log/page',
method: 'get',
params: {
...params,
current,
size,
}
})
},
});
}
export const getDetail = (id) => {

View File

@@ -2,14 +2,14 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/goods-cost-log/list',
url: '/market-commission/goods-cost-log/page',
method: 'get',
params: {
...params,
current,
size,
}
})
},
});
}
export const getDetail = (id) => {

View File

@@ -2,14 +2,14 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/operation-log/list',
url: '/market-commission/operation-log/page',
method: 'get',
params: {
...params,
current,
size,
}
})
},
});
}
export const getDetail = (id) => {

View File

@@ -2,14 +2,14 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/service-provider-log/list',
url: '/market-commission/service-provider-log/page',
method: 'get',
params: {
...params,
current,
size,
}
})
},
});
}
export const getDetail = (id) => {

View File

@@ -2,14 +2,14 @@ import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/market-commission/user-point-log/list',
url: '/market-commission/user-point-log/page',
method: 'get',
params: {
...params,
current,
size,
}
})
},
});
}
export const getDetail = (id) => {

View File

@@ -23,7 +23,7 @@ export default {
hide: true,
},
{
label: '用户账户',
label: '用户账号',
prop: 'account',
type: 'input',
search: true,

View File

@@ -30,7 +30,7 @@ export default {
},
{
label: '用户账户',
label: '用户账号',
prop: 'account',
type: 'input',
search: true,

View File

@@ -23,7 +23,7 @@ export default {
hide: true,
},
{
label: '用户账户',
label: '用户账号',
prop: 'account',
type: 'input',
search: true,

View File

@@ -30,7 +30,7 @@ export default {
},
{
label: '用户账户',
label: '用户账号',
prop: 'account',
type: 'input',
search: true,

View File

@@ -23,7 +23,7 @@ export default {
hide: true,
},
{
label: '用户账户',
label: '用户账号',
prop: 'account',
type: 'input',
search: true,

View File

@@ -30,7 +30,7 @@ export default {
},
{
label: '用户账户',
label: '用户账号',
prop: 'account',
type: 'input',
search: true,

View File

@@ -27,7 +27,15 @@ export default {
prop: 'accountId',
type: 'input',
overHidden: true,
hide: true,
},
{
label: '佣金账户',
prop: 'commissionAccount',
type: 'input',
overHidden: true,
},
{
label: '变动金额',
prop: 'amount',
@@ -48,6 +56,7 @@ export default {
prop: 'sourceId',
type: 'input',
overHidden: true,
hide: true,
},
{
label: '来源详情',

View File

@@ -27,12 +27,29 @@ export default {
prop: 'accountId',
type: 'input',
overHidden: true,
hide: true,
},
{
label: '佣金账户',
prop: 'commissionAccount',
type: 'input',
overHidden: true,
},
{
label: '用户id',
prop: 'userId',
type: 'input',
overHidden: true,
hide: true,
},
{
label: '用户账号',
prop: 'userAccount',
type: 'input',
overHidden: true,
search: true,
},
{
label: '变动金额',
@@ -54,6 +71,7 @@ export default {
prop: 'sourceId',
type: 'input',
overHidden: true,
hide: true,
},
{
label: '来源详情',

View File

@@ -27,7 +27,15 @@ export default {
prop: 'accountId',
type: 'input',
overHidden: true,
hide: true,
},
{
label: '佣金账户',
prop: 'commissionAccount',
type: 'input',
overHidden: true,
},
{
label: '变动金额',
prop: 'amount',
@@ -48,6 +56,7 @@ export default {
prop: 'sourceId',
type: 'input',
overHidden: true,
hide: true,
},
{
label: '来源详情',

View File

@@ -27,12 +27,29 @@ export default {
prop: 'accountId',
type: 'input',
overHidden: true,
hide: true,
},
{
label: '佣金账户',
prop: 'commissionAccount',
type: 'input',
overHidden: true,
},
{
label: '用户id',
prop: 'userId',
type: 'input',
overHidden: true,
hide: true,
},
{
label: '用户账号',
prop: 'userAccount',
type: 'input',
overHidden: true,
search: true,
},
{
label: '变动金额',
@@ -54,6 +71,7 @@ export default {
prop: 'sourceId',
type: 'input',
overHidden: true,
hide: true,
},
{
label: '来源详情',

View File

@@ -26,14 +26,17 @@ export default {
label: '账户id',
prop: 'accountId',
type: 'input',
hide: true,
overHidden: true,
},
{
label: '用户id',
prop: 'userId',
label: '佣金账户',
prop: 'commissionAccount',
type: 'input',
overHidden: true,
},
{
label: '金额',
prop: 'amount',
@@ -50,10 +53,11 @@ export default {
type: 'input',
},
{
label: '来源id',
label: '订单号',
prop: 'sourceId',
type: 'input',
overHidden: true,
search: true,
},
{
label: '来源详情',

View File

@@ -27,7 +27,15 @@ export default {
prop: 'accountId',
type: 'input',
overHidden: true,
hide: true,
},
{
label: '佣金账户',
prop: 'commissionAccount',
type: 'input',
overHidden: true,
},
{
label: '变动金额',
prop: 'amount',
@@ -61,6 +69,7 @@ export default {
prop: 'sourceId',
type: 'input',
overHidden: true,
hide: true,
},
{
label: '来源详情',

View File

@@ -28,13 +28,31 @@ export default {
type: 'input',
width: 120,
overHidden: true,
hide: true,
},
{
label: '佣金账户',
prop: 'commissionAccount',
type: 'input',
overHidden: true,
width: 120,
},
{
label: '用户id',
prop: 'userId',
type: 'input',
width: 120,
overHidden: true,
hide: true,
},
{
label: '用户账号',
prop: 'userAccount',
type: 'input',
overHidden: true,
width: 120,
search: true,
},
{
label: '变动金额',
@@ -52,6 +70,7 @@ export default {
label: '业务类型',
prop: 'sourceType',
type: 'input',
width: 120,
},
{
label: '来源id',
@@ -59,6 +78,7 @@ export default {
type: 'input',
width: 120,
overHidden: true,
hide: true,
},
{
label: '来源详情',

View File

@@ -27,12 +27,29 @@ export default {
prop: 'accountId',
type: 'input',
overHidden: true,
hide: true,
},
{
label: '佣金账户',
prop: 'commissionAccount',
type: 'input',
overHidden: true,
},
{
label: '用户id',
prop: 'userId',
type: 'input',
overHidden: true,
hide: true,
},
{
label: '用户账号',
prop: 'userAccount',
type: 'input',
overHidden: true,
search: true,
},
{
label: '变动金额',
@@ -54,6 +71,7 @@ export default {
prop: 'sourceId',
type: 'input',
overHidden: true,
hide: true,
},
{
label: '来源详情',

View File

@@ -24,7 +24,7 @@ export default {
},
{
label: '用户账户',
label: '用户账号',
prop: 'account',
type: 'input',
search: true,

View File

@@ -30,7 +30,7 @@ export default {
},
{
label: '用户账户',
label: '用户账号',
prop: 'account',
type: 'input',
search: true,

View File

@@ -1,6 +1,7 @@
<template>
<basic-container>
<avue-crud :option="option"
<avue-crud
:option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
@@ -18,7 +19,8 @@
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
@on-load="onLoad"
>
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
@@ -37,13 +39,19 @@
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionAdvertisingLog";
import option from "@/option/market/marketCommissionAdvertisingLog";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
import {
getList,
getDetail,
add,
update,
remove,
} from '@/api/market/marketCommissionAdvertisingLog';
import option from '@/option/market/marketCommissionAdvertisingLog';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import {downloadXls} from "@/utils/util";
import {dateNow} from "@/utils/date";
import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
@@ -57,21 +65,21 @@
page: {
pageSize: 10,
currentPage: 1,
total: 0
total: 0,
},
selectionList: [],
option: option,
data: []
data: [],
};
},
computed: {
...mapGetters(["permission"]),
...mapGetters(['permission']),
permissionList() {
return {
addBtn: this.validData(this.permission.marketCommissionAdvertisingLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionAdvertisingLog_view, false),
delBtn: this.validData(this.permission.marketCommissionAdvertisingLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionAdvertisingLog_edit, false)
editBtn: this.validData(this.permission.marketCommissionAdvertisingLog_edit, false),
};
},
ids() {
@@ -79,41 +87,47 @@
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
}
return ids.join(',');
},
},
methods: {
rowSave(row, done, loading) {
add(row).then(() => {
add(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
done();
}, error => {
},
error => {
loading();
window.console.log(error);
});
}
);
},
rowUpdate(row, index, done, loading) {
update(row).then(() => {
update(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
done();
}, error => {
},
error => {
loading();
console.log(error);
});
}
);
},
rowDel(row) {
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(row.id);
@@ -121,20 +135,20 @@
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(this.ids);
@@ -142,32 +156,32 @@
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//market-commission/advertising-log/marketCommissionAdvertisingLog/export-marketCommissionAdvertisingLog?${this.website.tokenHeader}=${getToken()}`;
const {
} = this.query;
let values = {
};
this.$confirm("是否导出数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
let downloadUrl = `//market-commission/advertising-log/marketCommissionAdvertisingLog/export-marketCommissionAdvertisingLog?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
let values = {};
this.$confirm('是否导出数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `5%广告补贴佣金流水表${dateNow()}.xlsx`);
NProgress.done();
})
});
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
@@ -203,10 +217,10 @@
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
const {} = this.query;
let values = {
};
getList(page.currentPage, page.pageSize, values).then(res => {
@@ -216,10 +230,9 @@
this.loading = false;
this.selectionClear();
});
}
}
},
},
};
</script>
<style>
</style>
<style></style>

View File

@@ -1,6 +1,7 @@
<template>
<basic-container>
<avue-crud :option="option"
<avue-crud
:option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
@@ -18,7 +19,8 @@
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
@on-load="onLoad"
>
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
@@ -37,13 +39,13 @@
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionAgencyLog";
import option from "@/option/market/marketCommissionAgencyLog";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
import { getList, getDetail, add, update, remove } from '@/api/market/marketCommissionAgencyLog';
import option from '@/option/market/marketCommissionAgencyLog';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import {downloadXls} from "@/utils/util";
import {dateNow} from "@/utils/date";
import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
@@ -57,21 +59,21 @@
page: {
pageSize: 10,
currentPage: 1,
total: 0
total: 0,
},
selectionList: [],
option: option,
data: []
data: [],
};
},
computed: {
...mapGetters(["permission"]),
...mapGetters(['permission']),
permissionList() {
return {
addBtn: this.validData(this.permission.marketCommissionAgencyLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionAgencyLog_view, false),
delBtn: this.validData(this.permission.marketCommissionAgencyLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionAgencyLog_edit, false)
editBtn: this.validData(this.permission.marketCommissionAgencyLog_edit, false),
};
},
ids() {
@@ -79,41 +81,47 @@
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
}
return ids.join(',');
},
},
methods: {
rowSave(row, done, loading) {
add(row).then(() => {
add(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
done();
}, error => {
},
error => {
loading();
window.console.log(error);
});
}
);
},
rowUpdate(row, index, done, loading) {
update(row).then(() => {
update(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
done();
}, error => {
},
error => {
loading();
console.log(error);
});
}
);
},
rowDel(row) {
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(row.id);
@@ -121,20 +129,20 @@
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(this.ids);
@@ -142,32 +150,32 @@
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//market-commission/agencyl-og/marketCommissionAgencyLog/export-marketCommissionAgencyLog?${this.website.tokenHeader}=${getToken()}`;
const {
} = this.query;
let values = {
};
this.$confirm("是否导出数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
let downloadUrl = `//market-commission/agencyl-og/marketCommissionAgencyLog/export-marketCommissionAgencyLog?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
let values = {};
this.$confirm('是否导出数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `15%极差代理佣金流水表${dateNow()}.xlsx`);
NProgress.done();
})
});
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
@@ -203,10 +211,11 @@
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
const {} = this.query;
let values = {
userAccount : params.userAccount,
statisticalDate: params.statisticalDate,
};
getList(page.currentPage, page.pageSize, values).then(res => {
@@ -216,10 +225,9 @@
this.loading = false;
this.selectionClear();
});
}
}
},
},
};
</script>
<style>
</style>
<style></style>

View File

@@ -1,6 +1,7 @@
<template>
<basic-container>
<avue-crud :option="option"
<avue-crud
:option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
@@ -18,7 +19,8 @@
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
@on-load="onLoad"
>
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
@@ -37,13 +39,13 @@
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionCoCreatorLog";
import option from "@/option/market/marketCommissionCoCreatorLog";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
import { getList, getDetail, add, update, remove } from '@/api/market/marketCommissionCoCreatorLog';
import option from '@/option/market/marketCommissionCoCreatorLog';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import {downloadXls} from "@/utils/util";
import {dateNow} from "@/utils/date";
import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
@@ -57,21 +59,21 @@
page: {
pageSize: 10,
currentPage: 1,
total: 0
total: 0,
},
selectionList: [],
option: option,
data: []
data: [],
};
},
computed: {
...mapGetters(["permission"]),
...mapGetters(['permission']),
permissionList() {
return {
addBtn: this.validData(this.permission.marketCommissionCoCreatorLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionCoCreatorLog_view, false),
delBtn: this.validData(this.permission.marketCommissionCoCreatorLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionCoCreatorLog_edit, false)
editBtn: this.validData(this.permission.marketCommissionCoCreatorLog_edit, false),
};
},
ids() {
@@ -79,41 +81,47 @@
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
}
return ids.join(',');
},
},
methods: {
rowSave(row, done, loading) {
add(row).then(() => {
add(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
done();
}, error => {
},
error => {
loading();
window.console.log(error);
});
}
);
},
rowUpdate(row, index, done, loading) {
update(row).then(() => {
update(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
done();
}, error => {
},
error => {
loading();
console.log(error);
});
}
);
},
rowDel(row) {
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(row.id);
@@ -121,20 +129,20 @@
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(this.ids);
@@ -142,32 +150,32 @@
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//market-commission/cocreator-log/marketCommissionCoCreatorLog/export-marketCommissionCoCreatorLog?${this.website.tokenHeader}=${getToken()}`;
const {
} = this.query;
let values = {
};
this.$confirm("是否导出数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
let downloadUrl = `//market-commission/cocreator-log/marketCommissionCoCreatorLog/export-marketCommissionCoCreatorLog?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
let values = {};
this.$confirm('是否导出数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `5%联创佣金流水表${dateNow()}.xlsx`);
NProgress.done();
})
});
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
@@ -203,10 +211,10 @@
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
const {} = this.query;
let values = {
statisticalDate: params.statisticalDate,
};
getList(page.currentPage, page.pageSize, values).then(res => {
@@ -216,10 +224,9 @@
this.loading = false;
this.selectionClear();
});
}
}
},
},
};
</script>
<style>
</style>
<style></style>

View File

@@ -1,6 +1,7 @@
<template>
<basic-container>
<avue-crud :option="option"
<avue-crud
:option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
@@ -18,7 +19,8 @@
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
@on-load="onLoad"
>
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
@@ -37,13 +39,19 @@
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionDirectPushLog";
import option from "@/option/market/marketCommissionDirectPushLog";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
import {
getList,
getDetail,
add,
update,
remove,
} from '@/api/market/marketCommissionDirectPushLog';
import option from '@/option/market/marketCommissionDirectPushLog';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import {downloadXls} from "@/utils/util";
import {dateNow} from "@/utils/date";
import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
@@ -57,21 +65,21 @@
page: {
pageSize: 10,
currentPage: 1,
total: 0
total: 0,
},
selectionList: [],
option: option,
data: []
data: [],
};
},
computed: {
...mapGetters(["permission"]),
...mapGetters(['permission']),
permissionList() {
return {
addBtn: this.validData(this.permission.marketCommissionDirectPushLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionDirectPushLog_view, false),
delBtn: this.validData(this.permission.marketCommissionDirectPushLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionDirectPushLog_edit, false)
editBtn: this.validData(this.permission.marketCommissionDirectPushLog_edit, false),
};
},
ids() {
@@ -79,41 +87,47 @@
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
}
return ids.join(',');
},
},
methods: {
rowSave(row, done, loading) {
add(row).then(() => {
add(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
done();
}, error => {
},
error => {
loading();
window.console.log(error);
});
}
);
},
rowUpdate(row, index, done, loading) {
update(row).then(() => {
update(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
done();
}, error => {
},
error => {
loading();
console.log(error);
});
}
);
},
rowDel(row) {
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(row.id);
@@ -121,20 +135,20 @@
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(this.ids);
@@ -142,32 +156,32 @@
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//market-commission/direct-push-log/marketCommissionDirectPushLog/export-marketCommissionDirectPushLog?${this.website.tokenHeader}=${getToken()}`;
const {
} = this.query;
let values = {
};
this.$confirm("是否导出数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
let downloadUrl = `//market-commission/direct-push-log/marketCommissionDirectPushLog/export-marketCommissionDirectPushLog?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
let values = {};
this.$confirm('是否导出数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `10%直推人佣金流水表${dateNow()}.xlsx`);
NProgress.done();
})
});
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
@@ -203,10 +217,11 @@
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
const {} = this.query;
let values = {
userAccount: params.userAccount,
statisticalDate: params.statisticalDate,
};
getList(page.currentPage, page.pageSize, values).then(res => {
@@ -216,10 +231,9 @@
this.loading = false;
this.selectionClear();
});
}
}
},
},
};
</script>
<style>
</style>
<style></style>

View File

@@ -1,6 +1,7 @@
<template>
<basic-container>
<avue-crud :option="option"
<avue-crud
:option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
@@ -18,7 +19,8 @@
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
@on-load="onLoad"
>
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
@@ -37,13 +39,13 @@
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionGoodsCostLog";
import option from "@/option/market/marketCommissionGoodsCostLog";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
import { getList, getDetail, add, update, remove } from '@/api/market/marketCommissionGoodsCostLog';
import option from '@/option/market/marketCommissionGoodsCostLog';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import {downloadXls} from "@/utils/util";
import {dateNow} from "@/utils/date";
import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
@@ -57,21 +59,21 @@
page: {
pageSize: 10,
currentPage: 1,
total: 0
total: 0,
},
selectionList: [],
option: option,
data: []
data: [],
};
},
computed: {
...mapGetters(["permission"]),
...mapGetters(['permission']),
permissionList() {
return {
addBtn: this.validData(this.permission.marketCommissionGoodsCostLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionGoodsCostLog_view, false),
delBtn: this.validData(this.permission.marketCommissionGoodsCostLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionGoodsCostLog_edit, false)
editBtn: this.validData(this.permission.marketCommissionGoodsCostLog_edit, false),
};
},
ids() {
@@ -79,41 +81,47 @@
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
}
return ids.join(',');
},
},
methods: {
rowSave(row, done, loading) {
add(row).then(() => {
add(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
done();
}, error => {
},
error => {
loading();
window.console.log(error);
});
}
);
},
rowUpdate(row, index, done, loading) {
update(row).then(() => {
update(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
done();
}, error => {
},
error => {
loading();
console.log(error);
});
}
);
},
rowDel(row) {
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(row.id);
@@ -121,20 +129,20 @@
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(this.ids);
@@ -142,32 +150,32 @@
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//market-commission/goods-cost-log/marketCommissionGoodsCostLog/export-marketCommissionGoodsCostLog?${this.website.tokenHeader}=${getToken()}`;
const {
} = this.query;
let values = {
};
this.$confirm("是否导出数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
let downloadUrl = `//market-commission/goods-cost-log/marketCommissionGoodsCostLog/export-marketCommissionGoodsCostLog?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
let values = {};
this.$confirm('是否导出数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `25%商品成本佣金流水表${dateNow()}.xlsx`);
NProgress.done();
})
});
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
@@ -203,10 +211,11 @@
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
const {} = this.query;
let values = {
sourceId: params.sourceId,
statisticalDate: params.statisticalDate,
};
getList(page.currentPage, page.pageSize, values).then(res => {
@@ -216,10 +225,9 @@
this.loading = false;
this.selectionClear();
});
}
}
},
},
};
</script>
<style>
</style>
<style></style>

View File

@@ -1,6 +1,7 @@
<template>
<basic-container>
<avue-crud :option="option"
<avue-crud
:option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
@@ -18,7 +19,8 @@
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
@on-load="onLoad"
>
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
@@ -37,13 +39,13 @@
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionOperationLog";
import option from "@/option/market/marketCommissionOperationLog";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
import { getList, getDetail, add, update, remove } from '@/api/market/marketCommissionOperationLog';
import option from '@/option/market/marketCommissionOperationLog';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import {downloadXls} from "@/utils/util";
import {dateNow} from "@/utils/date";
import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
@@ -57,21 +59,21 @@
page: {
pageSize: 10,
currentPage: 1,
total: 0
total: 0,
},
selectionList: [],
option: option,
data: []
data: [],
};
},
computed: {
...mapGetters(["permission"]),
...mapGetters(['permission']),
permissionList() {
return {
addBtn: this.validData(this.permission.marketCommissionOperationLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionOperationLog_view, false),
delBtn: this.validData(this.permission.marketCommissionOperationLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionOperationLog_edit, false)
editBtn: this.validData(this.permission.marketCommissionOperationLog_edit, false),
};
},
ids() {
@@ -79,41 +81,47 @@
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
}
return ids.join(',');
},
},
methods: {
rowSave(row, done, loading) {
add(row).then(() => {
add(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
done();
}, error => {
},
error => {
loading();
window.console.log(error);
});
}
);
},
rowUpdate(row, index, done, loading) {
update(row).then(() => {
update(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
done();
}, error => {
},
error => {
loading();
console.log(error);
});
}
);
},
rowDel(row) {
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(row.id);
@@ -121,20 +129,20 @@
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(this.ids);
@@ -142,32 +150,32 @@
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//market-commission/operation-log/marketCommissionOperationLog/export-marketCommissionOperationLog?${this.website.tokenHeader}=${getToken()}`;
const {
} = this.query;
let values = {
};
this.$confirm("是否导出数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
let downloadUrl = `//market-commission/operation-log/marketCommissionOperationLog/export-marketCommissionOperationLog?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
let values = {};
this.$confirm('是否导出数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `5%运营佣金流水表${dateNow()}.xlsx`);
NProgress.done();
})
});
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
@@ -203,10 +211,10 @@
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
const {} = this.query;
let values = {
statisticalDate: params.statisticalDate,
};
getList(page.currentPage, page.pageSize, values).then(res => {
@@ -216,10 +224,9 @@
this.loading = false;
this.selectionClear();
});
}
}
},
},
};
</script>
<style>
</style>
<style></style>

View File

@@ -1,6 +1,7 @@
<template>
<basic-container>
<avue-crud :option="option"
<avue-crud
:option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
@@ -18,7 +19,8 @@
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
@on-load="onLoad"
>
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
@@ -37,13 +39,19 @@
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionServiceProviderLog";
import option from "@/option/market/marketCommissionServiceProviderLog";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
import {
getList,
getDetail,
add,
update,
remove,
} from '@/api/market/marketCommissionServiceProviderLog';
import option from '@/option/market/marketCommissionServiceProviderLog';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import {downloadXls} from "@/utils/util";
import {dateNow} from "@/utils/date";
import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
@@ -57,21 +65,21 @@
page: {
pageSize: 10,
currentPage: 1,
total: 0
total: 0,
},
selectionList: [],
option: option,
data: []
data: [],
};
},
computed: {
...mapGetters(["permission"]),
...mapGetters(['permission']),
permissionList() {
return {
addBtn: this.validData(this.permission.marketCommissionServiceProviderLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionServiceProviderLog_view, false),
delBtn: this.validData(this.permission.marketCommissionServiceProviderLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionServiceProviderLog_edit, false)
editBtn: this.validData(this.permission.marketCommissionServiceProviderLog_edit, false),
};
},
ids() {
@@ -79,41 +87,47 @@
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
}
return ids.join(',');
},
},
methods: {
rowSave(row, done, loading) {
add(row).then(() => {
add(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
done();
}, error => {
},
error => {
loading();
window.console.log(error);
});
}
);
},
rowUpdate(row, index, done, loading) {
update(row).then(() => {
update(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
done();
}, error => {
},
error => {
loading();
console.log(error);
});
}
);
},
rowDel(row) {
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(row.id);
@@ -121,20 +135,20 @@
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(this.ids);
@@ -142,32 +156,32 @@
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//market-commission/service-provider-log/marketCommissionServiceProviderLog/export-marketCommissionServiceProviderLog?${this.website.tokenHeader}=${getToken()}`;
const {
} = this.query;
let values = {
};
this.$confirm("是否导出数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
let downloadUrl = `//market-commission/service-provider-log/marketCommissionServiceProviderLog/export-marketCommissionServiceProviderLog?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
let values = {};
this.$confirm('是否导出数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `5%服务商佣金流水表${dateNow()}.xlsx`);
NProgress.done();
})
});
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
@@ -203,10 +217,11 @@
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
const {} = this.query;
let values = {
userAccount: params.userAccount,
statisticalDate: params.statisticalDate,
};
getList(page.currentPage, page.pageSize, values).then(res => {
@@ -216,10 +231,9 @@
this.loading = false;
this.selectionClear();
});
}
}
},
},
};
</script>
<style>
</style>
<style></style>

View File

@@ -1,6 +1,7 @@
<template>
<basic-container>
<avue-crud :option="option"
<avue-crud
:option="option"
v-model:search="search"
v-model:page="page"
v-model="form"
@@ -18,7 +19,8 @@
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
@on-load="onLoad"
>
<template #menu-left>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
@@ -37,13 +39,13 @@
</template>
<script>
import {getList, getDetail, add, update, remove} from "@/api/market/marketCommissionUserPointLog";
import option from "@/option/market/marketCommissionUserPointLog";
import {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
import { getList, getDetail, add, update, remove } from '@/api/market/marketCommissionUserPointLog';
import option from '@/option/market/marketCommissionUserPointLog';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import {downloadXls} from "@/utils/util";
import {dateNow} from "@/utils/date";
import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
@@ -57,21 +59,21 @@
page: {
pageSize: 10,
currentPage: 1,
total: 0
total: 0,
},
selectionList: [],
option: option,
data: []
data: [],
};
},
computed: {
...mapGetters(["permission"]),
...mapGetters(['permission']),
permissionList() {
return {
addBtn: this.validData(this.permission.marketCommissionUserPointLog_add, false),
viewBtn: this.validData(this.permission.marketCommissionUserPointLog_view, false),
delBtn: this.validData(this.permission.marketCommissionUserPointLog_delete, false),
editBtn: this.validData(this.permission.marketCommissionUserPointLog_edit, false)
editBtn: this.validData(this.permission.marketCommissionUserPointLog_edit, false),
};
},
ids() {
@@ -79,41 +81,47 @@
this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
}
return ids.join(',');
},
},
methods: {
rowSave(row, done, loading) {
add(row).then(() => {
add(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
done();
}, error => {
},
error => {
loading();
window.console.log(error);
});
}
);
},
rowUpdate(row, index, done, loading) {
update(row).then(() => {
update(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
done();
}, error => {
},
error => {
loading();
console.log(error);
});
}
);
},
rowDel(row) {
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(row.id);
@@ -121,20 +129,20 @@
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
});
},
handleDelete() {
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
this.$message.warning('请选择至少一条数据');
return;
}
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
return remove(this.ids);
@@ -142,32 +150,32 @@
.then(() => {
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
type: 'success',
message: '操作成功!',
});
this.$refs.crud.toggleSelection();
});
},
handleExport() {
let downloadUrl = `//market-commission/user-point-log/marketCommissionUserPointLog/export-marketCommissionUserPointLog?${this.website.tokenHeader}=${getToken()}`;
const {
} = this.query;
let values = {
};
this.$confirm("是否导出数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
let downloadUrl = `//market-commission/user-point-log/marketCommissionUserPointLog/export-marketCommissionUserPointLog?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
let values = {};
this.$confirm('是否导出数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
NProgress.start();
exportBlob(downloadUrl, values).then(res => {
downloadXls(res.data, `30%购买人获取用户积分佣金流水表${dateNow()}.xlsx`);
NProgress.done();
})
});
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
@@ -203,10 +211,11 @@
onLoad(page, params = {}) {
this.loading = true;
const {
} = this.query;
const {} = this.query;
let values = {
userAccount: params.userAccount,
statisticalDate: params.statisticalDate,
};
getList(page.currentPage, page.pageSize, values).then(res => {
@@ -216,10 +225,9 @@
this.loading = false;
this.selectionClear();
});
}
}
},
},
};
</script>
<style>
</style>
<style></style>