table不随屏幕改变尺寸问题
parent
087ffe230d
commit
0df88e08e4
|
@ -1,263 +1,329 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form
|
||||||
<Row @keydown.enter.native="handleSearch">
|
ref="searchForm"
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
:model="searchForm"
|
||||||
<Form-item label="会员名称" prop="memberName">
|
inline
|
||||||
<Input
|
:label-width="70"
|
||||||
type="text"
|
class="search-form"
|
||||||
v-model="searchForm.memberName"
|
>
|
||||||
placeholder="请输入会员名称"
|
<Form-item label="会员名称" prop="memberName">
|
||||||
clearable
|
<Input
|
||||||
style="width: 200px"
|
type="text"
|
||||||
/>
|
v-model="searchForm.memberName"
|
||||||
</Form-item>
|
placeholder="请输入会员名称"
|
||||||
<Form-item label="状态">
|
clearable
|
||||||
<Select v-model="searchForm.distributionStatus" style="width:200px">
|
style="width: 200px"
|
||||||
<Option v-for="item in distributionStatusList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
/>
|
||||||
</Select>
|
</Form-item>
|
||||||
</Form-item>
|
<Form-item label="状态">
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
<Select
|
||||||
</Form>
|
v-model="searchForm.distributionStatus"
|
||||||
</Row>
|
style="width: 200px"
|
||||||
<Row class="padding-row">
|
>
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
<Option
|
||||||
</Row>
|
v-for="item in distributionStatusList"
|
||||||
<Row type="flex" justify="end" class="page">
|
:value="item.value"
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]" size="small" show-total show-elevator show-sizer></Page>
|
:key="item.value"
|
||||||
</Row>
|
>{{ item.label }}</Option
|
||||||
</Card>
|
>
|
||||||
</Col>
|
</Select>
|
||||||
</Row>
|
</Form-item>
|
||||||
|
<Button
|
||||||
</div>
|
@click="handleSearch"
|
||||||
|
type="primary"
|
||||||
|
icon="ios-search"
|
||||||
|
class="search-btn"
|
||||||
|
>搜索</Button
|
||||||
|
>
|
||||||
|
</Form>
|
||||||
|
</Row>
|
||||||
|
<Table
|
||||||
|
:loading="loading"
|
||||||
|
border
|
||||||
|
:columns="columns"
|
||||||
|
:data="data"
|
||||||
|
ref="table"
|
||||||
|
sortable="custom"
|
||||||
|
@on-sort-change="changeSort"
|
||||||
|
@on-selection-change="changeSelect"
|
||||||
|
></Table>
|
||||||
|
<Row type="flex" justify="end" class="page">
|
||||||
|
<Page
|
||||||
|
:current="searchForm.pageNumber"
|
||||||
|
:total="total"
|
||||||
|
:page-size="searchForm.pageSize"
|
||||||
|
@on-change="changePage"
|
||||||
|
@on-page-size-change="changePageSize"
|
||||||
|
:page-size-opts="[10, 20, 50]"
|
||||||
|
size="small"
|
||||||
|
show-total
|
||||||
|
show-elevator
|
||||||
|
show-sizer
|
||||||
|
></Page>
|
||||||
|
</Row>
|
||||||
|
</Card>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
getDistributionListData,
|
getDistributionListData,
|
||||||
retreatDistribution,
|
retreatDistribution,
|
||||||
resumeDistribution,
|
resumeDistribution,
|
||||||
auditDistribution,
|
auditDistribution,
|
||||||
} from "@/api/distribution";
|
} from "@/api/distribution";
|
||||||
import {distributionStatusList} from './dataJson.js';
|
import { distributionStatusList } from "./dataJson.js";
|
||||||
export default {
|
export default {
|
||||||
name: "distribution",
|
name: "distribution",
|
||||||
components: {
|
components: {},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
distributionStatusList, // 分销状态
|
||||||
|
openSearch: true, // 显示搜索
|
||||||
|
loading: true, // 表单加载状态
|
||||||
|
searchForm: {
|
||||||
|
// 搜索框初始化对象
|
||||||
|
pageNumber: 1, // 当前页数
|
||||||
|
pageSize: 10, // 页面大小
|
||||||
|
},
|
||||||
|
selectList: [], // 多选数据
|
||||||
|
selectCount: 0, // 多选计数
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
title: "会员名称",
|
||||||
|
key: "memberName",
|
||||||
|
minWidth: 120,
|
||||||
|
tooltip: true,
|
||||||
},
|
},
|
||||||
data() {
|
{
|
||||||
return {
|
title: "推广单数",
|
||||||
distributionStatusList, // 分销状态
|
key: "orderNum",
|
||||||
openSearch: true, // 显示搜索
|
minWidth: 120,
|
||||||
loading: true, // 表单加载状态
|
width: 150,
|
||||||
searchForm: { // 搜索框初始化对象
|
|
||||||
pageNumber: 1, // 当前页数
|
|
||||||
pageSize: 10, // 页面大小
|
|
||||||
},
|
|
||||||
selectList: [], // 多选数据
|
|
||||||
selectCount: 0, // 多选计数
|
|
||||||
columns: [
|
|
||||||
{
|
|
||||||
title: "会员名称",
|
|
||||||
key: "memberName",
|
|
||||||
minWidth: 120,
|
|
||||||
tooltip: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "推广单数",
|
|
||||||
key: "orderNum",
|
|
||||||
minWidth: 120,
|
|
||||||
width: 150,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "分销金额",
|
|
||||||
key: "rebateTotal",
|
|
||||||
width: 150,
|
|
||||||
sortable: false,
|
|
||||||
render: (h, params) => {
|
|
||||||
return h('div', this.$options.filters.unitPrice(params.row.rebateTotal, '¥'))
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "可用金额",
|
|
||||||
key: "canRebate",
|
|
||||||
width: 150,
|
|
||||||
sortable: false,
|
|
||||||
render: (h, params) => {
|
|
||||||
return h('div', this.$options.filters.unitPrice(params.row.rebateTotal, '¥'))
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "冻结金额",
|
|
||||||
key: "commissionFrozen",
|
|
||||||
width: 150,
|
|
||||||
sortable: false,
|
|
||||||
render: (h, params) => {
|
|
||||||
return h('div', this.$options.filters.unitPrice(params.row.rebateTotal, '¥'))
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "状态",
|
|
||||||
key: "distributionStatus",
|
|
||||||
width: 150,
|
|
||||||
sortable: false,
|
|
||||||
render: (h, params) => {
|
|
||||||
if (params.row.distributionStatus == "PASS") {
|
|
||||||
return h( "Badge", {props: { status: "success",text: "审核通过" } })
|
|
||||||
} else if (params.row.distributionStatus == "APPLY") {
|
|
||||||
return h( "Badge", {props: { status: "processing",text: "申请中" } })
|
|
||||||
} else if (params.row.distributionStatus == "RETREAT") {
|
|
||||||
return h( "Badge", {props: { status: "warning",text: "已清退" } })
|
|
||||||
} else if (params.row.distributionStatus == "REFUSE") {
|
|
||||||
return h( "Badge", {props: { status: "error",text: "审核拒绝" } })
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "操作",
|
|
||||||
key: "action",
|
|
||||||
align: "center",
|
|
||||||
fixed: "right",
|
|
||||||
width: 140,
|
|
||||||
render: (h, params) => {
|
|
||||||
return h("div",{
|
|
||||||
style:{
|
|
||||||
display:'flex',
|
|
||||||
justifyContent:'center'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
[
|
|
||||||
h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style:{marginRight:'5px', display:params.row.distributionStatus!='RETREAT'?'block':'none'},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.retreat(params.row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"清退"
|
|
||||||
),
|
|
||||||
h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
type: "success",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style:{marginRight:'5px', display:params.row.distributionStatus=='RETREAT'?'block':'none'},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.resume(params.row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"恢复"
|
|
||||||
)
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
data: [], // 表单数据
|
|
||||||
total: 0 // 表单数据总数
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
methods: {
|
{
|
||||||
init() {
|
title: "分销金额",
|
||||||
this.getDataList();
|
key: "rebateTotal",
|
||||||
},
|
width: 150,
|
||||||
see(v) {
|
sortable: false,
|
||||||
this.$router.push({
|
render: (h, params) => {
|
||||||
name: "distributionOrder",
|
return h(
|
||||||
query: { id:v.memberId }
|
"div",
|
||||||
});
|
this.$options.filters.unitPrice(params.row.rebateTotal, "¥")
|
||||||
},
|
);
|
||||||
changePage(v) {
|
},
|
||||||
this.searchForm.pageNumber = v;
|
},
|
||||||
this.getDataList();
|
{
|
||||||
this.clearSelectAll();
|
title: "可用金额",
|
||||||
},
|
key: "canRebate",
|
||||||
changePageSize(v) {
|
width: 150,
|
||||||
this.searchForm.pageSize = v;
|
sortable: false,
|
||||||
this.getDataList();
|
render: (h, params) => {
|
||||||
},
|
return h(
|
||||||
handleSearch() {
|
"div",
|
||||||
this.searchForm.pageNumber = 1;
|
this.$options.filters.unitPrice(params.row.rebateTotal, "¥")
|
||||||
this.searchForm.pageSize = 10;
|
);
|
||||||
this.getDataList();
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
clearSelectAll() { // 清空
|
title: "冻结金额",
|
||||||
this.$refs.table.selectAll(false);
|
key: "commissionFrozen",
|
||||||
},
|
width: 150,
|
||||||
changeSelect(e) {
|
sortable: false,
|
||||||
this.selectList = e;
|
render: (h, params) => {
|
||||||
this.selectCount = e.length;
|
return h(
|
||||||
},
|
"div",
|
||||||
|
this.$options.filters.unitPrice(params.row.rebateTotal, "¥")
|
||||||
getDataList() {
|
);
|
||||||
this.loading = true;
|
},
|
||||||
this.searchForm.status = "PASS";
|
},
|
||||||
// 带多条件搜索参数获取表单数据 请自行修改接口
|
{
|
||||||
getDistributionListData(this.searchForm).then(res => {
|
title: "状态",
|
||||||
this.loading = false;
|
key: "distributionStatus",
|
||||||
if (res.success) {
|
width: 150,
|
||||||
this.data = res.result.records;
|
sortable: false,
|
||||||
this.total = res.result.total;
|
render: (h, params) => {
|
||||||
}
|
if (params.row.distributionStatus == "PASS") {
|
||||||
});
|
return h("Badge", {
|
||||||
},
|
props: { status: "success", text: "审核通过" },
|
||||||
// 清退分销商
|
});
|
||||||
retreat(v) {
|
} else if (params.row.distributionStatus == "APPLY") {
|
||||||
this.$Modal.confirm({
|
return h("Badge", {
|
||||||
title: "提示",
|
props: { status: "processing", text: "申请中" },
|
||||||
// 记得确认修改此处
|
});
|
||||||
content: "您确认要清退 " + v.memberName + " ?",
|
} else if (params.row.distributionStatus == "RETREAT") {
|
||||||
loading: true,
|
return h("Badge", {
|
||||||
onOk: () => {
|
props: { status: "warning", text: "已清退" },
|
||||||
// 删除
|
});
|
||||||
retreatDistribution(v.id).then(res => {
|
} else if (params.row.distributionStatus == "REFUSE") {
|
||||||
this.$Modal.remove();
|
return h("Badge", {
|
||||||
if (res.success) {
|
props: { status: "error", text: "审核拒绝" },
|
||||||
this.$Message.success("操作成功");
|
});
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 恢复分销商
|
|
||||||
resume(v){
|
|
||||||
this.$Modal.confirm({
|
|
||||||
title: '提示',
|
|
||||||
// 记得确认修改此处
|
|
||||||
content: "您确认要恢复 " + v.memberName + " ?",
|
|
||||||
loading: true,
|
|
||||||
onOk: () => {
|
|
||||||
// 删除
|
|
||||||
resumeDistribution(v.id).then(res => {
|
|
||||||
this.$Modal.remove();
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
{
|
||||||
this.init();
|
title: "操作",
|
||||||
}
|
key: "action",
|
||||||
|
align: "center",
|
||||||
|
fixed: "right",
|
||||||
|
width: 140,
|
||||||
|
render: (h, params) => {
|
||||||
|
return h(
|
||||||
|
"div",
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
display: "flex",
|
||||||
|
justifyContent: "center",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
[
|
||||||
|
h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
type: "error",
|
||||||
|
size: "small",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
marginRight: "5px",
|
||||||
|
display:
|
||||||
|
params.row.distributionStatus != "RETREAT"
|
||||||
|
? "block"
|
||||||
|
: "none",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.retreat(params.row);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"清退"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
type: "success",
|
||||||
|
size: "small",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
marginRight: "5px",
|
||||||
|
display:
|
||||||
|
params.row.distributionStatus == "RETREAT"
|
||||||
|
? "block"
|
||||||
|
: "none",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.resume(params.row);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"恢复"
|
||||||
|
),
|
||||||
|
]
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
data: [], // 表单数据
|
||||||
|
total: 0, // 表单数据总数
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init() {
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
see(v) {
|
||||||
|
this.$router.push({
|
||||||
|
name: "distributionOrder",
|
||||||
|
query: { id: v.memberId },
|
||||||
|
});
|
||||||
|
},
|
||||||
|
changePage(v) {
|
||||||
|
this.searchForm.pageNumber = v;
|
||||||
|
this.getDataList();
|
||||||
|
this.clearSelectAll();
|
||||||
|
},
|
||||||
|
changePageSize(v) {
|
||||||
|
this.searchForm.pageSize = v;
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
handleSearch() {
|
||||||
|
this.searchForm.pageNumber = 1;
|
||||||
|
this.searchForm.pageSize = 10;
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
|
||||||
|
clearSelectAll() {
|
||||||
|
// 清空
|
||||||
|
this.$refs.table.selectAll(false);
|
||||||
|
},
|
||||||
|
changeSelect(e) {
|
||||||
|
this.selectList = e;
|
||||||
|
this.selectCount = e.length;
|
||||||
|
},
|
||||||
|
|
||||||
|
getDataList() {
|
||||||
|
this.loading = true;
|
||||||
|
this.searchForm.status = "PASS";
|
||||||
|
// 带多条件搜索参数获取表单数据 请自行修改接口
|
||||||
|
getDistributionListData(this.searchForm).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.success) {
|
||||||
|
this.data = res.result.records;
|
||||||
|
this.total = res.result.total;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 清退分销商
|
||||||
|
retreat(v) {
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "提示",
|
||||||
|
// 记得确认修改此处
|
||||||
|
content: "您确认要清退 " + v.memberName + " ?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
// 删除
|
||||||
|
retreatDistribution(v.id).then((res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 恢复分销商
|
||||||
|
resume(v) {
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "提示",
|
||||||
|
// 记得确认修改此处
|
||||||
|
content: "您确认要恢复 " + v.memberName + " ?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
// 删除
|
||||||
|
resumeDistribution(v.id).then((res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.init();
|
||||||
|
},
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "@/styles/table-common.scss";
|
@import "@/styles/table-common.scss";
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,217 +1,240 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form
|
||||||
<Row @keydown.enter.native="handleSearch">
|
ref="searchForm"
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
:model="searchForm"
|
||||||
<Form-item label="会员名称" prop="memberName">
|
inline
|
||||||
<Input
|
:label-width="70"
|
||||||
type="text"
|
class="search-form"
|
||||||
v-model="searchForm.memberName"
|
>
|
||||||
placeholder="请输入会员名称"
|
<Form-item label="会员名称" prop="memberName">
|
||||||
clearable
|
<Input
|
||||||
style="width: 200px"
|
type="text"
|
||||||
/>
|
v-model="searchForm.memberName"
|
||||||
</Form-item>
|
placeholder="请输入会员名称"
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
clearable
|
||||||
</Form>
|
style="width: 200px"
|
||||||
</Row>
|
/>
|
||||||
<Row style="margin-top: 10px">
|
</Form-item>
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom"
|
<Button
|
||||||
@on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
@click="handleSearch"
|
||||||
</Row>
|
type="primary"
|
||||||
<Row type="flex" justify="end" class="page">
|
icon="ios-search"
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize"
|
class="search-btn"
|
||||||
@on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]"
|
>搜索</Button
|
||||||
size="small" show-total show-elevator show-sizer></Page>
|
>
|
||||||
</Row>
|
</Form>
|
||||||
</Card>
|
</Row>
|
||||||
</Col>
|
<Table
|
||||||
</Row>
|
class="mt_10"
|
||||||
</div>
|
:loading="loading"
|
||||||
|
border
|
||||||
|
:columns="columns"
|
||||||
|
:data="data"
|
||||||
|
ref="table"
|
||||||
|
sortable="custom"
|
||||||
|
@on-sort-change="changeSort"
|
||||||
|
@on-selection-change="changeSelect"
|
||||||
|
></Table>
|
||||||
|
<Row type="flex" justify="end" class="page">
|
||||||
|
<Page
|
||||||
|
:current="searchForm.pageNumber"
|
||||||
|
:total="total"
|
||||||
|
:page-size="searchForm.pageSize"
|
||||||
|
@on-change="changePage"
|
||||||
|
@on-page-size-change="changePageSize"
|
||||||
|
:page-size-opts="[10, 20, 50]"
|
||||||
|
size="small"
|
||||||
|
show-total
|
||||||
|
show-elevator
|
||||||
|
show-sizer
|
||||||
|
></Page>
|
||||||
|
</Row>
|
||||||
|
</Card>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import { getDistributionListData, auditDistribution } from "@/api/distribution";
|
||||||
getDistributionListData,
|
|
||||||
auditDistribution
|
|
||||||
} from "@/api/distribution";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "distributionApply",
|
name: "distributionApply",
|
||||||
components: {},
|
components: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: true, // 表单加载状态
|
loading: true, // 表单加载状态
|
||||||
searchForm: { // 搜索框初始化对象
|
searchForm: {
|
||||||
pageNumber: 1, // 当前页数
|
// 搜索框初始化对象
|
||||||
pageSize: 10, // 页面大小
|
pageNumber: 1, // 当前页数
|
||||||
sort: "createTime", // 默认排序字段
|
pageSize: 10, // 页面大小
|
||||||
order: "desc", // 默认排序方式
|
sort: "createTime", // 默认排序字段
|
||||||
startDate: "", // 起始时间
|
order: "desc", // 默认排序方式
|
||||||
endDate: "" // 终止时间
|
startDate: "", // 起始时间
|
||||||
},
|
endDate: "", // 终止时间
|
||||||
form: { // 添加或编辑表单对象初始化数据
|
},
|
||||||
memberName: "",
|
form: {
|
||||||
},
|
// 添加或编辑表单对象初始化数据
|
||||||
// 表单验证规则
|
memberName: "",
|
||||||
submitLoading: false, // 添加或编辑提交状态
|
},
|
||||||
selectList: [], // 多选数据
|
// 表单验证规则
|
||||||
selectCount: 0, // 多选计数
|
submitLoading: false, // 添加或编辑提交状态
|
||||||
columns: [
|
selectList: [], // 多选数据
|
||||||
{
|
selectCount: 0, // 多选计数
|
||||||
title: "会员名称",
|
columns: [
|
||||||
key: "memberName",
|
{
|
||||||
minWidth: 150,
|
title: "会员名称",
|
||||||
tooltip: true,
|
key: "memberName",
|
||||||
},
|
minWidth: 150,
|
||||||
{
|
tooltip: true,
|
||||||
title: "会员姓名",
|
},
|
||||||
key: "name",
|
{
|
||||||
minWidth: 120,
|
title: "会员姓名",
|
||||||
|
key: "name",
|
||||||
|
minWidth: 120,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "提交时间",
|
||||||
|
key: "createTime",
|
||||||
|
minWidth: 150,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "操作",
|
||||||
|
key: "action",
|
||||||
|
align: "center",
|
||||||
|
fixed: "right",
|
||||||
|
width: 200,
|
||||||
|
render: (h, params) => {
|
||||||
|
return h("div", [
|
||||||
|
h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
type: "success",
|
||||||
|
size: "small",
|
||||||
},
|
},
|
||||||
{
|
style: {
|
||||||
title: "提交时间",
|
marginRight: "5px",
|
||||||
key: "createTime",
|
},
|
||||||
minWidth: 150,
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.audit(params.row, "PASS");
|
||||||
},
|
},
|
||||||
{
|
},
|
||||||
title: "操作",
|
},
|
||||||
key: "action",
|
"通过"
|
||||||
align: "center",
|
),
|
||||||
fixed: "right",
|
h(
|
||||||
width: 200,
|
"Button",
|
||||||
render: (h, params) => {
|
{
|
||||||
return h("div", [
|
props: {
|
||||||
h(
|
type: "error",
|
||||||
"Button",
|
size: "small",
|
||||||
{
|
},
|
||||||
props: {
|
on: {
|
||||||
type: "success",
|
click: () => {
|
||||||
size: "small",
|
this.audit(params.row, "REFUSE");
|
||||||
},
|
},
|
||||||
style: {
|
},
|
||||||
marginRight: "5px"
|
},
|
||||||
},
|
"拒绝"
|
||||||
on: {
|
),
|
||||||
click: () => {
|
]);
|
||||||
this.audit(params.row, "PASS");
|
},
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"通过"
|
|
||||||
),
|
|
||||||
h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.audit(params.row, "REFUSE");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"拒绝"
|
|
||||||
)
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
data: [], // 表单数据
|
|
||||||
total: 0 // 表单数据总数
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
methods: {
|
],
|
||||||
init() {
|
data: [], // 表单数据
|
||||||
this.getDataList();
|
total: 0, // 表单数据总数
|
||||||
},
|
|
||||||
changePage(v) {
|
|
||||||
this.searchForm.pageNumber = v;
|
|
||||||
this.getDataList();
|
|
||||||
this.clearSelectAll();
|
|
||||||
},
|
|
||||||
changePageSize(v) {
|
|
||||||
this.searchForm.pageSize = v;
|
|
||||||
this.getDataList();
|
|
||||||
},
|
|
||||||
handleSearch() {
|
|
||||||
this.searchForm.pageNumber = 1;
|
|
||||||
this.searchForm.pageSize = 10;
|
|
||||||
this.getDataList();
|
|
||||||
},
|
|
||||||
changeSort(e) {
|
|
||||||
this.searchForm.sort = e.key;
|
|
||||||
this.searchForm.order = e.order;
|
|
||||||
if (e.order === "normal") {
|
|
||||||
this.searchForm.order = "";
|
|
||||||
}
|
|
||||||
this.getDataList();
|
|
||||||
},
|
|
||||||
clearSelectAll() {
|
|
||||||
this.$refs.table.selectAll(false);
|
|
||||||
},
|
|
||||||
changeSelect(e) {
|
|
||||||
this.selectList = e;
|
|
||||||
this.selectCount = e.length;
|
|
||||||
},
|
|
||||||
selectDateRange(v) {
|
|
||||||
if (v) {
|
|
||||||
this.searchForm.startDate = v[0];
|
|
||||||
this.searchForm.endDate = v[1];
|
|
||||||
}
|
|
||||||
},
|
|
||||||
getDataList() {
|
|
||||||
this.loading = true;
|
|
||||||
this.searchForm.distributionStatus = "APPLY";
|
|
||||||
// 带多条件搜索参数获取表单数据 请自行修改接口
|
|
||||||
getDistributionListData(this.searchForm).then(res => {
|
|
||||||
this.loading = false;
|
|
||||||
if (res.success) {
|
|
||||||
this.data = res.result.records;
|
|
||||||
this.total = res.result.total;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// 以下为模拟数据
|
|
||||||
//this.data = [
|
|
||||||
//];
|
|
||||||
this.total = this.data.length;
|
|
||||||
this.loading = false;
|
|
||||||
},
|
|
||||||
//审核
|
|
||||||
audit(v, status) {
|
|
||||||
let test = "拒绝"
|
|
||||||
if (status == "PASS") {
|
|
||||||
test = "通过"
|
|
||||||
}
|
|
||||||
let params = {
|
|
||||||
status : status
|
|
||||||
}
|
|
||||||
this.$Modal.confirm({
|
|
||||||
title: "确认" + test,
|
|
||||||
// 记得确认修改此处
|
|
||||||
content: "您确认要" + test + " " + v.memberName + " ?",
|
|
||||||
loading: true,
|
|
||||||
onOk: () => {
|
|
||||||
auditDistribution(v.id, params).then(res => {
|
|
||||||
this.$Modal.remove();
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.init();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init() {
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
changePage(v) {
|
||||||
|
this.searchForm.pageNumber = v;
|
||||||
|
this.getDataList();
|
||||||
|
this.clearSelectAll();
|
||||||
|
},
|
||||||
|
changePageSize(v) {
|
||||||
|
this.searchForm.pageSize = v;
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
handleSearch() {
|
||||||
|
this.searchForm.pageNumber = 1;
|
||||||
|
this.searchForm.pageSize = 10;
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
changeSort(e) {
|
||||||
|
this.searchForm.sort = e.key;
|
||||||
|
this.searchForm.order = e.order;
|
||||||
|
if (e.order === "normal") {
|
||||||
|
this.searchForm.order = "";
|
||||||
|
}
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
clearSelectAll() {
|
||||||
|
this.$refs.table.selectAll(false);
|
||||||
|
},
|
||||||
|
changeSelect(e) {
|
||||||
|
this.selectList = e;
|
||||||
|
this.selectCount = e.length;
|
||||||
|
},
|
||||||
|
selectDateRange(v) {
|
||||||
|
if (v) {
|
||||||
|
this.searchForm.startDate = v[0];
|
||||||
|
this.searchForm.endDate = v[1];
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getDataList() {
|
||||||
|
this.loading = true;
|
||||||
|
this.searchForm.distributionStatus = "APPLY";
|
||||||
|
// 带多条件搜索参数获取表单数据 请自行修改接口
|
||||||
|
getDistributionListData(this.searchForm).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.success) {
|
||||||
|
this.data = res.result.records;
|
||||||
|
this.total = res.result.total;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// 以下为模拟数据
|
||||||
|
//this.data = [
|
||||||
|
//];
|
||||||
|
this.total = this.data.length;
|
||||||
|
this.loading = false;
|
||||||
|
},
|
||||||
|
//审核
|
||||||
|
audit(v, status) {
|
||||||
|
let test = "拒绝";
|
||||||
|
if (status == "PASS") {
|
||||||
|
test = "通过";
|
||||||
|
}
|
||||||
|
let params = {
|
||||||
|
status: status,
|
||||||
|
};
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "确认" + test,
|
||||||
|
// 记得确认修改此处
|
||||||
|
content: "您确认要" + test + " " + v.memberName + " ?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
auditDistribution(v.id, params).then((res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.init();
|
||||||
|
},
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "@/styles/table-common.scss";
|
@import "@/styles/table-common.scss";
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,35 +1,29 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch" >
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch" >
|
<Input class="search-input" v-model="searchForm.memberName">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<span slot="prepend">会员名称</span>
|
||||||
<Input class="search-input" v-model="searchForm.memberName">
|
</Input>
|
||||||
<span slot="prepend">会员名称</span>
|
<Input class="search-input" v-model="searchForm.sn">
|
||||||
</Input>
|
<span slot="prepend">编号</span>
|
||||||
<Input class="search-input" v-model="searchForm.sn">
|
</Input>
|
||||||
<span slot="prepend">编号</span>
|
<Form-item label="状态" style="margin-left: -20px">
|
||||||
</Input>
|
<Select v-model="searchForm.distributionCashStatus" style="width:150px;">
|
||||||
<Form-item label="状态" style="margin-left: -20px">
|
<Option v-for="item in cashStatusList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
||||||
<Select v-model="searchForm.distributionCashStatus" style="width:150px;">
|
</Select>
|
||||||
<Option v-for="item in cashStatusList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
</Form-item>
|
||||||
</Select>
|
<Form-item style="margin-left:-35px;" class="br">
|
||||||
</Form-item>
|
<Button @click="handleSearch" type="primary" icon="ios-search">搜索</Button>
|
||||||
<Form-item style="margin-left:-35px;" class="br">
|
</Form-item>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search">搜索</Button>
|
</Form>
|
||||||
</Form-item>
|
</Row>
|
||||||
</Form>
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
||||||
</Row>
|
<Row type="flex" justify="end" class="page padding-row">
|
||||||
<Row class="padding-row">
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]" size="small" show-total show-elevator show-sizer></Page>
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
</Row>
|
||||||
</Row>
|
</Card>
|
||||||
<Row type="flex" justify="end" class="page padding-row">
|
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]" size="small" show-total show-elevator show-sizer></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Modal :title="modalTitle" v-model="modalVisible" :mask-closable='false' :width="500">
|
<Modal :title="modalTitle" v-model="modalVisible" :mask-closable='false' :width="500">
|
||||||
<Form ref="form" :model="form" :label-width="100" :rules="formValidate" >
|
<Form ref="form" :model="form" :label-width="100" :rules="formValidate" >
|
||||||
<FormItem label="编号">
|
<FormItem label="编号">
|
||||||
|
|
|
@ -1,48 +1,42 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form-item label="商品名称" prop="goodsName">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input
|
||||||
<Form-item label="商品名称" prop="goodsName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.goodsName"
|
||||||
type="text"
|
placeholder="请输入商品名称"
|
||||||
v-model="searchForm.goodsName"
|
clearable
|
||||||
placeholder="请输入商品名称"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item>
|
</Form>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
</Row>
|
||||||
</Form>
|
<Row class="operation" style="margin-top: 10px">
|
||||||
</Row>
|
<Button @click="delAll">批量删除</Button>
|
||||||
<Row class="operation" style="margin-top: 10px">
|
</Row>
|
||||||
<Button @click="delAll">批量删除</Button>
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
|
||||||
</Row>
|
<template slot="goodsName" slot-scope="{row}">
|
||||||
<Row>
|
<div>
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
|
<div class="div-zoom">
|
||||||
<template slot="goodsName" slot-scope="{row}">
|
<a @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
|
||||||
<div>
|
</div>
|
||||||
<div class="div-zoom">
|
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
||||||
<a @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
|
<div slot="content">
|
||||||
</div>
|
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
||||||
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
</div>
|
||||||
<div slot="content">
|
<img src="../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
||||||
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
</Poptip>
|
||||||
</div>
|
</div>
|
||||||
<img src="../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
</template>
|
||||||
</Poptip>
|
</Table>
|
||||||
</div>
|
<Row type="flex" justify="end" class="page">
|
||||||
</template>
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]" size="small" show-total show-elevator show-sizer></Page>
|
||||||
</Table>
|
</Row>
|
||||||
</Row>
|
</Card>
|
||||||
<Row type="flex" justify="end" class="page">
|
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]" size="small" show-total show-elevator show-sizer></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,54 +1,46 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row v-show="openSearch" @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row v-show="openSearch" @keydown.enter.native="handleSearch">
|
<Form-item label="订单编号" prop="orderSn">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input
|
||||||
<Form-item label="订单编号" prop="orderSn">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.orderSn"
|
||||||
type="text"
|
placeholder="请输入订单编号"
|
||||||
v-model="searchForm.orderSn"
|
clearable
|
||||||
placeholder="请输入订单编号"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="分销商" prop="distributionName">
|
||||||
</Form-item>
|
<Input
|
||||||
<Form-item label="分销商" prop="distributionName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.distributionName"
|
||||||
type="text"
|
placeholder="请输入分销商名称"
|
||||||
v-model="searchForm.distributionName"
|
clearable
|
||||||
placeholder="请输入分销商名称"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="店铺名称">
|
||||||
</Form-item>
|
<Select v-model="searchForm.shopId" placeholder="请选择" @on-query-change="searchChange" filterable
|
||||||
<Form-item label="店铺名称">
|
clearable style="width: 150px">
|
||||||
<Select v-model="searchForm.shopId" placeholder="请选择" @on-query-change="searchChange" filterable
|
<Option v-for="item in shopList" :value="item.id" :key="item.id">{{ item.storeName }}</Option>
|
||||||
clearable style="width: 150px">
|
</Select>
|
||||||
<Option v-for="item in shopList" :value="item.id" :key="item.id">{{ item.storeName }}</Option>
|
</Form-item>
|
||||||
</Select>
|
<Form-item label="订单时间">
|
||||||
</Form-item>
|
<DatePicker type="daterange" v-model="timeRange" format="yyyy-MM-dd" placeholder="选择时间"
|
||||||
<Form-item label="订单时间">
|
style="width: 210px"></DatePicker>
|
||||||
<DatePicker type="daterange" v-model="timeRange" format="yyyy-MM-dd" placeholder="选择时间"
|
</Form-item>
|
||||||
style="width: 210px"></DatePicker>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item>
|
</Form>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
</Row>
|
||||||
</Form>
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom"></Table>
|
||||||
</Row>
|
<Row type="flex" justify="end" class="page">
|
||||||
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize"
|
||||||
<Row class="padding-row">
|
@on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]"
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom"></Table>
|
size="small" show-total show-elevator show-sizer></Page>
|
||||||
</Row>
|
</Row>
|
||||||
<Row type="flex" justify="end" class="page">
|
</Card>
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize"
|
|
||||||
@on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]"
|
|
||||||
size="small" show-total show-elevator show-sizer></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,43 +1,37 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch"> </Row>
|
||||||
<Card>
|
<Row class="operation">
|
||||||
<Row @keydown.enter.native="handleSearch"> </Row>
|
<Button @click="add" type="primary" >添加</Button>
|
||||||
<Row class="operation">
|
|
||||||
<Button @click="add" type="primary" >添加</Button>
|
|
||||||
|
|
||||||
<Button @click="delAll">批量删除</Button>
|
<Button @click="delAll">批量删除</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
></Table>
|
||||||
></Table>
|
<Row type="flex" justify="end" class="page">
|
||||||
</Row>
|
<Page
|
||||||
<Row type="flex" justify="end" class="page">
|
:current="searchForm.pageNumber"
|
||||||
<Page
|
:total="total"
|
||||||
:current="searchForm.pageNumber"
|
:page-size="searchForm.pageSize"
|
||||||
:total="total"
|
@on-change="changePage"
|
||||||
:page-size="searchForm.pageSize"
|
@on-page-size-change="changePageSize"
|
||||||
@on-change="changePage"
|
:page-size-opts="[10, 20, 50]"
|
||||||
@on-page-size-change="changePageSize"
|
size="small"
|
||||||
:page-size-opts="[10, 20, 50]"
|
show-total
|
||||||
size="small"
|
show-elevator
|
||||||
show-total
|
show-sizer
|
||||||
show-elevator
|
></Page>
|
||||||
show-sizer
|
</Row>
|
||||||
></Page>
|
</Card>
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Modal
|
<Modal
|
||||||
:title="modalTitle"
|
:title="modalTitle"
|
||||||
v-model="modalVisible"
|
v-model="modalVisible"
|
||||||
|
|
|
@ -70,7 +70,6 @@
|
||||||
<Tabs v-model="orderStatus" @on-click="handleClickType">
|
<Tabs v-model="orderStatus" @on-click="handleClickType">
|
||||||
<TabPane label="行业订单数量" name="NUM">
|
<TabPane label="行业订单数量" name="NUM">
|
||||||
<Table :columns="columns" :data="data"></Table>
|
<Table :columns="columns" :data="data"></Table>
|
||||||
|
|
||||||
</TabPane>
|
</TabPane>
|
||||||
<TabPane label="行业订单金额" name="PRICE">
|
<TabPane label="行业订单金额" name="PRICE">
|
||||||
<Table :columns="columns" :data="data"></Table>
|
<Table :columns="columns" :data="data"></Table>
|
||||||
|
|
|
@ -1,100 +1,94 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form
|
||||||
<Row @keydown.enter.native="handleSearch">
|
ref="searchForm"
|
||||||
<Form
|
:model="searchForm"
|
||||||
ref="searchForm"
|
inline
|
||||||
:model="searchForm"
|
:label-width="70"
|
||||||
inline
|
class="search-form"
|
||||||
:label-width="70"
|
>
|
||||||
class="search-form"
|
<Form-item label="商品名称" prop="goodsName">
|
||||||
>
|
<Input
|
||||||
<Form-item label="商品名称" prop="goodsName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.goodsName"
|
||||||
type="text"
|
placeholder="请输入商品名称"
|
||||||
v-model="searchForm.goodsName"
|
clearable
|
||||||
placeholder="请输入商品名称"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="商品编号" prop="sn">
|
||||||
</Form-item>
|
<Input
|
||||||
<Form-item label="商品编号" prop="sn">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.sn"
|
||||||
type="text"
|
placeholder="请输入商品编号"
|
||||||
v-model="searchForm.sn"
|
clearable
|
||||||
placeholder="请输入商品编号"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="状态" prop="status">
|
||||||
</Form-item>
|
<Select
|
||||||
<Form-item label="状态" prop="status">
|
v-model="searchForm.marketEnable"
|
||||||
<Select
|
placeholder="请选择"
|
||||||
v-model="searchForm.marketEnable"
|
clearable
|
||||||
placeholder="请选择"
|
style="width: 200px"
|
||||||
clearable
|
|
||||||
style="width: 200px"
|
|
||||||
>
|
|
||||||
<Option value="UPPER">上架</Option>
|
|
||||||
<Option value="DOWN">下架</Option>
|
|
||||||
</Select>
|
|
||||||
</Form-item>
|
|
||||||
<Button @click="handleSearch" class="search-btn" type="primary" icon="ios-search" >搜索</Button>
|
|
||||||
</Form>
|
|
||||||
</Row>
|
|
||||||
<Row class="padding-row">
|
|
||||||
<Table
|
|
||||||
:loading="loading"
|
|
||||||
border
|
|
||||||
:columns="columns"
|
|
||||||
:data="data"
|
|
||||||
ref="table"
|
|
||||||
sortable="custom"
|
|
||||||
@on-sort-change="changeSort"
|
|
||||||
@on-selection-change="changeSelect"
|
|
||||||
>
|
>
|
||||||
|
<Option value="UPPER">上架</Option>
|
||||||
|
<Option value="DOWN">下架</Option>
|
||||||
|
</Select>
|
||||||
|
</Form-item>
|
||||||
|
<Button @click="handleSearch" class="search-btn" type="primary" icon="ios-search" >搜索</Button>
|
||||||
|
</Form>
|
||||||
|
</Row>
|
||||||
|
<Table
|
||||||
|
:loading="loading"
|
||||||
|
border
|
||||||
|
:columns="columns"
|
||||||
|
:data="data"
|
||||||
|
ref="table"
|
||||||
|
sortable="custom"
|
||||||
|
@on-sort-change="changeSort"
|
||||||
|
@on-selection-change="changeSelect"
|
||||||
|
>
|
||||||
|
|
||||||
<!-- 商品栏目格式化 -->
|
<!-- 商品栏目格式化 -->
|
||||||
<template slot="goodsSlot" slot-scope="{row}">
|
<template slot="goodsSlot" slot-scope="{row}">
|
||||||
<div style="margin: 5px 0px;height: 80px; display: flex;">
|
<div style="margin: 5px 0px;height: 80px; display: flex;">
|
||||||
<div style="">
|
<div style="">
|
||||||
<img :src="row.original" style="height: 60px;margin-top: 1px;width: 60px">
|
<img :src="row.original" style="height: 60px;margin-top: 1px;width: 60px">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-left: 13px;">
|
<div style="margin-left: 13px;">
|
||||||
<div class="div-zoom">
|
<div class="div-zoom">
|
||||||
<a @click="linkTo(row.id,row.skuId)">{{row.goodsName}}</a>
|
<a @click="linkTo(row.id,row.skuId)">{{row.goodsName}}</a>
|
||||||
</div>
|
</div>
|
||||||
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
<vue-qr :text="wapLinkTo(row.id,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
<vue-qr :text="wapLinkTo(row.id,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
||||||
</div>
|
|
||||||
<img src="../../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
|
||||||
</Poptip>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<img src="../../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
||||||
|
</Poptip>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
</Row>
|
<Row type="flex" justify="end" class="page">
|
||||||
<Row type="flex" justify="end" class="page">
|
<Page
|
||||||
<Page
|
:current="searchForm.pageNumber"
|
||||||
:current="searchForm.pageNumber"
|
:total="total"
|
||||||
:total="total"
|
:page-size="searchForm.pageSize"
|
||||||
:page-size="searchForm.pageSize"
|
@on-change="changePage"
|
||||||
@on-change="changePage"
|
@on-page-size-change="changePageSize"
|
||||||
@on-page-size-change="changePageSize"
|
:page-size-opts="[10, 20, 50]"
|
||||||
:page-size-opts="[10, 20, 50]"
|
size="small"
|
||||||
size="small"
|
show-total
|
||||||
show-total
|
show-elevator
|
||||||
show-elevator
|
show-sizer
|
||||||
show-sizer
|
></Page>
|
||||||
></Page>
|
</Row>
|
||||||
</Row>
|
</Card>
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Modal
|
<Modal
|
||||||
:title="modalTitle"
|
:title="modalTitle"
|
||||||
v-model="modalVisible"
|
v-model="modalVisible"
|
||||||
|
|
|
@ -1,83 +1,77 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form
|
||||||
<Row @keydown.enter.native="handleSearch">
|
ref="searchForm"
|
||||||
<Form
|
:model="searchForm"
|
||||||
ref="searchForm"
|
inline
|
||||||
:model="searchForm"
|
:label-width="70"
|
||||||
inline
|
class="search-form"
|
||||||
:label-width="70"
|
>
|
||||||
class="search-form"
|
<Form-item label="商品名称" prop="goodsName">
|
||||||
>
|
<Input
|
||||||
<Form-item label="商品名称" prop="goodsName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.goodsName"
|
||||||
type="text"
|
placeholder="请输入商品名称"
|
||||||
v-model="searchForm.goodsName"
|
clearable
|
||||||
placeholder="请输入商品名称"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="商品编号" prop="sn">
|
||||||
</Form-item>
|
<Input
|
||||||
<Form-item label="商品编号" prop="sn">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.sn"
|
||||||
type="text"
|
placeholder="请输入商品编号"
|
||||||
v-model="searchForm.sn"
|
clearable
|
||||||
placeholder="请输入商品编号"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Button @click="handleSearch" class="search-btn" type="primary" icon="ios-search" >搜索</Button>
|
||||||
</Form-item>
|
</Form>
|
||||||
<Button @click="handleSearch" class="search-btn" type="primary" icon="ios-search" >搜索</Button>
|
</Row>
|
||||||
</Form>
|
<Table
|
||||||
</Row>
|
:loading="loading"
|
||||||
<Row class="padding-row">
|
border
|
||||||
<Table
|
:columns="columns"
|
||||||
:loading="loading"
|
:data="data"
|
||||||
border
|
ref="table"
|
||||||
:columns="columns"
|
sortable="custom"
|
||||||
:data="data"
|
@on-sort-change="changeSort"
|
||||||
ref="table"
|
@on-selection-change="changeSelect"
|
||||||
sortable="custom"
|
>
|
||||||
@on-sort-change="changeSort"
|
|
||||||
@on-selection-change="changeSelect"
|
|
||||||
>
|
|
||||||
|
|
||||||
<!-- 商品栏目格式化 -->
|
<!-- 商品栏目格式化 -->
|
||||||
<template slot="goodsSlot" slot-scope="scope">
|
<template slot="goodsSlot" slot-scope="scope">
|
||||||
<div style="margin-top: 5px;height: 80px; display: flex;">
|
<div style="margin-top: 5px;height: 80px; display: flex;">
|
||||||
<div style="">
|
<div style="">
|
||||||
<img :src="scope.row.original" style="height: 60px;margin-top: 3px;width: 60px">
|
<img :src="scope.row.original" style="height: 60px;margin-top: 3px;width: 60px">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-left: 13px">
|
<div style="margin-left: 13px">
|
||||||
<div class="div-zoom" >
|
<div class="div-zoom" >
|
||||||
<a>{{scope.row.goodsName}}</a>
|
<a>{{scope.row.goodsName}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
</Row>
|
<Row type="flex" justify="end" class="page">
|
||||||
<Row type="flex" justify="end" class="page">
|
<Page
|
||||||
<Page
|
:current="searchForm.pageNumber"
|
||||||
:current="searchForm.pageNumber"
|
:total="total"
|
||||||
:total="total"
|
:page-size="searchForm.pageSize"
|
||||||
:page-size="searchForm.pageSize"
|
@on-change="changePage"
|
||||||
@on-change="changePage"
|
@on-page-size-change="changePageSize"
|
||||||
@on-page-size-change="changePageSize"
|
:page-size-opts="[10, 20, 50]"
|
||||||
:page-size-opts="[10, 20, 50]"
|
size="small"
|
||||||
size="small"
|
show-total
|
||||||
show-total
|
show-elevator
|
||||||
show-elevator
|
show-sizer
|
||||||
show-sizer
|
></Page>
|
||||||
></Page>
|
</Row>
|
||||||
</Row>
|
</Card>
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -3,62 +3,56 @@
|
||||||
</style>
|
</style>
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form
|
||||||
<Row @keydown.enter.native="handleSearch">
|
ref="searchForm"
|
||||||
<Form
|
:model="searchForm"
|
||||||
ref="searchForm"
|
inline
|
||||||
:model="searchForm"
|
:label-width="70"
|
||||||
inline
|
class="search-form"
|
||||||
:label-width="70"
|
>
|
||||||
class="search-form"
|
<Form-item label="品牌名称" prop="name">
|
||||||
>
|
<Input
|
||||||
<Form-item label="品牌名称" prop="name">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.name"
|
||||||
type="text"
|
placeholder="请输入品牌名称"
|
||||||
v-model="searchForm.name"
|
clearable
|
||||||
placeholder="请输入品牌名称"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
|
||||||
</Form-item>
|
|
||||||
|
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="operation padding-row">
|
<Row class="operation padding-row">
|
||||||
<Button @click="add" type="primary">添加</Button>
|
<Button @click="add" type="primary">添加</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
></Table>
|
||||||
></Table>
|
<Row type="flex" justify="end" class="page">
|
||||||
</Row>
|
<Page
|
||||||
<Row type="flex" justify="end" class="page">
|
:current="searchForm.pageNumber"
|
||||||
<Page
|
:total="total"
|
||||||
:current="searchForm.pageNumber"
|
:page-size="searchForm.pageSize"
|
||||||
:total="total"
|
@on-change="changePage"
|
||||||
:page-size="searchForm.pageSize"
|
@on-page-size-change="changePageSize"
|
||||||
@on-change="changePage"
|
:page-size-opts="[10, 20, 50]"
|
||||||
@on-page-size-change="changePageSize"
|
size="small"
|
||||||
:page-size-opts="[10, 20, 50]"
|
show-total
|
||||||
size="small"
|
show-elevator
|
||||||
show-total
|
show-sizer
|
||||||
show-elevator
|
></Page>
|
||||||
show-sizer
|
</Row>
|
||||||
></Page>
|
</Card>
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Modal
|
<Modal
|
||||||
:title="modalTitle"
|
:title="modalTitle"
|
||||||
v-model="modalVisible"
|
v-model="modalVisible"
|
||||||
|
|
|
@ -1,64 +1,57 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form
|
||||||
<Row @keydown.enter.native="handleSearch">
|
ref="searchForm"
|
||||||
<Form
|
:model="searchForm"
|
||||||
ref="searchForm"
|
inline
|
||||||
:model="searchForm"
|
:label-width="70"
|
||||||
inline
|
class="search-form"
|
||||||
:label-width="70"
|
>
|
||||||
class="search-form"
|
<Form-item label="规格名称" prop="specName">
|
||||||
>
|
<Input
|
||||||
<Form-item label="规格名称" prop="specName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.specName"
|
||||||
type="text"
|
placeholder="请输入规格名称"
|
||||||
v-model="searchForm.specName"
|
clearable
|
||||||
placeholder="请输入规格名称"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
|
||||||
</Form-item>
|
|
||||||
|
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="operation padding-row">
|
<Row class="operation padding-row">
|
||||||
<Button @click="add" type="primary" >添加</Button>
|
<Button @click="add" type="primary" >添加</Button>
|
||||||
<Button @click="delAll" >批量删除</Button>
|
<Button @click="delAll" >批量删除</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
>
|
||||||
>
|
</Table>
|
||||||
|
<Row type="flex" justify="end" class="page">
|
||||||
</Table>
|
<Page
|
||||||
</Row>
|
:current="searchForm.pageNumber"
|
||||||
<Row type="flex" justify="end" class="page">
|
:total="total"
|
||||||
<Page
|
:page-size="searchForm.pageSize"
|
||||||
:current="searchForm.pageNumber"
|
@on-change="changePage"
|
||||||
:total="total"
|
@on-page-size-change="changePageSize"
|
||||||
:page-size="searchForm.pageSize"
|
:page-size-opts="[10, 20, 50]"
|
||||||
@on-change="changePage"
|
size="small"
|
||||||
@on-page-size-change="changePageSize"
|
show-total
|
||||||
:page-size-opts="[10, 20, 50]"
|
show-elevator
|
||||||
size="small"
|
show-sizer
|
||||||
show-total
|
></Page>
|
||||||
show-elevator
|
</Row>
|
||||||
show-sizer
|
</Card>
|
||||||
></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Modal
|
<Modal
|
||||||
:title="modalTitle"
|
:title="modalTitle"
|
||||||
v-model="modalVisible"
|
v-model="modalVisible"
|
||||||
|
|
|
@ -1,38 +1,33 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Card>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Form-item label="会员名称" prop="memberName">
|
||||||
<Form-item label="会员名称" prop="memberName">
|
<Input type="text" v-model="searchForm.memberName" placeholder="请输入会员名称" clearable style="width: 200px"/>
|
||||||
<Input type="text" v-model="searchForm.memberName" placeholder="请输入会员名称" clearable style="width: 200px"/>
|
</Form-item>
|
||||||
</Form-item>
|
<Button @click="handleSearch" type="primary" class="search-btn" icon="ios-search">搜索</Button>
|
||||||
<Button @click="handleSearch" type="primary" class="search-btn" icon="ios-search">搜索</Button>
|
</Form>
|
||||||
</Form>
|
</Row>
|
||||||
</Row>
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom"
|
||||||
<Row class="padding-row">
|
@on-sort-change="changeSort" @on-selection-change="changeSelect">
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom"
|
<!-- 页面展示 -->
|
||||||
@on-sort-change="changeSort" @on-selection-change="changeSelect">
|
<template slot="shopDisableSlot" slot-scope="scope">
|
||||||
<!-- 页面展示 -->
|
<div>
|
||||||
<template slot="shopDisableSlot" slot-scope="scope">
|
</div>
|
||||||
<div>
|
<i-switch size="large" true-value="OPEN" false-value="CLOSE" v-model="scope.row.status"
|
||||||
</div>
|
@on-change="changeSwitch(scope.row)">
|
||||||
<i-switch size="large" true-value="OPEN" false-value="CLOSE" v-model="scope.row.status"
|
<span slot="open">展示</span>
|
||||||
@on-change="changeSwitch(scope.row)">
|
<span slot="close">隐藏</span>
|
||||||
<span slot="open">展示</span>
|
</i-switch>
|
||||||
<span slot="close">隐藏</span>
|
</template>
|
||||||
</i-switch>
|
</Table>
|
||||||
</template>
|
<Row type="flex" justify="end" class="page">
|
||||||
</Table>
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage"
|
||||||
|
@on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
||||||
</Row>
|
size="small" show-total show-elevator show-sizer></Page>
|
||||||
<Row type="flex" justify="end" class="page">
|
</Row>
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage"
|
</Card>
|
||||||
@on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
|
||||||
size="small" show-total show-elevator show-sizer></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Row>
|
|
||||||
|
|
||||||
<Modal v-model="infoFlag" width="800" :title="infoTitle">
|
<Modal v-model="infoFlag" width="800" :title="infoTitle">
|
||||||
|
|
||||||
|
@ -68,7 +63,7 @@
|
||||||
<div style="margin-left: 40px">
|
<div style="margin-left: 40px">
|
||||||
<img style="width: 100px;height: 110px;margin-left: 2px"
|
<img style="width: 100px;height: 110px;margin-left: 2px"
|
||||||
v-for="(img,index) in infoData.image.split(',')" v-if="infoData.image.length !=0" :src="img"
|
v-for="(img,index) in infoData.image.split(',')" v-if="infoData.image.length !=0" :src="img"
|
||||||
alt="" />
|
alt="" :key="index"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</List>
|
</List>
|
||||||
|
@ -81,7 +76,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div v-if="infoData.haveReplyImage == 1">
|
<div v-if="infoData.haveReplyImage == 1">
|
||||||
<div style="margin-left: 60px">
|
<div style="margin-left: 60px">
|
||||||
<img style="width: 100px;height: 110px" v-for="(img,index) in infoData.replyImage.split(',')"
|
<img style="width: 100px;height: 110px" v-for="(img,index) in infoData.replyImage.split(',')" :key="index"
|
||||||
v-if="infoData.replyImage.length !=0" :src="img" alt=""/>
|
v-if="infoData.replyImage.length !=0" :src="img" alt=""/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,49 +1,43 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch"></Row>
|
||||||
<Card>
|
<Row class="operation padding-row">
|
||||||
<Row @keydown.enter.native="handleSearch"></Row>
|
<Button @click="add" type="primary">添加</Button>
|
||||||
<Row class="operation padding-row">
|
</Row>
|
||||||
<Button @click="add" type="primary">添加</Button>
|
<Table
|
||||||
</Row>
|
:loading="loading"
|
||||||
<Row>
|
border
|
||||||
<Table
|
:columns="columns"
|
||||||
:loading="loading"
|
:data="data"
|
||||||
border
|
ref="table"
|
||||||
:columns="columns"
|
sortable="custom"
|
||||||
:data="data"
|
@on-sort-change="changeSort"
|
||||||
ref="table"
|
@on-selection-change="changeSelect"
|
||||||
sortable="custom"
|
>
|
||||||
@on-sort-change="changeSort"
|
<!-- 页面展示 -->
|
||||||
@on-selection-change="changeSelect"
|
<template slot="disableSlot" slot-scope="scope">
|
||||||
>
|
<i-switch size="large" v-model="scope.row.disabled == 'OPEN'?true:false" @on-change="changeSwitch(scope.row)">
|
||||||
<!-- 页面展示 -->
|
<span slot="open">展示</span>
|
||||||
<template slot="disableSlot" slot-scope="scope">
|
<span slot="close">隐藏</span>
|
||||||
<i-switch size="large" v-model="scope.row.disabled == 'OPEN'?true:false" @on-change="changeSwitch(scope.row)">
|
</i-switch>
|
||||||
<span slot="open">展示</span>
|
</template>
|
||||||
<span slot="close">隐藏</span>
|
</Table>
|
||||||
</i-switch>
|
<Row type="flex" justify="end" class="page">
|
||||||
</template>
|
<Page
|
||||||
</Table>
|
:current="searchForm.pageNumber"
|
||||||
</Row>
|
:total="total"
|
||||||
<Row type="flex" justify="end" class="page">
|
:page-size="searchForm.pageSize"
|
||||||
<Page
|
@on-change="changePage"
|
||||||
:current="searchForm.pageNumber"
|
@on-page-size-change="changePageSize"
|
||||||
:total="total"
|
:page-size-opts="[10, 20, 50]"
|
||||||
:page-size="searchForm.pageSize"
|
size="small"
|
||||||
@on-change="changePage"
|
show-total
|
||||||
@on-page-size-change="changePageSize"
|
show-elevator
|
||||||
:page-size-opts="[10, 20, 50]"
|
show-sizer
|
||||||
size="small"
|
></Page>
|
||||||
show-total
|
</Row>
|
||||||
show-elevator
|
</Card>
|
||||||
show-sizer
|
|
||||||
></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Modal
|
<Modal
|
||||||
:title="modalTitle"
|
:title="modalTitle"
|
||||||
v-model="modalVisible"
|
v-model="modalVisible"
|
||||||
|
|
|
@ -1,77 +1,71 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form
|
||||||
<Row @keydown.enter.native="handleSearch">
|
ref="searchForm"
|
||||||
<Form
|
:model="searchForm"
|
||||||
ref="searchForm"
|
inline
|
||||||
:model="searchForm"
|
:label-width="70"
|
||||||
inline
|
class="search-form"
|
||||||
:label-width="70"
|
>
|
||||||
class="search-form"
|
<Form-item label="会员名称" prop="memberName">
|
||||||
>
|
<Input
|
||||||
<Form-item label="会员名称" prop="memberName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.memberName"
|
||||||
type="text"
|
placeholder="请输入会员名称"
|
||||||
v-model="searchForm.memberName"
|
clearable
|
||||||
placeholder="请输入会员名称"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="充值单号" prop="rechargeSn">
|
||||||
</Form-item>
|
<Input
|
||||||
<Form-item label="充值单号" prop="rechargeSn">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.rechargeSn"
|
||||||
type="text"
|
placeholder="请输入充值单号"
|
||||||
v-model="searchForm.rechargeSn"
|
clearable
|
||||||
placeholder="请输入充值单号"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="支付时间">
|
||||||
</Form-item>
|
<DatePicker
|
||||||
<Form-item label="支付时间">
|
v-model="selectDate"
|
||||||
<DatePicker
|
type="datetimerange"
|
||||||
v-model="selectDate"
|
format="yyyy-MM-dd HH:mm:ss"
|
||||||
type="datetimerange"
|
clearable
|
||||||
format="yyyy-MM-dd HH:mm:ss"
|
@on-change="selectDateRange"
|
||||||
clearable
|
placeholder="选择起始时间"
|
||||||
@on-change="selectDateRange"
|
style="width: 200px"
|
||||||
placeholder="选择起始时间"
|
></DatePicker>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
></DatePicker>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item>
|
</Form>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
</Row>
|
||||||
</Form>
|
<Table
|
||||||
</Row>
|
:loading="loading"
|
||||||
<Row class="padding-row">
|
border
|
||||||
<Table
|
:columns="columns"
|
||||||
:loading="loading"
|
:data="data"
|
||||||
border
|
ref="table"
|
||||||
:columns="columns"
|
sortable="custom"
|
||||||
:data="data"
|
@on-sort-change="changeSort"
|
||||||
ref="table"
|
@on-selection-change="changeSelect"
|
||||||
sortable="custom"
|
></Table>
|
||||||
@on-sort-change="changeSort"
|
<Row type="flex" justify="end" class="page">
|
||||||
@on-selection-change="changeSelect"
|
<Page
|
||||||
></Table>
|
:current="searchForm.pageNumber"
|
||||||
</Row>
|
:total="total"
|
||||||
<Row type="flex" justify="end" class="page">
|
:page-size="searchForm.pageSize"
|
||||||
<Page
|
@on-change="changePage"
|
||||||
:current="searchForm.pageNumber"
|
@on-page-size-change="changePageSize"
|
||||||
:total="total"
|
:page-size-opts="[10, 20, 50]"
|
||||||
:page-size="searchForm.pageSize"
|
size="small"
|
||||||
@on-change="changePage"
|
show-total
|
||||||
@on-page-size-change="changePageSize"
|
show-elevator
|
||||||
:page-size-opts="[10, 20, 50]"
|
show-sizer
|
||||||
size="small"
|
></Page>
|
||||||
show-total
|
</Row>
|
||||||
show-elevator
|
</Card>
|
||||||
show-sizer
|
|
||||||
></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,30 +1,24 @@
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form-item label="会员名称" prop="memberName">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input type="text" v-model="searchForm.memberName" placeholder="请输入会员名称" clearable style="width: 200px" />
|
||||||
<Form-item label="会员名称" prop="memberName">
|
</Form-item>
|
||||||
<Input type="text" v-model="searchForm.memberName" placeholder="请输入会员名称" clearable style="width: 200px" />
|
<Form-item label="支付时间">
|
||||||
</Form-item>
|
<DatePicker v-model="selectDate" type="datetimerange" format="yyyy-MM-dd HH:mm:ss" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker>
|
||||||
<Form-item label="支付时间">
|
</Form-item>
|
||||||
<DatePicker v-model="selectDate" type="datetimerange" format="yyyy-MM-dd HH:mm:ss" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item>
|
</Form>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
</Row>
|
||||||
</Form>
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
||||||
</Row>
|
<Row type="flex" justify="end" class="page">
|
||||||
<Row class="padding-row">
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
size="small" show-total show-elevator show-sizer></Page>
|
||||||
</Row>
|
</Row>
|
||||||
<Row type="flex" justify="end" class="page">
|
</Card>
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
|
||||||
size="small" show-total show-elevator show-sizer></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,84 +1,78 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form
|
||||||
<Row @keydown.enter.native="handleSearch">
|
ref="searchForm"
|
||||||
<Form
|
:model="searchForm"
|
||||||
ref="searchForm"
|
inline
|
||||||
:model="searchForm"
|
:label-width="70"
|
||||||
inline
|
class="search-form"
|
||||||
:label-width="70"
|
>
|
||||||
class="search-form"
|
<Form-item label="会员名称" prop="memberName">
|
||||||
|
<Input
|
||||||
|
type="text"
|
||||||
|
v-model="searchForm.memberName"
|
||||||
|
placeholder="请输入会员名称"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
|
/>
|
||||||
|
</Form-item>
|
||||||
|
<Form-item label="审核状态" prop="applyStatus">
|
||||||
|
<Select
|
||||||
|
v-model="searchForm.memberName"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
>
|
>
|
||||||
<Form-item label="会员名称" prop="memberName">
|
<Option value="APPLY">申请中</Option>
|
||||||
<Input
|
<Option value="VIA_AUDITING">审核通过(提现成功)</Option>
|
||||||
type="text"
|
<Option value="FAIL_AUDITING">审核拒绝</Option>
|
||||||
v-model="searchForm.memberName"
|
</Select>
|
||||||
placeholder="请输入会员名称"
|
</Form-item>
|
||||||
clearable
|
<Form-item label="申请时间">
|
||||||
style="width: 200px"
|
<DatePicker
|
||||||
/>
|
v-model="selectDate"
|
||||||
</Form-item>
|
type="datetimerange"
|
||||||
<Form-item label="审核状态" prop="applyStatus">
|
format="yyyy-MM-dd HH:mm:ss"
|
||||||
<Select
|
clearable
|
||||||
v-model="searchForm.memberName"
|
@on-change="selectDateRange"
|
||||||
clearable
|
placeholder="选择起始时间"
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
>
|
></DatePicker>
|
||||||
<Option value="APPLY">申请中</Option>
|
</Form-item>
|
||||||
<Option value="VIA_AUDITING">审核通过(提现成功)</Option>
|
<Form-item style="margin-left: -35px" class="br">
|
||||||
<Option value="FAIL_AUDITING">审核拒绝</Option>
|
<Button @click="handleSearch" type="primary" icon="ios-search"
|
||||||
</Select>
|
>搜索
|
||||||
</Form-item>
|
</Button
|
||||||
<Form-item label="申请时间">
|
>
|
||||||
<DatePicker
|
</Form-item>
|
||||||
v-model="selectDate"
|
</Form>
|
||||||
type="datetimerange"
|
</Row>
|
||||||
format="yyyy-MM-dd HH:mm:ss"
|
<Table
|
||||||
clearable
|
:loading="loading"
|
||||||
@on-change="selectDateRange"
|
border
|
||||||
placeholder="选择起始时间"
|
:columns="columns"
|
||||||
style="width: 200px"
|
:data="data"
|
||||||
></DatePicker>
|
ref="table"
|
||||||
</Form-item>
|
sortable="custom"
|
||||||
<Form-item style="margin-left: -35px" class="br">
|
@on-sort-change="changeSort"
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search"
|
@on-selection-change="changeSelect"
|
||||||
>搜索
|
></Table>
|
||||||
</Button
|
<Row type="flex" justify="end" class="page">
|
||||||
>
|
<Page
|
||||||
</Form-item>
|
:current="searchForm.pageNumber"
|
||||||
</Form>
|
:total="total"
|
||||||
</Row>
|
:page-size="searchForm.pageSize"
|
||||||
<Row class="padding-row">
|
@on-change="changePage"
|
||||||
<Table
|
@on-page-size-change="changePageSize"
|
||||||
:loading="loading"
|
:page-size-opts="[10, 20, 50]"
|
||||||
border
|
size="small"
|
||||||
:columns="columns"
|
show-total
|
||||||
:data="data"
|
show-elevator
|
||||||
ref="table"
|
show-sizer
|
||||||
sortable="custom"
|
></Page>
|
||||||
@on-sort-change="changeSort"
|
</Row>
|
||||||
@on-selection-change="changeSelect"
|
</Card>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
|
||||||
<Page
|
|
||||||
:current="searchForm.pageNumber"
|
|
||||||
:total="total"
|
|
||||||
:page-size="searchForm.pageSize"
|
|
||||||
@on-change="changePage"
|
|
||||||
@on-page-size-change="changePageSize"
|
|
||||||
:page-size-opts="[10, 20, 50]"
|
|
||||||
size="small"
|
|
||||||
show-total
|
|
||||||
show-elevator
|
|
||||||
show-sizer
|
|
||||||
></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Modal
|
<Modal
|
||||||
:title="modalTitle"
|
:title="modalTitle"
|
||||||
v-model="roleModalVisible"
|
v-model="roleModalVisible"
|
||||||
|
|
|
@ -1,38 +1,33 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Card>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Form-item label="会员名称" prop="username">
|
||||||
<Form-item label="会员名称" prop="username">
|
<Input type="text" v-model="searchForm.username" placeholder="请输入会员名称" clearable style="width: 200px" />
|
||||||
<Input type="text" v-model="searchForm.username" placeholder="请输入会员名称" clearable style="width: 200px" />
|
</Form-item>
|
||||||
</Form-item>
|
|
||||||
|
|
||||||
<Form-item label="会员昵称" prop="nickName">
|
<Form-item label="会员昵称" prop="nickName">
|
||||||
<Input type="text" v-model="searchForm.nickName" placeholder="请输入会员昵称" clearable style="width: 200px" />
|
<Input type="text" v-model="searchForm.nickName" placeholder="请输入会员昵称" clearable style="width: 200px" />
|
||||||
</Form-item>
|
</Form-item>
|
||||||
|
|
||||||
<Form-item label="联系方式" prop="mobile">
|
<Form-item label="联系方式" prop="mobile">
|
||||||
<Input type="text" v-model="searchForm.mobile" placeholder="请输入会员联系方式" clearable style="width: 200px" />
|
<Input type="text" v-model="searchForm.mobile" placeholder="请输入会员联系方式" clearable style="width: 200px" />
|
||||||
</Form-item>
|
</Form-item>
|
||||||
<Button @click="handleSearch" class="search-btn" type="primary" icon="ios-search">搜索</Button>
|
<Button @click="handleSearch" class="search-btn" type="primary" icon="ios-search">搜索</Button>
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="operation padding-row">
|
<Row class="operation padding-row">
|
||||||
<Button @click="addMember" type="primary">添加会员</Button>
|
<Button @click="addMember" type="primary">添加会员</Button>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
<Row>
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
|
</Table>
|
||||||
</Table>
|
<Row type="flex" justify="end" class="page">
|
||||||
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
||||||
</Row>
|
size="small" show-total show-elevator show-sizer></Page>
|
||||||
<Row type="flex" justify="end" class="page">
|
</Row>
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
</Card>
|
||||||
size="small" show-total show-elevator show-sizer></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Row>
|
|
||||||
|
|
||||||
<!-- 添加用户模态框 -->
|
<!-- 添加用户模态框 -->
|
||||||
<Modal v-model="addFlag" title="添加用户">
|
<Modal v-model="addFlag" title="添加用户">
|
||||||
|
|
|
@ -78,7 +78,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="point-data" style="margin-top: -5px">
|
<div class="point-data" style="margin-top: -5px">
|
||||||
<Row>
|
|
||||||
<Table
|
<Table
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
border
|
border
|
||||||
|
@ -89,7 +88,6 @@
|
||||||
@on-sort-change="pointChangeSort"
|
@on-sort-change="pointChangeSort"
|
||||||
>
|
>
|
||||||
</Table>
|
</Table>
|
||||||
</Row>
|
|
||||||
|
|
||||||
<Row type="flex" justify="end" class="page" style="margin-top: 10px">
|
<Row type="flex" justify="end" class="page" style="margin-top: 10px">
|
||||||
<Page
|
<Page
|
||||||
|
@ -168,18 +166,16 @@
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<div style="min-height: 180px">
|
<div style="min-height: 180px">
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="orderColumns"
|
||||||
:columns="orderColumns"
|
:data="orderData"
|
||||||
:data="orderData"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="orderChangeSort"
|
||||||
@on-sort-change="orderChangeSort"
|
>
|
||||||
>
|
</Table>
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
|
|
||||||
<Row type="flex" justify="end" class="page" style="margin-top: 10px">
|
<Row type="flex" justify="end" class="page" style="margin-top: 10px">
|
||||||
<Page
|
<Page
|
||||||
|
@ -201,18 +197,16 @@
|
||||||
<Row class="operation padding-row">
|
<Row class="operation padding-row">
|
||||||
<Button @click="addMemberAddress" type="primary">新增</Button>
|
<Button @click="addMemberAddress" type="primary">新增</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="addressColumns"
|
||||||
:columns="addressColumns"
|
:data="addressData"
|
||||||
:data="addressData"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="addressChangeSort"
|
||||||
@on-sort-change="addressChangeSort"
|
>
|
||||||
>
|
</Table>
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
|
|
||||||
<Row type="flex" justify="end" class="page" style="margin-top: 10px">
|
<Row type="flex" justify="end" class="page" style="margin-top: 10px">
|
||||||
<Page
|
<Page
|
||||||
|
@ -249,18 +243,16 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="walletColumns"
|
||||||
:columns="walletColumns"
|
:data="walletData"
|
||||||
:data="walletData"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="walletChangeSort"
|
||||||
@on-sort-change="walletChangeSort"
|
>
|
||||||
>
|
</Table>
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
|
|
||||||
<Row type="flex" justify="end" class="page" style="margin-top: 10px">
|
<Row type="flex" justify="end" class="page" style="margin-top: 10px">
|
||||||
<Page
|
<Page
|
||||||
|
@ -292,23 +284,21 @@
|
||||||
<Button @click="getReceiptRecordData" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
<Button @click="getReceiptRecordData" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="receiptRecordColumns"
|
||||||
:columns="receiptRecordColumns"
|
:data="receiptRecordData"
|
||||||
:data="receiptRecordData"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="walletChangeSort"
|
||||||
@on-sort-change="walletChangeSort"
|
>
|
||||||
>
|
<template slot="orderSnSlot" slot-scope="scope">
|
||||||
<template slot="orderSnSlot" slot-scope="scope">
|
|
||||||
|
|
||||||
<a @click="orderDetail(scope.row.orderSn)">{{scope.row.orderSn}}</a>
|
<a @click="orderDetail(scope.row.orderSn)">{{scope.row.orderSn}}</a>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
</Row>
|
|
||||||
|
|
||||||
<Row type="flex" justify="end" class="page" style="margin-top: 10px">
|
<Row type="flex" justify="end" class="page" style="margin-top: 10px">
|
||||||
<Page
|
<Page
|
||||||
|
|
|
@ -32,20 +32,17 @@
|
||||||
<Button @click="handleSearch" class="search-btn" type="primary" icon="ios-search">搜索</Button >
|
<Button @click="handleSearch" class="search-btn" type="primary" icon="ios-search">搜索</Button >
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
>
|
||||||
>
|
</Table>
|
||||||
</Table>
|
|
||||||
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
|
|
@ -101,18 +101,16 @@
|
||||||
<a class="select-clear" @click="clearSelectAll">清空</a>
|
<a class="select-clear" @click="clearSelectAll">清空</a>
|
||||||
</Alert>
|
</Alert>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="showSelect"
|
||||||
@on-selection-change="showSelect"
|
ref="memberTable"
|
||||||
ref="memberTable"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
@ -145,18 +143,16 @@
|
||||||
<a class="select-clear" @click="clearSelectAll">清空</a>
|
<a class="select-clear" @click="clearSelectAll">清空</a>
|
||||||
</Alert>
|
</Alert>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="showSelect"
|
||||||
@on-selection-change="showSelect"
|
ref="shopTable"
|
||||||
ref="shopTable"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
@ -191,18 +187,16 @@
|
||||||
<a class="select-clear" @click="clearSelectAll">清空</a>
|
<a class="select-clear" @click="clearSelectAll">清空</a>
|
||||||
</Alert>
|
</Alert>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="weChatColumns"
|
||||||
:columns="weChatColumns"
|
:data="weChatData"
|
||||||
:data="weChatData"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="showSelect"
|
||||||
@on-selection-change="showSelect"
|
ref="weChatTable"
|
||||||
ref="weChatTable"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="weChatSearchForm.pageNumber"
|
:current="weChatSearchForm.pageNumber"
|
||||||
|
@ -236,18 +230,16 @@
|
||||||
<a class="select-clear" @click="clearSelectAll">清空</a>
|
<a class="select-clear" @click="clearSelectAll">清空</a>
|
||||||
</Alert>
|
</Alert>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="showSelect"
|
||||||
@on-selection-change="showSelect"
|
ref="otherTable"
|
||||||
ref="otherTable"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
|
|
@ -75,18 +75,16 @@
|
||||||
<a class="select-clear" @click="clearSelectAll">清空</a>
|
<a class="select-clear" @click="clearSelectAll">清空</a>
|
||||||
</Alert>
|
</Alert>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="showSelect"
|
||||||
@on-selection-change="showSelect"
|
ref="table"
|
||||||
ref="table"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
|
|
@ -41,18 +41,16 @@
|
||||||
<a class="select-clear" @click="clearSelectAll">清空</a>
|
<a class="select-clear" @click="clearSelectAll">清空</a>
|
||||||
</Alert>
|
</Alert>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="pageNumber"
|
:current="pageNumber"
|
||||||
|
|
|
@ -46,15 +46,13 @@
|
||||||
<Row class="operation">
|
<Row class="operation">
|
||||||
<Button @click="weChatSync" type="primary">同步微信消息</Button>
|
<Button @click="weChatSync" type="primary">同步微信消息</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="weChatColumns"
|
||||||
:columns="weChatColumns"
|
:data="weChatData"
|
||||||
:data="weChatData"
|
ref="weChatTable"
|
||||||
ref="weChatTable"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="weChatSearchForm.pageNumber"
|
:current="weChatSearchForm.pageNumber"
|
||||||
|
@ -77,16 +75,14 @@
|
||||||
<Row class="operation">
|
<Row class="operation">
|
||||||
<Button @click="weChatSync('mp')" type="primary">同步微信小程序订阅消息</Button>
|
<Button @click="weChatSync('mp')" type="primary">同步微信小程序订阅消息</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="weChatColumns"
|
||||||
:columns="weChatColumns"
|
:data="weChatMPData"
|
||||||
:data="weChatMPData"
|
sortable="custom"
|
||||||
sortable="custom"
|
ref="weChatMPTable"
|
||||||
ref="weChatMPTable"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="weChatMPSearchForm.pageNumber"
|
:current="weChatMPSearchForm.pageNumber"
|
||||||
|
|
|
@ -1,342 +1,392 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form
|
||||||
<Row @keydown.enter.native="handleSearch">
|
ref="searchForm"
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
:model="searchForm"
|
||||||
<Form-item label="标题" prop="title">
|
inline
|
||||||
<Input type="text" v-model="searchForm.title" placeholder="请输入标题" clearable style="width: 200px"/>
|
:label-width="70"
|
||||||
</Form-item>
|
class="search-form"
|
||||||
<Form-item label="消息内容" prop="content">
|
>
|
||||||
<Input type="text" v-model="searchForm.content" placeholder="请输入消息内容" clearable style="width: 200px"/>
|
<Form-item label="标题" prop="title">
|
||||||
</Form-item>
|
<Input
|
||||||
<span v-if="drop">
|
type="text"
|
||||||
<Form-item label="发送类型" prop="sendType">
|
v-model="searchForm.title"
|
||||||
<Select v-model="searchForm.sendType" placeholder="请选择" clearable style="width: 200px">
|
placeholder="请输入标题"
|
||||||
<Option value="ALL">全站会员</Option>
|
clearable
|
||||||
<Option value="SELECT">指定会员</Option>
|
style="width: 200px"
|
||||||
</Select>
|
/>
|
||||||
</Form-item>
|
</Form-item>
|
||||||
<Form-item label="创建人" prop="createBy">
|
<Form-item label="消息内容" prop="content">
|
||||||
<Input type="text" v-model="searchForm.createBy" placeholder="请输入创建人" clearable style="width: 200px"/>
|
<Input
|
||||||
</Form-item>
|
type="text"
|
||||||
</span>
|
v-model="searchForm.content"
|
||||||
<Form-item style="margin-left:-35px;" class="br">
|
placeholder="请输入消息内容"
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search">搜索</Button>
|
clearable
|
||||||
<Button @click="handleReset">重置</Button>
|
style="width: 200px"
|
||||||
<a class="drop-down" @click="dropDown">
|
/>
|
||||||
{{dropDownContent}}
|
</Form-item>
|
||||||
<Icon :type="dropDownIcon"></Icon>
|
<span v-if="drop">
|
||||||
</a>
|
<Form-item label="发送类型" prop="sendType">
|
||||||
</Form-item>
|
<Select
|
||||||
</Form>
|
v-model="searchForm.sendType"
|
||||||
</Row>
|
placeholder="请选择"
|
||||||
<Row class="operation">
|
clearable
|
||||||
<Button @click="add" type="primary" icon="md-add">发送新消息</Button>
|
style="width: 200px"
|
||||||
<Button @click="delAll" icon="md-trash">批量删除</Button>
|
>
|
||||||
<Button @click="getDataList" icon="md-refresh">刷新</Button>
|
<Option value="ALL">全站会员</Option>
|
||||||
</Row>
|
<Option value="SELECT">指定会员</Option>
|
||||||
<Row v-show="openTip">
|
</Select>
|
||||||
<Alert show-icon>
|
</Form-item>
|
||||||
已选择 <span class="select-count">{{selectCount}}</span> 项
|
<Form-item label="创建人" prop="createBy">
|
||||||
<a class="select-clear" @click="clearSelectAll">清空</a>
|
<Input
|
||||||
</Alert>
|
type="text"
|
||||||
</Row>
|
v-model="searchForm.createBy"
|
||||||
<Row>
|
placeholder="请输入创建人"
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
clearable
|
||||||
</Row>
|
style="width: 200px"
|
||||||
<Row type="flex" justify="end" class="page">
|
/>
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]" size="small" show-total show-elevator show-sizer></Page>
|
</Form-item>
|
||||||
</Row>
|
</span>
|
||||||
</Card>
|
<Form-item style="margin-left: -35px" class="br">
|
||||||
</Col>
|
<Button @click="handleSearch" type="primary" icon="ios-search"
|
||||||
</Row>
|
>搜索</Button
|
||||||
</div>
|
>
|
||||||
|
<Button @click="handleReset">重置</Button>
|
||||||
|
<a class="drop-down" @click="dropDown">
|
||||||
|
{{ dropDownContent }}
|
||||||
|
<Icon :type="dropDownIcon"></Icon>
|
||||||
|
</a>
|
||||||
|
</Form-item>
|
||||||
|
</Form>
|
||||||
|
</Row>
|
||||||
|
<Row class="operation">
|
||||||
|
<Button @click="add" type="primary" icon="md-add">发送新消息</Button>
|
||||||
|
<Button @click="delAll" icon="md-trash">批量删除</Button>
|
||||||
|
<Button @click="getDataList" icon="md-refresh">刷新</Button>
|
||||||
|
</Row>
|
||||||
|
<Row v-show="openTip">
|
||||||
|
<Alert show-icon>
|
||||||
|
已选择 <span class="select-count">{{ selectCount }}</span> 项
|
||||||
|
<a class="select-clear" @click="clearSelectAll">清空</a>
|
||||||
|
</Alert>
|
||||||
|
</Row>
|
||||||
|
<Table
|
||||||
|
:loading="loading"
|
||||||
|
border
|
||||||
|
:columns="columns"
|
||||||
|
:data="data"
|
||||||
|
ref="table"
|
||||||
|
sortable="custom"
|
||||||
|
@on-sort-change="changeSort"
|
||||||
|
@on-selection-change="changeSelect"
|
||||||
|
></Table>
|
||||||
|
<Row type="flex" justify="end" class="page">
|
||||||
|
<Page
|
||||||
|
:current="searchForm.pageNumber"
|
||||||
|
:total="total"
|
||||||
|
:page-size="searchForm.pageSize"
|
||||||
|
@on-change="changePage"
|
||||||
|
@on-page-size-change="changePageSize"
|
||||||
|
:page-size-opts="[10, 20, 50]"
|
||||||
|
size="small"
|
||||||
|
show-total
|
||||||
|
show-elevator
|
||||||
|
show-sizer
|
||||||
|
></Page>
|
||||||
|
</Row>
|
||||||
|
</Card>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "member-notice-sender",
|
name: "member-notice-sender",
|
||||||
components: {
|
components: {},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
openSearch: true, // 显示搜索
|
||||||
|
openTip: true, // 显示提示
|
||||||
|
loading: true, // 表单加载状态
|
||||||
|
modalType: 0, // 添加或编辑标识
|
||||||
|
modalVisible: false, // 添加或编辑显示
|
||||||
|
modalTitle: "", // 添加或编辑标题
|
||||||
|
drop: false, // 更多搜索项
|
||||||
|
dropDownContent: "展开", // drop中文提示
|
||||||
|
dropDownIcon: "ios-arrow-down", // drop图标
|
||||||
|
searchForm: {
|
||||||
|
// 搜索框初始化对象
|
||||||
|
pageNumber: 1, // 当前页数
|
||||||
|
pageSize: 10, // 页面大小
|
||||||
|
sort: "createTime", // 默认排序字段
|
||||||
|
order: "desc", // 默认排序方式
|
||||||
|
},
|
||||||
|
submitLoading: false, // 添加或编辑提交状态
|
||||||
|
selectList: [], // 多选数据
|
||||||
|
selectCount: 0, // 多选计数
|
||||||
|
columns: [
|
||||||
|
// 表头
|
||||||
|
{
|
||||||
|
type: "selection",
|
||||||
|
width: 60,
|
||||||
|
align: "center",
|
||||||
},
|
},
|
||||||
data() {
|
{
|
||||||
return {
|
type: "index",
|
||||||
openSearch: true, // 显示搜索
|
width: 60,
|
||||||
openTip: true, // 显示提示
|
align: "center",
|
||||||
loading: true, // 表单加载状态
|
|
||||||
modalType: 0, // 添加或编辑标识
|
|
||||||
modalVisible: false, // 添加或编辑显示
|
|
||||||
modalTitle: "", // 添加或编辑标题
|
|
||||||
drop: false, // 更多搜索项
|
|
||||||
dropDownContent: "展开", // drop中文提示
|
|
||||||
dropDownIcon: "ios-arrow-down", // drop图标
|
|
||||||
searchForm: { // 搜索框初始化对象
|
|
||||||
pageNumber: 1, // 当前页数
|
|
||||||
pageSize: 10, // 页面大小
|
|
||||||
sort: "createTime", // 默认排序字段
|
|
||||||
order: "desc", // 默认排序方式
|
|
||||||
},
|
|
||||||
submitLoading: false, // 添加或编辑提交状态
|
|
||||||
selectList: [], // 多选数据
|
|
||||||
selectCount: 0, // 多选计数
|
|
||||||
columns: [
|
|
||||||
// 表头
|
|
||||||
{
|
|
||||||
type: "selection",
|
|
||||||
width: 60,
|
|
||||||
align: "center"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "index",
|
|
||||||
width: 60,
|
|
||||||
align: "center"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "标题",
|
|
||||||
key: "title",
|
|
||||||
minWidth: 120,
|
|
||||||
sortable: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "发送类型",
|
|
||||||
key: "sendType",
|
|
||||||
minWidth: 120,
|
|
||||||
sortable: false,
|
|
||||||
|
|
||||||
render: (h, params) => {
|
|
||||||
if (params.row.sendType == "ALL") {
|
|
||||||
return h("div", [
|
|
||||||
h("Badge", {
|
|
||||||
props: {
|
|
||||||
status: "success",
|
|
||||||
text: "全部会员"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]);
|
|
||||||
}else{
|
|
||||||
return h("div", [
|
|
||||||
h("Badge", {
|
|
||||||
props: {
|
|
||||||
status: "success",
|
|
||||||
text: "指定会员"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "创建人",
|
|
||||||
key: "createBy",
|
|
||||||
minWidth: 120,
|
|
||||||
sortable: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "创建时间",
|
|
||||||
key: "createTime",
|
|
||||||
minWidth: 120,
|
|
||||||
sortable: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "操作",
|
|
||||||
key: "action",
|
|
||||||
align: "center",
|
|
||||||
width: 200,
|
|
||||||
render: (h, params) => {
|
|
||||||
return h("div", [
|
|
||||||
h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
icon: "md-trash"
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.remove(params.row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"删除"
|
|
||||||
)
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
data: [], // 表单数据
|
|
||||||
total: 0 // 表单数据总数
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
methods: {
|
{
|
||||||
init() {
|
title: "标题",
|
||||||
this.getDataList();
|
key: "title",
|
||||||
},
|
minWidth: 120,
|
||||||
changePage(v) {
|
sortable: false,
|
||||||
this.searchForm.pageNumber = v;
|
},
|
||||||
this.getDataList();
|
{
|
||||||
this.clearSelectAll();
|
title: "发送类型",
|
||||||
},
|
key: "sendType",
|
||||||
changePageSize(v) {
|
minWidth: 120,
|
||||||
this.searchForm.pageSize = v;
|
sortable: false,
|
||||||
this.getDataList();
|
|
||||||
},
|
render: (h, params) => {
|
||||||
handleSearch() {
|
if (params.row.sendType == "ALL") {
|
||||||
this.searchForm.pageNumber = 1;
|
return h("div", [
|
||||||
this.searchForm.pageSize = 10;
|
h("Badge", {
|
||||||
this.getDataList();
|
props: {
|
||||||
},
|
status: "success",
|
||||||
handleReset() {
|
text: "全部会员",
|
||||||
this.$refs.searchForm.resetFields();
|
},
|
||||||
this.searchForm.pageNumber = 1;
|
}),
|
||||||
this.searchForm.pageSize = 10;
|
]);
|
||||||
// 重新加载数据
|
} else {
|
||||||
this.getDataList();
|
return h("div", [
|
||||||
},
|
h("Badge", {
|
||||||
changeSort(e) {
|
props: {
|
||||||
this.searchForm.sort = e.key;
|
status: "success",
|
||||||
this.searchForm.order = e.order;
|
text: "指定会员",
|
||||||
if (e.order === "normal") {
|
},
|
||||||
this.searchForm.order = "";
|
}),
|
||||||
}
|
]);
|
||||||
this.getDataList();
|
|
||||||
},
|
|
||||||
clearSelectAll() {
|
|
||||||
this.$refs.table.selectAll(false);
|
|
||||||
},
|
|
||||||
changeSelect(e) {
|
|
||||||
this.selectList = e;
|
|
||||||
this.selectCount = e.length;
|
|
||||||
},
|
|
||||||
dropDown() {
|
|
||||||
if (this.drop) {
|
|
||||||
this.dropDownContent = "展开";
|
|
||||||
this.dropDownIcon = "ios-arrow-down";
|
|
||||||
} else {
|
|
||||||
this.dropDownContent = "收起";
|
|
||||||
this.dropDownIcon = "ios-arrow-up";
|
|
||||||
}
|
|
||||||
this.drop = !this.drop;
|
|
||||||
},
|
|
||||||
getDataList() {
|
|
||||||
this.loading = true;
|
|
||||||
// 带多条件搜索参数获取表单数据 请自行修改接口
|
|
||||||
this.getRequest("/memberNoticeSenter/getByPage", this.searchForm).then(res => {
|
|
||||||
this.loading = false;
|
|
||||||
if (res.success) {
|
|
||||||
this.data = res.result.records;
|
|
||||||
this.total = res.result.total;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// 以下为模拟数据
|
|
||||||
//this.data = [
|
|
||||||
//];
|
|
||||||
this.total = this.data.length;
|
|
||||||
this.loading = false;
|
|
||||||
},
|
|
||||||
add() {
|
|
||||||
let query = { type: 0, backRoute: this.$route.name };
|
|
||||||
this.$router.push({
|
|
||||||
name: "add_message",
|
|
||||||
query: query
|
|
||||||
});
|
|
||||||
},
|
|
||||||
edit(v) {
|
|
||||||
this.modalType = 1;
|
|
||||||
this.modalTitle = "编辑";
|
|
||||||
this.$refs.form.resetFields();
|
|
||||||
// 转换null为""
|
|
||||||
for (let attr in v) {
|
|
||||||
if (v[attr] === null) {
|
|
||||||
v[attr] = "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let str = JSON.stringify(v);
|
|
||||||
let data = JSON.parse(str);
|
|
||||||
this.form = data;
|
|
||||||
this.modalVisible = true;
|
|
||||||
},
|
|
||||||
remove(v) {
|
|
||||||
this.$Modal.confirm({
|
|
||||||
title: "确认删除",
|
|
||||||
// 记得确认修改此处
|
|
||||||
content: "您确认要删除么?",
|
|
||||||
loading: true,
|
|
||||||
onOk: () => {
|
|
||||||
// 删除
|
|
||||||
this.deleteRequest("/memberNoticeSenter/delByIds/" + v.id).then(res => {
|
|
||||||
this.$Modal.remove();
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// 模拟请求成功
|
|
||||||
//this.$Message.success("操作成功");
|
|
||||||
//this.$Modal.remove();
|
|
||||||
//this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
delAll() {
|
|
||||||
if (this.selectCount <= 0) {
|
|
||||||
this.$Message.warning("您还未选择要删除的数据");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.$Modal.confirm({
|
|
||||||
title: "确认删除",
|
|
||||||
content: "您确认要删除所选的 " + this.selectCount + " 条数据?",
|
|
||||||
loading: true,
|
|
||||||
onOk: () => {
|
|
||||||
let ids = "";
|
|
||||||
this.selectList.forEach(function(e) {
|
|
||||||
ids += e.id + ",";
|
|
||||||
});
|
|
||||||
ids = ids.substring(0, ids.length - 1);
|
|
||||||
// 批量删除
|
|
||||||
this.deleteRequest("/memberNoticeSenter/delByIds/" + ids).then(res => {
|
|
||||||
this.$Modal.remove();
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.clearSelectAll();
|
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// 模拟请求成功
|
|
||||||
//this.$Message.success("操作成功");
|
|
||||||
//this.$Modal.remove();
|
|
||||||
//this.clearSelectAll();
|
|
||||||
//this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
{
|
||||||
this.init();
|
title: "创建人",
|
||||||
}
|
key: "createBy",
|
||||||
|
minWidth: 120,
|
||||||
|
sortable: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "创建时间",
|
||||||
|
key: "createTime",
|
||||||
|
minWidth: 120,
|
||||||
|
sortable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "操作",
|
||||||
|
key: "action",
|
||||||
|
align: "center",
|
||||||
|
width: 200,
|
||||||
|
render: (h, params) => {
|
||||||
|
return h("div", [
|
||||||
|
h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
type: "error",
|
||||||
|
size: "small",
|
||||||
|
icon: "md-trash",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.remove(params.row);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"删除"
|
||||||
|
),
|
||||||
|
]);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
data: [], // 表单数据
|
||||||
|
total: 0, // 表单数据总数
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init() {
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
changePage(v) {
|
||||||
|
this.searchForm.pageNumber = v;
|
||||||
|
this.getDataList();
|
||||||
|
this.clearSelectAll();
|
||||||
|
},
|
||||||
|
changePageSize(v) {
|
||||||
|
this.searchForm.pageSize = v;
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
handleSearch() {
|
||||||
|
this.searchForm.pageNumber = 1;
|
||||||
|
this.searchForm.pageSize = 10;
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
handleReset() {
|
||||||
|
this.$refs.searchForm.resetFields();
|
||||||
|
this.searchForm.pageNumber = 1;
|
||||||
|
this.searchForm.pageSize = 10;
|
||||||
|
// 重新加载数据
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
changeSort(e) {
|
||||||
|
this.searchForm.sort = e.key;
|
||||||
|
this.searchForm.order = e.order;
|
||||||
|
if (e.order === "normal") {
|
||||||
|
this.searchForm.order = "";
|
||||||
|
}
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
clearSelectAll() {
|
||||||
|
this.$refs.table.selectAll(false);
|
||||||
|
},
|
||||||
|
changeSelect(e) {
|
||||||
|
this.selectList = e;
|
||||||
|
this.selectCount = e.length;
|
||||||
|
},
|
||||||
|
dropDown() {
|
||||||
|
if (this.drop) {
|
||||||
|
this.dropDownContent = "展开";
|
||||||
|
this.dropDownIcon = "ios-arrow-down";
|
||||||
|
} else {
|
||||||
|
this.dropDownContent = "收起";
|
||||||
|
this.dropDownIcon = "ios-arrow-up";
|
||||||
|
}
|
||||||
|
this.drop = !this.drop;
|
||||||
|
},
|
||||||
|
getDataList() {
|
||||||
|
this.loading = true;
|
||||||
|
// 带多条件搜索参数获取表单数据 请自行修改接口
|
||||||
|
this.getRequest("/memberNoticeSenter/getByPage", this.searchForm).then(
|
||||||
|
(res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.success) {
|
||||||
|
this.data = res.result.records;
|
||||||
|
this.total = res.result.total;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
// 以下为模拟数据
|
||||||
|
//this.data = [
|
||||||
|
//];
|
||||||
|
this.total = this.data.length;
|
||||||
|
this.loading = false;
|
||||||
|
},
|
||||||
|
add() {
|
||||||
|
let query = { type: 0, backRoute: this.$route.name };
|
||||||
|
this.$router.push({
|
||||||
|
name: "add_message",
|
||||||
|
query: query,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
edit(v) {
|
||||||
|
this.modalType = 1;
|
||||||
|
this.modalTitle = "编辑";
|
||||||
|
this.$refs.form.resetFields();
|
||||||
|
// 转换null为""
|
||||||
|
for (let attr in v) {
|
||||||
|
if (v[attr] === null) {
|
||||||
|
v[attr] = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let str = JSON.stringify(v);
|
||||||
|
let data = JSON.parse(str);
|
||||||
|
this.form = data;
|
||||||
|
this.modalVisible = true;
|
||||||
|
},
|
||||||
|
remove(v) {
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "确认删除",
|
||||||
|
// 记得确认修改此处
|
||||||
|
content: "您确认要删除么?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
// 删除
|
||||||
|
this.deleteRequest("/memberNoticeSenter/delByIds/" + v.id).then(
|
||||||
|
(res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
// 模拟请求成功
|
||||||
|
//this.$Message.success("操作成功");
|
||||||
|
//this.$Modal.remove();
|
||||||
|
//this.getDataList();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
delAll() {
|
||||||
|
if (this.selectCount <= 0) {
|
||||||
|
this.$Message.warning("您还未选择要删除的数据");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "确认删除",
|
||||||
|
content: "您确认要删除所选的 " + this.selectCount + " 条数据?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
let ids = "";
|
||||||
|
this.selectList.forEach(function (e) {
|
||||||
|
ids += e.id + ",";
|
||||||
|
});
|
||||||
|
ids = ids.substring(0, ids.length - 1);
|
||||||
|
// 批量删除
|
||||||
|
this.deleteRequest("/memberNoticeSenter/delByIds/" + ids).then(
|
||||||
|
(res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.clearSelectAll();
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
// 模拟请求成功
|
||||||
|
//this.$Message.success("操作成功");
|
||||||
|
//this.$Modal.remove();
|
||||||
|
//this.clearSelectAll();
|
||||||
|
//this.getDataList();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.init();
|
||||||
|
},
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
// 建议引入通用样式 可删除下面样式代码
|
// 建议引入通用样式 可删除下面样式代码
|
||||||
// @import "@/styles/table-common.scss";
|
// @import "@/styles/table-common.scss";
|
||||||
.search {
|
.search {
|
||||||
.operation {
|
.operation {
|
||||||
margin-bottom: 2vh;
|
margin-bottom: 2vh;
|
||||||
}
|
}
|
||||||
.select-count {
|
.select-count {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #40a9ff;
|
color: #40a9ff;
|
||||||
}
|
}
|
||||||
.select-clear {
|
.select-clear {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
.page {
|
.page {
|
||||||
margin-top: 2vh;
|
margin-top: 2vh;
|
||||||
}
|
}
|
||||||
.drop-down {
|
.drop-down {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -22,20 +22,17 @@
|
||||||
<Button @click="handleSearch" class="search-btn" type="primary" icon="ios-search">搜索</Button >
|
<Button @click="handleSearch" class="search-btn" type="primary" icon="ios-search">搜索</Button >
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
>
|
||||||
>
|
</Table>
|
||||||
</Table>
|
|
||||||
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
|
|
@ -10,18 +10,16 @@
|
||||||
<Row class="operation" style="margin-bottom: 10px">
|
<Row class="operation" style="margin-bottom: 10px">
|
||||||
<Button @click="add" type="primary" >添加</Button>
|
<Button @click="add" type="primary" >添加</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
@ -45,18 +43,16 @@
|
||||||
<Row class="operation" style="margin-bottom: 10px">
|
<Row class="operation" style="margin-bottom: 10px">
|
||||||
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
@ -80,18 +76,16 @@
|
||||||
<Row class="operation" style="margin-bottom: 10px">
|
<Row class="operation" style="margin-bottom: 10px">
|
||||||
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
@ -116,18 +110,16 @@
|
||||||
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
||||||
<Button @click="getDataList" icon="md-refresh">刷新</Button>
|
<Button @click="getDataList" icon="md-refresh">刷新</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
|
|
@ -73,40 +73,38 @@
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
>
|
||||||
>
|
<!-- 商品栏目格式化 -->
|
||||||
<!-- 商品栏目格式化 -->
|
<template slot="goodsSlot" slot-scope="{row}">
|
||||||
<template slot="goodsSlot" slot-scope="{row}">
|
<div style="margin-top: 5px;height: 80px; display: flex;">
|
||||||
<div style="margin-top: 5px;height: 80px; display: flex;">
|
<div style="">
|
||||||
<div style="">
|
<img :src="row.goodsImage" style="height: 60px;margin-top: 3px">
|
||||||
<img :src="row.goodsImage" style="height: 60px;margin-top: 3px">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="margin-left: 13px;">
|
|
||||||
<div class="div-zoom">
|
|
||||||
<a @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
|
|
||||||
</div>
|
|
||||||
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
|
||||||
<div slot="content">
|
|
||||||
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
|
||||||
</div>
|
|
||||||
<img src="../../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
|
||||||
</Poptip>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
<div style="margin-left: 13px;">
|
||||||
</Table>
|
<div class="div-zoom">
|
||||||
</Row>
|
<a @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
|
||||||
|
</div>
|
||||||
|
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
||||||
|
<div slot="content">
|
||||||
|
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
||||||
|
</div>
|
||||||
|
<img src="../../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
||||||
|
</Poptip>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
</Table>
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
|
|
@ -1,81 +1,74 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form-item label="订单编号" prop="orderSn">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input
|
||||||
<Form-item label="订单编号" prop="orderSn">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.orderSn"
|
||||||
type="text"
|
placeholder="请输入订单编号"
|
||||||
v-model="searchForm.orderSn"
|
clearable
|
||||||
placeholder="请输入订单编号"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="会员名称" prop="memberName">
|
||||||
</Form-item>
|
<Input
|
||||||
<Form-item label="会员名称" prop="memberName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.memberName"
|
||||||
type="text"
|
placeholder="请输入会员名称"
|
||||||
v-model="searchForm.memberName"
|
clearable
|
||||||
placeholder="请输入会员名称"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="状态" prop="status">
|
||||||
</Form-item>
|
<Select v-model="searchForm.status" placeholder="请选择" clearable style="width: 200px">
|
||||||
<Form-item label="状态" prop="status">
|
<Option value="NEW">新投诉</Option>
|
||||||
<Select v-model="searchForm.status" placeholder="请选择" clearable style="width: 200px">
|
<Option value="CANCEL">已撤销</Option>
|
||||||
<Option value="NEW">新投诉</Option>
|
<Option value="WAIT_APPEAL">待申诉</Option>
|
||||||
<Option value="CANCEL">已撤销</Option>
|
<Option value="COMMUNICATION">对话中</Option>
|
||||||
<Option value="WAIT_APPEAL">待申诉</Option>
|
<Option value="WAIT_ARBITRATION">等待仲裁</Option>
|
||||||
<Option value="COMMUNICATION">对话中</Option>
|
<Option value="COMPLETE">已完成</Option>
|
||||||
<Option value="WAIT_ARBITRATION">等待仲裁</Option>
|
</Select>
|
||||||
<Option value="COMPLETE">已完成</Option>
|
</Form-item>
|
||||||
</Select>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item>
|
</Form>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
</Row>
|
||||||
</Form>
|
<Table
|
||||||
</Row>
|
:loading="loading"
|
||||||
|
border
|
||||||
<Row class="padding-row">
|
:columns="columns"
|
||||||
<Table
|
:data="data"
|
||||||
:loading="loading"
|
ref="table"
|
||||||
border
|
sortable="custom"
|
||||||
:columns="columns"
|
@on-sort-change="changeSort"
|
||||||
:data="data"
|
@on-selection-change="changeSelect"
|
||||||
ref="table"
|
>
|
||||||
sortable="custom"
|
<template slot-scope="{row}" slot="goodsName">
|
||||||
@on-sort-change="changeSort"
|
<a class="mr_10" @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
|
||||||
@on-selection-change="changeSelect"
|
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
||||||
>
|
<div slot="content">
|
||||||
<template slot-scope="{row}" slot="goodsName">
|
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
||||||
<a class="mr_10" @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
|
</div>
|
||||||
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
<img src="../../../assets/qrcode.svg" style="vertical-align:bottom;" class="hover-pointer" width="20" height="20" alt="">
|
||||||
<div slot="content">
|
</Poptip>
|
||||||
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
</template>
|
||||||
</div>
|
</Table>
|
||||||
<img src="../../../assets/qrcode.svg" style="vertical-align:bottom;" class="hover-pointer" width="20" height="20" alt="">
|
<Row type="flex" justify="end" class="page">
|
||||||
</Poptip>
|
<Page
|
||||||
</template>
|
:current="searchForm.pageNumber"
|
||||||
</Table>
|
:total="total"
|
||||||
</Row>
|
:page-size="searchForm.pageSize"
|
||||||
<Row type="flex" justify="end" class="page">
|
@on-change="changePage"
|
||||||
<Page
|
@on-page-size-change="changePageSize"
|
||||||
:current="searchForm.pageNumber"
|
:page-size-opts="[10, 20, 50]"
|
||||||
:total="total"
|
size="small"
|
||||||
:page-size="searchForm.pageSize"
|
show-total
|
||||||
@on-change="changePage"
|
show-elevator
|
||||||
@on-page-size-change="changePageSize"
|
show-sizer
|
||||||
:page-size-opts="[10, 20, 50]"
|
></Page>
|
||||||
size="small"
|
</Row>
|
||||||
show-total
|
</Card>
|
||||||
show-elevator
|
|
||||||
show-sizer
|
|
||||||
></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Modal
|
<Modal
|
||||||
:title="modalTitle"
|
:title="modalTitle"
|
||||||
v-model="modalVisible"
|
v-model="modalVisible"
|
||||||
|
|
|
@ -1,44 +1,38 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form-item label="订单号" prop="sn">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input type="text" v-model="searchForm.sn" placeholder="订单/交易号" clearable style="width: 200px" />
|
||||||
<Form-item label="订单号" prop="sn">
|
</Form-item>
|
||||||
<Input type="text" v-model="searchForm.sn" placeholder="订单/交易号" clearable style="width: 200px" />
|
<Form-item label="付款状态" prop="orderStatus">
|
||||||
</Form-item>
|
<Select v-model="searchForm.payStatus" placeholder="请选择" clearable style="width: 200px">
|
||||||
<Form-item label="付款状态" prop="orderStatus">
|
<Option value="UNPAID">未付款</Option>
|
||||||
<Select v-model="searchForm.payStatus" placeholder="请选择" clearable style="width: 200px">
|
<Option value="PAID">已付款</Option>
|
||||||
<Option value="UNPAID">未付款</Option>
|
</Select>
|
||||||
<Option value="PAID">已付款</Option>
|
</Form-item>
|
||||||
</Select>
|
<Form-item label="支付方式" prop="orderStatus">
|
||||||
</Form-item>
|
<Select v-model="searchForm.paymentMethod" placeholder="请选择" clearable style="width: 200px">
|
||||||
<Form-item label="支付方式" prop="orderStatus">
|
<Option value="WECHAT">微信</Option>
|
||||||
<Select v-model="searchForm.paymentMethod" placeholder="请选择" clearable style="width: 200px">
|
<Option value="ALIPAY">支付宝</Option>
|
||||||
<Option value="WECHAT">微信</Option>
|
<Option value="WALLET">余额</Option>
|
||||||
<Option value="ALIPAY">支付宝</Option>
|
<Option value="BANK_TRANSFER">银行转账</Option>
|
||||||
<Option value="WALLET">余额</Option>
|
<Option value="">暂未付款</Option>
|
||||||
<Option value="BANK_TRANSFER">银行转账</Option>
|
</Select>
|
||||||
<Option value="">暂未付款</Option>
|
</Form-item>
|
||||||
</Select>
|
<Form-item label="支付时间">
|
||||||
</Form-item>
|
<DatePicker v-model="searchForm" type="datetimerange" format="yyyy-MM-dd" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker>
|
||||||
<Form-item label="支付时间">
|
</Form-item>
|
||||||
<DatePicker v-model="searchForm" type="datetimerange" format="yyyy-MM-dd" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item>
|
</Form>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
</Row>
|
||||||
</Form>
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
||||||
</Row>
|
<Row type="flex" justify="end" class="page">
|
||||||
<Row class="padding-row">
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
size="small" show-total show-elevator show-sizer></Page>
|
||||||
</Row>
|
</Row>
|
||||||
<Row type="flex" justify="end" class="page">
|
</Card>
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
|
||||||
size="small" show-total show-elevator show-sizer></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,38 +1,32 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form-item label="订单号" prop="orderSn">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input type="text" v-model="searchForm.orderSn" placeholder="订单/交易号" clearable style="width: 200px"/>
|
||||||
<Form-item label="订单号" prop="orderSn">
|
</Form-item>
|
||||||
<Input type="text" v-model="searchForm.orderSn" placeholder="订单/交易号" clearable style="width: 200px"/>
|
<Form-item label="退款状态" prop="orderStatus">
|
||||||
</Form-item>
|
<Select v-model="searchForm.isRefund" placeholder="请选择" clearable style="width: 200px">
|
||||||
<Form-item label="退款状态" prop="orderStatus">
|
<Option value="false">未退款</Option>
|
||||||
<Select v-model="searchForm.isRefund" placeholder="请选择" clearable style="width: 200px">
|
<Option value="true">已退款</Option>
|
||||||
<Option value="false">未退款</Option>
|
</Select>
|
||||||
<Option value="true">已退款</Option>
|
</Form-item>
|
||||||
</Select>
|
<Form-item label="退款时间">
|
||||||
</Form-item>
|
<DatePicker v-model="selectDate" type="datetimerange" format="yyyy-MM-dd" clearable
|
||||||
<Form-item label="退款时间">
|
@on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker>
|
||||||
<DatePicker v-model="selectDate" type="datetimerange" format="yyyy-MM-dd" clearable
|
</Form-item>
|
||||||
@on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item>
|
</Form>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
</Row>
|
||||||
</Form>
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom"
|
||||||
</Row>
|
@on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
||||||
<Row class="padding-row">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom"
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize"
|
||||||
@on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
@on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
||||||
</Row>
|
size="small" show-total show-elevator show-sizer></Page>
|
||||||
<Row type="flex" justify="end" class="page">
|
</Row>
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize"
|
</Card>
|
||||||
@on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
|
||||||
size="small" show-total show-elevator show-sizer></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -51,18 +51,16 @@
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
|
|
@ -1,43 +1,37 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form-item label="订单号" prop="orderSn">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input type="text" v-model="searchForm.orderSn" placeholder="请输入订单号" clearable style="width: 200px" />
|
||||||
<Form-item label="订单号" prop="orderSn">
|
</Form-item>
|
||||||
<Input type="text" v-model="searchForm.orderSn" placeholder="请输入订单号" clearable style="width: 200px" />
|
<Form-item label="会员名称" prop="buyerName">
|
||||||
</Form-item>
|
<Input type="text" v-model="searchForm.buyerName" placeholder="请输入会员名称" clearable style="width: 200px" />
|
||||||
<Form-item label="会员名称" prop="buyerName">
|
</Form-item>
|
||||||
<Input type="text" v-model="searchForm.buyerName" placeholder="请输入会员名称" clearable style="width: 200px" />
|
<Form-item label="订单状态" prop="orderStatus">
|
||||||
</Form-item>
|
<Select v-model="searchForm.orderStatus" placeholder="请选择" clearable style="width: 200px">
|
||||||
<Form-item label="订单状态" prop="orderStatus">
|
<Option value="UNPAID">未付款</Option>
|
||||||
<Select v-model="searchForm.orderStatus" placeholder="请选择" clearable style="width: 200px">
|
<Option value="PAID">已付款</Option>
|
||||||
<Option value="UNPAID">未付款</Option>
|
<Option value="UNDELIVERED">待发货</Option>
|
||||||
<Option value="PAID">已付款</Option>
|
<Option value="DELIVERED">已发货</Option>
|
||||||
<Option value="UNDELIVERED">待发货</Option>
|
<Option value="COMPLETED">已完成</Option>
|
||||||
<Option value="DELIVERED">已发货</Option>
|
<Option value="TAKE">待核验</Option>
|
||||||
<Option value="COMPLETED">已完成</Option>
|
<Option value="CANCELLED">已取消</Option>
|
||||||
<Option value="TAKE">待核验</Option>
|
</Select>
|
||||||
<Option value="CANCELLED">已取消</Option>
|
</Form-item>
|
||||||
</Select>
|
<Form-item label="下单时间">
|
||||||
</Form-item>
|
<DatePicker v-model="selectDate" type="datetimerange" format="yyyy-MM-dd" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker>
|
||||||
<Form-item label="下单时间">
|
</Form-item>
|
||||||
<DatePicker v-model="selectDate" type="datetimerange" format="yyyy-MM-dd" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item>
|
</Form>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
</Row>
|
||||||
</Form>
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
||||||
</Row>
|
<Row type="flex" justify="end" class="page">
|
||||||
<Row class="padding-row">
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
size="small" show-total show-elevator show-sizer></Page>
|
||||||
</Row>
|
</Row>
|
||||||
<Row type="flex" justify="end" class="page">
|
</Card>
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
|
||||||
size="small" show-total show-elevator show-sizer></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -58,24 +58,22 @@
|
||||||
|
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
>
|
||||||
>
|
<!-- 订单详情格式化 -->
|
||||||
<!-- 订单详情格式化 -->
|
<template slot="orderSlot" slot-scope="scope">
|
||||||
<template slot="orderSlot" slot-scope="scope">
|
<a
|
||||||
<a
|
@click="$router.push({name: 'order-detail',query: {sn: scope.row.orderSn}})">{{scope.row.orderSn}}</a>
|
||||||
@click="$router.push({name: 'order-detail',query: {sn: scope.row.orderSn}})">{{scope.row.orderSn}}</a>
|
</template>
|
||||||
</template>
|
</Table>
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
|
|
@ -20,20 +20,18 @@
|
||||||
<Row class="operation padding-row">
|
<Row class="operation padding-row">
|
||||||
<Button @click="add" type="primary" style="">添加</Button>
|
<Button @click="add" type="primary" style="">添加</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
|
<!-- 页面展示 -->
|
||||||
<!-- 页面展示 -->
|
<template slot="openStatusSlot" slot-scope="scope">
|
||||||
<template slot="openStatusSlot" slot-scope="scope">
|
<div>
|
||||||
<div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<i-switch size="large" v-model="scope.row.openStatus" @on-change="changeSwitch(scope.row)">
|
<i-switch size="large" v-model="scope.row.openStatus" @on-change="changeSwitch(scope.row)">
|
||||||
<span slot="open">展示</span>
|
<span slot="open">展示</span>
|
||||||
<span slot="close">隐藏</span>
|
<span slot="close">隐藏</span>
|
||||||
</i-switch>
|
</i-switch>
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
||||||
size="small" show-total show-elevator>
|
size="small" show-total show-elevator>
|
||||||
|
|
|
@ -4,18 +4,16 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Card>
|
<Card>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="pageNumber"
|
:current="pageNumber"
|
||||||
|
|
|
@ -1,477 +1,511 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row class="operation">
|
||||||
<Card>
|
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
||||||
<Row class="operation">
|
<Button @click="disableAll" icon="md-trash">批量禁用</Button>
|
||||||
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
<Button @click="getDataList" icon="md-refresh">刷新</Button>
|
||||||
<Button @click="disableAll" icon="md-trash">批量禁用</Button>
|
<Button type="dashed" @click="openTip = !openTip">{{
|
||||||
<Button @click="getDataList" icon="md-refresh">刷新</Button>
|
openTip ? "关闭提示" : "开启提示"
|
||||||
<Button type="dashed" @click="openTip=!openTip">{{openTip ? "关闭提示" : "开启提示"}}</Button>
|
}}</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row v-show="openTip">
|
<Row v-show="openTip">
|
||||||
<Alert show-icon>
|
<Alert show-icon>
|
||||||
已选择 <span class="select-count">{{selectCount}}</span> 项
|
已选择 <span class="select-count">{{ selectCount }}</span> 项
|
||||||
<a class="select-clear" @click="clearSelectAll">清空</a>
|
<a class="select-clear" @click="clearSelectAll">清空</a>
|
||||||
</Alert>
|
</Alert>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
:loading="loading"
|
||||||
</Row>
|
border
|
||||||
<Row type="flex" justify="end" class="page">
|
:columns="columns"
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]" size="small" show-total show-elevator show-sizer></Page>
|
:data="data"
|
||||||
</Row>
|
ref="table"
|
||||||
</Card>
|
sortable="custom"
|
||||||
</Col>
|
@on-sort-change="changeSort"
|
||||||
</Row>
|
@on-selection-change="changeSelect"
|
||||||
<Modal :title="modalTitle" v-model="modalVisible" :mask-closable='false' :width="500">
|
></Table>
|
||||||
<Form ref="form" :model="form" :label-width="100" :rules="formValidate" > <FormItem label="名称" prop="name" >
|
<Row type="flex" justify="end" class="page">
|
||||||
<Input v-model="form.name" clearable style="width:100%"/>
|
<Page
|
||||||
</FormItem>
|
:current="searchForm.pageNumber"
|
||||||
<FormItem label="图片" prop="url">
|
:total="total"
|
||||||
<upload-pic-input v-model="form.url" style="width:100%"></upload-pic-input>
|
:page-size="searchForm.pageSize"
|
||||||
</FormItem>
|
@on-change="changePage"
|
||||||
<FormItem label="操作类型" prop="operationType" >
|
@on-page-size-change="changePageSize"
|
||||||
<Select v-model="form.operationType" placeholder="请选择" clearable style="width: 200px">
|
:page-size-opts="[10, 20, 50]"
|
||||||
<Option value="NONE">无操作</Option>
|
size="small"
|
||||||
<Option value="URL">链接地址</Option>
|
show-total
|
||||||
<Option value="GOODS">商品序号</Option>
|
show-elevator
|
||||||
<Option value="SHOP">店铺编号</Option>
|
show-sizer
|
||||||
<Option value="KEYWORD">关键字</Option>
|
></Page>
|
||||||
<Option value="CATEGORY">商品分类</Option>
|
</Row>
|
||||||
</Select>
|
</Card>
|
||||||
</FormItem>
|
<Modal
|
||||||
<FormItem label="链接值" prop="sort" >
|
:title="modalTitle"
|
||||||
<Input v-model="form.operationUrl" clearable style="width:100%"/>
|
v-model="modalVisible"
|
||||||
</FormItem>
|
:mask-closable="false"
|
||||||
<FormItem label="排序" prop="sort" >
|
:width="500"
|
||||||
<InputNumber :max="999" :min="0" v-model="form.sort"></InputNumber>
|
>
|
||||||
</FormItem>
|
<Form ref="form" :model="form" :label-width="100" :rules="formValidate">
|
||||||
</Form>
|
<FormItem label="名称" prop="name">
|
||||||
<div slot="footer">
|
<Input v-model="form.name" clearable style="width: 100%" />
|
||||||
<Button type="text" @click="modalVisible=false">取消</Button>
|
</FormItem>
|
||||||
<Button type="primary" :loading="submitLoading" @click="handleSubmit">提交</Button>
|
<FormItem label="图片" prop="url">
|
||||||
</div>
|
<upload-pic-input
|
||||||
</Modal>
|
v-model="form.url"
|
||||||
</div>
|
style="width: 100%"
|
||||||
|
></upload-pic-input>
|
||||||
|
</FormItem>
|
||||||
|
<FormItem label="操作类型" prop="operationType">
|
||||||
|
<Select
|
||||||
|
v-model="form.operationType"
|
||||||
|
placeholder="请选择"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
|
>
|
||||||
|
<Option value="NONE">无操作</Option>
|
||||||
|
<Option value="URL">链接地址</Option>
|
||||||
|
<Option value="GOODS">商品序号</Option>
|
||||||
|
<Option value="SHOP">店铺编号</Option>
|
||||||
|
<Option value="KEYWORD">关键字</Option>
|
||||||
|
<Option value="CATEGORY">商品分类</Option>
|
||||||
|
</Select>
|
||||||
|
</FormItem>
|
||||||
|
<FormItem label="链接值" prop="sort">
|
||||||
|
<Input v-model="form.operationUrl" clearable style="width: 100%" />
|
||||||
|
</FormItem>
|
||||||
|
<FormItem label="排序" prop="sort">
|
||||||
|
<InputNumber :max="999" :min="0" v-model="form.sort"></InputNumber>
|
||||||
|
</FormItem>
|
||||||
|
</Form>
|
||||||
|
<div slot="footer">
|
||||||
|
<Button type="text" @click="modalVisible = false">取消</Button>
|
||||||
|
<Button type="primary" :loading="submitLoading" @click="handleSubmit"
|
||||||
|
>提交</Button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</Modal>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
getFocusData,
|
getFocusData,
|
||||||
saveFocusData,
|
saveFocusData,
|
||||||
disableFocus,
|
disableFocus,
|
||||||
enableFocus,
|
enableFocus,
|
||||||
delFocus
|
delFocus,
|
||||||
} from "@/api/pages";
|
} from "@/api/pages";
|
||||||
import uploadPicInput from "@/views/my-components/lili/upload-pic-input";
|
import uploadPicInput from "@/views/my-components/lili/upload-pic-input";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "mobileFocus",
|
name: "mobileFocus",
|
||||||
components: {
|
components: {
|
||||||
uploadPicInput
|
uploadPicInput,
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
openTip: true, // 显示提示
|
||||||
|
loading: true, // 表单加载状态
|
||||||
|
modalType: 0, // 添加或编辑标识
|
||||||
|
modalVisible: false, // 添加或编辑显示
|
||||||
|
modalTitle: "", // 添加或编辑标题
|
||||||
|
searchForm: {
|
||||||
|
// 搜索框初始化对象
|
||||||
|
clientType: "MOBILE", //客户端类型
|
||||||
|
pageNumber: 1, // 当前页数
|
||||||
|
pageSize: 10, // 页面大小
|
||||||
|
sort: "createTime", // 默认排序字段
|
||||||
|
order: "desc", // 默认排序方式
|
||||||
|
},
|
||||||
|
form: {
|
||||||
|
// 添加或编辑表单对象初始化数据
|
||||||
|
name: "",
|
||||||
|
operationType: "",
|
||||||
|
operationUrl: "",
|
||||||
|
url: "",
|
||||||
|
sort: 0,
|
||||||
|
},
|
||||||
|
// 表单验证规则
|
||||||
|
formValidate: {
|
||||||
|
name: [{ required: true, message: "不能为空", trigger: "blur" }],
|
||||||
|
},
|
||||||
|
submitLoading: false, // 添加或编辑提交状态
|
||||||
|
selectList: [], // 多选数据
|
||||||
|
selectCount: 0, // 多选计数
|
||||||
|
columns: [
|
||||||
|
// 表头
|
||||||
|
{
|
||||||
|
type: "selection",
|
||||||
|
width: 60,
|
||||||
|
align: "center",
|
||||||
},
|
},
|
||||||
data() {
|
{
|
||||||
return {
|
title: "名称",
|
||||||
openTip: true, // 显示提示
|
key: "name",
|
||||||
loading: true, // 表单加载状态
|
minWidth: 120,
|
||||||
modalType: 0, // 添加或编辑标识
|
sortable: false,
|
||||||
modalVisible: false, // 添加或编辑显示
|
|
||||||
modalTitle: "", // 添加或编辑标题
|
|
||||||
searchForm: { // 搜索框初始化对象
|
|
||||||
clientType: "MOBILE", //客户端类型
|
|
||||||
pageNumber: 1, // 当前页数
|
|
||||||
pageSize: 10, // 页面大小
|
|
||||||
sort: "createTime", // 默认排序字段
|
|
||||||
order: "desc", // 默认排序方式
|
|
||||||
},
|
|
||||||
form: { // 添加或编辑表单对象初始化数据
|
|
||||||
name: "",
|
|
||||||
operationType: "",
|
|
||||||
operationUrl: "",
|
|
||||||
url: "",
|
|
||||||
sort: 0,
|
|
||||||
},
|
|
||||||
// 表单验证规则
|
|
||||||
formValidate: {
|
|
||||||
name: [{ required: true, message: "不能为空", trigger: "blur" }],
|
|
||||||
},
|
|
||||||
submitLoading: false, // 添加或编辑提交状态
|
|
||||||
selectList: [], // 多选数据
|
|
||||||
selectCount: 0, // 多选计数
|
|
||||||
columns: [
|
|
||||||
// 表头
|
|
||||||
{
|
|
||||||
type: "selection",
|
|
||||||
width: 60,
|
|
||||||
align: "center"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "名称",
|
|
||||||
key: "name",
|
|
||||||
minWidth: 120,
|
|
||||||
sortable: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "状态",
|
|
||||||
key: "status",
|
|
||||||
minWidth: 100,
|
|
||||||
sortable: false,
|
|
||||||
render: (h, params) => {
|
|
||||||
if (params.row.status == 'CLOSE') {
|
|
||||||
return h("div", [
|
|
||||||
h("Badge", {
|
|
||||||
props: {
|
|
||||||
status: "error",
|
|
||||||
text: "禁用"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]);
|
|
||||||
} else if (params.row.status == 'OPEN') {
|
|
||||||
return h("div", [
|
|
||||||
h("Badge", {
|
|
||||||
props: {
|
|
||||||
status: "success",
|
|
||||||
text: "启用"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "图片",
|
|
||||||
key: "url",
|
|
||||||
minWidth: 120,
|
|
||||||
sortable: false,
|
|
||||||
render: (h, params) => {
|
|
||||||
return h("img", {
|
|
||||||
attrs: {
|
|
||||||
src: params.row.url,
|
|
||||||
alt: "加载图片失败"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
cursor: "pointer",
|
|
||||||
width: "80px",
|
|
||||||
height: "60px",
|
|
||||||
margin: "10px 0",
|
|
||||||
"object-fit": "contain"
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "排序",
|
|
||||||
key: "sort",
|
|
||||||
minWidth: 120,
|
|
||||||
sortable: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "操作",
|
|
||||||
key: "action",
|
|
||||||
align: "center",
|
|
||||||
width: 200,
|
|
||||||
render: (h, params) => {
|
|
||||||
let enableOrDisable = "";
|
|
||||||
if (params.row.status == "CLOSE") {
|
|
||||||
enableOrDisable = h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
type: "success",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.enable(params.row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"启用"
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
enableOrDisable = h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.disable(params.row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"禁用"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return h("div", [
|
|
||||||
h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
type: "primary",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.edit(params.row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"编辑"
|
|
||||||
),
|
|
||||||
h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.remove(params.row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"删除"
|
|
||||||
),
|
|
||||||
enableOrDisable,
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
data: [], // 表单数据
|
|
||||||
total: 0 // 表单数据总数
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
methods: {
|
{
|
||||||
init() {
|
title: "状态",
|
||||||
this.getDataList();
|
key: "status",
|
||||||
},
|
minWidth: 100,
|
||||||
changePage(v) {
|
sortable: false,
|
||||||
this.searchForm.pageNumber = v;
|
render: (h, params) => {
|
||||||
this.getDataList();
|
if (params.row.status == "CLOSE") {
|
||||||
this.clearSelectAll();
|
return h("div", [
|
||||||
},
|
h("Badge", {
|
||||||
changePageSize(v) {
|
props: {
|
||||||
this.searchForm.pageSize = v;
|
status: "error",
|
||||||
this.getDataList();
|
text: "禁用",
|
||||||
},
|
},
|
||||||
handleSearch() {
|
}),
|
||||||
this.searchForm.pageNumber = 1;
|
]);
|
||||||
this.searchForm.pageSize = 10;
|
} else if (params.row.status == "OPEN") {
|
||||||
this.getDataList();
|
return h("div", [
|
||||||
},
|
h("Badge", {
|
||||||
handleReset() {
|
props: {
|
||||||
this.$refs.searchForm.resetFields();
|
status: "success",
|
||||||
this.searchForm.pageNumber = 1;
|
text: "启用",
|
||||||
this.searchForm.pageSize = 10;
|
},
|
||||||
// 重新加载数据
|
}),
|
||||||
this.getDataList();
|
]);
|
||||||
},
|
|
||||||
changeSort(e) {
|
|
||||||
this.searchForm.sort = e.key;
|
|
||||||
this.searchForm.order = e.order;
|
|
||||||
if (e.order === "normal") {
|
|
||||||
this.searchForm.order = "";
|
|
||||||
}
|
|
||||||
this.getDataList();
|
|
||||||
},
|
|
||||||
clearSelectAll() {
|
|
||||||
this.$refs.table.selectAll(false);
|
|
||||||
},
|
|
||||||
changeSelect(e) {
|
|
||||||
this.selectList = e;
|
|
||||||
this.selectCount = e.length;
|
|
||||||
},
|
|
||||||
getDataList() {
|
|
||||||
this.loading = true;
|
|
||||||
// 带多条件搜索参数获取表单数据 请自行修改接口
|
|
||||||
getFocusData(this.searchForm).then(res => {
|
|
||||||
this.loading = false;
|
|
||||||
if (res.success) {
|
|
||||||
this.data = res.result.records;
|
|
||||||
this.total = res.result.total;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// 以下为模拟数据
|
|
||||||
//this.data = [
|
|
||||||
//];
|
|
||||||
this.total = this.data.length;
|
|
||||||
this.loading = false;
|
|
||||||
},
|
|
||||||
enable(v){
|
|
||||||
this.$Modal.confirm({
|
|
||||||
title: "确认启用",
|
|
||||||
// 记得确认修改此处
|
|
||||||
content: "您确认要确认启用 " + v.name + " ?",
|
|
||||||
loading: true,
|
|
||||||
onOk: () => {
|
|
||||||
// 删除
|
|
||||||
enableFocus(v.id).then(res => {
|
|
||||||
this.$Modal.remove();
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
disable(v) {
|
|
||||||
this.$Modal.confirm({
|
|
||||||
title: "确认禁用",
|
|
||||||
// 记得确认修改此处
|
|
||||||
content: "您确认要禁用 " + v.name + " ?",
|
|
||||||
loading: true,
|
|
||||||
onOk: () => {
|
|
||||||
// 删除
|
|
||||||
disableFocus(v.id).then(res => {
|
|
||||||
this.$Modal.remove();
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
handleSubmit() {
|
|
||||||
this.$refs.form.validate(valid => {
|
|
||||||
if (valid) {
|
|
||||||
this.form.ClientType = "MOBILE"
|
|
||||||
this.submitLoading = true;
|
|
||||||
if (this.modalType === 0) {
|
|
||||||
this.form.status = "OPEN"
|
|
||||||
// 添加 避免编辑后传入id等数据 记得删除
|
|
||||||
delete this.form.id;
|
|
||||||
saveFocusData(this.form).then(res => {
|
|
||||||
this.submitLoading = false;
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
this.modalVisible = false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// 编辑
|
|
||||||
saveFocusData(this.form).then(res => {
|
|
||||||
this.submitLoading = false;
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
this.modalVisible = false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
add() {
|
|
||||||
this.modalType = 0;
|
|
||||||
this.modalTitle = "添加";
|
|
||||||
this.$refs.form.resetFields();
|
|
||||||
delete this.form.id;
|
|
||||||
this.modalVisible = true;
|
|
||||||
},
|
|
||||||
edit(v) {
|
|
||||||
this.modalType = 1;
|
|
||||||
this.modalTitle = "编辑";
|
|
||||||
this.$refs.form.resetFields();
|
|
||||||
// 转换null为""
|
|
||||||
for (let attr in v) {
|
|
||||||
if (v[attr] === null) {
|
|
||||||
v[attr] = "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let str = JSON.stringify(v);
|
|
||||||
let data = JSON.parse(str);
|
|
||||||
this.form = data;
|
|
||||||
this.modalVisible = true;
|
|
||||||
},
|
|
||||||
remove(v) {
|
|
||||||
this.$Modal.confirm({
|
|
||||||
title: "确认删除",
|
|
||||||
// 记得确认修改此处
|
|
||||||
content: "您确认要删除么?",
|
|
||||||
loading: true,
|
|
||||||
onOk: () => {
|
|
||||||
// 删除
|
|
||||||
delFocus(v.id).then(res => {
|
|
||||||
this.$Modal.remove();
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
disableAll() {
|
|
||||||
if (this.selectCount <= 0) {
|
|
||||||
this.$Message.warning("您还未选择要禁用的数据");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.$Modal.confirm({
|
|
||||||
title: "确认禁用",
|
|
||||||
content: "您确认要禁用所选的 " + this.selectCount + " 条数据?",
|
|
||||||
loading: true,
|
|
||||||
onOk: () => {
|
|
||||||
let ids = "";
|
|
||||||
this.selectList.forEach(function(e) {
|
|
||||||
ids += e.id + ",";
|
|
||||||
});
|
|
||||||
ids = ids.substring(0, ids.length - 1);
|
|
||||||
// 批量删除
|
|
||||||
disableFocus(ids).then(res => {
|
|
||||||
this.$Modal.remove();
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("禁用成功");
|
|
||||||
this.clearSelectAll();
|
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
{
|
||||||
this.init();
|
title: "图片",
|
||||||
}
|
key: "url",
|
||||||
|
minWidth: 120,
|
||||||
|
sortable: false,
|
||||||
|
render: (h, params) => {
|
||||||
|
return h("img", {
|
||||||
|
attrs: {
|
||||||
|
src: params.row.url,
|
||||||
|
alt: "加载图片失败",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
cursor: "pointer",
|
||||||
|
width: "80px",
|
||||||
|
height: "60px",
|
||||||
|
margin: "10px 0",
|
||||||
|
"object-fit": "contain",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "排序",
|
||||||
|
key: "sort",
|
||||||
|
minWidth: 120,
|
||||||
|
sortable: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "操作",
|
||||||
|
key: "action",
|
||||||
|
align: "center",
|
||||||
|
width: 200,
|
||||||
|
render: (h, params) => {
|
||||||
|
let enableOrDisable = "";
|
||||||
|
if (params.row.status == "CLOSE") {
|
||||||
|
enableOrDisable = h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
type: "success",
|
||||||
|
size: "small",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
marginRight: "5px",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.enable(params.row);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"启用"
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
enableOrDisable = h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
size: "small",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
marginRight: "5px",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.disable(params.row);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"禁用"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return h("div", [
|
||||||
|
h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
type: "primary",
|
||||||
|
size: "small",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
marginRight: "5px",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.edit(params.row);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"编辑"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
type: "error",
|
||||||
|
size: "small",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
marginRight: "5px",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.remove(params.row);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"删除"
|
||||||
|
),
|
||||||
|
enableOrDisable,
|
||||||
|
]);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
data: [], // 表单数据
|
||||||
|
total: 0, // 表单数据总数
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init() {
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
changePage(v) {
|
||||||
|
this.searchForm.pageNumber = v;
|
||||||
|
this.getDataList();
|
||||||
|
this.clearSelectAll();
|
||||||
|
},
|
||||||
|
changePageSize(v) {
|
||||||
|
this.searchForm.pageSize = v;
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
handleSearch() {
|
||||||
|
this.searchForm.pageNumber = 1;
|
||||||
|
this.searchForm.pageSize = 10;
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
handleReset() {
|
||||||
|
this.$refs.searchForm.resetFields();
|
||||||
|
this.searchForm.pageNumber = 1;
|
||||||
|
this.searchForm.pageSize = 10;
|
||||||
|
// 重新加载数据
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
changeSort(e) {
|
||||||
|
this.searchForm.sort = e.key;
|
||||||
|
this.searchForm.order = e.order;
|
||||||
|
if (e.order === "normal") {
|
||||||
|
this.searchForm.order = "";
|
||||||
|
}
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
clearSelectAll() {
|
||||||
|
this.$refs.table.selectAll(false);
|
||||||
|
},
|
||||||
|
changeSelect(e) {
|
||||||
|
this.selectList = e;
|
||||||
|
this.selectCount = e.length;
|
||||||
|
},
|
||||||
|
getDataList() {
|
||||||
|
this.loading = true;
|
||||||
|
// 带多条件搜索参数获取表单数据 请自行修改接口
|
||||||
|
getFocusData(this.searchForm).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.success) {
|
||||||
|
this.data = res.result.records;
|
||||||
|
this.total = res.result.total;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// 以下为模拟数据
|
||||||
|
//this.data = [
|
||||||
|
//];
|
||||||
|
this.total = this.data.length;
|
||||||
|
this.loading = false;
|
||||||
|
},
|
||||||
|
enable(v) {
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "确认启用",
|
||||||
|
// 记得确认修改此处
|
||||||
|
content: "您确认要确认启用 " + v.name + " ?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
// 删除
|
||||||
|
enableFocus(v.id).then((res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
disable(v) {
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "确认禁用",
|
||||||
|
// 记得确认修改此处
|
||||||
|
content: "您确认要禁用 " + v.name + " ?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
// 删除
|
||||||
|
disableFocus(v.id).then((res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleSubmit() {
|
||||||
|
this.$refs.form.validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.form.ClientType = "MOBILE";
|
||||||
|
this.submitLoading = true;
|
||||||
|
if (this.modalType === 0) {
|
||||||
|
this.form.status = "OPEN";
|
||||||
|
// 添加 避免编辑后传入id等数据 记得删除
|
||||||
|
delete this.form.id;
|
||||||
|
saveFocusData(this.form).then((res) => {
|
||||||
|
this.submitLoading = false;
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
this.modalVisible = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
// 编辑
|
||||||
|
saveFocusData(this.form).then((res) => {
|
||||||
|
this.submitLoading = false;
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
this.modalVisible = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
add() {
|
||||||
|
this.modalType = 0;
|
||||||
|
this.modalTitle = "添加";
|
||||||
|
this.$refs.form.resetFields();
|
||||||
|
delete this.form.id;
|
||||||
|
this.modalVisible = true;
|
||||||
|
},
|
||||||
|
edit(v) {
|
||||||
|
this.modalType = 1;
|
||||||
|
this.modalTitle = "编辑";
|
||||||
|
this.$refs.form.resetFields();
|
||||||
|
// 转换null为""
|
||||||
|
for (let attr in v) {
|
||||||
|
if (v[attr] === null) {
|
||||||
|
v[attr] = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let str = JSON.stringify(v);
|
||||||
|
let data = JSON.parse(str);
|
||||||
|
this.form = data;
|
||||||
|
this.modalVisible = true;
|
||||||
|
},
|
||||||
|
remove(v) {
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "确认删除",
|
||||||
|
// 记得确认修改此处
|
||||||
|
content: "您确认要删除么?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
// 删除
|
||||||
|
delFocus(v.id).then((res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
disableAll() {
|
||||||
|
if (this.selectCount <= 0) {
|
||||||
|
this.$Message.warning("您还未选择要禁用的数据");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "确认禁用",
|
||||||
|
content: "您确认要禁用所选的 " + this.selectCount + " 条数据?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
let ids = "";
|
||||||
|
this.selectList.forEach(function (e) {
|
||||||
|
ids += e.id + ",";
|
||||||
|
});
|
||||||
|
ids = ids.substring(0, ids.length - 1);
|
||||||
|
// 批量删除
|
||||||
|
disableFocus(ids).then((res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("禁用成功");
|
||||||
|
this.clearSelectAll();
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.init();
|
||||||
|
},
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
// 建议引入通用样式 可删除下面样式代码
|
// 建议引入通用样式 可删除下面样式代码
|
||||||
// @import "@/styles/table-common.scss";
|
// @import "@/styles/table-common.scss";
|
||||||
.search {
|
.search {
|
||||||
.operation {
|
.operation {
|
||||||
margin-bottom: 2vh;
|
margin-bottom: 2vh;
|
||||||
}
|
}
|
||||||
.select-count {
|
.select-count {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #40a9ff;
|
color: #40a9ff;
|
||||||
}
|
}
|
||||||
.select-clear {
|
.select-clear {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
.page {
|
.page {
|
||||||
margin-top: 2vh;
|
margin-top: 2vh;
|
||||||
}
|
}
|
||||||
.drop-down {
|
.drop-down {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,477 +1,511 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row class="operation">
|
||||||
<Card>
|
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
||||||
<Row class="operation">
|
<Button @click="disableAll" icon="md-trash">批量禁用</Button>
|
||||||
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
<Button @click="getDataList" icon="md-refresh">刷新</Button>
|
||||||
<Button @click="disableAll" icon="md-trash">批量禁用</Button>
|
<Button type="dashed" @click="openTip = !openTip">{{
|
||||||
<Button @click="getDataList" icon="md-refresh">刷新</Button>
|
openTip ? "关闭提示" : "开启提示"
|
||||||
<Button type="dashed" @click="openTip=!openTip">{{openTip ? "关闭提示" : "开启提示"}}</Button>
|
}}</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row v-show="openTip">
|
<Row v-show="openTip">
|
||||||
<Alert show-icon>
|
<Alert show-icon>
|
||||||
已选择 <span class="select-count">{{selectCount}}</span> 项
|
已选择 <span class="select-count">{{ selectCount }}</span> 项
|
||||||
<a class="select-clear" @click="clearSelectAll">清空</a>
|
<a class="select-clear" @click="clearSelectAll">清空</a>
|
||||||
</Alert>
|
</Alert>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
:loading="loading"
|
||||||
</Row>
|
border
|
||||||
<Row type="flex" justify="end" class="page">
|
:columns="columns"
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]" size="small" show-total show-elevator show-sizer></Page>
|
:data="data"
|
||||||
</Row>
|
ref="table"
|
||||||
</Card>
|
sortable="custom"
|
||||||
</Col>
|
@on-sort-change="changeSort"
|
||||||
</Row>
|
@on-selection-change="changeSelect"
|
||||||
<Modal :title="modalTitle" v-model="modalVisible" :mask-closable='false' :width="500">
|
></Table>
|
||||||
<Form ref="form" :model="form" :label-width="100" :rules="formValidate" > <FormItem label="名称" prop="name" >
|
<Row type="flex" justify="end" class="page">
|
||||||
<Input v-model="form.name" clearable style="width:100%"/>
|
<Page
|
||||||
</FormItem>
|
:current="searchForm.pageNumber"
|
||||||
<FormItem label="图片" prop="url">
|
:total="total"
|
||||||
<upload-pic-input v-model="form.url" style="width:100%"></upload-pic-input>
|
:page-size="searchForm.pageSize"
|
||||||
</FormItem>
|
@on-change="changePage"
|
||||||
<FormItem label="操作类型" prop="operationType" >
|
@on-page-size-change="changePageSize"
|
||||||
<Select v-model="form.operationType" placeholder="请选择" clearable style="width: 200px">
|
:page-size-opts="[10, 20, 50]"
|
||||||
<Option value="NONE">无操作</Option>
|
size="small"
|
||||||
<Option value="URL">链接地址</Option>
|
show-total
|
||||||
<Option value="GOODS">商品序号</Option>
|
show-elevator
|
||||||
<Option value="SHOP">店铺编号</Option>
|
show-sizer
|
||||||
<Option value="KEYWORD">关键字</Option>
|
></Page>
|
||||||
<Option value="CATEGORY">商品分类</Option>
|
</Row>
|
||||||
</Select>
|
</Card>
|
||||||
</FormItem>
|
<Modal
|
||||||
<FormItem label="链接值" prop="sort" >
|
:title="modalTitle"
|
||||||
<Input v-model="form.operationUrl" clearable style="width:100%"/>
|
v-model="modalVisible"
|
||||||
</FormItem>
|
:mask-closable="false"
|
||||||
<FormItem label="排序" prop="sort" >
|
:width="500"
|
||||||
<InputNumber :max="999" :min="0" v-model="form.sort"></InputNumber>
|
>
|
||||||
</FormItem>
|
<Form ref="form" :model="form" :label-width="100" :rules="formValidate">
|
||||||
</Form>
|
<FormItem label="名称" prop="name">
|
||||||
<div slot="footer">
|
<Input v-model="form.name" clearable style="width: 100%" />
|
||||||
<Button type="text" @click="modalVisible=false">取消</Button>
|
</FormItem>
|
||||||
<Button type="primary" :loading="submitLoading" @click="handleSubmit">提交</Button>
|
<FormItem label="图片" prop="url">
|
||||||
</div>
|
<upload-pic-input
|
||||||
</Modal>
|
v-model="form.url"
|
||||||
</div>
|
style="width: 100%"
|
||||||
|
></upload-pic-input>
|
||||||
|
</FormItem>
|
||||||
|
<FormItem label="操作类型" prop="operationType">
|
||||||
|
<Select
|
||||||
|
v-model="form.operationType"
|
||||||
|
placeholder="请选择"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
|
>
|
||||||
|
<Option value="NONE">无操作</Option>
|
||||||
|
<Option value="URL">链接地址</Option>
|
||||||
|
<Option value="GOODS">商品序号</Option>
|
||||||
|
<Option value="SHOP">店铺编号</Option>
|
||||||
|
<Option value="KEYWORD">关键字</Option>
|
||||||
|
<Option value="CATEGORY">商品分类</Option>
|
||||||
|
</Select>
|
||||||
|
</FormItem>
|
||||||
|
<FormItem label="链接值" prop="sort">
|
||||||
|
<Input v-model="form.operationUrl" clearable style="width: 100%" />
|
||||||
|
</FormItem>
|
||||||
|
<FormItem label="排序" prop="sort">
|
||||||
|
<InputNumber :max="999" :min="0" v-model="form.sort"></InputNumber>
|
||||||
|
</FormItem>
|
||||||
|
</Form>
|
||||||
|
<div slot="footer">
|
||||||
|
<Button type="text" @click="modalVisible = false">取消</Button>
|
||||||
|
<Button type="primary" :loading="submitLoading" @click="handleSubmit"
|
||||||
|
>提交</Button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</Modal>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
getFocusData,
|
getFocusData,
|
||||||
saveFocusData,
|
saveFocusData,
|
||||||
disableFocus,
|
disableFocus,
|
||||||
enableFocus,
|
enableFocus,
|
||||||
delFocus
|
delFocus,
|
||||||
} from "@/api/pages";
|
} from "@/api/pages";
|
||||||
import uploadPicInput from "@/views/my-components/lili/upload-pic-input";
|
import uploadPicInput from "@/views/my-components/lili/upload-pic-input";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "pcFocus",
|
name: "pcFocus",
|
||||||
components: {
|
components: {
|
||||||
uploadPicInput
|
uploadPicInput,
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
openTip: true, // 显示提示
|
||||||
|
loading: true, // 表单加载状态
|
||||||
|
modalType: 0, // 添加或编辑标识
|
||||||
|
modalVisible: false, // 添加或编辑显示
|
||||||
|
modalTitle: "", // 添加或编辑标题
|
||||||
|
searchForm: {
|
||||||
|
// 搜索框初始化对象
|
||||||
|
clientType: "PC", //客户端类型
|
||||||
|
pageNumber: 1, // 当前页数
|
||||||
|
pageSize: 10, // 页面大小
|
||||||
|
sort: "createTime", // 默认排序字段
|
||||||
|
order: "desc", // 默认排序方式
|
||||||
|
},
|
||||||
|
form: {
|
||||||
|
// 添加或编辑表单对象初始化数据
|
||||||
|
name: "",
|
||||||
|
operationType: "",
|
||||||
|
operationUrl: "",
|
||||||
|
url: "",
|
||||||
|
sort: 0,
|
||||||
|
},
|
||||||
|
// 表单验证规则
|
||||||
|
formValidate: {
|
||||||
|
name: [{ required: true, message: "不能为空", trigger: "blur" }],
|
||||||
|
},
|
||||||
|
submitLoading: false, // 添加或编辑提交状态
|
||||||
|
selectList: [], // 多选数据
|
||||||
|
selectCount: 0, // 多选计数
|
||||||
|
columns: [
|
||||||
|
// 表头
|
||||||
|
{
|
||||||
|
type: "selection",
|
||||||
|
width: 60,
|
||||||
|
align: "center",
|
||||||
},
|
},
|
||||||
data() {
|
{
|
||||||
return {
|
title: "名称",
|
||||||
openTip: true, // 显示提示
|
key: "name",
|
||||||
loading: true, // 表单加载状态
|
minWidth: 120,
|
||||||
modalType: 0, // 添加或编辑标识
|
sortable: false,
|
||||||
modalVisible: false, // 添加或编辑显示
|
|
||||||
modalTitle: "", // 添加或编辑标题
|
|
||||||
searchForm: { // 搜索框初始化对象
|
|
||||||
clientType: "PC", //客户端类型
|
|
||||||
pageNumber: 1, // 当前页数
|
|
||||||
pageSize: 10, // 页面大小
|
|
||||||
sort: "createTime", // 默认排序字段
|
|
||||||
order: "desc", // 默认排序方式
|
|
||||||
},
|
|
||||||
form: { // 添加或编辑表单对象初始化数据
|
|
||||||
name: "",
|
|
||||||
operationType: "",
|
|
||||||
operationUrl: "",
|
|
||||||
url: "",
|
|
||||||
sort: 0,
|
|
||||||
},
|
|
||||||
// 表单验证规则
|
|
||||||
formValidate: {
|
|
||||||
name: [{ required: true, message: "不能为空", trigger: "blur" }],
|
|
||||||
},
|
|
||||||
submitLoading: false, // 添加或编辑提交状态
|
|
||||||
selectList: [], // 多选数据
|
|
||||||
selectCount: 0, // 多选计数
|
|
||||||
columns: [
|
|
||||||
// 表头
|
|
||||||
{
|
|
||||||
type: "selection",
|
|
||||||
width: 60,
|
|
||||||
align: "center"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "名称",
|
|
||||||
key: "name",
|
|
||||||
minWidth: 120,
|
|
||||||
sortable: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "状态",
|
|
||||||
key: "status",
|
|
||||||
minWidth: 100,
|
|
||||||
sortable: false,
|
|
||||||
render: (h, params) => {
|
|
||||||
if (params.row.status == 'CLOSE') {
|
|
||||||
return h("div", [
|
|
||||||
h("Badge", {
|
|
||||||
props: {
|
|
||||||
status: "error",
|
|
||||||
text: "禁用"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]);
|
|
||||||
} else if (params.row.status == 'OPEN') {
|
|
||||||
return h("div", [
|
|
||||||
h("Badge", {
|
|
||||||
props: {
|
|
||||||
status: "success",
|
|
||||||
text: "启用"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "图片",
|
|
||||||
key: "url",
|
|
||||||
minWidth: 120,
|
|
||||||
sortable: false,
|
|
||||||
render: (h, params) => {
|
|
||||||
return h("img", {
|
|
||||||
attrs: {
|
|
||||||
src: params.row.url,
|
|
||||||
alt: "加载图片失败"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
cursor: "pointer",
|
|
||||||
width: "80px",
|
|
||||||
height: "60px",
|
|
||||||
margin: "10px 0",
|
|
||||||
"object-fit": "contain"
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "排序",
|
|
||||||
key: "sort",
|
|
||||||
minWidth: 120,
|
|
||||||
sortable: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "操作",
|
|
||||||
key: "action",
|
|
||||||
align: "center",
|
|
||||||
width: 200,
|
|
||||||
render: (h, params) => {
|
|
||||||
let enableOrDisable = "";
|
|
||||||
if (params.row.status == "CLOSE") {
|
|
||||||
enableOrDisable = h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
type: "success",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.enable(params.row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"启用"
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
enableOrDisable = h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.disable(params.row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"禁用"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return h("div", [
|
|
||||||
h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
type: "primary",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.edit(params.row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"编辑"
|
|
||||||
),
|
|
||||||
h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.remove(params.row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"删除"
|
|
||||||
),
|
|
||||||
enableOrDisable,
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
data: [], // 表单数据
|
|
||||||
total: 0 // 表单数据总数
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
methods: {
|
{
|
||||||
init() {
|
title: "状态",
|
||||||
this.getDataList();
|
key: "status",
|
||||||
},
|
minWidth: 100,
|
||||||
changePage(v) {
|
sortable: false,
|
||||||
this.searchForm.pageNumber = v;
|
render: (h, params) => {
|
||||||
this.getDataList();
|
if (params.row.status == "CLOSE") {
|
||||||
this.clearSelectAll();
|
return h("div", [
|
||||||
},
|
h("Badge", {
|
||||||
changePageSize(v) {
|
props: {
|
||||||
this.searchForm.pageSize = v;
|
status: "error",
|
||||||
this.getDataList();
|
text: "禁用",
|
||||||
},
|
},
|
||||||
handleSearch() {
|
}),
|
||||||
this.searchForm.pageNumber = 1;
|
]);
|
||||||
this.searchForm.pageSize = 10;
|
} else if (params.row.status == "OPEN") {
|
||||||
this.getDataList();
|
return h("div", [
|
||||||
},
|
h("Badge", {
|
||||||
handleReset() {
|
props: {
|
||||||
this.$refs.searchForm.resetFields();
|
status: "success",
|
||||||
this.searchForm.pageNumber = 1;
|
text: "启用",
|
||||||
this.searchForm.pageSize = 10;
|
},
|
||||||
// 重新加载数据
|
}),
|
||||||
this.getDataList();
|
]);
|
||||||
},
|
|
||||||
changeSort(e) {
|
|
||||||
this.searchForm.sort = e.key;
|
|
||||||
this.searchForm.order = e.order;
|
|
||||||
if (e.order === "normal") {
|
|
||||||
this.searchForm.order = "";
|
|
||||||
}
|
|
||||||
this.getDataList();
|
|
||||||
},
|
|
||||||
clearSelectAll() {
|
|
||||||
this.$refs.table.selectAll(false);
|
|
||||||
},
|
|
||||||
changeSelect(e) {
|
|
||||||
this.selectList = e;
|
|
||||||
this.selectCount = e.length;
|
|
||||||
},
|
|
||||||
getDataList() {
|
|
||||||
this.loading = true;
|
|
||||||
// 带多条件搜索参数获取表单数据 请自行修改接口
|
|
||||||
getFocusData(this.searchForm).then(res => {
|
|
||||||
this.loading = false;
|
|
||||||
if (res.success) {
|
|
||||||
this.data = res.result.records;
|
|
||||||
this.total = res.result.total;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// 以下为模拟数据
|
|
||||||
//this.data = [
|
|
||||||
//];
|
|
||||||
this.total = this.data.length;
|
|
||||||
this.loading = false;
|
|
||||||
},
|
|
||||||
enable(v){
|
|
||||||
this.$Modal.confirm({
|
|
||||||
title: "确认启用",
|
|
||||||
// 记得确认修改此处
|
|
||||||
content: "您确认要确认启用 " + v.name + " ?",
|
|
||||||
loading: true,
|
|
||||||
onOk: () => {
|
|
||||||
// 删除
|
|
||||||
enableFocus(v.id).then(res => {
|
|
||||||
this.$Modal.remove();
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
disable(v) {
|
|
||||||
this.$Modal.confirm({
|
|
||||||
title: "确认禁用",
|
|
||||||
// 记得确认修改此处
|
|
||||||
content: "您确认要禁用 " + v.name + " ?",
|
|
||||||
loading: true,
|
|
||||||
onOk: () => {
|
|
||||||
// 删除
|
|
||||||
disableFocus(v.id).then(res => {
|
|
||||||
this.$Modal.remove();
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
handleSubmit() {
|
|
||||||
this.$refs.form.validate(valid => {
|
|
||||||
if (valid) {
|
|
||||||
this.form.ClientType = "PC"
|
|
||||||
this.submitLoading = true;
|
|
||||||
if (this.modalType === 0) {
|
|
||||||
this.form.status = "OPEN"
|
|
||||||
// 添加 避免编辑后传入id等数据 记得删除
|
|
||||||
delete this.form.id;
|
|
||||||
saveFocusData(this.form).then(res => {
|
|
||||||
this.submitLoading = false;
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
this.modalVisible = false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// 编辑
|
|
||||||
saveFocusData(this.form).then(res => {
|
|
||||||
this.submitLoading = false;
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
this.modalVisible = false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
add() {
|
|
||||||
this.modalType = 0;
|
|
||||||
this.modalTitle = "添加";
|
|
||||||
this.$refs.form.resetFields();
|
|
||||||
delete this.form.id;
|
|
||||||
this.modalVisible = true;
|
|
||||||
},
|
|
||||||
edit(v) {
|
|
||||||
this.modalType = 1;
|
|
||||||
this.modalTitle = "编辑";
|
|
||||||
this.$refs.form.resetFields();
|
|
||||||
// 转换null为""
|
|
||||||
for (let attr in v) {
|
|
||||||
if (v[attr] === null) {
|
|
||||||
v[attr] = "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let str = JSON.stringify(v);
|
|
||||||
let data = JSON.parse(str);
|
|
||||||
this.form = data;
|
|
||||||
this.modalVisible = true;
|
|
||||||
},
|
|
||||||
remove(v) {
|
|
||||||
this.$Modal.confirm({
|
|
||||||
title: "确认删除",
|
|
||||||
// 记得确认修改此处
|
|
||||||
content: "您确认要删除么?",
|
|
||||||
loading: true,
|
|
||||||
onOk: () => {
|
|
||||||
// 删除
|
|
||||||
delFocus(v.id).then(res => {
|
|
||||||
this.$Modal.remove();
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
disableAll() {
|
|
||||||
if (this.selectCount <= 0) {
|
|
||||||
this.$Message.warning("您还未选择要禁用的数据");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.$Modal.confirm({
|
|
||||||
title: "确认禁用",
|
|
||||||
content: "您确认要禁用所选的 " + this.selectCount + " 条数据?",
|
|
||||||
loading: true,
|
|
||||||
onOk: () => {
|
|
||||||
let ids = "";
|
|
||||||
this.selectList.forEach(function(e) {
|
|
||||||
ids += e.id + ",";
|
|
||||||
});
|
|
||||||
ids = ids.substring(0, ids.length - 1);
|
|
||||||
// 批量删除
|
|
||||||
disableFocus(ids).then(res => {
|
|
||||||
this.$Modal.remove();
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("禁用成功");
|
|
||||||
this.clearSelectAll();
|
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
{
|
||||||
this.init();
|
title: "图片",
|
||||||
}
|
key: "url",
|
||||||
|
minWidth: 120,
|
||||||
|
sortable: false,
|
||||||
|
render: (h, params) => {
|
||||||
|
return h("img", {
|
||||||
|
attrs: {
|
||||||
|
src: params.row.url,
|
||||||
|
alt: "加载图片失败",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
cursor: "pointer",
|
||||||
|
width: "80px",
|
||||||
|
height: "60px",
|
||||||
|
margin: "10px 0",
|
||||||
|
"object-fit": "contain",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "排序",
|
||||||
|
key: "sort",
|
||||||
|
minWidth: 120,
|
||||||
|
sortable: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "操作",
|
||||||
|
key: "action",
|
||||||
|
align: "center",
|
||||||
|
width: 200,
|
||||||
|
render: (h, params) => {
|
||||||
|
let enableOrDisable = "";
|
||||||
|
if (params.row.status == "CLOSE") {
|
||||||
|
enableOrDisable = h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
type: "success",
|
||||||
|
size: "small",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
marginRight: "5px",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.enable(params.row);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"启用"
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
enableOrDisable = h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
size: "small",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
marginRight: "5px",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.disable(params.row);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"禁用"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return h("div", [
|
||||||
|
h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
type: "primary",
|
||||||
|
size: "small",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
marginRight: "5px",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.edit(params.row);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"编辑"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
type: "error",
|
||||||
|
size: "small",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
marginRight: "5px",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.remove(params.row);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"删除"
|
||||||
|
),
|
||||||
|
enableOrDisable,
|
||||||
|
]);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
data: [], // 表单数据
|
||||||
|
total: 0, // 表单数据总数
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init() {
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
changePage(v) {
|
||||||
|
this.searchForm.pageNumber = v;
|
||||||
|
this.getDataList();
|
||||||
|
this.clearSelectAll();
|
||||||
|
},
|
||||||
|
changePageSize(v) {
|
||||||
|
this.searchForm.pageSize = v;
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
handleSearch() {
|
||||||
|
this.searchForm.pageNumber = 1;
|
||||||
|
this.searchForm.pageSize = 10;
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
handleReset() {
|
||||||
|
this.$refs.searchForm.resetFields();
|
||||||
|
this.searchForm.pageNumber = 1;
|
||||||
|
this.searchForm.pageSize = 10;
|
||||||
|
// 重新加载数据
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
changeSort(e) {
|
||||||
|
this.searchForm.sort = e.key;
|
||||||
|
this.searchForm.order = e.order;
|
||||||
|
if (e.order === "normal") {
|
||||||
|
this.searchForm.order = "";
|
||||||
|
}
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
clearSelectAll() {
|
||||||
|
this.$refs.table.selectAll(false);
|
||||||
|
},
|
||||||
|
changeSelect(e) {
|
||||||
|
this.selectList = e;
|
||||||
|
this.selectCount = e.length;
|
||||||
|
},
|
||||||
|
getDataList() {
|
||||||
|
this.loading = true;
|
||||||
|
// 带多条件搜索参数获取表单数据 请自行修改接口
|
||||||
|
getFocusData(this.searchForm).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.success) {
|
||||||
|
this.data = res.result.records;
|
||||||
|
this.total = res.result.total;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// 以下为模拟数据
|
||||||
|
//this.data = [
|
||||||
|
//];
|
||||||
|
this.total = this.data.length;
|
||||||
|
this.loading = false;
|
||||||
|
},
|
||||||
|
enable(v) {
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "确认启用",
|
||||||
|
// 记得确认修改此处
|
||||||
|
content: "您确认要确认启用 " + v.name + " ?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
// 删除
|
||||||
|
enableFocus(v.id).then((res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
disable(v) {
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "确认禁用",
|
||||||
|
// 记得确认修改此处
|
||||||
|
content: "您确认要禁用 " + v.name + " ?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
// 删除
|
||||||
|
disableFocus(v.id).then((res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleSubmit() {
|
||||||
|
this.$refs.form.validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.form.ClientType = "PC";
|
||||||
|
this.submitLoading = true;
|
||||||
|
if (this.modalType === 0) {
|
||||||
|
this.form.status = "OPEN";
|
||||||
|
// 添加 避免编辑后传入id等数据 记得删除
|
||||||
|
delete this.form.id;
|
||||||
|
saveFocusData(this.form).then((res) => {
|
||||||
|
this.submitLoading = false;
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
this.modalVisible = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
// 编辑
|
||||||
|
saveFocusData(this.form).then((res) => {
|
||||||
|
this.submitLoading = false;
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
this.modalVisible = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
add() {
|
||||||
|
this.modalType = 0;
|
||||||
|
this.modalTitle = "添加";
|
||||||
|
this.$refs.form.resetFields();
|
||||||
|
delete this.form.id;
|
||||||
|
this.modalVisible = true;
|
||||||
|
},
|
||||||
|
edit(v) {
|
||||||
|
this.modalType = 1;
|
||||||
|
this.modalTitle = "编辑";
|
||||||
|
this.$refs.form.resetFields();
|
||||||
|
// 转换null为""
|
||||||
|
for (let attr in v) {
|
||||||
|
if (v[attr] === null) {
|
||||||
|
v[attr] = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let str = JSON.stringify(v);
|
||||||
|
let data = JSON.parse(str);
|
||||||
|
this.form = data;
|
||||||
|
this.modalVisible = true;
|
||||||
|
},
|
||||||
|
remove(v) {
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "确认删除",
|
||||||
|
// 记得确认修改此处
|
||||||
|
content: "您确认要删除么?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
// 删除
|
||||||
|
delFocus(v.id).then((res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
disableAll() {
|
||||||
|
if (this.selectCount <= 0) {
|
||||||
|
this.$Message.warning("您还未选择要禁用的数据");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "确认禁用",
|
||||||
|
content: "您确认要禁用所选的 " + this.selectCount + " 条数据?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
let ids = "";
|
||||||
|
this.selectList.forEach(function (e) {
|
||||||
|
ids += e.id + ",";
|
||||||
|
});
|
||||||
|
ids = ids.substring(0, ids.length - 1);
|
||||||
|
// 批量删除
|
||||||
|
disableFocus(ids).then((res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("禁用成功");
|
||||||
|
this.clearSelectAll();
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.init();
|
||||||
|
},
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
// 建议引入通用样式 可删除下面样式代码
|
// 建议引入通用样式 可删除下面样式代码
|
||||||
// @import "@/styles/table-common.scss";
|
// @import "@/styles/table-common.scss";
|
||||||
.search {
|
.search {
|
||||||
.operation {
|
.operation {
|
||||||
margin-bottom: 2vh;
|
margin-bottom: 2vh;
|
||||||
}
|
}
|
||||||
.select-count {
|
.select-count {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #40a9ff;
|
color: #40a9ff;
|
||||||
}
|
}
|
||||||
.select-clear {
|
.select-clear {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
.page {
|
.page {
|
||||||
margin-top: 2vh;
|
margin-top: 2vh;
|
||||||
}
|
}
|
||||||
.drop-down {
|
.drop-down {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,467 +1,496 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row class="operation">
|
||||||
<Card>
|
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
||||||
<Row class="operation">
|
<Button @click="disableAll" icon="md-trash">批量禁用</Button>
|
||||||
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
<Button @click="getDataList" icon="md-refresh">刷新</Button>
|
||||||
<Button @click="disableAll" icon="md-trash">批量禁用</Button>
|
<Button type="dashed" @click="openTip = !openTip">{{
|
||||||
<Button @click="getDataList" icon="md-refresh">刷新</Button>
|
openTip ? "关闭提示" : "开启提示"
|
||||||
<Button type="dashed" @click="openTip=!openTip">{{openTip ? "关闭提示" : "开启提示"}}</Button>
|
}}</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row v-show="openTip">
|
<Row v-show="openTip">
|
||||||
<Alert show-icon>
|
<Alert show-icon>
|
||||||
已选择 <span class="select-count">{{selectCount}}</span> 项
|
已选择 <span class="select-count">{{ selectCount }}</span> 项
|
||||||
<a class="select-clear" @click="clearSelectAll">清空</a>
|
<a class="select-clear" @click="clearSelectAll">清空</a>
|
||||||
</Alert>
|
</Alert>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom"
|
:loading="loading"
|
||||||
@on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
border
|
||||||
</Row>
|
:columns="columns"
|
||||||
<Row type="flex" justify="end" class="page">
|
:data="data"
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize"
|
ref="table"
|
||||||
@on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]"
|
sortable="custom"
|
||||||
size="small" show-total show-elevator show-sizer></Page>
|
@on-sort-change="changeSort"
|
||||||
</Row>
|
@on-selection-change="changeSelect"
|
||||||
</Card>
|
></Table>
|
||||||
</Col>
|
<Row type="flex" justify="end" class="page">
|
||||||
</Row>
|
<Page
|
||||||
<Modal :title="modalTitle" v-model="modalVisible" :mask-closable='false' :width="500">
|
:current="searchForm.pageNumber"
|
||||||
<Form ref="form" :model="form" :label-width="100" :rules="formValidate">
|
:total="total"
|
||||||
<FormItem label="导航栏名称" prop="navigationName">
|
:page-size="searchForm.pageSize"
|
||||||
<Input v-model="form.navigationName" clearable style="width:100%"/>
|
@on-change="changePage"
|
||||||
</FormItem>
|
@on-page-size-change="changePageSize"
|
||||||
<FormItem label="导航栏链接" prop="url">
|
:page-size-opts="[10, 20, 50]"
|
||||||
<Input v-model="form.url" clearable style="width:100%"/>
|
size="small"
|
||||||
</FormItem>
|
show-total
|
||||||
<FormItem label="品牌图标" prop="image">
|
show-elevator
|
||||||
<upload-pic-input v-model="form.image" style="width:100%"></upload-pic-input>
|
show-sizer
|
||||||
</FormItem>
|
></Page>
|
||||||
</Form>
|
</Row>
|
||||||
<div slot="footer">
|
</Card>
|
||||||
<Button type="text" @click="modalVisible=false">取消</Button>
|
<Modal
|
||||||
<Button type="primary" :loading="submitLoading" @click="handleSubmit">提交</Button>
|
:title="modalTitle"
|
||||||
</div>
|
v-model="modalVisible"
|
||||||
</Modal>
|
:mask-closable="false"
|
||||||
</div>
|
:width="500"
|
||||||
|
>
|
||||||
|
<Form ref="form" :model="form" :label-width="100" :rules="formValidate">
|
||||||
|
<FormItem label="导航栏名称" prop="navigationName">
|
||||||
|
<Input v-model="form.navigationName" clearable style="width: 100%" />
|
||||||
|
</FormItem>
|
||||||
|
<FormItem label="导航栏链接" prop="url">
|
||||||
|
<Input v-model="form.url" clearable style="width: 100%" />
|
||||||
|
</FormItem>
|
||||||
|
<FormItem label="品牌图标" prop="image">
|
||||||
|
<upload-pic-input
|
||||||
|
v-model="form.image"
|
||||||
|
style="width: 100%"
|
||||||
|
></upload-pic-input>
|
||||||
|
</FormItem>
|
||||||
|
</Form>
|
||||||
|
<div slot="footer">
|
||||||
|
<Button type="text" @click="modalVisible = false">取消</Button>
|
||||||
|
<Button type="primary" :loading="submitLoading" @click="handleSubmit"
|
||||||
|
>提交</Button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</Modal>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
save,
|
save,
|
||||||
getNavigationData,
|
getNavigationData,
|
||||||
disableNavigation,
|
disableNavigation,
|
||||||
enableNavigation,
|
enableNavigation,
|
||||||
delNavigation,
|
delNavigation,
|
||||||
update
|
update,
|
||||||
} from "@/api/pages";
|
} from "@/api/pages";
|
||||||
import uploadPicInput from "@/views/my-components/lili/upload-pic-input";
|
import uploadPicInput from "@/views/my-components/lili/upload-pic-input";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "mobileNavigation",
|
name: "mobileNavigation",
|
||||||
components: {
|
components: {
|
||||||
uploadPicInput
|
uploadPicInput,
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
openTip: true, // 显示提示
|
||||||
|
loading: true, // 表单加载状态
|
||||||
|
type: "MOBILE", // 手机还是pc
|
||||||
|
modalType: 0, // 添加或编辑标识
|
||||||
|
modalVisible: false, // 添加或编辑显示
|
||||||
|
modalTitle: "", // 添加或编辑标题
|
||||||
|
searchForm: {
|
||||||
|
// 搜索框初始化对象
|
||||||
|
pageNumber: 1, // 当前页数
|
||||||
|
pageSize: 10, // 页面大小
|
||||||
|
sort: "createTime", // 默认排序字段
|
||||||
|
order: "desc", // 默认排序方式
|
||||||
|
},
|
||||||
|
form: {
|
||||||
|
// 添加或编辑表单对象初始化数据
|
||||||
|
navigationName: "",
|
||||||
|
image: "",
|
||||||
|
url: "",
|
||||||
|
},
|
||||||
|
// 表单验证规则
|
||||||
|
formValidate: {
|
||||||
|
url: [
|
||||||
|
{ required: true, message: "导航栏url不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
navigationName: [
|
||||||
|
{ required: true, message: "导航栏不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
submitLoading: false, // 添加或编辑提交状态
|
||||||
|
selectList: [], // 多选数据
|
||||||
|
selectCount: 0, // 多选计数
|
||||||
|
columns: [
|
||||||
|
// 表头
|
||||||
|
{
|
||||||
|
type: "selection",
|
||||||
|
width: 60,
|
||||||
|
align: "center",
|
||||||
},
|
},
|
||||||
data() {
|
{
|
||||||
return {
|
title: "导航名称",
|
||||||
openTip: true, // 显示提示
|
key: "navigationName",
|
||||||
loading: true, // 表单加载状态
|
minWidth: 120,
|
||||||
type: "MOBILE", // 手机还是pc
|
sortable: false,
|
||||||
modalType: 0, // 添加或编辑标识
|
|
||||||
modalVisible: false, // 添加或编辑显示
|
|
||||||
modalTitle: "", // 添加或编辑标题
|
|
||||||
searchForm: { // 搜索框初始化对象
|
|
||||||
pageNumber: 1, // 当前页数
|
|
||||||
pageSize: 10, // 页面大小
|
|
||||||
sort: "createTime", // 默认排序字段
|
|
||||||
order: "desc", // 默认排序方式
|
|
||||||
},
|
|
||||||
form: { // 添加或编辑表单对象初始化数据
|
|
||||||
navigationName: "",
|
|
||||||
image: "",
|
|
||||||
url: "",
|
|
||||||
},
|
|
||||||
// 表单验证规则
|
|
||||||
formValidate: {
|
|
||||||
url: [{required: true, message: "导航栏url不能为空", trigger: "blur"}],
|
|
||||||
navigationName: [{required: true, message: "导航栏不能为空", trigger: "blur"}],
|
|
||||||
},
|
|
||||||
submitLoading: false, // 添加或编辑提交状态
|
|
||||||
selectList: [], // 多选数据
|
|
||||||
selectCount: 0, // 多选计数
|
|
||||||
columns: [
|
|
||||||
// 表头
|
|
||||||
{
|
|
||||||
type: "selection",
|
|
||||||
width: 60,
|
|
||||||
align: "center"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "导航名称",
|
|
||||||
key: "navigationName",
|
|
||||||
minWidth: 120,
|
|
||||||
sortable: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "状态",
|
|
||||||
key: "status",
|
|
||||||
minWidth: 100,
|
|
||||||
sortable: false,
|
|
||||||
render: (h, params) => {
|
|
||||||
if (params.row.status == 'CLOSE') {
|
|
||||||
return h("div", [
|
|
||||||
h("Badge", {
|
|
||||||
props: {
|
|
||||||
status: "error",
|
|
||||||
text: "禁用"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]);
|
|
||||||
} else if (params.row.status == 'OPEN') {
|
|
||||||
return h("div", [
|
|
||||||
h("Badge", {
|
|
||||||
props: {
|
|
||||||
status: "success",
|
|
||||||
text: "启用"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "图片",
|
|
||||||
key: "image",
|
|
||||||
minWidth: 120,
|
|
||||||
sortable: false,
|
|
||||||
render: (h, params) => {
|
|
||||||
return h("img", {
|
|
||||||
attrs: {
|
|
||||||
src: params.row.image,
|
|
||||||
alt: "加载图片失败"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
cursor: "pointer",
|
|
||||||
width: "80px",
|
|
||||||
height: "60px",
|
|
||||||
margin: "10px 0",
|
|
||||||
"object-fit": "contain"
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "排序",
|
|
||||||
key: "sort",
|
|
||||||
minWidth: 120,
|
|
||||||
sortable: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "操作",
|
|
||||||
key: "action",
|
|
||||||
align: "center",
|
|
||||||
width: 250,
|
|
||||||
render: (h, params) => {
|
|
||||||
console.warn(params.status)
|
|
||||||
let enableOrDisable = "";
|
|
||||||
if (params.row.status == "CLOSE") {
|
|
||||||
enableOrDisable = h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
type: "success",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.enable(params.row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"启用"
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
enableOrDisable = h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.disable(params.row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"禁用"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return h("div", [
|
|
||||||
h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
type: "primary",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.edit(params.row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"编辑"
|
|
||||||
),
|
|
||||||
h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.del(params.row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"删除"
|
|
||||||
),
|
|
||||||
enableOrDisable,
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
data: [], // 表单数据
|
|
||||||
total: 0 // 表单数据总数
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
methods: {
|
{
|
||||||
init() {
|
title: "状态",
|
||||||
this.getDataList();
|
key: "status",
|
||||||
},
|
minWidth: 100,
|
||||||
changePage(v) {
|
sortable: false,
|
||||||
this.searchForm.pageNumber = v;
|
render: (h, params) => {
|
||||||
this.getDataList();
|
if (params.row.status == "CLOSE") {
|
||||||
this.clearSelectAll();
|
return h("div", [
|
||||||
},
|
h("Badge", {
|
||||||
changePageSize(v) {
|
props: {
|
||||||
this.searchForm.pageSize = v;
|
status: "error",
|
||||||
this.getDataList();
|
text: "禁用",
|
||||||
},
|
},
|
||||||
handleSearch() {
|
}),
|
||||||
this.searchForm.pageNumber = 1;
|
]);
|
||||||
this.searchForm.pageSize = 10;
|
} else if (params.row.status == "OPEN") {
|
||||||
this.getDataList();
|
return h("div", [
|
||||||
},
|
h("Badge", {
|
||||||
handleReset() {
|
props: {
|
||||||
this.$refs.searchForm.resetFields();
|
status: "success",
|
||||||
this.searchForm.pageNumber = 1;
|
text: "启用",
|
||||||
this.searchForm.pageSize = 10;
|
},
|
||||||
// 重新加载数据
|
}),
|
||||||
this.getDataList();
|
]);
|
||||||
},
|
|
||||||
changeSort(e) {
|
|
||||||
this.searchForm.sort = e.key;
|
|
||||||
this.searchForm.order = e.order;
|
|
||||||
if (e.order === "normal") {
|
|
||||||
this.searchForm.order = "";
|
|
||||||
}
|
|
||||||
this.getDataList();
|
|
||||||
},
|
|
||||||
clearSelectAll() {
|
|
||||||
this.$refs.table.selectAll(false);
|
|
||||||
},
|
|
||||||
changeSelect(e) {
|
|
||||||
this.selectList = e;
|
|
||||||
this.selectCount = e.length;
|
|
||||||
},
|
|
||||||
getDataList() {
|
|
||||||
this.searchForm.clientType = this.type
|
|
||||||
this.loading = true;
|
|
||||||
// 带多条件搜索参数获取表单数据 请自行修改接口
|
|
||||||
getNavigationData(this.searchForm).then(res => {
|
|
||||||
this.loading = false;
|
|
||||||
if (res.success) {
|
|
||||||
this.data = res.result.records;
|
|
||||||
this.total = res.result.total;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.total = this.data.length;
|
|
||||||
this.loading = false;
|
|
||||||
},
|
|
||||||
handleSubmit() {
|
|
||||||
this.$refs.form.validate(valid => {
|
|
||||||
if (valid) {
|
|
||||||
this.submitLoading = true;
|
|
||||||
this.form.clientType = this.type
|
|
||||||
if (this.modalType === 0) {
|
|
||||||
// 添加 避免编辑后传入id等数据 记得删除
|
|
||||||
delete this.form.id;
|
|
||||||
save(this.form).then(res => {
|
|
||||||
this.submitLoading = false;
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
this.modalVisible = false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// 编辑
|
|
||||||
update(this.form).then(res => {
|
|
||||||
this.submitLoading = false;
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
this.modalVisible = false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
add() {
|
|
||||||
this.modalType = 0;
|
|
||||||
this.modalTitle = "添加";
|
|
||||||
this.$refs.form.resetFields();
|
|
||||||
delete this.form.id;
|
|
||||||
this.modalVisible = true;
|
|
||||||
},
|
|
||||||
edit(v) {
|
|
||||||
this.modalType = 1;
|
|
||||||
this.modalTitle = "编辑";
|
|
||||||
this.$refs.form.resetFields();
|
|
||||||
// 转换null为""
|
|
||||||
for (let attr in v) {
|
|
||||||
if (v[attr] === null) {
|
|
||||||
v[attr] = "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let str = JSON.stringify(v);
|
|
||||||
let data = JSON.parse(str);
|
|
||||||
this.form = data;
|
|
||||||
this.modalVisible = true;
|
|
||||||
},
|
|
||||||
enable(v){
|
|
||||||
this.$Modal.confirm({
|
|
||||||
title: "确认启用",
|
|
||||||
// 记得确认修改此处
|
|
||||||
content: "您确认要确认启用 " + v.navigationName + " ?",
|
|
||||||
loading: true,
|
|
||||||
onOk: () => {
|
|
||||||
// 删除
|
|
||||||
enableNavigation(v.id).then(res => {
|
|
||||||
this.$Modal.remove();
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
disable(v) {
|
|
||||||
this.$Modal.confirm({
|
|
||||||
title: "确认禁用",
|
|
||||||
// 记得确认修改此处
|
|
||||||
content: "您确认要禁用 " + v.navigationName + " ?",
|
|
||||||
loading: true,
|
|
||||||
onOk: () => {
|
|
||||||
// 删除
|
|
||||||
disableNavigation(v.id).then(res => {
|
|
||||||
this.$Modal.remove();
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
disableAll() {
|
|
||||||
if (this.selectCount <= 0) {
|
|
||||||
this.$Message.warning("您还未选择要禁用的数据");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.$Modal.confirm({
|
|
||||||
title: "确认禁用",
|
|
||||||
content: "您确认要禁用所选的 " + this.selectCount + " 条数据?",
|
|
||||||
loading: true,
|
|
||||||
onOk: () => {
|
|
||||||
let ids = "";
|
|
||||||
this.selectList.forEach(function (e) {
|
|
||||||
ids += e.id + ",";
|
|
||||||
});
|
|
||||||
ids = ids.substring(0, ids.length - 1);
|
|
||||||
// 批量禁用
|
|
||||||
disableNavigation(ids).then(res => {
|
|
||||||
this.$Modal.remove();
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.clearSelectAll();
|
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
del(v) {
|
|
||||||
this.$Modal.confirm({
|
|
||||||
title: "确认删除",
|
|
||||||
// 记得确认修改此处
|
|
||||||
content: "您确认要永久性删除 " + v.navigationName + " ?",
|
|
||||||
loading: true,
|
|
||||||
onOk: () => {
|
|
||||||
// 删除
|
|
||||||
delNavigation(v.id).then(res => {
|
|
||||||
this.$Modal.remove();
|
|
||||||
if (res.success) {
|
|
||||||
this.$Message.success("操作成功");
|
|
||||||
this.getDataList();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
mounted() {
|
title: "图片",
|
||||||
this.init();
|
key: "image",
|
||||||
}
|
minWidth: 120,
|
||||||
|
sortable: false,
|
||||||
|
render: (h, params) => {
|
||||||
|
return h("img", {
|
||||||
|
attrs: {
|
||||||
|
src: params.row.image,
|
||||||
|
alt: "加载图片失败",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
cursor: "pointer",
|
||||||
|
width: "80px",
|
||||||
|
height: "60px",
|
||||||
|
margin: "10px 0",
|
||||||
|
"object-fit": "contain",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "排序",
|
||||||
|
key: "sort",
|
||||||
|
minWidth: 120,
|
||||||
|
sortable: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "操作",
|
||||||
|
key: "action",
|
||||||
|
align: "center",
|
||||||
|
width: 250,
|
||||||
|
render: (h, params) => {
|
||||||
|
console.warn(params.status);
|
||||||
|
let enableOrDisable = "";
|
||||||
|
if (params.row.status == "CLOSE") {
|
||||||
|
enableOrDisable = h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
type: "success",
|
||||||
|
size: "small",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
marginRight: "5px",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.enable(params.row);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"启用"
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
enableOrDisable = h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
size: "small",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
marginRight: "5px",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.disable(params.row);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"禁用"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return h("div", [
|
||||||
|
h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
type: "primary",
|
||||||
|
size: "small",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
marginRight: "5px",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.edit(params.row);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"编辑"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"Button",
|
||||||
|
{
|
||||||
|
props: {
|
||||||
|
type: "error",
|
||||||
|
size: "small",
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
marginRight: "5px",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.del(params.row);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"删除"
|
||||||
|
),
|
||||||
|
enableOrDisable,
|
||||||
|
]);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
data: [], // 表单数据
|
||||||
|
total: 0, // 表单数据总数
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init() {
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
changePage(v) {
|
||||||
|
this.searchForm.pageNumber = v;
|
||||||
|
this.getDataList();
|
||||||
|
this.clearSelectAll();
|
||||||
|
},
|
||||||
|
changePageSize(v) {
|
||||||
|
this.searchForm.pageSize = v;
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
handleSearch() {
|
||||||
|
this.searchForm.pageNumber = 1;
|
||||||
|
this.searchForm.pageSize = 10;
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
handleReset() {
|
||||||
|
this.$refs.searchForm.resetFields();
|
||||||
|
this.searchForm.pageNumber = 1;
|
||||||
|
this.searchForm.pageSize = 10;
|
||||||
|
// 重新加载数据
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
changeSort(e) {
|
||||||
|
this.searchForm.sort = e.key;
|
||||||
|
this.searchForm.order = e.order;
|
||||||
|
if (e.order === "normal") {
|
||||||
|
this.searchForm.order = "";
|
||||||
|
}
|
||||||
|
this.getDataList();
|
||||||
|
},
|
||||||
|
clearSelectAll() {
|
||||||
|
this.$refs.table.selectAll(false);
|
||||||
|
},
|
||||||
|
changeSelect(e) {
|
||||||
|
this.selectList = e;
|
||||||
|
this.selectCount = e.length;
|
||||||
|
},
|
||||||
|
getDataList() {
|
||||||
|
this.searchForm.clientType = this.type;
|
||||||
|
this.loading = true;
|
||||||
|
// 带多条件搜索参数获取表单数据 请自行修改接口
|
||||||
|
getNavigationData(this.searchForm).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.success) {
|
||||||
|
this.data = res.result.records;
|
||||||
|
this.total = res.result.total;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.total = this.data.length;
|
||||||
|
this.loading = false;
|
||||||
|
},
|
||||||
|
handleSubmit() {
|
||||||
|
this.$refs.form.validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.submitLoading = true;
|
||||||
|
this.form.clientType = this.type;
|
||||||
|
if (this.modalType === 0) {
|
||||||
|
// 添加 避免编辑后传入id等数据 记得删除
|
||||||
|
delete this.form.id;
|
||||||
|
save(this.form).then((res) => {
|
||||||
|
this.submitLoading = false;
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
this.modalVisible = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
// 编辑
|
||||||
|
update(this.form).then((res) => {
|
||||||
|
this.submitLoading = false;
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
this.modalVisible = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
add() {
|
||||||
|
this.modalType = 0;
|
||||||
|
this.modalTitle = "添加";
|
||||||
|
this.$refs.form.resetFields();
|
||||||
|
delete this.form.id;
|
||||||
|
this.modalVisible = true;
|
||||||
|
},
|
||||||
|
edit(v) {
|
||||||
|
this.modalType = 1;
|
||||||
|
this.modalTitle = "编辑";
|
||||||
|
this.$refs.form.resetFields();
|
||||||
|
// 转换null为""
|
||||||
|
for (let attr in v) {
|
||||||
|
if (v[attr] === null) {
|
||||||
|
v[attr] = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let str = JSON.stringify(v);
|
||||||
|
let data = JSON.parse(str);
|
||||||
|
this.form = data;
|
||||||
|
this.modalVisible = true;
|
||||||
|
},
|
||||||
|
enable(v) {
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "确认启用",
|
||||||
|
// 记得确认修改此处
|
||||||
|
content: "您确认要确认启用 " + v.navigationName + " ?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
// 删除
|
||||||
|
enableNavigation(v.id).then((res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
disable(v) {
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "确认禁用",
|
||||||
|
// 记得确认修改此处
|
||||||
|
content: "您确认要禁用 " + v.navigationName + " ?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
// 删除
|
||||||
|
disableNavigation(v.id).then((res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
disableAll() {
|
||||||
|
if (this.selectCount <= 0) {
|
||||||
|
this.$Message.warning("您还未选择要禁用的数据");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "确认禁用",
|
||||||
|
content: "您确认要禁用所选的 " + this.selectCount + " 条数据?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
let ids = "";
|
||||||
|
this.selectList.forEach(function (e) {
|
||||||
|
ids += e.id + ",";
|
||||||
|
});
|
||||||
|
ids = ids.substring(0, ids.length - 1);
|
||||||
|
// 批量禁用
|
||||||
|
disableNavigation(ids).then((res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.clearSelectAll();
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
del(v) {
|
||||||
|
this.$Modal.confirm({
|
||||||
|
title: "确认删除",
|
||||||
|
// 记得确认修改此处
|
||||||
|
content: "您确认要永久性删除 " + v.navigationName + " ?",
|
||||||
|
loading: true,
|
||||||
|
onOk: () => {
|
||||||
|
// 删除
|
||||||
|
delNavigation(v.id).then((res) => {
|
||||||
|
this.$Modal.remove();
|
||||||
|
if (res.success) {
|
||||||
|
this.$Message.success("操作成功");
|
||||||
|
this.getDataList();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
mounted() {
|
||||||
|
this.init();
|
||||||
|
},
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
// 建议引入通用样式 可删除下面样式代码
|
// 建议引入通用样式 可删除下面样式代码
|
||||||
// @import "@/styles/table-common.scss";
|
// @import "@/styles/table-common.scss";
|
||||||
.search {
|
.search {
|
||||||
.operation {
|
.operation {
|
||||||
margin-bottom: 2vh;
|
margin-bottom: 2vh;
|
||||||
}
|
}
|
||||||
.select-count {
|
.select-count {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #40a9ff;
|
color: #40a9ff;
|
||||||
}
|
}
|
||||||
.select-clear {
|
.select-clear {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
.page {
|
.page {
|
||||||
margin-top: 2vh;
|
margin-top: 2vh;
|
||||||
}
|
}
|
||||||
.drop-down {
|
.drop-down {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
|
||||||
<Col>
|
|
||||||
<Card>
|
<Card>
|
||||||
<Row class="operation">
|
<Row class="operation">
|
||||||
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
||||||
|
@ -15,18 +13,14 @@
|
||||||
<a class="select-clear" @click="clearSelectAll">清空</a>
|
<a class="select-clear" @click="clearSelectAll">清空</a>
|
||||||
</Alert>
|
</Alert>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom"
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom"
|
@on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
||||||
@on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize"
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize"
|
||||||
@on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]"
|
@on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]"
|
||||||
size="small" show-total show-elevator show-sizer></Page>
|
size="small" show-total show-elevator show-sizer></Page>
|
||||||
</Row>
|
</Row>
|
||||||
</Card>
|
</Card>
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Modal :title="modalTitle" v-model="modalVisible" :mask-closable='false' :width="500">
|
<Modal :title="modalTitle" v-model="modalVisible" :mask-closable='false' :width="500">
|
||||||
<Form ref="form" :model="form" :label-width="100" :rules="formValidate">
|
<Form ref="form" :model="form" :label-width="100" :rules="formValidate">
|
||||||
<FormItem label="导航栏名称" prop="navigationName">
|
<FormItem label="导航栏名称" prop="navigationName">
|
||||||
|
|
|
@ -42,46 +42,37 @@
|
||||||
<Button @click="delAll">批量下架</Button>
|
<Button @click="delAll">批量下架</Button>
|
||||||
<!-- <Button @click="upAll" >批量上架</Button> -->
|
<!-- <Button @click="upAll" >批量上架</Button> -->
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
>
|
||||||
>
|
<template slot-scope="{ row }" slot="action">
|
||||||
<template slot-scope="{ row }" slot="action">
|
<Button
|
||||||
<!-- <Button
|
v-if="row.promotionStatus === 'NEW' || row.promotionStatus === 'CLOSE'"
|
||||||
type="info"
|
type="primary"
|
||||||
size="small"
|
size="small"
|
||||||
style="margin-right: 10px"
|
style="margin-right: 10px"
|
||||||
@click="receiveInfo(row)"
|
@click="edit(row)"
|
||||||
>查看</Button
|
>编辑
|
||||||
> -->
|
</Button
|
||||||
<Button
|
>
|
||||||
v-if="row.promotionStatus === 'NEW' || row.promotionStatus === 'CLOSE'"
|
<Button
|
||||||
type="primary"
|
v-if="row.promotionStatus === 'START' || row.promotionStatus === 'NEW'"
|
||||||
size="small"
|
type="error"
|
||||||
style="margin-right: 10px"
|
size="small"
|
||||||
@click="edit(row)"
|
style="margin-right: 10px"
|
||||||
>编辑
|
@click="remove(row)"
|
||||||
</Button
|
>下架
|
||||||
>
|
</Button
|
||||||
<Button
|
>
|
||||||
v-if="row.promotionStatus === 'START' || row.promotionStatus === 'NEW'"
|
</template>
|
||||||
type="error"
|
</Table>
|
||||||
size="small"
|
|
||||||
style="margin-right: 10px"
|
|
||||||
@click="remove(row)"
|
|
||||||
>下架
|
|
||||||
</Button
|
|
||||||
>
|
|
||||||
</template>
|
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber + 1"
|
:current="searchForm.pageNumber + 1"
|
||||||
|
|
|
@ -72,9 +72,7 @@
|
||||||
</div>
|
</div>
|
||||||
<h4>适用品类范围</h4>
|
<h4>适用品类范围</h4>
|
||||||
<div>
|
<div>
|
||||||
<Row>
|
<Table :loading="loading" border :columns="columns1" :data="data1" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
||||||
<Table :loading="loading" border :columns="columns1" :data="data1" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
||||||
size="small" show-total show-elevator show-sizer></Page>
|
size="small" show-total show-elevator show-sizer></Page>
|
||||||
|
|
|
@ -1,51 +1,45 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Table
|
||||||
<Card>
|
:loading="loading"
|
||||||
<Row>
|
border
|
||||||
<Table
|
:columns="columns"
|
||||||
:loading="loading"
|
:data="data"
|
||||||
border
|
ref="table"
|
||||||
:columns="columns"
|
sortable="custom"
|
||||||
:data="data"
|
@on-sort-change="changeSort"
|
||||||
ref="table"
|
@on-selection-change="changeSelect"
|
||||||
sortable="custom"
|
>
|
||||||
@on-sort-change="changeSort"
|
<template slot-scope="{ row }" slot="rangeTime">
|
||||||
@on-selection-change="changeSelect"
|
<div>{{ row.startTime }} ~ {{ row.endTime }}</div>
|
||||||
>
|
</template>
|
||||||
<template slot-scope="{ row }" slot="rangeTime">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<div>{{ row.startTime }} ~ {{ row.endTime }}</div>
|
<Button
|
||||||
</template>
|
type="error"
|
||||||
<template slot-scope="{ row }" slot="action">
|
ghost
|
||||||
<Button
|
|
||||||
type="error"
|
|
||||||
ghost
|
|
||||||
size="small"
|
|
||||||
:disabled="row.memberCouponStatus != 'NEW'"
|
|
||||||
@click="remove(row)"
|
|
||||||
>作废</Button
|
|
||||||
>
|
|
||||||
</template>
|
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
|
||||||
<Page
|
|
||||||
:current="searchForm.pageNumber"
|
|
||||||
:total="total"
|
|
||||||
:page-size="searchForm.pageSize"
|
|
||||||
@on-change="changePage"
|
|
||||||
@on-page-size-change="changePageSize"
|
|
||||||
:page-size-opts="[10, 20, 50]"
|
|
||||||
size="small"
|
size="small"
|
||||||
show-total
|
:disabled="row.memberCouponStatus != 'NEW'"
|
||||||
show-elevator
|
@click="remove(row)"
|
||||||
show-sizer
|
>作废</Button
|
||||||
></Page>
|
>
|
||||||
</Row>
|
</template>
|
||||||
</Card>
|
</Table>
|
||||||
</Col>
|
<Row type="flex" justify="end" class="page">
|
||||||
</Row>
|
<Page
|
||||||
|
:current="searchForm.pageNumber"
|
||||||
|
:total="total"
|
||||||
|
:page-size="searchForm.pageSize"
|
||||||
|
@on-change="changePage"
|
||||||
|
@on-page-size-change="changePageSize"
|
||||||
|
:page-size-opts="[10, 20, 50]"
|
||||||
|
size="small"
|
||||||
|
show-total
|
||||||
|
show-elevator
|
||||||
|
show-sizer
|
||||||
|
></Page>
|
||||||
|
</Row>
|
||||||
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -43,35 +43,33 @@
|
||||||
<Button @click="handleSearch" type="primary" class="search-btn" icon="ios-search">搜索</Button>
|
<Button @click="handleSearch" type="primary" class="search-btn" icon="ios-search">搜索</Button>
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
>
|
||||||
>
|
<template slot-scope="{ row }" slot="applyEndTime">
|
||||||
<template slot-scope="{ row }" slot="applyEndTime">
|
{{ unixDate(row.applyEndTime) }}
|
||||||
{{ unixDate(row.applyEndTime) }}
|
</template>
|
||||||
</template>
|
<template slot-scope="{ row }" slot="promotionType">
|
||||||
<template slot-scope="{ row }" slot="promotionType">
|
{{ row.isFullMinus ? "满减" : "满折" }}
|
||||||
{{ row.isFullMinus ? "满减" : "满折" }}
|
</template>
|
||||||
</template>
|
<template slot-scope="{ row }" slot="hours">
|
||||||
<template slot-scope="{ row }" slot="hours">
|
<Tag v-for="item in unixHours(row.hours)" :key="item">{{
|
||||||
<Tag v-for="item in unixHours(row.hours)" :key="item">{{
|
item
|
||||||
item
|
}}</Tag>
|
||||||
}}</Tag>
|
</template>
|
||||||
</template>
|
<template slot-scope="{ row }" slot="action">
|
||||||
<template slot-scope="{ row }" slot="action">
|
<div>
|
||||||
<div>
|
<Button type="success" size="small" @click="view(row)"
|
||||||
<Button type="success" size="small" @click="view(row)"
|
>查看</Button
|
||||||
>查看</Button
|
>
|
||||||
>
|
</div>
|
||||||
</div>
|
</template>
|
||||||
</template>
|
</Table>
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page operation">
|
<Row type="flex" justify="end" class="page operation">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber + 1"
|
:current="searchForm.pageNumber + 1"
|
||||||
|
|
|
@ -45,7 +45,6 @@
|
||||||
>
|
>
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="padding-row">
|
|
||||||
<Table
|
<Table
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
border
|
border
|
||||||
|
@ -72,7 +71,6 @@
|
||||||
</Button>
|
</Button>
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber + 1"
|
:current="searchForm.pageNumber + 1"
|
||||||
|
|
|
@ -10,10 +10,10 @@
|
||||||
></Table>
|
></Table>
|
||||||
|
|
||||||
<h4>商品信息</h4>
|
<h4>商品信息</h4>
|
||||||
<Row class="operation">
|
|
||||||
<Table
|
<Table
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
border
|
border
|
||||||
|
class="operation"
|
||||||
:columns="goodsColumns"
|
:columns="goodsColumns"
|
||||||
:data="goodsData"
|
:data="goodsData"
|
||||||
ref="table"
|
ref="table"
|
||||||
|
@ -34,7 +34,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</Table>
|
</Table>
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page operation">
|
<Row type="flex" justify="end" class="page operation">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber + 1"
|
:current="searchForm.pageNumber + 1"
|
||||||
|
|
|
@ -61,70 +61,68 @@
|
||||||
<Button @click="addPointsGoods" type="primary" >添加积分商品</Button>
|
<Button @click="addPointsGoods" type="primary" >添加积分商品</Button>
|
||||||
|
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
>
|
||||||
>
|
<template slot-scope="{ row }" slot="goodsName">
|
||||||
<template slot-scope="{ row }" slot="goodsName">
|
<div>
|
||||||
<div>
|
<a class="mr_10" @click="linkTo(row.goodsSku.goodsId,row.goodsSku.skuId)">{{row.goodsSku.goodsName}}</a>
|
||||||
<a class="mr_10" @click="linkTo(row.goodsSku.goodsId,row.goodsSku.skuId)">{{row.goodsSku.goodsName}}</a>
|
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
||||||
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
<div slot="content">
|
||||||
<div slot="content">
|
<vue-qr :text="wapLinkTo(row.goodsSku.goodsId,row.goodsSku.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
||||||
<vue-qr :text="wapLinkTo(row.goodsSku.goodsId,row.goodsSku.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
</div>
|
||||||
</div>
|
<img src="../../../assets/qrcode.svg" style="vertical-align:middle;" class="hover-pointer" width="20" height="20" alt="">
|
||||||
<img src="../../../assets/qrcode.svg" style="vertical-align:middle;" class="hover-pointer" width="20" height="20" alt="">
|
</Poptip>
|
||||||
</Poptip>
|
</div>
|
||||||
</div>
|
</template>
|
||||||
</template>
|
<template slot-scope="{ row }" slot="price">
|
||||||
<template slot-scope="{ row }" slot="price">
|
<div>{{ row.goodsSku.price | unitPrice("¥") }}</div>
|
||||||
<div>{{ row.goodsSku.price | unitPrice("¥") }}</div>
|
</template>
|
||||||
</template>
|
<template slot-scope="{ row }" slot="settlementPrice">
|
||||||
<template slot-scope="{ row }" slot="settlementPrice">
|
<div>{{ row.settlementPrice | unitPrice("¥") }}</div>
|
||||||
<div>{{ row.settlementPrice | unitPrice("¥") }}</div>
|
</template>
|
||||||
</template>
|
<template slot-scope="{ row }" slot="quantity">
|
||||||
<template slot-scope="{ row }" slot="quantity">
|
<div>{{ row.goodsSku.quantity }}</div>
|
||||||
<div>{{ row.goodsSku.quantity }}</div>
|
</template>
|
||||||
</template>
|
<template slot-scope="{ row }" slot="startTime">
|
||||||
<template slot-scope="{ row }" slot="startTime">
|
<div>{{ row.startTime }}</div>
|
||||||
<div>{{ row.startTime }}</div>
|
<div>{{ row.endTime }}</div>
|
||||||
<div>{{ row.endTime }}</div>
|
</template>
|
||||||
</template>
|
|
||||||
|
|
||||||
<template slot-scope="{ row }" slot="action">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<Button
|
<Button
|
||||||
v-if="row.promotionStatus == 'NEW'"
|
v-if="row.promotionStatus == 'NEW'"
|
||||||
type="info"
|
type="info"
|
||||||
size="small"
|
size="small"
|
||||||
@click="edit(row.id)"
|
@click="edit(row.id)"
|
||||||
style="margin-right: 5px"
|
style="margin-right: 5px"
|
||||||
>编辑</Button
|
>编辑</Button
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
v-if="row.promotionStatus == 'START'"
|
v-if="row.promotionStatus == 'START'"
|
||||||
type="warning"
|
type="warning"
|
||||||
size="small"
|
size="small"
|
||||||
@click="statusChanged(row.id, 'CLOSE')"
|
@click="statusChanged(row.id, 'CLOSE')"
|
||||||
style="margin-right: 5px"
|
style="margin-right: 5px"
|
||||||
>停用</Button
|
>停用</Button
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
v-if="row.promotionStatus == 'CLOSE'"
|
v-if="row.promotionStatus == 'CLOSE'"
|
||||||
type="warning"
|
type="warning"
|
||||||
size="small"
|
size="small"
|
||||||
@click="statusChanged(row.id, 'START')"
|
@click="statusChanged(row.id, 'START')"
|
||||||
style="margin-right: 5px"
|
style="margin-right: 5px"
|
||||||
>启用</Button
|
>启用</Button
|
||||||
>
|
>
|
||||||
<Button type="error" size="small" @click="close(row.id)"
|
<Button type="error" size="small" @click="close(row.id)"
|
||||||
>删除</Button
|
>删除</Button
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
|
|
@ -53,66 +53,64 @@
|
||||||
<Row class="operation padding-row">
|
<Row class="operation padding-row">
|
||||||
<Button type="primary" @click="add">添加活动</Button>
|
<Button type="primary" @click="add">添加活动</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
class="page"
|
||||||
class="page"
|
>
|
||||||
>
|
<template slot-scope="{ row }" slot="action">
|
||||||
<template slot-scope="{ row }" slot="action">
|
<Button
|
||||||
<Button
|
type="info"
|
||||||
type="info"
|
size="small"
|
||||||
size="small"
|
class="mr_5"
|
||||||
class="mr_5"
|
v-if="row.promotionStatus == 'NEW'"
|
||||||
v-if="row.promotionStatus == 'NEW'"
|
@click="edit(row)"
|
||||||
@click="edit(row)"
|
>编辑</Button
|
||||||
>编辑</Button
|
>
|
||||||
>
|
|
||||||
|
<Button
|
||||||
<Button
|
type="info"
|
||||||
type="info"
|
size="small"
|
||||||
size="small"
|
class="mr_5"
|
||||||
class="mr_5"
|
v-else
|
||||||
v-else
|
@click="manage(row)"
|
||||||
@click="manage(row)"
|
>查看</Button
|
||||||
>查看</Button
|
>
|
||||||
>
|
|
||||||
|
<Button
|
||||||
<Button
|
type="primary"
|
||||||
type="primary"
|
size="small"
|
||||||
size="small"
|
class="mr_5"
|
||||||
class="mr_5"
|
v-if="row.promotionStatus == 'NEW'"
|
||||||
v-if="row.promotionStatus == 'NEW'"
|
@click="manage(row)"
|
||||||
@click="manage(row)"
|
>管理</Button
|
||||||
>管理</Button
|
>
|
||||||
>
|
|
||||||
|
<!-- <Button type="success" size="small" class="mr_5" v-if="row.promotionStatus == 'NEW' || row.promotionStatus == 'END'" @click="upper(row)">上架</Button> -->
|
||||||
<!-- <Button type="success" size="small" class="mr_5" v-if="row.promotionStatus == 'NEW' || row.promotionStatus == 'END'" @click="upper(row)">上架</Button> -->
|
<Button
|
||||||
<Button
|
type="error"
|
||||||
type="error"
|
size="small"
|
||||||
size="small"
|
v-if="
|
||||||
v-if="
|
row.promotionStatus == 'START' || row.promotionStatus == 'NEW'
|
||||||
row.promotionStatus == 'START' || row.promotionStatus == 'NEW'
|
"
|
||||||
"
|
class="mr_5"
|
||||||
class="mr_5"
|
@click="off(row)"
|
||||||
@click="off(row)"
|
>下架</Button
|
||||||
>下架</Button
|
>
|
||||||
>
|
|
||||||
|
<Button
|
||||||
<Button
|
type="error"
|
||||||
type="error"
|
size="small"
|
||||||
size="small"
|
v-if="row.promotionStatus == 'CLOSE'"
|
||||||
v-if="row.promotionStatus == 'CLOSE'"
|
ghost
|
||||||
ghost
|
@click="expire(row)"
|
||||||
@click="expire(row)"
|
>删除</Button
|
||||||
>删除</Button
|
>
|
||||||
>
|
</template>
|
||||||
</template>
|
</Table>
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber + 1"
|
:current="searchForm.pageNumber + 1"
|
||||||
|
|
|
@ -29,10 +29,10 @@
|
||||||
<a class="select-clear" @click="clearSelectAll">清空</a>
|
<a class="select-clear" @click="clearSelectAll">清空</a>
|
||||||
</Alert>
|
</Alert>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="operation">
|
|
||||||
<Table
|
<Table
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
border
|
border
|
||||||
|
class="operation"
|
||||||
:columns="goodsColumns"
|
:columns="goodsColumns"
|
||||||
:data="goodsList"
|
:data="goodsList"
|
||||||
ref="table"
|
ref="table"
|
||||||
|
@ -106,7 +106,6 @@
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber + 1"
|
:current="searchForm.pageNumber + 1"
|
||||||
|
|
|
@ -1,32 +1,26 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form-item label="账单编号" prop="sn">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input type="text" v-model="searchForm.sn" placeholder="请输入账单编号" clearable style="width: 200px" />
|
||||||
<Form-item label="账单编号" prop="sn">
|
</Form-item>
|
||||||
<Input type="text" v-model="searchForm.sn" placeholder="请输入账单编号" clearable style="width: 200px" />
|
<Form-item label="出帐时间" prop="createTime">
|
||||||
</Form-item>
|
<DatePicker v-model="selectDate" type="daterange" format="yyyy-MM-dd HH:mm:ss" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px">
|
||||||
<Form-item label="出帐时间" prop="createTime">
|
</DatePicker>
|
||||||
<DatePicker v-model="selectDate" type="daterange" format="yyyy-MM-dd HH:mm:ss" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px">
|
</Form-item>
|
||||||
</DatePicker>
|
|
||||||
</Form-item>
|
|
||||||
|
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
|
</Table>
|
||||||
</Table>
|
<Row type="flex" justify="end" class="page">
|
||||||
</Row>
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
||||||
<Row type="flex" justify="end" class="page">
|
size="small" show-total show-elevator show-sizer></Page>
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
</Row>
|
||||||
size="small" show-total show-elevator show-sizer></Page>
|
</Card>
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -48,15 +48,13 @@
|
||||||
<Tabs active-key="key1" @on-click="clickTabs">
|
<Tabs active-key="key1" @on-click="clickTabs">
|
||||||
<Tab-pane label="入账流水" key="key1">
|
<Tab-pane label="入账流水" key="key1">
|
||||||
<Card>
|
<Card>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="orderColumns"
|
||||||
:columns="orderColumns"
|
:data="order"
|
||||||
:data="order"
|
ref="table"
|
||||||
ref="table"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="orderParam.pageNumber"
|
:current="orderParam.pageNumber"
|
||||||
|
@ -73,15 +71,13 @@
|
||||||
</Tab-pane>
|
</Tab-pane>
|
||||||
<Tab-pane label="退款流水" key="key2">
|
<Tab-pane label="退款流水" key="key2">
|
||||||
<Card>
|
<Card>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="refundColumns"
|
||||||
:columns="refundColumns"
|
:data="refund"
|
||||||
:data="refund"
|
ref="table"
|
||||||
ref="table"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="refundParam.pageNumber"
|
:current="refundParam.pageNumber"
|
||||||
|
|
|
@ -1,42 +1,36 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form-item label="账单编号" prop="sn">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input type="text" v-model="searchForm.sn" placeholder="请输入账单编号" clearable style="width: 200px" />
|
||||||
<Form-item label="账单编号" prop="sn">
|
</Form-item>
|
||||||
<Input type="text" v-model="searchForm.sn" placeholder="请输入账单编号" clearable style="width: 200px" />
|
<Form-item label="出帐时间" prop="createTime">
|
||||||
</Form-item>
|
<DatePicker v-model="selectDate" type="daterange" format="yyyy-MM-dd HH:mm:ss" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px">
|
||||||
<Form-item label="出帐时间" prop="createTime">
|
</DatePicker>
|
||||||
<DatePicker v-model="selectDate" type="daterange" format="yyyy-MM-dd HH:mm:ss" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px">
|
</Form-item>
|
||||||
</DatePicker>
|
<Form-item label="筛选状态">
|
||||||
</Form-item>
|
<Select v-model="searchForm.billStatus" style="width:160px">
|
||||||
<Form-item label="筛选状态">
|
<Option value="">全部</Option>
|
||||||
<Select v-model="searchForm.billStatus" style="width:160px">
|
<Option value="OUT">已出账</Option>
|
||||||
<Option value="">全部</Option>
|
<Option value="CHECK">已核对</Option>
|
||||||
<Option value="OUT">已出账</Option>
|
<Option value="COMPLETE">已完成</Option>
|
||||||
<Option value="CHECK">已核对</Option>
|
</Select>
|
||||||
<Option value="COMPLETE">已完成</Option>
|
</Form-item>
|
||||||
</Select>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item>
|
</Form>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
</Row>
|
||||||
</Form>
|
<Row class="operation padding-row">
|
||||||
</Row>
|
<Button @click="delAll">批量删除</Button>
|
||||||
<Row class="operation padding-row">
|
</Row>
|
||||||
<Button @click="delAll">批量删除</Button>
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-selection-change="changeSelect">
|
||||||
</Row>
|
</Table>
|
||||||
<Row>
|
<Row type="flex" justify="end" class="page">
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-selection-change="changeSelect">
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
||||||
</Table>
|
size="small" show-total show-elevator show-sizer></Page>
|
||||||
</Row>
|
</Row>
|
||||||
<Row type="flex" justify="end" class="page">
|
</Card>
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
|
||||||
size="small" show-total show-elevator show-sizer></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,44 +1,38 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form-item label="会员名称" prop="memberName">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input
|
||||||
<Form-item label="会员名称" prop="memberName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.memberName"
|
||||||
type="text"
|
placeholder="请输入会员名称"
|
||||||
v-model="searchForm.memberName"
|
clearable
|
||||||
placeholder="请输入会员名称"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="店铺名称" prop="storeName">
|
||||||
</Form-item>
|
<Input
|
||||||
<Form-item label="店铺名称" prop="storeName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.storeName"
|
||||||
type="text"
|
placeholder="请输入店铺名称"
|
||||||
v-model="searchForm.storeName"
|
clearable
|
||||||
placeholder="请输入店铺名称"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="创建时间" prop="createTime">
|
||||||
</Form-item>
|
<DatePicker v-model="selectDate" type="datetimerange" format="yyyy-MM-dd HH:mm:ss" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker>
|
||||||
<Form-item label="创建时间" prop="createTime">
|
</Form-item>
|
||||||
<DatePicker v-model="selectDate" type="datetimerange" format="yyyy-MM-dd HH:mm:ss" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item>
|
</Form>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
</Row>
|
||||||
</Form>
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
||||||
</Row>
|
<Row type="flex" justify="end" class="page">
|
||||||
<Row class="padding-row">
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
size="small" show-total show-elevator show-sizer></Page>
|
||||||
</Row>
|
</Row>
|
||||||
<Row type="flex" justify="end" class="page">
|
</Card>
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
|
||||||
size="small" show-total show-elevator show-sizer></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -246,22 +246,20 @@
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<div style="min-height: 180px">
|
<div style="min-height: 180px">
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="orderColumns"
|
||||||
:columns="orderColumns"
|
:data="orderData"
|
||||||
:data="orderData"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="orderChangeSort"
|
||||||
@on-sort-change="orderChangeSort"
|
>
|
||||||
>
|
<!-- 订单详情格式化 -->
|
||||||
<!-- 订单详情格式化 -->
|
<template slot="orderSlot" slot-scope="scope">
|
||||||
<template slot="orderSlot" slot-scope="scope">
|
<a @click="$router.push({name: 'order-detail',query: {sn: scope.row.sn}})">{{scope.row.sn}}</a>
|
||||||
<a @click="$router.push({name: 'order-detail',query: {sn: scope.row.sn}})">{{scope.row.sn}}</a>
|
</template>
|
||||||
</template>
|
</Table>
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
|
|
||||||
<Row type="flex" justify="end" class="page" style="margin-top: 10px">
|
<Row type="flex" justify="end" class="page" style="margin-top: 10px">
|
||||||
<Page
|
<Page
|
||||||
|
@ -349,44 +347,42 @@
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<div style="min-height: 180px">
|
<div style="min-height: 180px">
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="refundGoodsOrderColumns"
|
||||||
:columns="refundGoodsOrderColumns"
|
:data="refundGoodsOrderData"
|
||||||
:data="refundGoodsOrderData"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="refundGoodsOrderChangeSort"
|
||||||
@on-sort-change="refundGoodsOrderChangeSort"
|
>
|
||||||
>
|
<!-- 商品栏目格式化 -->
|
||||||
<!-- 商品栏目格式化 -->
|
<template slot="goodsSlot" slot-scope="scope">
|
||||||
<template slot="goodsSlot" slot-scope="scope">
|
<div style="margin-top: 5px;height: 80px; display: flex;">
|
||||||
<div style="margin-top: 5px;height: 80px; display: flex;">
|
<div style="">
|
||||||
<div style="">
|
<img :src="scope.row.goodsImage" style="height: 60px;margin-top: 3px">
|
||||||
<img :src="scope.row.goodsImage" style="height: 60px;margin-top: 3px">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="margin-left: 13px;margin-top: 3px;">
|
|
||||||
<div class="div-zoom">
|
|
||||||
<a>{{scope.row.goodsName}}</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
<div style="margin-left: 13px;margin-top: 3px;">
|
||||||
|
<div class="div-zoom">
|
||||||
|
<a>{{scope.row.goodsName}}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- 订单详情格式化 -->
|
</template>
|
||||||
<template slot="orderSlot" slot-scope="scope">
|
|
||||||
<a
|
|
||||||
@click="$router.push({name: 'order-detail',query: {sn: scope.row.orderSn}})">{{scope.row.orderSn}}</a>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<!-- 售后单详情格式化 -->
|
<!-- 订单详情格式化 -->
|
||||||
<template slot="refundGoodsOrderSlot" slot-scope="scope">
|
<template slot="orderSlot" slot-scope="scope">
|
||||||
<a @click="$router.push({name: 'after-order-detail',query: {sn: scope.row.sn}})">{{scope.row.sn}}</a>
|
<a
|
||||||
</template>
|
@click="$router.push({name: 'order-detail',query: {sn: scope.row.orderSn}})">{{scope.row.orderSn}}</a>
|
||||||
</Table>
|
</template>
|
||||||
</Row>
|
|
||||||
|
<!-- 售后单详情格式化 -->
|
||||||
|
<template slot="refundGoodsOrderSlot" slot-scope="scope">
|
||||||
|
<a @click="$router.push({name: 'after-order-detail',query: {sn: scope.row.sn}})">{{scope.row.sn}}</a>
|
||||||
|
</template>
|
||||||
|
</Table>
|
||||||
|
|
||||||
<Row type="flex" justify="end" class="page" style="margin-top: 10px">
|
<Row type="flex" justify="end" class="page" style="margin-top: 10px">
|
||||||
<Page
|
<Page
|
||||||
|
@ -474,44 +470,42 @@
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<div style="min-height: 180px">
|
<div style="min-height: 180px">
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="refundGoodsOrderColumns"
|
||||||
:columns="refundGoodsOrderColumns"
|
:data="refundOrderData"
|
||||||
:data="refundOrderData"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="refundOrderChangeSort"
|
||||||
@on-sort-change="refundOrderChangeSort"
|
>
|
||||||
>
|
<!-- 商品栏目格式化 -->
|
||||||
<!-- 商品栏目格式化 -->
|
<template slot="goodsSlot" slot-scope="scope">
|
||||||
<template slot="goodsSlot" slot-scope="scope">
|
<div style="margin-top: 5px;height: 80px; display: flex;">
|
||||||
<div style="margin-top: 5px;height: 80px; display: flex;">
|
<div style="">
|
||||||
<div style="">
|
<img :src="scope.row.goodsImage" style="height: 60px;margin-top: 3px">
|
||||||
<img :src="scope.row.goodsImage" style="height: 60px;margin-top: 3px">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="margin-left: 13px;margin-top: 3px;">
|
|
||||||
<div class="div-zoom">
|
|
||||||
<a>{{scope.row.goodsName}}</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
<div style="margin-left: 13px;margin-top: 3px;">
|
||||||
|
<div class="div-zoom">
|
||||||
|
<a>{{scope.row.goodsName}}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- 订单详情格式化 -->
|
</template>
|
||||||
<template slot="orderSlot" slot-scope="scope">
|
|
||||||
<a
|
|
||||||
@click="$router.push({name: 'order-detail',query: {sn: scope.row.orderSn}})">{{scope.row.orderSn}}</a>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<!-- 售后单详情格式化 -->
|
<!-- 订单详情格式化 -->
|
||||||
<template slot="refundGoodsOrderSlot" slot-scope="scope">
|
<template slot="orderSlot" slot-scope="scope">
|
||||||
<a @click="$router.push({name: 'after-order-detail',query: {sn: scope.row.sn}})">{{scope.row.sn}}</a>
|
<a
|
||||||
</template>
|
@click="$router.push({name: 'order-detail',query: {sn: scope.row.orderSn}})">{{scope.row.orderSn}}</a>
|
||||||
</Table>
|
</template>
|
||||||
</Row>
|
|
||||||
|
<!-- 售后单详情格式化 -->
|
||||||
|
<template slot="refundGoodsOrderSlot" slot-scope="scope">
|
||||||
|
<a @click="$router.push({name: 'after-order-detail',query: {sn: scope.row.sn}})">{{scope.row.sn}}</a>
|
||||||
|
</template>
|
||||||
|
</Table>
|
||||||
|
|
||||||
<Row type="flex" justify="end" class="page" style="margin-top: 10px">
|
<Row type="flex" justify="end" class="page" style="margin-top: 10px">
|
||||||
<Page
|
<Page
|
||||||
|
|
|
@ -1,56 +1,50 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form-item label="会员名称" prop="memberName">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input
|
||||||
<Form-item label="会员名称" prop="memberName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.memberName"
|
||||||
type="text"
|
placeholder="请输入会员名称"
|
||||||
v-model="searchForm.memberName"
|
clearable
|
||||||
placeholder="请输入会员名称"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="店铺名称" prop="storeName">
|
||||||
</Form-item>
|
<Input
|
||||||
<Form-item label="店铺名称" prop="storeName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.storeName"
|
||||||
type="text"
|
placeholder="请输入店铺名称"
|
||||||
v-model="searchForm.storeName"
|
clearable
|
||||||
placeholder="请输入店铺名称"
|
style="width: 200px"
|
||||||
clearable
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="店铺状态" prop="shopDisable">
|
||||||
</Form-item>
|
<Select v-model="searchForm.shopDisable" clearable style="width: 200px">
|
||||||
<Form-item label="店铺状态" prop="shopDisable">
|
<Option value="OPEN">开启中</Option>
|
||||||
<Select v-model="searchForm.shopDisable" clearable style="width: 200px">
|
<Option value="CLOSED">已关闭</Option>
|
||||||
<Option value="OPEN">开启中</Option>
|
<Option value="APPLY">申请中</Option>
|
||||||
<Option value="CLOSED">已关闭</Option>
|
<Option value="APPLYING">审核中</Option>
|
||||||
<Option value="APPLY">申请中</Option>
|
<Option value="REFUSED">审核拒绝</Option>
|
||||||
<Option value="APPLYING">审核中</Option>
|
</Select>
|
||||||
<Option value="REFUSED">审核拒绝</Option>
|
</Form-item>
|
||||||
</Select>
|
<Form-item label="创建时间" prop="createTime">
|
||||||
</Form-item>
|
<DatePicker v-model="selectDate" type="datetimerange" format="yyyy-MM-dd HH:mm:ss" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker>
|
||||||
<Form-item label="创建时间" prop="createTime">
|
</Form-item>
|
||||||
<DatePicker v-model="selectDate" type="datetimerange" format="yyyy-MM-dd HH:mm:ss" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item>
|
</Form>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
</Row>
|
||||||
</Form>
|
<Row class="operation padding-row">
|
||||||
</Row>
|
<Button @click="add" type="primary">添加</Button>
|
||||||
<Row class="operation padding-row">
|
</Row>
|
||||||
<Button @click="add" type="primary">添加</Button>
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
||||||
</Row>
|
<Row type="flex" justify="end" class="page">
|
||||||
<Row>
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
|
size="small" show-total show-elevator show-sizer></Page>
|
||||||
</Row>
|
</Row>
|
||||||
<Row type="flex" justify="end" class="page">
|
</Card>
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
|
||||||
size="small" show-total show-elevator show-sizer></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,41 +1,35 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row class="operation">
|
||||||
<Card>
|
<Button @click="add" type="primary">添加</Button>
|
||||||
<Row class="operation">
|
<Button @click="delAll">批量删除</Button>
|
||||||
<Button @click="add" type="primary">添加</Button>
|
</Row>
|
||||||
<Button @click="delAll">批量删除</Button>
|
<Table
|
||||||
</Row>
|
:loading="loading"
|
||||||
<Row>
|
border
|
||||||
<Table
|
:columns="columns"
|
||||||
:loading="loading"
|
:data="data"
|
||||||
border
|
ref="table"
|
||||||
:columns="columns"
|
sortable="custom"
|
||||||
:data="data"
|
@on-sort-change="changeSort"
|
||||||
ref="table"
|
@on-selection-change="changeSelect"
|
||||||
sortable="custom"
|
></Table>
|
||||||
@on-sort-change="changeSort"
|
<Row type="flex" justify="end" class="page">
|
||||||
@on-selection-change="changeSelect"
|
<Page
|
||||||
></Table>
|
:current="searchForm.pageNumber"
|
||||||
</Row>
|
:total="total"
|
||||||
<Row type="flex" justify="end" class="page">
|
:page-size="searchForm.pageSize"
|
||||||
<Page
|
@on-change="changePage"
|
||||||
:current="searchForm.pageNumber"
|
@on-page-size-change="changePageSize"
|
||||||
:total="total"
|
:page-size-opts="[10, 20, 50]"
|
||||||
:page-size="searchForm.pageSize"
|
size="small"
|
||||||
@on-change="changePage"
|
show-total
|
||||||
@on-page-size-change="changePageSize"
|
show-elevator
|
||||||
:page-size-opts="[10, 20, 50]"
|
show-sizer
|
||||||
size="small"
|
></Page>
|
||||||
show-total
|
</Row>
|
||||||
show-elevator
|
</Card>
|
||||||
show-sizer
|
|
||||||
></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Modal
|
<Modal
|
||||||
:title="modalTitle"
|
:title="modalTitle"
|
||||||
v-model="modalVisible"
|
v-model="modalVisible"
|
||||||
|
|
|
@ -55,7 +55,6 @@
|
||||||
</i-switch>
|
</i-switch>
|
||||||
</Alert>
|
</Alert>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
|
||||||
|
|
||||||
<Table
|
<Table
|
||||||
v-if="showDev"
|
v-if="showDev"
|
||||||
|
@ -78,8 +77,6 @@
|
||||||
>
|
>
|
||||||
</Table>
|
</Table>
|
||||||
|
|
||||||
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
|
|
@ -35,18 +35,16 @@
|
||||||
<Row class="operation" style="margin-top: 20px">
|
<Row class="operation" style="margin-top: 20px">
|
||||||
<Button @click="sendMessage" type="primary">发送消息</Button>
|
<Button @click="sendMessage" type="primary">发送消息</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="messageColumns"
|
||||||
:columns="messageColumns"
|
:data="messageData"
|
||||||
:data="messageData"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="messageChangeSort"
|
||||||
@on-sort-change="messageChangeSort"
|
@on-selection-change="messageChangeSelect"
|
||||||
@on-selection-change="messageChangeSelect"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchMessageForm.pageNumber"
|
:current="searchMessageForm.pageNumber"
|
||||||
|
@ -64,18 +62,16 @@
|
||||||
</TabPane>
|
</TabPane>
|
||||||
|
|
||||||
<TabPane label="通知类站内信" name="SETTING">
|
<TabPane label="通知类站内信" name="SETTING">
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="noticeColumns"
|
||||||
:columns="noticeColumns"
|
:data="noticeData"
|
||||||
:data="noticeData"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
@ -206,18 +202,16 @@
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="指定商家">
|
<FormItem label="指定商家">
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="messageDetailColumns"
|
||||||
:columns="messageDetailColumns"
|
:data="shopMessageData"
|
||||||
:data="shopMessageData"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="messageChangeSort"
|
||||||
@on-sort-change="messageChangeSort"
|
@on-selection-change="messageChangeSelect"
|
||||||
@on-selection-change="messageChangeSelect"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchShopMessageForm.pageNumber"
|
:current="searchShopMessageForm.pageNumber"
|
||||||
|
|
|
@ -1,17 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
|
||||||
<Col>
|
|
||||||
<Card>
|
<Card>
|
||||||
<Tabs value="LIST" @on-click="paneChange">
|
<Tabs value="LIST" @on-click="paneChange">
|
||||||
<TabPane label="发送任务列表" name="LIST">
|
<TabPane label="发送任务列表" name="LIST">
|
||||||
<Row class="operation" style="margin-bottom: 10px">
|
<Row class="operation" style="margin-bottom: 10px">
|
||||||
<Button @click="sendBatchSmsModal" type="primary">发送短信</Button>
|
<Button @click="sendBatchSmsModal" type="primary">发送短信</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table :loading="loading" border :columns="smsColumns" :data="smsData" ref="table" sortable="custom" @on-sort-change="templateChangeSort">
|
||||||
<Table :loading="loading" border :columns="smsColumns" :data="smsData" ref="table" sortable="custom" @on-sort-change="templateChangeSort">
|
</Table>
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page :current="smsSearchForm.pageNumber" :total="smsTotal" :page-size="smsSearchForm.pageSize" @on-change="smsChangePage" @on-page-size-change="smsChangePageSize"
|
<Page :current="smsSearchForm.pageNumber" :total="smsTotal" :page-size="smsSearchForm.pageSize" @on-change="smsChangePage" @on-page-size-change="smsChangePageSize"
|
||||||
|
@ -23,10 +19,8 @@
|
||||||
<Button @click="addTemplate" type="primary">添加短信模板</Button>
|
<Button @click="addTemplate" type="primary">添加短信模板</Button>
|
||||||
<Button @click="syncTemplate" type="info">同步</Button>
|
<Button @click="syncTemplate" type="info">同步</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table :loading="loading" border :columns="templateColumns" :data="templateData" ref="table" sortable="custom" @on-sort-change="smsChangeSort">
|
||||||
<Table :loading="loading" border :columns="templateColumns" :data="templateData" ref="table" sortable="custom" @on-sort-change="smsChangeSort">
|
</Table>
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page :current="templateSearchForm.pageNumber" :total="templateTotal" :page-size="templateSearchForm.pageSize" @on-change="templateChangePage"
|
<Page :current="templateSearchForm.pageNumber" :total="templateTotal" :page-size="templateSearchForm.pageSize" @on-change="templateChangePage"
|
||||||
@on-page-size-change="templateChangePageSize" :page-size-opts="[10, 20, 50]" size="small" show-total show-elevator show-sizer></Page>
|
@on-page-size-change="templateChangePageSize" :page-size-opts="[10, 20, 50]" size="small" show-total show-elevator show-sizer></Page>
|
||||||
|
@ -37,36 +31,30 @@
|
||||||
<Button @click="addSign" type="primary">添加短信签名</Button>
|
<Button @click="addSign" type="primary">添加短信签名</Button>
|
||||||
<Button @click="syncSign" type="info">同步</Button>
|
<Button @click="syncSign" type="info">同步</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table :loading="loading" border :columns="signColumns" :data="signData" ref="table" sortable="custom" @on-sort-change="signChangeSort">
|
||||||
<Table :loading="loading" border :columns="signColumns" :data="signData" ref="table" sortable="custom" @on-sort-change="signChangeSort">
|
<template slot="signStatus" slot-scope="scope">
|
||||||
<template slot="signStatus" slot-scope="scope">
|
<div v-if="scope.row.signStatus ==2 ">
|
||||||
<div v-if="scope.row.signStatus ==2 ">
|
审核拒绝
|
||||||
审核拒绝
|
<Poptip trigger="hover" :content=scope.row.reason placement="top-start" transfer>
|
||||||
<Poptip trigger="hover" :content=scope.row.reason placement="top-start" transfer>
|
<span style="color: #ed3f14">【原因】</span>
|
||||||
<span style="color: #ed3f14">【原因】</span>
|
</Poptip>
|
||||||
</Poptip>
|
</div>
|
||||||
</div>
|
<div v-if="scope.row.signStatus ==0 ">
|
||||||
<div v-if="scope.row.signStatus ==0 ">
|
审核中
|
||||||
审核中
|
</div>
|
||||||
</div>
|
<div v-if="scope.row.signStatus ==1 ">
|
||||||
<div v-if="scope.row.signStatus ==1 ">
|
审核通过
|
||||||
审核通过
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page :current="signSearchForm.pageNumber" :total="signTotal" :page-size="signSearchForm.pageSize" @on-change="signChangePage" @on-page-size-change="signChangePageSize"
|
<Page :current="signSearchForm.pageNumber" :total="signTotal" :page-size="signSearchForm.pageSize" @on-change="signChangePage" @on-page-size-change="signChangePageSize"
|
||||||
:page-size-opts="[10, 20, 50]" size="small" show-total show-elevator show-sizer></Page>
|
:page-size-opts="[10, 20, 50]" size="small" show-total show-elevator show-sizer></Page>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
</TabPane>
|
</TabPane>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
</Card>
|
</Card>
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Modal :title="templateModalTitle" v-model="templateModalVisible" :mask-closable="false" :width="500">
|
<Modal :title="templateModalTitle" v-model="templateModalVisible" :mask-closable="false" :width="500">
|
||||||
<Form ref="templateForm" :model="templateForm" :label-width="100" :rules="templateFormValidate">
|
<Form ref="templateForm" :model="templateForm" :label-width="100" :rules="templateFormValidate">
|
||||||
<FormItem label="模板名称" prop="templateName">
|
<FormItem label="模板名称" prop="templateName">
|
||||||
|
|
|
@ -103,18 +103,16 @@
|
||||||
>
|
>
|
||||||
</Alert>
|
</Alert>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-show="showType == 'thumb'">
|
<div v-show="showType == 'thumb'">
|
||||||
<div class="oss-wrapper">
|
<div class="oss-wrapper">
|
||||||
|
|
|
@ -9,18 +9,16 @@
|
||||||
<Button @click="addRole" type="primary">添加角色</Button>
|
<Button @click="addRole" type="primary">添加角色</Button>
|
||||||
<Button @click="delAll">批量删除</Button>
|
<Button @click="delAll">批量删除</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="pageNumber"
|
:current="pageNumber"
|
||||||
|
|
|
@ -1,100 +1,88 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Tabs value="RESOURCE" @on-click="handleClickType">
|
||||||
<Card>
|
<TabPane label="图片源" name="RESOURCE">
|
||||||
<Tabs value="RESOURCE" @on-click="handleClickType">
|
<Row class="operation" style="margin-bottom: 10px">
|
||||||
<TabPane label="图片源" name="RESOURCE">
|
<Button @click="add" type="primary">添加</Button>
|
||||||
<Row>
|
</Row>
|
||||||
<Col>
|
<Table
|
||||||
<Row class="operation" style="margin-bottom: 10px">
|
:loading="loading"
|
||||||
<Button @click="add" type="primary">添加</Button>
|
border
|
||||||
</Row>
|
:columns="columns"
|
||||||
<Row>
|
:data="data"
|
||||||
<Table
|
ref="table"
|
||||||
:loading="loading"
|
sortable="custom"
|
||||||
border
|
@on-sort-change="changeSort"
|
||||||
:columns="columns"
|
@on-selection-change="changeSelect"
|
||||||
:data="data"
|
>
|
||||||
ref="table"
|
<!-- 商品栏目格式化 -->
|
||||||
sortable="custom"
|
<template slot="imageSlot" slot-scope="scope">
|
||||||
@on-sort-change="changeSort"
|
<div style="">
|
||||||
@on-selection-change="changeSelect"
|
<img
|
||||||
>
|
:src="scope.row.resource"
|
||||||
|
style="height: 60px; margin-top: 1px; width: 90px"
|
||||||
<!-- 商品栏目格式化 -->
|
/>
|
||||||
<template slot="imageSlot" slot-scope="scope">
|
</div>
|
||||||
<div style="">
|
</template>
|
||||||
<img :src="scope.row.resource" style="height: 60px;margin-top: 1px;width: 90px">
|
</Table>
|
||||||
</div>
|
<Row type="flex" justify="end" class="page">
|
||||||
</template>
|
<Page
|
||||||
|
:current="searchForm.pageNumber"
|
||||||
</Table>
|
:total="total"
|
||||||
</Row>
|
:page-size="searchForm.pageSize"
|
||||||
<Row type="flex" justify="end" class="page">
|
@on-change="changePage"
|
||||||
<Page
|
@on-page-size-change="changePageSize"
|
||||||
:current="searchForm.pageNumber"
|
:page-size-opts="[10, 20, 50]"
|
||||||
:total="total"
|
size="small"
|
||||||
:page-size="searchForm.pageSize"
|
show-total
|
||||||
@on-change="changePage"
|
show-elevator
|
||||||
@on-page-size-change="changePageSize"
|
show-sizer
|
||||||
:page-size-opts="[10, 20, 50]"
|
>
|
||||||
size="small"
|
</Page>
|
||||||
show-total
|
</Row>
|
||||||
show-elevator
|
</TabPane>
|
||||||
show-sizer
|
<TabPane label="滑块源" name="SLIDER">
|
||||||
>
|
<Row class="operation" style="margin-bottom: 10px">
|
||||||
</Page>
|
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
||||||
</Row>
|
</Row>
|
||||||
</Col>
|
<Table
|
||||||
</Row>
|
:loading="loading"
|
||||||
</TabPane>
|
border
|
||||||
<TabPane label="滑块源" name="SLIDER">
|
:columns="columns"
|
||||||
<Row>
|
:data="data"
|
||||||
<Col>
|
ref="table"
|
||||||
<Row class="operation" style="margin-bottom: 10px">
|
sortable="custom"
|
||||||
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
@on-sort-change="changeSort"
|
||||||
</Row>
|
@on-selection-change="changeSelect"
|
||||||
<Row>
|
>
|
||||||
<Table
|
<!-- 商品栏目格式化 -->
|
||||||
:loading="loading"
|
<template slot="imageSlot" slot-scope="scope">
|
||||||
border
|
<div style="">
|
||||||
:columns="columns"
|
<img
|
||||||
:data="data"
|
:src="scope.row.resource"
|
||||||
ref="table"
|
style="height: 60px; margin-top: 1px; width: 60px"
|
||||||
sortable="custom"
|
/>
|
||||||
@on-sort-change="changeSort"
|
</div>
|
||||||
@on-selection-change="changeSelect"
|
</template>
|
||||||
>
|
</Table>
|
||||||
<!-- 商品栏目格式化 -->
|
<Row type="flex" justify="end" class="page">
|
||||||
<template slot="imageSlot" slot-scope="scope">
|
<Page
|
||||||
<div style="">
|
:current="searchForm.pageNumber"
|
||||||
<img :src="scope.row.resource" style="height: 60px;margin-top: 1px;width: 60px">
|
:total="total"
|
||||||
</div>
|
:page-size="searchForm.pageSize"
|
||||||
</template>
|
@on-change="changePage"
|
||||||
</Table>
|
@on-page-size-change="changePageSize"
|
||||||
</Row>
|
:page-size-opts="[10, 20, 50]"
|
||||||
<Row type="flex" justify="end" class="page">
|
size="small"
|
||||||
<Page
|
show-total
|
||||||
:current="searchForm.pageNumber"
|
show-elevator
|
||||||
:total="total"
|
show-sizer
|
||||||
:page-size="searchForm.pageSize"
|
></Page>
|
||||||
@on-change="changePage"
|
</Row>
|
||||||
@on-page-size-change="changePageSize"
|
</TabPane>
|
||||||
:page-size-opts="[10, 20, 50]"
|
</Tabs>
|
||||||
size="small"
|
</Card>
|
||||||
show-total
|
|
||||||
show-elevator
|
|
||||||
show-sizer
|
|
||||||
></Page>
|
|
||||||
</Row>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</TabPane>
|
|
||||||
</Tabs>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Modal
|
<Modal
|
||||||
:title="modalTitle"
|
:title="modalTitle"
|
||||||
v-model="modalVisible"
|
v-model="modalVisible"
|
||||||
|
@ -103,10 +91,15 @@
|
||||||
>
|
>
|
||||||
<Form ref="form" :model="form" :label-width="100" :rules="formValidate">
|
<Form ref="form" :model="form" :label-width="100" :rules="formValidate">
|
||||||
<FormItem label="名称" prop="name">
|
<FormItem label="名称" prop="name">
|
||||||
<Input v-model="form.name" maxlength="20" clearable style="width: 100%"/>
|
<Input
|
||||||
|
v-model="form.name"
|
||||||
|
maxlength="20"
|
||||||
|
clearable
|
||||||
|
style="width: 100%"
|
||||||
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="图片" prop="resource">
|
<FormItem label="图片" prop="resource">
|
||||||
<Input v-model="form.resource" clearable style="width: 100%"/>
|
<Input v-model="form.resource" clearable style="width: 100%" />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="类型" prop="type">
|
<FormItem label="类型" prop="type">
|
||||||
<radio-group v-model="form.type" type="button">
|
<radio-group v-model="form.type" type="button">
|
||||||
|
@ -118,9 +111,8 @@
|
||||||
<div slot="footer">
|
<div slot="footer">
|
||||||
<Button type="text" @click="modalVisible = false">取消</Button>
|
<Button type="text" @click="modalVisible = false">取消</Button>
|
||||||
<Button type="primary" :loading="submitLoading" @click="handleSubmit"
|
<Button type="primary" :loading="submitLoading" @click="handleSubmit"
|
||||||
>提交
|
>提交
|
||||||
</Button
|
</Button>
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
</div>
|
</div>
|
||||||
|
@ -131,7 +123,7 @@ import * as API_Setting from "@/api/setting";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
modalVisible: false,//添加验证码源弹出框
|
modalVisible: false, //添加验证码源弹出框
|
||||||
modalTitle: "", //添加验证码源弹出框标题
|
modalTitle: "", //添加验证码源弹出框标题
|
||||||
loading: true, // 表单加载状态
|
loading: true, // 表单加载状态
|
||||||
selectList: [], // 多选数据
|
selectList: [], // 多选数据
|
||||||
|
@ -142,7 +134,7 @@ export default {
|
||||||
name: "",
|
name: "",
|
||||||
resource: "",
|
resource: "",
|
||||||
type: "RESOURCE",
|
type: "RESOURCE",
|
||||||
},//添加编辑表单
|
}, //添加编辑表单
|
||||||
formValidate: {
|
formValidate: {
|
||||||
name: [
|
name: [
|
||||||
{
|
{
|
||||||
|
@ -165,18 +157,19 @@ export default {
|
||||||
pageSize: 10, // 页面大小
|
pageSize: 10, // 页面大小
|
||||||
sort: "createTime", // 默认排序字段
|
sort: "createTime", // 默认排序字段
|
||||||
order: "desc", // 默认排序方式
|
order: "desc", // 默认排序方式
|
||||||
type: "RESOURCE"
|
type: "RESOURCE",
|
||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: "名称",
|
title: "名称",
|
||||||
key: "name",
|
key: "name",
|
||||||
minWidth: 80,
|
minWidth: 80,
|
||||||
},{
|
},
|
||||||
|
{
|
||||||
title: "图片",
|
title: "图片",
|
||||||
key: "resource",
|
key: "resource",
|
||||||
width: 150,
|
width: 150,
|
||||||
slot: "imageSlot"
|
slot: "imageSlot",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "创建人",
|
title: "创建人",
|
||||||
|
@ -213,13 +206,13 @@ export default {
|
||||||
size: "small",
|
size: "small",
|
||||||
},
|
},
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px"
|
marginRight: "5px",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
this.edit(params.row);
|
this.edit(params.row);
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"编辑"
|
"编辑"
|
||||||
),
|
),
|
||||||
|
@ -233,17 +226,17 @@ export default {
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
this.remove(params.row);
|
this.remove(params.row);
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"删除"
|
"删除"
|
||||||
)
|
),
|
||||||
]);
|
]);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
data: [], // 表单数据
|
data: [], // 表单数据
|
||||||
total: 0,//条数
|
total: 0, //条数
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -264,15 +257,15 @@ export default {
|
||||||
},
|
},
|
||||||
//切换tab
|
//切换tab
|
||||||
handleClickType(v) {
|
handleClickType(v) {
|
||||||
this.searchForm.pageNumber = 1 // 当前页数
|
this.searchForm.pageNumber = 1; // 当前页数
|
||||||
this.searchForm.pageSize = 10 // 页面大小
|
this.searchForm.pageSize = 10; // 页面大小
|
||||||
//图片源
|
//图片源
|
||||||
if (v == "RESOURCE") {
|
if (v == "RESOURCE") {
|
||||||
this.searchForm.type = "RESOURCE"
|
this.searchForm.type = "RESOURCE";
|
||||||
}
|
}
|
||||||
//滑块源
|
//滑块源
|
||||||
if (v == "SLIDER") {
|
if (v == "SLIDER") {
|
||||||
this.searchForm.type = "SLIDER"
|
this.searchForm.type = "SLIDER";
|
||||||
}
|
}
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
|
@ -283,7 +276,7 @@ export default {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.data = res.result.records;
|
this.data = res.result.records;
|
||||||
this.total = res.result.total
|
this.total = res.result.total;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
@ -294,25 +287,25 @@ export default {
|
||||||
},
|
},
|
||||||
//添加验证码源
|
//添加验证码源
|
||||||
add() {
|
add() {
|
||||||
this.form.type = this.searchForm.type
|
this.form.type = this.searchForm.type;
|
||||||
this.modalVisible = true
|
this.modalVisible = true;
|
||||||
this.modalType = 0
|
this.modalType = 0;
|
||||||
this.modalTitle = "添加验证码源"
|
this.modalTitle = "添加验证码源";
|
||||||
},
|
},
|
||||||
//修改验证码源
|
//修改验证码源
|
||||||
edit(v) {
|
edit(v) {
|
||||||
this.form.name = v.name
|
this.form.name = v.name;
|
||||||
this.form.id = v.id
|
this.form.id = v.id;
|
||||||
this.form.resource = v.resource
|
this.form.resource = v.resource;
|
||||||
this.form.type = v.type
|
this.form.type = v.type;
|
||||||
|
|
||||||
this.modalType = 1
|
this.modalType = 1;
|
||||||
this.modalVisible = true
|
this.modalVisible = true;
|
||||||
this.modalTitle = "修改验证码源"
|
this.modalTitle = "修改验证码源";
|
||||||
},
|
},
|
||||||
//提交表单
|
//提交表单
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.form.type = this.searchForm.type
|
this.form.type = this.searchForm.type;
|
||||||
this.$refs.form.validate((valid) => {
|
this.$refs.form.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.submitLoading = true;
|
this.submitLoading = true;
|
||||||
|
@ -329,14 +322,16 @@ export default {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// 编辑
|
// 编辑
|
||||||
API_Setting.editVerification(this.form.id, this.form).then((res) => {
|
API_Setting.editVerification(this.form.id, this.form).then(
|
||||||
this.submitLoading = false;
|
(res) => {
|
||||||
if (res.success) {
|
this.submitLoading = false;
|
||||||
this.$Message.success("修改成功");
|
if (res.success) {
|
||||||
this.getDataList();
|
this.$Message.success("修改成功");
|
||||||
this.modalVisible = false;
|
this.getDataList();
|
||||||
|
this.modalVisible = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -359,8 +354,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
|
|
|
@ -43,18 +43,16 @@
|
||||||
<Button @click="delAll">批量删除</Button>
|
<Button @click="delAll">批量删除</Button>
|
||||||
<Button @click="resetPass">重置密码</Button>
|
<Button @click="resetPass">重置密码</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="showSelect"
|
||||||
@on-selection-change="showSelect"
|
ref="table"
|
||||||
ref="table"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
|
|
@ -18,14 +18,14 @@ export default {
|
||||||
* @description api请求基础路径
|
* @description api请求基础路径
|
||||||
*/
|
*/
|
||||||
api_dev: {
|
api_dev: {
|
||||||
// common: 'https://common-api.pickmall.cn',
|
common: 'https://common-api.pickmall.cn',
|
||||||
// buyer: 'https://buyer-api.pickmall.cn',
|
buyer: 'https://buyer-api.pickmall.cn',
|
||||||
// seller: 'https://store-api.pickmall.cn',
|
seller: 'https://store-api.pickmall.cn',
|
||||||
// manager: 'https://admin-api.pickmall.cn'
|
manager: 'https://admin-api.pickmall.cn'
|
||||||
common: 'http://192.168.0.103:8890',
|
// common: 'http://192.168.0.103:8890',
|
||||||
buyer: 'http://192.168.0.103:8888',
|
// buyer: 'http://192.168.0.103:8888',
|
||||||
seller: 'http://192.168.0.103:8889',
|
// seller: 'http://192.168.0.103:8889',
|
||||||
manager: 'http://192.168.0.103:8887'
|
// manager: 'http://192.168.0.103:8887'
|
||||||
},
|
},
|
||||||
api_prod: {
|
api_prod: {
|
||||||
common: 'https://common-api.pickmall.cn',
|
common: 'https://common-api.pickmall.cn',
|
||||||
|
|
|
@ -1,56 +1,50 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form-item label="商品名称" prop="goodsName">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input type="text" v-model="searchForm.goodsName" placeholder="请输入商品名称" clearable style="width: 200px"/>
|
||||||
<Form-item label="商品名称" prop="goodsName">
|
</Form-item>
|
||||||
<Input type="text" v-model="searchForm.goodsName" placeholder="请输入商品名称" clearable style="width: 200px"/>
|
<!-- <Form-item label="店铺名称">
|
||||||
</Form-item>
|
<Select v-model="searchForm.shopId" placeholder="请选择" @on-query-change="searchChange" filterable clearable style="width: 200px">
|
||||||
<!-- <Form-item label="店铺名称">
|
<Option v-for="item in shopList" :value="item.id" :key="item.id">{{ item.storeName }}</Option>
|
||||||
<Select v-model="searchForm.shopId" placeholder="请选择" @on-query-change="searchChange" filterable clearable style="width: 200px">
|
</Select>
|
||||||
<Option v-for="item in shopList" :value="item.id" :key="item.id">{{ item.storeName }}</Option>
|
</Form-item> -->
|
||||||
</Select>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item> -->
|
</Form>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
</Row>
|
||||||
</Form>
|
<Row class="operation padding-row">
|
||||||
</Row>
|
<Button @click="add" type="primary">添加</Button>
|
||||||
<Row class="operation padding-row">
|
<!-- <Button @click="add" type="default">批量删除</Button>-->
|
||||||
<Button @click="add" type="primary">添加</Button>
|
</Row>
|
||||||
<!-- <Button @click="add" type="default">批量删除</Button>-->
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
|
||||||
</Row>
|
<!-- 商品栏目格式化 -->
|
||||||
<Row>
|
<template slot="goodsSlot" slot-scope="{row}">
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
|
<div style="margin-top: 5px;height: 70px; display: flex;">
|
||||||
<!-- 商品栏目格式化 -->
|
<div style="">
|
||||||
<template slot="goodsSlot" slot-scope="{row}">
|
<img :src="row.thumbnail" style="height: 60px;margin-top: 3px;width: 60px">
|
||||||
<div style="margin-top: 5px;height: 70px; display: flex;">
|
</div>
|
||||||
<div style="">
|
|
||||||
<img :src="row.thumbnail" style="height: 60px;margin-top: 3px;width: 60px">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="margin-left: 13px;">
|
<div style="margin-left: 13px;">
|
||||||
<div class="div-zoom">
|
<div class="div-zoom">
|
||||||
<a @click="linkTo(row.id,row.skuId)">{{row.goodsName}}</a>
|
<a @click="linkTo(row.id,row.skuId)">{{row.goodsName}}</a>
|
||||||
</div>
|
</div>
|
||||||
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
<vue-qr :text="wapLinkTo(row.id,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
<vue-qr :text="wapLinkTo(row.id,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
||||||
</div>
|
|
||||||
<img src="../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
|
||||||
</Poptip>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<img src="../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
||||||
|
</Poptip>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
</Row>
|
<Row type="flex" justify="end" class="page">
|
||||||
<Row type="flex" justify="end" class="page">
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]" size="small" show-total show-elevator show-sizer></Page>
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]" size="small" show-total show-elevator show-sizer></Page>
|
</Row>
|
||||||
</Row>
|
</Card>
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<liliDialog
|
<liliDialog
|
||||||
ref="liliDialog"
|
ref="liliDialog"
|
||||||
@selectedGoodsData="selectedGoodsData"
|
@selectedGoodsData="selectedGoodsData"
|
||||||
|
|
|
@ -1,30 +1,24 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row v-show="openSearch" @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row v-show="openSearch" @keydown.enter.native="handleSearch">
|
<Form-item label="订单编号" prop="orderSn">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input type="text" v-model="searchForm.orderSn" placeholder="请输入订单编号" clearable style="width: 200px" />
|
||||||
<Form-item label="订单编号" prop="orderSn">
|
</Form-item>
|
||||||
<Input type="text" v-model="searchForm.orderSn" placeholder="请输入订单编号" clearable style="width: 200px" />
|
<Form-item label="订单时间">
|
||||||
</Form-item>
|
<DatePicker type="daterange" v-model="timeRange" format="yyyy-MM-dd" placeholder="选择时间" style="width: 210px"></DatePicker>
|
||||||
<Form-item label="订单时间">
|
</Form-item>
|
||||||
<DatePicker type="daterange" v-model="timeRange" format="yyyy-MM-dd" placeholder="选择时间" style="width: 210px"></DatePicker>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item>
|
</Form>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
</Row>
|
||||||
</Form>
|
|
||||||
</Row>
|
|
||||||
|
|
||||||
<Row class="padding-row">
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom"></Table>
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom"></Table>
|
<Row type="flex" justify="end" class="page">
|
||||||
</Row>
|
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]" size="small"
|
||||||
<Row type="flex" justify="end" class="page">
|
show-total show-elevator show-sizer></Page>
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10,20,50]" size="small"
|
</Row>
|
||||||
show-total show-elevator show-sizer></Page>
|
</Card>
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,88 +1,82 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row v-show="openSearch" @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form
|
||||||
<Row v-show="openSearch" @keydown.enter.native="handleSearch">
|
ref="searchForm"
|
||||||
<Form
|
:model="searchForm"
|
||||||
ref="searchForm"
|
inline
|
||||||
:model="searchForm"
|
:label-width="70"
|
||||||
inline
|
class="search-form"
|
||||||
:label-width="70"
|
>
|
||||||
class="search-form"
|
<Form-item label="商品名称" prop="goodsName">
|
||||||
|
<Input
|
||||||
|
type="text"
|
||||||
|
v-model="searchForm.goodsName"
|
||||||
|
placeholder="请输入商品名称"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
|
/>
|
||||||
|
</Form-item>
|
||||||
|
<span v-if="drop">
|
||||||
|
<Form-item label="状态" prop="status">
|
||||||
|
<Select
|
||||||
|
v-model="searchForm.marketEnable"
|
||||||
|
placeholder="请选择"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
|
>
|
||||||
|
<Option value="DOWN">下架</Option>
|
||||||
|
<Option value="UPPER">上架</Option>
|
||||||
|
</Select>
|
||||||
|
</Form-item>
|
||||||
|
<Form-item label="商品编号" prop="sn">
|
||||||
|
<Input
|
||||||
|
type="text"
|
||||||
|
v-model="searchForm.sn"
|
||||||
|
placeholder="商品编号"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
|
/>
|
||||||
|
</Form-item>
|
||||||
|
</span>
|
||||||
|
<Form-item style="margin-left: -35px" class="br">
|
||||||
|
<Button @click="handleSearch" type="primary" icon="ios-search"
|
||||||
|
>搜索</Button
|
||||||
>
|
>
|
||||||
<Form-item label="商品名称" prop="goodsName">
|
<Button @click="handleReset">重置</Button>
|
||||||
<Input
|
<a class="drop-down" @click="dropDown">
|
||||||
type="text"
|
{{ dropDownContent }}
|
||||||
v-model="searchForm.goodsName"
|
<Icon :type="dropDownIcon"></Icon>
|
||||||
placeholder="请输入商品名称"
|
</a>
|
||||||
clearable
|
</Form-item>
|
||||||
style="width: 200px"
|
</Form>
|
||||||
/>
|
</Row>
|
||||||
</Form-item>
|
<Table
|
||||||
<span v-if="drop">
|
:loading="loading"
|
||||||
<Form-item label="状态" prop="status">
|
border
|
||||||
<Select
|
:columns="columns"
|
||||||
v-model="searchForm.marketEnable"
|
:data="data"
|
||||||
placeholder="请选择"
|
ref="table"
|
||||||
clearable
|
sortable="custom"
|
||||||
style="width: 200px"
|
@on-sort-change="changeSort"
|
||||||
>
|
@on-selection-change="changeSelect"
|
||||||
<Option value="DOWN">下架</Option>
|
></Table>
|
||||||
<Option value="UPPER">上架</Option>
|
<Row type="flex" justify="end" class="page">
|
||||||
</Select>
|
<Page
|
||||||
</Form-item>
|
:current="searchForm.pageNumber"
|
||||||
<Form-item label="商品编号" prop="sn">
|
:total="total"
|
||||||
<Input
|
:page-size="searchForm.pageSize"
|
||||||
type="text"
|
@on-change="changePage"
|
||||||
v-model="searchForm.sn"
|
@on-page-size-change="changePageSize"
|
||||||
placeholder="商品编号"
|
:page-size-opts="[10, 20, 50]"
|
||||||
clearable
|
size="small"
|
||||||
style="width: 200px"
|
show-total
|
||||||
/>
|
show-elevator
|
||||||
</Form-item>
|
show-sizer
|
||||||
</span>
|
></Page>
|
||||||
<Form-item style="margin-left: -35px" class="br">
|
</Row>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search"
|
</Card>
|
||||||
>搜索</Button
|
|
||||||
>
|
|
||||||
<Button @click="handleReset">重置</Button>
|
|
||||||
<a class="drop-down" @click="dropDown">
|
|
||||||
{{ dropDownContent }}
|
|
||||||
<Icon :type="dropDownIcon"></Icon>
|
|
||||||
</a>
|
|
||||||
</Form-item>
|
|
||||||
</Form>
|
|
||||||
</Row>
|
|
||||||
<Row>
|
|
||||||
<Table
|
|
||||||
:loading="loading"
|
|
||||||
border
|
|
||||||
:columns="columns"
|
|
||||||
:data="data"
|
|
||||||
ref="table"
|
|
||||||
sortable="custom"
|
|
||||||
@on-sort-change="changeSort"
|
|
||||||
@on-selection-change="changeSelect"
|
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
|
||||||
<Page
|
|
||||||
:current="searchForm.pageNumber"
|
|
||||||
:total="total"
|
|
||||||
:page-size="searchForm.pageSize"
|
|
||||||
@on-change="changePage"
|
|
||||||
@on-page-size-change="changePageSize"
|
|
||||||
:page-size-opts="[10, 20, 50]"
|
|
||||||
size="small"
|
|
||||||
show-total
|
|
||||||
show-elevator
|
|
||||||
show-sizer
|
|
||||||
></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Modal
|
<Modal
|
||||||
:title="modalTitle"
|
:title="modalTitle"
|
||||||
v-model="modalVisible"
|
v-model="modalVisible"
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
|
|
||||||
<Card>
|
<Card>
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
|
|
|
@ -68,18 +68,16 @@
|
||||||
<a class="select-clear" @click="clearSelectAll">清空</a>
|
<a class="select-clear" @click="clearSelectAll">清空</a>
|
||||||
</Alert>
|
</Alert>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
|
|
@ -1,51 +1,45 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch"> </Row>
|
||||||
<Card>
|
<Row class="operation">
|
||||||
<Row @keydown.enter.native="handleSearch"> </Row>
|
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
||||||
<Row class="operation">
|
<Button @click="getDataList" icon="md-refresh">刷新</Button>
|
||||||
<Button @click="add" type="primary" icon="md-add">添加</Button>
|
<Button type="dashed" @click="openTip = !openTip">{{
|
||||||
<Button @click="getDataList" icon="md-refresh">刷新</Button>
|
openTip ? "关闭提示" : "开启提示"
|
||||||
<Button type="dashed" @click="openTip = !openTip">{{
|
}}</Button>
|
||||||
openTip ? "关闭提示" : "开启提示"
|
</Row>
|
||||||
}}</Button>
|
<Row v-show="openTip">
|
||||||
</Row>
|
<Alert show-icon>
|
||||||
<Row v-show="openTip">
|
已选择 <span class="select-count">{{ selectCount }}</span> 项
|
||||||
<Alert show-icon>
|
<a class="select-clear" @click="clearSelectAll">清空</a>
|
||||||
已选择 <span class="select-count">{{ selectCount }}</span> 项
|
</Alert>
|
||||||
<a class="select-clear" @click="clearSelectAll">清空</a>
|
</Row>
|
||||||
</Alert>
|
<Table
|
||||||
</Row>
|
:loading="loading"
|
||||||
<Row>
|
border
|
||||||
<Table
|
:columns="columns"
|
||||||
:loading="loading"
|
:data="data"
|
||||||
border
|
ref="table"
|
||||||
:columns="columns"
|
sortable="custom"
|
||||||
:data="data"
|
@on-sort-change="changeSort"
|
||||||
ref="table"
|
@on-selection-change="changeSelect"
|
||||||
sortable="custom"
|
></Table>
|
||||||
@on-sort-change="changeSort"
|
<Row type="flex" justify="end" class="page">
|
||||||
@on-selection-change="changeSelect"
|
<Page
|
||||||
></Table>
|
:current="searchForm.pageNumber"
|
||||||
</Row>
|
:total="total"
|
||||||
<Row type="flex" justify="end" class="page">
|
:page-size="searchForm.pageSize"
|
||||||
<Page
|
@on-change="changePage"
|
||||||
:current="searchForm.pageNumber"
|
@on-page-size-change="changePageSize"
|
||||||
:total="total"
|
:page-size-opts="[10, 20, 50]"
|
||||||
:page-size="searchForm.pageSize"
|
size="small"
|
||||||
@on-change="changePage"
|
show-total
|
||||||
@on-page-size-change="changePageSize"
|
show-elevator
|
||||||
:page-size-opts="[10, 20, 50]"
|
show-sizer
|
||||||
size="small"
|
></Page>
|
||||||
show-total
|
</Row>
|
||||||
show-elevator
|
</Card>
|
||||||
show-sizer
|
|
||||||
></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Modal
|
<Modal
|
||||||
:title="modalTitle"
|
:title="modalTitle"
|
||||||
v-model="modalVisible"
|
v-model="modalVisible"
|
||||||
|
|
|
@ -1,79 +1,73 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form-item label="会员名称" prop="memberName">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input
|
||||||
<Form-item label="会员名称" prop="memberName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.memberName"
|
||||||
type="text"
|
clearable
|
||||||
v-model="searchForm.memberName"
|
placeholder="请输入会员名称"
|
||||||
clearable
|
style="width: 200px"
|
||||||
placeholder="请输入会员名称"
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="商品名称" prop="goodsName">
|
||||||
</Form-item>
|
<Input
|
||||||
<Form-item label="商品名称" prop="goodsName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.goodsName"
|
||||||
type="text"
|
clearable
|
||||||
v-model="searchForm.goodsName"
|
placeholder="请输入商品名"
|
||||||
clearable
|
style="width: 200px"
|
||||||
placeholder="请输入商品名"
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="评价" prop="orderStatus">
|
||||||
</Form-item>
|
<Select v-model="searchForm.grade" placeholder="请选择" clearable style="width: 200px">
|
||||||
<Form-item label="评价" prop="orderStatus">
|
<Option value="GOOD">好评</Option>
|
||||||
<Select v-model="searchForm.grade" placeholder="请选择" clearable style="width: 200px">
|
<Option value="MODERATE">中评</Option>
|
||||||
<Option value="GOOD">好评</Option>
|
<Option value="WORSE">差评</Option>
|
||||||
<Option value="MODERATE">中评</Option>
|
</Select>
|
||||||
<Option value="WORSE">差评</Option>
|
</Form-item>
|
||||||
</Select>
|
<Form-item label="评论日期">
|
||||||
</Form-item>
|
<DatePicker
|
||||||
<Form-item label="评论日期">
|
v-model="selectDate"
|
||||||
<DatePicker
|
type="datetimerange"
|
||||||
v-model="selectDate"
|
format="yyyy-MM-dd HH:mm:ss"
|
||||||
type="datetimerange"
|
clearable
|
||||||
format="yyyy-MM-dd HH:mm:ss"
|
@on-change="selectDateRange"
|
||||||
clearable
|
placeholder="选择起始时间"
|
||||||
@on-change="selectDateRange"
|
style="width: 200px"
|
||||||
placeholder="选择起始时间"
|
></DatePicker>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
></DatePicker>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item>
|
<Button @click="handleReset" class="search-btn">重置</Button>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
</Form>
|
||||||
<Button @click="handleReset" class="search-btn">重置</Button>
|
</Row>
|
||||||
</Form>
|
<Table
|
||||||
</Row>
|
:loading="loading"
|
||||||
<Row class="padding-row">
|
border
|
||||||
<Table
|
:columns="columns"
|
||||||
:loading="loading"
|
:data="data"
|
||||||
border
|
ref="table"
|
||||||
:columns="columns"
|
sortable="custom"
|
||||||
:data="data"
|
@on-sort-change="changeSort"
|
||||||
ref="table"
|
@on-selection-change="changeSelect"
|
||||||
sortable="custom"
|
></Table>
|
||||||
@on-sort-change="changeSort"
|
<Row type="flex" justify="end" class="page">
|
||||||
@on-selection-change="changeSelect"
|
<Page
|
||||||
></Table>
|
:current="searchForm.pageNumber"
|
||||||
</Row>
|
:total="total"
|
||||||
<Row type="flex" justify="end" class="page">
|
:page-size="searchForm.pageSize"
|
||||||
<Page
|
@on-change="changePage"
|
||||||
:current="searchForm.pageNumber"
|
@on-page-size-change="changePageSize"
|
||||||
:total="total"
|
:page-size-opts="[10, 20, 50]"
|
||||||
:page-size="searchForm.pageSize"
|
size="small"
|
||||||
@on-change="changePage"
|
show-total
|
||||||
@on-page-size-change="changePageSize"
|
show-elevator
|
||||||
:page-size-opts="[10, 20, 50]"
|
show-sizer
|
||||||
size="small"
|
></Page>
|
||||||
show-total
|
</Row>
|
||||||
show-elevator
|
</Card>
|
||||||
show-sizer
|
|
||||||
></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Modal
|
<Modal
|
||||||
:title="modalTitle"
|
:title="modalTitle"
|
||||||
v-model="modalVisible"
|
v-model="modalVisible"
|
||||||
|
|
|
@ -1,82 +1,76 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form-item label="会员名称" prop="memberName">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input
|
||||||
<Form-item label="会员名称" prop="memberName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.memberName"
|
||||||
type="text"
|
clearable
|
||||||
v-model="searchForm.memberName"
|
placeholder="请输入会员名称"
|
||||||
clearable
|
style="width: 200px"
|
||||||
placeholder="请输入会员名称"
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="订单号" prop="orderSn">
|
||||||
</Form-item>
|
<Input
|
||||||
<Form-item label="订单号" prop="orderSn">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.orderSn"
|
||||||
type="text"
|
clearable
|
||||||
v-model="searchForm.orderSn"
|
placeholder="请输入商品名"
|
||||||
clearable
|
style="width: 200px"
|
||||||
placeholder="请输入商品名"
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="状态" prop="status">
|
||||||
</Form-item>
|
<Select v-model="searchForm.status" placeholder="请选择" clearable style="width: 200px">
|
||||||
<Form-item label="状态" prop="status">
|
<Option value="NEW">新投诉</Option>
|
||||||
<Select v-model="searchForm.status" placeholder="请选择" clearable style="width: 200px">
|
<Option value="CANCEL">已撤销</Option>
|
||||||
<Option value="NEW">新投诉</Option>
|
<Option value="WAIT_APPEAL">待申诉</Option>
|
||||||
<Option value="CANCEL">已撤销</Option>
|
<Option value="COMMUNICATION">对话中</Option>
|
||||||
<Option value="WAIT_APPEAL">待申诉</Option>
|
<Option value="WAIT_ARBITRATION">等待仲裁</Option>
|
||||||
<Option value="COMMUNICATION">对话中</Option>
|
<Option value="COMPLETE">已完成</Option>
|
||||||
<Option value="WAIT_ARBITRATION">等待仲裁</Option>
|
|
||||||
<Option value="COMPLETE">已完成</Option>
|
|
||||||
|
|
||||||
</Select>
|
</Select>
|
||||||
</Form-item>
|
</Form-item>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
<Button @click="handleReset" class="search-btn">重置</Button>
|
<Button @click="handleReset" class="search-btn">重置</Button>
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
>
|
||||||
>
|
<template slot-scope="{row}" slot="goodsName">
|
||||||
<template slot-scope="{row}" slot="goodsName">
|
<a class="mr_10" @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
|
||||||
<a class="mr_10" @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
|
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
||||||
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
<div slot="content">
|
||||||
<div slot="content">
|
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
||||||
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
</div>
|
||||||
</div>
|
<img src="../../../assets/qrcode.svg" style="vertical-align:bottom;" class="hover-pointer" width="20" height="20" alt="">
|
||||||
<img src="../../../assets/qrcode.svg" style="vertical-align:bottom;" class="hover-pointer" width="20" height="20" alt="">
|
</Poptip>
|
||||||
</Poptip>
|
</template>
|
||||||
</template>
|
</Table>
|
||||||
</Table>
|
<Row type="flex" justify="end" class="page">
|
||||||
</Row>
|
<Page
|
||||||
<Row type="flex" justify="end" class="page">
|
:current="searchForm.pageNumber"
|
||||||
<Page
|
:total="total"
|
||||||
:current="searchForm.pageNumber"
|
:page-size="searchForm.pageSize"
|
||||||
:total="total"
|
@on-change="changePage"
|
||||||
:page-size="searchForm.pageSize"
|
@on-page-size-change="changePageSize"
|
||||||
@on-change="changePage"
|
:page-size-opts="[10, 20, 50]"
|
||||||
@on-page-size-change="changePageSize"
|
size="small"
|
||||||
:page-size-opts="[10, 20, 50]"
|
show-total
|
||||||
size="small"
|
show-elevator
|
||||||
show-total
|
show-sizer
|
||||||
show-elevator
|
></Page>
|
||||||
show-sizer
|
</Row>
|
||||||
></Page>
|
</Card>
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Modal
|
<Modal
|
||||||
:title="modalTitle"
|
:title="modalTitle"
|
||||||
v-model="modalVisible"
|
v-model="modalVisible"
|
||||||
|
|
|
@ -1,105 +1,99 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form-item label="商品" prop="goodsName">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input
|
||||||
<Form-item label="商品" prop="goodsName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.goodsName"
|
||||||
type="text"
|
clearable
|
||||||
v-model="searchForm.goodsName"
|
placeholder="请输入商品名称"
|
||||||
clearable
|
style="width: 200px"
|
||||||
placeholder="请输入商品名称"
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="会员名称" prop="memberName">
|
||||||
</Form-item>
|
<Input
|
||||||
<Form-item label="会员名称" prop="memberName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.memberName"
|
||||||
type="text"
|
clearable
|
||||||
v-model="searchForm.memberName"
|
placeholder="请输入会员名称"
|
||||||
clearable
|
style="width: 200px"
|
||||||
placeholder="请输入会员名称"
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="订单编号" prop="orderSn">
|
||||||
</Form-item>
|
<Input
|
||||||
<Form-item label="订单编号" prop="orderSn">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.orderSn"
|
||||||
type="text"
|
clearable
|
||||||
v-model="searchForm.orderSn"
|
placeholder="请输入订单编号"
|
||||||
clearable
|
style="width: 200px"
|
||||||
placeholder="请输入订单编号"
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
|
||||||
</Form-item>
|
|
||||||
|
|
||||||
<Form-item label="申请时间">
|
<Form-item label="申请时间">
|
||||||
<DatePicker
|
<DatePicker
|
||||||
v-model="selectDate"
|
v-model="selectDate"
|
||||||
type="datetimerange"
|
type="datetimerange"
|
||||||
format="yyyy-MM-dd HH:mm:ss"
|
format="yyyy-MM-dd HH:mm:ss"
|
||||||
clearable
|
clearable
|
||||||
@on-change="selectDateRange"
|
@on-change="selectDateRange"
|
||||||
placeholder="选择起始时间"
|
placeholder="选择起始时间"
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
></DatePicker>
|
></DatePicker>
|
||||||
</Form-item>
|
</Form-item>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
<Button @click="handleReset" class="search-btn">重置</Button>
|
<Button @click="handleReset" class="search-btn">重置</Button>
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
>
|
||||||
>
|
|
||||||
|
|
||||||
<!-- 商品栏目格式化 -->
|
<!-- 商品栏目格式化 -->
|
||||||
<template slot="goodsSlot" slot-scope="{row}">
|
<template slot="goodsSlot" slot-scope="{row}">
|
||||||
<div style="margin-top: 5px;height: 90px; display: flex;">
|
<div style="margin-top: 5px;height: 90px; display: flex;">
|
||||||
<div style="">
|
<div style="">
|
||||||
<img :src="row.goodsImage" style="height: 80px;margin-top: 3px">
|
<img :src="row.goodsImage" style="height: 80px;margin-top: 3px">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-left: 13px;">
|
<div style="margin-left: 13px;">
|
||||||
<div class="div-zoom">
|
<div class="div-zoom">
|
||||||
<a @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
|
<a @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
|
||||||
</div>
|
</div>
|
||||||
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
||||||
</div>
|
|
||||||
<img src="../../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
|
||||||
</Poptip>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<img src="../../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
||||||
|
</Poptip>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
</Row>
|
<Row type="flex" justify="end" class="page">
|
||||||
<Row type="flex" justify="end" class="page">
|
<Page
|
||||||
<Page
|
:current="searchForm.pageNumber"
|
||||||
:current="searchForm.pageNumber"
|
:total="total"
|
||||||
:total="total"
|
:page-size="searchForm.pageSize"
|
||||||
:page-size="searchForm.pageSize"
|
@on-change="changePage"
|
||||||
@on-change="changePage"
|
@on-page-size-change="changePageSize"
|
||||||
@on-page-size-change="changePageSize"
|
:page-size-opts="[10, 20, 50]"
|
||||||
:page-size-opts="[10, 20, 50]"
|
size="small"
|
||||||
size="small"
|
show-total
|
||||||
show-total
|
show-elevator
|
||||||
show-elevator
|
show-sizer
|
||||||
show-sizer
|
></Page>
|
||||||
></Page>
|
</Row>
|
||||||
</Row>
|
</Card>
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,105 +1,99 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form-item label="商品" prop="goodsName">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input
|
||||||
<Form-item label="商品" prop="goodsName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.goodsName"
|
||||||
type="text"
|
clearable
|
||||||
v-model="searchForm.goodsName"
|
placeholder="请输入商品名称"
|
||||||
clearable
|
style="width: 200px"
|
||||||
placeholder="请输入商品名称"
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="会员名称" prop="memberName">
|
||||||
</Form-item>
|
<Input
|
||||||
<Form-item label="会员名称" prop="memberName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.memberName"
|
||||||
type="text"
|
clearable
|
||||||
v-model="searchForm.memberName"
|
placeholder="请输入会员名称"
|
||||||
clearable
|
style="width: 200px"
|
||||||
placeholder="请输入会员名称"
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="订单编号" prop="orderSn">
|
||||||
</Form-item>
|
<Input
|
||||||
<Form-item label="订单编号" prop="orderSn">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.orderSn"
|
||||||
type="text"
|
clearable
|
||||||
v-model="searchForm.orderSn"
|
placeholder="请输入订单编号"
|
||||||
clearable
|
style="width: 200px"
|
||||||
placeholder="请输入订单编号"
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
|
||||||
</Form-item>
|
|
||||||
|
|
||||||
<Form-item label="申请时间">
|
<Form-item label="申请时间">
|
||||||
<DatePicker
|
<DatePicker
|
||||||
v-model="selectDate"
|
v-model="selectDate"
|
||||||
type="datetimerange"
|
type="datetimerange"
|
||||||
format="yyyy-MM-dd HH:mm:ss"
|
format="yyyy-MM-dd HH:mm:ss"
|
||||||
clearable
|
clearable
|
||||||
@on-change="selectDateRange"
|
@on-change="selectDateRange"
|
||||||
placeholder="选择起始时间"
|
placeholder="选择起始时间"
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
></DatePicker>
|
></DatePicker>
|
||||||
</Form-item>
|
</Form-item>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
<Button @click="handleReset" class="search-btn">重置</Button>
|
<Button @click="handleReset" class="search-btn">重置</Button>
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
>
|
||||||
>
|
|
||||||
|
|
||||||
<!-- 商品栏目格式化 -->
|
<!-- 商品栏目格式化 -->
|
||||||
<template slot="goodsSlot" slot-scope="{row}">
|
<template slot="goodsSlot" slot-scope="{row}">
|
||||||
<div style="margin-top: 5px;height: 90px; display: flex;">
|
<div style="margin-top: 5px;height: 90px; display: flex;">
|
||||||
<div style="">
|
<div style="">
|
||||||
<img :src="row.goodsImage" style="height: 80px;margin-top: 3px">
|
<img :src="row.goodsImage" style="height: 80px;margin-top: 3px">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-left: 13px;">
|
<div style="margin-left: 13px;">
|
||||||
<div class="div-zoom">
|
<div class="div-zoom">
|
||||||
<a @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
|
<a @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
|
||||||
</div>
|
</div>
|
||||||
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
||||||
</div>
|
|
||||||
<img src="../../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
|
||||||
</Poptip>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<img src="../../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
||||||
|
</Poptip>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
</Row>
|
<Row type="flex" justify="end" class="page">
|
||||||
<Row type="flex" justify="end" class="page">
|
<Page
|
||||||
<Page
|
:current="searchForm.pageNumber"
|
||||||
:current="searchForm.pageNumber"
|
:total="total"
|
||||||
:total="total"
|
:page-size="searchForm.pageSize"
|
||||||
:page-size="searchForm.pageSize"
|
@on-change="changePage"
|
||||||
@on-change="changePage"
|
@on-page-size-change="changePageSize"
|
||||||
@on-page-size-change="changePageSize"
|
:page-size-opts="[10, 20, 50]"
|
||||||
:page-size-opts="[10, 20, 50]"
|
size="small"
|
||||||
size="small"
|
show-total
|
||||||
show-total
|
show-elevator
|
||||||
show-elevator
|
show-sizer
|
||||||
show-sizer
|
></Page>
|
||||||
></Page>
|
</Row>
|
||||||
</Row>
|
</Card>
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,179 +1,173 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card style="height: 60px">
|
||||||
<Col style="width:100%;">
|
<div style="">
|
||||||
<Row style="flex-direction: column;width: 100%;">
|
<Button v-if="allowOperation.editPrice" @click="modifyPrice" type="primary">调整价格</Button>
|
||||||
<Card style="height: 60px">
|
<Button v-if="allowOperation.editConsignee" @click="editAddress" type="primary">修改收货地址
|
||||||
<div style="">
|
</Button>
|
||||||
<Button v-if="allowOperation.editPrice" @click="modifyPrice" type="primary">调整价格</Button>
|
<Button v-if="allowOperation.showLogistics" @click="logistics" type="primary">查看物流</Button>
|
||||||
<Button v-if="allowOperation.editConsignee" @click="editAddress" type="primary">修改收货地址
|
<Button @click="orderLog" type="primary">订单日志</Button>
|
||||||
</Button>
|
<Button v-if="allowOperation.take" @click="orderTake" type="primary">订单核销</Button>
|
||||||
<Button v-if="allowOperation.showLogistics" @click="logistics" type="primary">查看物流</Button>
|
<Button v-if="allowOperation.ship" @click="orderDeliver" type="primary">发货</Button>
|
||||||
<Button @click="orderLog" type="primary">订单日志</Button>
|
</div>
|
||||||
<Button v-if="allowOperation.take" @click="orderTake" type="primary">订单核销</Button>
|
</Card>
|
||||||
<Button v-if="allowOperation.ship" @click="orderDeliver" type="primary">发货</Button>
|
|
||||||
</div>
|
|
||||||
</Card>
|
|
||||||
|
|
||||||
<Card style="height: 400px">
|
<Card style="height: 400px">
|
||||||
<div style="width: 30%; float: left; margin-left: 20px">
|
<div style="width: 30%; float: left; margin-left: 20px">
|
||||||
<div class="div-item">
|
<div class="div-item">
|
||||||
<div class="div-item-left">订单号:</div>
|
<div class="div-item-left">订单号:</div>
|
||||||
<div class="div-item-right">{{ orderInfo.order.sn }}</div>
|
<div class="div-item-right">{{ orderInfo.order.sn }}</div>
|
||||||
</div>
|
|
||||||
<div class="div-item">
|
|
||||||
<div class="div-item-left">订单来源:</div>
|
|
||||||
<div class="div-item-right">
|
|
||||||
{{ orderInfo.order.clientType }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="div-item">
|
|
||||||
<div class="div-item-left">订单状态:</div>
|
|
||||||
<div class="div-item-right">
|
|
||||||
{{ orderInfo.orderStatusValue }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="div-item">
|
|
||||||
<div class="div-item-left">下单时间:</div>
|
|
||||||
<div class="div-item-right">
|
|
||||||
{{ orderInfo.order.createTime }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div style="width: 30%; float: left; margin-left: 20px">
|
|
||||||
<div class="div-item" v-if="orderInfo.order.needReceipt == false">
|
|
||||||
<div class="div-item-left">发票信息:</div>
|
|
||||||
<div class="div-item-right">暂无发票信息</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
|
||||||
<div class="div-item-left">发票抬头:</div>
|
|
||||||
<div class="div-item-right">{{ orderInfo.receipt.receiptTitle ? orderInfo.receipt.receiptTitle : '暂无' }}</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="div-item" v-if="orderInfo.order.needReceipt == true && orderInfo.receipt.taxpayerId">
|
|
||||||
<div class="div-item-left">发票税号:</div>
|
|
||||||
<div class="div-item-right">{{ orderInfo.receipt.taxpayerId ? orderInfo.receipt.taxpayerId : '暂无' }}</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
|
||||||
<div class="div-item-left">发票内容:</div>
|
|
||||||
<div class="div-item-right">{{ orderInfo.receipt.receiptContent ? orderInfo.receipt.receiptContent : '暂无' }}</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
|
||||||
<div class="div-item-left">发票金额:</div>
|
|
||||||
<div class="div-item-right">{{ orderInfo.receipt.receiptPrice ? orderInfo.receipt.receiptPrice : '暂无' | unitPrice('¥')}}</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
|
||||||
<div class="div-item-left">是否开票:</div>
|
|
||||||
<div class="div-item-right">{{ orderInfo.receipt.receiptStatus == 0 ? '未开' : '已开' }}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div style="width: 36%; float: left">
|
|
||||||
<div class="div-item">
|
|
||||||
<div class="div-item-left">收货信息:</div>
|
|
||||||
<div class="div-item-right">
|
|
||||||
{{ orderInfo.order.consigneeName }}
|
|
||||||
{{ orderInfo.order.consigneeMobile }}
|
|
||||||
{{ orderInfo.order.consigneeAddressPath }}
|
|
||||||
{{ orderInfo.order.consigneeDetail }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="div-item">
|
|
||||||
<div class="div-item-left">支付方式:</div>
|
|
||||||
<div class="div-item-right">
|
|
||||||
{{ orderInfo.paymentMethodValue }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="div-item">
|
|
||||||
<div class="div-item-left">买家留言:</div>
|
|
||||||
<div class="div-item-right">{{ orderInfo.order.remark }}</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="div-item">
|
|
||||||
<div class="div-item-left">配送方式:</div>
|
|
||||||
<div class="div-item-right">
|
|
||||||
{{
|
|
||||||
orderInfo.deliveryMethodValue
|
|
||||||
? orderInfo.deliveryMethodValue
|
|
||||||
: "暂无配送方式"
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</Card>
|
|
||||||
</Row>
|
|
||||||
</Col>
|
|
||||||
|
|
||||||
<Card>
|
|
||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom">
|
|
||||||
<!-- 商品栏目格式化 -->
|
|
||||||
<template slot="goodsSlot" slot-scope="{row}">
|
|
||||||
<div style="margin-top: 5px; height: 80px; display: flex">
|
|
||||||
<div style="">
|
|
||||||
<img :src="row.image" style="height: 60px; margin-top: 1px; width: 60px" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="margin-left: 13px">
|
|
||||||
<div class="div-zoom">
|
|
||||||
<a @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
|
|
||||||
</div>
|
|
||||||
<span v-for="(item, key) in JSON.parse(row.specs)">
|
|
||||||
<span v-show="key!='images'" style="font-size: 12px;color: #999999;">
|
|
||||||
{{key}} : {{item}}
|
|
||||||
</span>
|
|
||||||
</span>
|
|
||||||
<Poptip trigger="hover" style="display: block;" title="扫码在手机中查看" transfer>
|
|
||||||
<div slot="content">
|
|
||||||
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
|
||||||
</div>
|
|
||||||
<img src="../../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
|
||||||
</Poptip>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</Table>
|
|
||||||
<div class="goods-total">
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<span class="label">商品总额:</span>
|
|
||||||
<span class="txt">{{ orderInfo.order.priceDetailDTO.goodsPrice | unitPrice('¥')}}</span>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<span class="label">优惠金额:</span>
|
|
||||||
<span class="txt">
|
|
||||||
{{
|
|
||||||
orderInfo.order.priceDetailDTO.couponPrice +
|
|
||||||
orderInfo.order.priceDetailDTO.discountPrice
|
|
||||||
| unitPrice('¥')}}
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<span class="label">运费:</span>
|
|
||||||
<span class="txt">{{ orderInfo.order.freightPrice | unitPrice('¥')}}</span>
|
|
||||||
</li>
|
|
||||||
<li v-if="orderInfo.order.priceDetailDTO.payPoint != 0">
|
|
||||||
<span class="label">使用积分:</span>
|
|
||||||
<span class="txt">{{
|
|
||||||
orderInfo.order.priceDetailDTO.payPoint
|
|
||||||
}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
<span class="label">应付金额:</span>
|
|
||||||
<span class="txt flowPrice">¥{{ orderInfo.order.flowPrice | unitPrice }}</span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
<div class="div-item">
|
||||||
</Row>
|
<div class="div-item-left">订单来源:</div>
|
||||||
|
<div class="div-item-right">
|
||||||
|
{{ orderInfo.order.clientType }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="div-item">
|
||||||
|
<div class="div-item-left">订单状态:</div>
|
||||||
|
<div class="div-item-right">
|
||||||
|
{{ orderInfo.orderStatusValue }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="div-item">
|
||||||
|
<div class="div-item-left">下单时间:</div>
|
||||||
|
<div class="div-item-right">
|
||||||
|
{{ orderInfo.order.createTime }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div style="width: 30%; float: left; margin-left: 20px">
|
||||||
|
<div class="div-item" v-if="orderInfo.order.needReceipt == false">
|
||||||
|
<div class="div-item-left">发票信息:</div>
|
||||||
|
<div class="div-item-right">暂无发票信息</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
||||||
|
<div class="div-item-left">发票抬头:</div>
|
||||||
|
<div class="div-item-right">{{ orderInfo.receipt.receiptTitle ? orderInfo.receipt.receiptTitle : '暂无' }}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="div-item" v-if="orderInfo.order.needReceipt == true && orderInfo.receipt.taxpayerId">
|
||||||
|
<div class="div-item-left">发票税号:</div>
|
||||||
|
<div class="div-item-right">{{ orderInfo.receipt.taxpayerId ? orderInfo.receipt.taxpayerId : '暂无' }}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
||||||
|
<div class="div-item-left">发票内容:</div>
|
||||||
|
<div class="div-item-right">{{ orderInfo.receipt.receiptContent ? orderInfo.receipt.receiptContent : '暂无' }}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
||||||
|
<div class="div-item-left">发票金额:</div>
|
||||||
|
<div class="div-item-right">{{ orderInfo.receipt.receiptPrice ? orderInfo.receipt.receiptPrice : '暂无' | unitPrice('¥')}}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="div-item" v-if="orderInfo.order.needReceipt == true">
|
||||||
|
<div class="div-item-left">是否开票:</div>
|
||||||
|
<div class="div-item-right">{{ orderInfo.receipt.receiptStatus == 0 ? '未开' : '已开' }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="width: 36%; float: left">
|
||||||
|
<div class="div-item">
|
||||||
|
<div class="div-item-left">收货信息:</div>
|
||||||
|
<div class="div-item-right">
|
||||||
|
{{ orderInfo.order.consigneeName }}
|
||||||
|
{{ orderInfo.order.consigneeMobile }}
|
||||||
|
{{ orderInfo.order.consigneeAddressPath }}
|
||||||
|
{{ orderInfo.order.consigneeDetail }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="div-item">
|
||||||
|
<div class="div-item-left">支付方式:</div>
|
||||||
|
<div class="div-item-right">
|
||||||
|
{{ orderInfo.paymentMethodValue }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="div-item">
|
||||||
|
<div class="div-item-left">买家留言:</div>
|
||||||
|
<div class="div-item-right">{{ orderInfo.order.remark }}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="div-item">
|
||||||
|
<div class="div-item-left">配送方式:</div>
|
||||||
|
<div class="div-item-right">
|
||||||
|
{{
|
||||||
|
orderInfo.deliveryMethodValue
|
||||||
|
? orderInfo.deliveryMethodValue
|
||||||
|
: "暂无配送方式"
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Card>
|
||||||
|
|
||||||
|
<Card>
|
||||||
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom">
|
||||||
|
<!-- 商品栏目格式化 -->
|
||||||
|
<template slot="goodsSlot" slot-scope="{row}">
|
||||||
|
<div style="margin-top: 5px; height: 80px; display: flex">
|
||||||
|
<div style="">
|
||||||
|
<img :src="row.image" style="height: 60px; margin-top: 1px; width: 60px" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="margin-left: 13px">
|
||||||
|
<div class="div-zoom">
|
||||||
|
<a @click="linkTo(row.goodsId,row.skuId)">{{row.goodsName}}</a>
|
||||||
|
</div>
|
||||||
|
<span v-for="(item, key) in JSON.parse(row.specs)" :key="key">
|
||||||
|
<span v-show="key!='images'" style="font-size: 12px;color: #999999;">
|
||||||
|
{{key}} : {{item}}
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
<Poptip trigger="hover" style="display: block;" title="扫码在手机中查看" transfer>
|
||||||
|
<div slot="content">
|
||||||
|
<vue-qr :text="wapLinkTo(row.goodsId,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
||||||
|
</div>
|
||||||
|
<img src="../../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
||||||
|
</Poptip>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</Table>
|
||||||
|
<div class="goods-total">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span class="label">商品总额:</span>
|
||||||
|
<span class="txt">{{ orderInfo.order.priceDetailDTO.goodsPrice | unitPrice('¥')}}</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="label">优惠金额:</span>
|
||||||
|
<span class="txt">
|
||||||
|
{{
|
||||||
|
orderInfo.order.priceDetailDTO.couponPrice +
|
||||||
|
orderInfo.order.priceDetailDTO.discountPrice
|
||||||
|
| unitPrice('¥')}}
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="label">运费:</span>
|
||||||
|
<span class="txt">{{ orderInfo.order.freightPrice | unitPrice('¥')}}</span>
|
||||||
|
</li>
|
||||||
|
<li v-if="orderInfo.order.priceDetailDTO.payPoint != 0">
|
||||||
|
<span class="label">使用积分:</span>
|
||||||
|
<span class="txt">{{
|
||||||
|
orderInfo.order.priceDetailDTO.payPoint
|
||||||
|
}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span class="label">应付金额:</span>
|
||||||
|
<span class="txt flowPrice">¥{{ orderInfo.order.flowPrice | unitPrice }}</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</Card>
|
||||||
<Modal v-model="modal" width="530">
|
<Modal v-model="modal" width="530">
|
||||||
<p slot="header">
|
<p slot="header">
|
||||||
<Icon type="edit"></Icon>
|
<Icon type="edit"></Icon>
|
||||||
|
|
|
@ -1,84 +1,78 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Form-item label="订单编号" prop="orderSn">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Input
|
||||||
<Form-item label="订单编号" prop="orderSn">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.orderSn"
|
||||||
type="text"
|
clearable
|
||||||
v-model="searchForm.orderSn"
|
placeholder="请输入订单编号"
|
||||||
clearable
|
style="width: 200px"
|
||||||
placeholder="请输入订单编号"
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="会员名称" prop="buyerName">
|
||||||
</Form-item>
|
<Input
|
||||||
<Form-item label="会员名称" prop="buyerName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.buyerName"
|
||||||
type="text"
|
clearable
|
||||||
v-model="searchForm.buyerName"
|
placeholder="请输入会员名称"
|
||||||
clearable
|
style="width: 200px"
|
||||||
placeholder="请输入会员名称"
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="订单状态" prop="orderStatus">
|
||||||
</Form-item>
|
<Select v-model="searchForm.orderStatus" placeholder="请选择" clearable style="width: 200px">
|
||||||
<Form-item label="订单状态" prop="orderStatus">
|
<Option value="UNPAID">未付款</Option>
|
||||||
<Select v-model="searchForm.orderStatus" placeholder="请选择" clearable style="width: 200px">
|
<Option value="PAID">已付款</Option>
|
||||||
<Option value="UNPAID">未付款</Option>
|
<Option value="UNDELIVERED">待发货</Option>
|
||||||
<Option value="PAID">已付款</Option>
|
<Option value="DELIVERED">已发货</Option>
|
||||||
<Option value="UNDELIVERED">待发货</Option>
|
<Option value="COMPLETED">已完成</Option>
|
||||||
<Option value="DELIVERED">已发货</Option>
|
<Option value="TAKE">待核验</Option>
|
||||||
<Option value="COMPLETED">已完成</Option>
|
<Option value="CANCELLED">已取消</Option>
|
||||||
<Option value="TAKE">待核验</Option>
|
</Select>
|
||||||
<Option value="CANCELLED">已取消</Option>
|
</Form-item>
|
||||||
</Select>
|
<Form-item label="下单时间">
|
||||||
</Form-item>
|
<DatePicker
|
||||||
<Form-item label="下单时间">
|
v-model="selectDate"
|
||||||
<DatePicker
|
type="datetimerange"
|
||||||
v-model="selectDate"
|
format="yyyy-MM-dd"
|
||||||
type="datetimerange"
|
clearable
|
||||||
format="yyyy-MM-dd"
|
@on-change="selectDateRange"
|
||||||
clearable
|
placeholder="选择起始时间"
|
||||||
@on-change="selectDateRange"
|
style="width: 200px"
|
||||||
placeholder="选择起始时间"
|
></DatePicker>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
></DatePicker>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item>
|
<Button @click="handleReset" class="search-btn">重置</Button>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
|
||||||
<Button @click="handleReset" class="search-btn">重置</Button>
|
|
||||||
|
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
></Table>
|
||||||
></Table>
|
<Row type="flex" justify="end" class="page">
|
||||||
</Row>
|
<Page
|
||||||
<Row type="flex" justify="end" class="page">
|
:current="searchForm.pageNumber"
|
||||||
<Page
|
:total="total"
|
||||||
:current="searchForm.pageNumber"
|
:page-size="searchForm.pageSize"
|
||||||
:total="total"
|
@on-change="changePage"
|
||||||
:page-size="searchForm.pageSize"
|
@on-page-size-change="changePageSize"
|
||||||
@on-change="changePage"
|
:page-size-opts="[10, 20, 50]"
|
||||||
@on-page-size-change="changePageSize"
|
size="small"
|
||||||
:page-size-opts="[10, 20, 50]"
|
show-total
|
||||||
size="small"
|
show-elevator
|
||||||
show-total
|
show-sizer
|
||||||
show-elevator
|
></Page>
|
||||||
show-sizer
|
</Row>
|
||||||
></Page>
|
</Card>
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,88 +1,82 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form
|
||||||
<Row @keydown.enter.native="handleSearch">
|
ref="searchForm"
|
||||||
<Form
|
:model="searchForm"
|
||||||
ref="searchForm"
|
inline
|
||||||
:model="searchForm"
|
:label-width="70"
|
||||||
inline
|
class="search-form"
|
||||||
:label-width="70"
|
>
|
||||||
class="search-form"
|
<Form-item label="订单编号" prop="orderSn">
|
||||||
>
|
<Input
|
||||||
<Form-item label="订单编号" prop="orderSn">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.orderSn"
|
||||||
type="text"
|
clearable
|
||||||
v-model="searchForm.orderSn"
|
placeholder="请输入订单编号"
|
||||||
clearable
|
style="width: 200px"
|
||||||
placeholder="请输入订单编号"
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="会员名称" prop="memberName">
|
||||||
</Form-item>
|
<Input
|
||||||
<Form-item label="会员名称" prop="memberName">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.memberName"
|
||||||
type="text"
|
clearable
|
||||||
v-model="searchForm.memberName"
|
placeholder="请输入会员名称"
|
||||||
clearable
|
style="width: 200px"
|
||||||
placeholder="请输入会员名称"
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="发票抬头" prop="receiptTitle">
|
||||||
</Form-item>
|
<Input
|
||||||
<Form-item label="发票抬头" prop="receiptTitle">
|
type="text"
|
||||||
<Input
|
v-model="searchForm.receiptTitle"
|
||||||
type="text"
|
clearable
|
||||||
v-model="searchForm.receiptTitle"
|
placeholder="请输入发票抬头"
|
||||||
clearable
|
style="width: 200px"
|
||||||
placeholder="请输入发票抬头"
|
/>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
/>
|
<Form-item label="状态" prop="receiptStatus">
|
||||||
</Form-item>
|
<Select v-model="searchForm.receiptStatus" placeholder="请选择" clearable style="width: 200px">
|
||||||
<Form-item label="状态" prop="receiptStatus">
|
<Option value="0">未开票</Option>
|
||||||
<Select v-model="searchForm.receiptStatus" placeholder="请选择" clearable style="width: 200px">
|
<Option value="1">已开票</Option>
|
||||||
<Option value="0">未开票</Option>
|
</Select>
|
||||||
<Option value="1">已开票</Option>
|
</Form-item>
|
||||||
</Select>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item>
|
<Button @click="handleReset" class="search-btn">重置</Button>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
</Form>
|
||||||
<Button @click="handleReset" class="search-btn">重置</Button>
|
</Row>
|
||||||
</Form>
|
<Table
|
||||||
</Row>
|
:loading="loading"
|
||||||
<Row class="padding-row">
|
border
|
||||||
<Table
|
:columns="columns"
|
||||||
:loading="loading"
|
:data="data"
|
||||||
border
|
ref="table"
|
||||||
:columns="columns"
|
sortable="custom"
|
||||||
:data="data"
|
@on-sort-change="changeSort"
|
||||||
ref="table"
|
@on-selection-change="changeSelect"
|
||||||
sortable="custom"
|
>
|
||||||
@on-sort-change="changeSort"
|
<!-- 订单详情格式化 -->
|
||||||
@on-selection-change="changeSelect"
|
<template slot="orderSlot" slot-scope="scope">
|
||||||
>
|
<a
|
||||||
<!-- 订单详情格式化 -->
|
@click="$router.push({name: 'order-detail',query: {sn: scope.row.orderSn}})">{{scope.row.orderSn}}</a>
|
||||||
<template slot="orderSlot" slot-scope="scope">
|
</template>
|
||||||
<a
|
</Table>
|
||||||
@click="$router.push({name: 'order-detail',query: {sn: scope.row.orderSn}})">{{scope.row.orderSn}}</a>
|
<Row type="flex" justify="end" class="page">
|
||||||
</template>
|
<Page
|
||||||
</Table>
|
:current="searchForm.pageNumber"
|
||||||
</Row>
|
:total="total"
|
||||||
<Row type="flex" justify="end" class="page">
|
:page-size="searchForm.pageSize"
|
||||||
<Page
|
@on-change="changePage"
|
||||||
:current="searchForm.pageNumber"
|
@on-page-size-change="changePageSize"
|
||||||
:total="total"
|
:page-size-opts="[10, 20, 50]"
|
||||||
:page-size="searchForm.pageSize"
|
size="small"
|
||||||
@on-change="changePage"
|
show-total
|
||||||
@on-page-size-change="changePageSize"
|
show-elevator
|
||||||
:page-size-opts="[10, 20, 50]"
|
show-sizer
|
||||||
size="small"
|
></Page>
|
||||||
show-total
|
</Row>
|
||||||
show-elevator
|
</Card>
|
||||||
show-sizer
|
|
||||||
></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -55,36 +55,34 @@
|
||||||
<Button @click="delAll" class="ml_10">批量下架</Button>
|
<Button @click="delAll" class="ml_10">批量下架</Button>
|
||||||
<!-- <Button @click="upAll">批量上架</Button> -->
|
<!-- <Button @click="upAll">批量上架</Button> -->
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
>
|
||||||
>
|
<template slot-scope="{ row }" slot="action">
|
||||||
<template slot-scope="{ row }" slot="action">
|
<Button
|
||||||
<Button
|
v-if="row.promotionStatus === 'NEW' || row.promotionStatus === 'CLOSE'"
|
||||||
v-if="row.promotionStatus === 'NEW' || row.promotionStatus === 'CLOSE'"
|
type="info"
|
||||||
type="info"
|
size="small"
|
||||||
size="small"
|
style="margin-right: 10px"
|
||||||
style="margin-right: 10px"
|
@click="edit(row)"
|
||||||
@click="edit(row)"
|
>编辑</Button
|
||||||
>编辑</Button
|
>
|
||||||
>
|
<Button
|
||||||
<Button
|
v-if="row.promotionStatus !== 'CLOSE'"
|
||||||
v-if="row.promotionStatus !== 'CLOSE'"
|
type="error"
|
||||||
type="error"
|
size="small"
|
||||||
size="small"
|
@click="remove(row)"
|
||||||
@click="remove(row)"
|
>下架</Button
|
||||||
>下架</Button
|
>
|
||||||
>
|
</template>
|
||||||
</template>
|
</Table>
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber + 1"
|
:current="searchForm.pageNumber + 1"
|
||||||
|
|
|
@ -47,50 +47,48 @@
|
||||||
<Row class="operation">
|
<Row class="operation">
|
||||||
<Button type="primary" @click="newAct">新增</Button>
|
<Button type="primary" @click="newAct">新增</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
>
|
||||||
>
|
<template slot-scope="{ row }" slot="applyEndTime">
|
||||||
<template slot-scope="{ row }" slot="applyEndTime">
|
{{ unixDate(row.applyEndTime) }}
|
||||||
{{ unixDate(row.applyEndTime) }}
|
</template>
|
||||||
</template>
|
<template slot-scope="{ row }" slot="promotionType">
|
||||||
<template slot-scope="{ row }" slot="promotionType">
|
{{ row.isFullMinus ? "满减" : "满折" }}
|
||||||
{{ row.isFullMinus ? "满减" : "满折" }}
|
</template>
|
||||||
</template>
|
<template slot-scope="{ row }" slot="hours">
|
||||||
<template slot-scope="{ row }" slot="hours">
|
<Tag v-for="item in unixHours(row.hours)" :key="item">{{
|
||||||
<Tag v-for="item in unixHours(row.hours)" :key="item">{{
|
item
|
||||||
item
|
}}</Tag>
|
||||||
}}</Tag>
|
</template>
|
||||||
</template>
|
<template slot-scope="{ row }" slot="action">
|
||||||
<template slot-scope="{ row }" slot="action">
|
<div>
|
||||||
<div>
|
<Button
|
||||||
<Button
|
type="primary"
|
||||||
type="primary"
|
v-if="row.promotionStatus == 'NEW'"
|
||||||
v-if="row.promotionStatus == 'NEW'"
|
size="small"
|
||||||
size="small"
|
@click="edit(row)"
|
||||||
@click="edit(row)"
|
>编辑</Button
|
||||||
>编辑</Button
|
>
|
||||||
>
|
<Button type="success" v-else size="small" @click="edit(row)"
|
||||||
<Button type="success" v-else size="small" @click="edit(row)"
|
>查看</Button
|
||||||
>查看</Button
|
>
|
||||||
>
|
<Button
|
||||||
<Button
|
type="error"
|
||||||
type="error"
|
:disabled="row.promotionStatus == 'START'"
|
||||||
:disabled="row.promotionStatus == 'START'"
|
ghost
|
||||||
ghost
|
size="small"
|
||||||
size="small"
|
@click="del(row)"
|
||||||
@click="del(row)"
|
>删除</Button
|
||||||
>删除</Button
|
>
|
||||||
>
|
</div>
|
||||||
</div>
|
</template>
|
||||||
</template>
|
</Table>
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page operation">
|
<Row type="flex" justify="end" class="page operation">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber + 1"
|
:current="searchForm.pageNumber + 1"
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
|
||||||
<Col>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<Card>
|
<Card>
|
||||||
<Row>
|
<Row>
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
||||||
|
@ -45,66 +41,64 @@
|
||||||
<Row class="operation padding-row">
|
<Row class="operation padding-row">
|
||||||
<Button @click="newAct" type="primary">添加</Button>
|
<Button @click="newAct" type="primary">添加</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
>
|
||||||
>
|
<template slot-scope="{ row }" slot="action">
|
||||||
<template slot-scope="{ row }" slot="action">
|
<Button
|
||||||
<Button
|
type="primary"
|
||||||
type="primary"
|
size="small"
|
||||||
size="small"
|
v-if="row.promotionStatus == 'NEW'"
|
||||||
v-if="row.promotionStatus == 'NEW'"
|
@click="edit(row)"
|
||||||
@click="edit(row)"
|
>编辑</Button
|
||||||
>编辑</Button
|
>
|
||||||
>
|
<Button
|
||||||
<Button
|
type="info"
|
||||||
type="info"
|
v-if="row.promotionStatus == 'NEW'"
|
||||||
v-if="row.promotionStatus == 'NEW'"
|
size="small"
|
||||||
size="small"
|
@click="manage(row, 'manager')"
|
||||||
@click="manage(row, 'manager')"
|
>管理</Button
|
||||||
>管理</Button
|
>
|
||||||
>
|
<Button
|
||||||
<Button
|
type="info"
|
||||||
type="info"
|
v-if="row.promotionStatus !== 'NEW'"
|
||||||
v-if="row.promotionStatus !== 'NEW'"
|
size="small"
|
||||||
size="small"
|
@click="manage(row, 'view')"
|
||||||
@click="manage(row, 'view')"
|
>查看</Button
|
||||||
>查看</Button
|
>
|
||||||
>
|
<Button
|
||||||
<Button
|
type="error"
|
||||||
type="error"
|
size="small"
|
||||||
size="small"
|
v-if="row.promotionStatus != 'START'"
|
||||||
v-if="row.promotionStatus != 'START'"
|
ghost
|
||||||
ghost
|
@click="remove(row)"
|
||||||
@click="remove(row)"
|
>删除</Button
|
||||||
>删除</Button
|
>
|
||||||
>
|
<Button
|
||||||
<Button
|
type="success"
|
||||||
type="success"
|
v-if="
|
||||||
v-if="
|
row.promotionStatus == 'NEW' || row.promotionStatus == 'CLOSE'
|
||||||
row.promotionStatus == 'NEW' || row.promotionStatus == 'CLOSE'
|
"
|
||||||
"
|
size="small"
|
||||||
size="small"
|
@click="open(row)"
|
||||||
@click="open(row)"
|
>开启</Button
|
||||||
>开启</Button
|
>
|
||||||
>
|
<Button
|
||||||
<Button
|
type="warning"
|
||||||
type="warning"
|
v-if="row.promotionStatus == 'START'"
|
||||||
v-if="row.promotionStatus == 'START'"
|
size="small"
|
||||||
size="small"
|
@click="close(row)"
|
||||||
@click="close(row)"
|
>关闭</Button
|
||||||
>关闭</Button
|
>
|
||||||
>
|
</template>
|
||||||
</template>
|
</Table>
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber + 1"
|
:current="searchForm.pageNumber + 1"
|
||||||
|
|
|
@ -16,16 +16,14 @@
|
||||||
</Alert>
|
</Alert>
|
||||||
</Row>
|
</Row>
|
||||||
<h3 class="act-goods">活动商品</h3>
|
<h3 class="act-goods">活动商品</h3>
|
||||||
<Row class="operation">
|
<Table :loading="loading" border :columns="goodsColumns" :data="goodsData" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
|
||||||
<Table :loading="loading" border :columns="goodsColumns" :data="goodsData" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
|
<template slot-scope="{ row, index }" slot="price">
|
||||||
<template slot-scope="{ row, index }" slot="price">
|
<Input v-model="row.price" :disabled="status==='view'" @input="goodsData[index].price = row.price" />
|
||||||
<Input v-model="row.price" :disabled="status==='view'" @input="goodsData[index].price = row.price" />
|
</template>
|
||||||
</template>
|
<template slot-scope="{ index }" slot="action">
|
||||||
<template slot-scope="{ index }" slot="action">
|
<Button type="error" size="small" ghost v-if="status === 'manager'" @click="delGoods(index)">删除</Button>
|
||||||
<Button type="error" size="small" ghost v-if="status === 'manager'" @click="delGoods(index)">删除</Button>
|
</template>
|
||||||
</template>
|
</Table>
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page operation">
|
<Row type="flex" justify="end" class="page operation">
|
||||||
<Page :current="searchForm.pageNumber + 1" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
<Page :current="searchForm.pageNumber + 1" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
|
||||||
size="small" show-total show-elevator show-sizer></Page>
|
size="small" show-total show-elevator show-sizer></Page>
|
||||||
|
|
|
@ -45,41 +45,39 @@
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
>
|
||||||
>
|
<template slot-scope="{ row }" slot="applyEndTime">
|
||||||
<template slot-scope="{ row }" slot="applyEndTime">
|
{{ unixDate(row.applyEndTime) }}
|
||||||
{{ unixDate(row.applyEndTime) }}
|
</template>
|
||||||
</template>
|
<template slot-scope="{ row }" slot="hours">
|
||||||
<template slot-scope="{ row }" slot="hours">
|
<Tag v-for="item in unixHours(row.hours)" :key="item">{{
|
||||||
<Tag v-for="item in unixHours(row.hours)" :key="item">{{
|
item
|
||||||
item
|
}}</Tag>
|
||||||
}}</Tag>
|
</template>
|
||||||
</template>
|
<template slot-scope="{ row }" slot="action">
|
||||||
<template slot-scope="{ row }" slot="action">
|
<Button
|
||||||
<Button
|
v-if="row.promotionStatus === 'NEW'"
|
||||||
v-if="row.promotionStatus === 'NEW'"
|
type="primary"
|
||||||
type="primary"
|
size="small"
|
||||||
size="small"
|
@click="manage(row)"
|
||||||
@click="manage(row)"
|
>管理</Button
|
||||||
>管理</Button
|
>
|
||||||
>
|
<Button
|
||||||
<Button
|
v-else
|
||||||
v-else
|
type="info"
|
||||||
type="info"
|
size="small"
|
||||||
size="small"
|
@click="manage(row)"
|
||||||
@click="manage(row)"
|
>查看</Button
|
||||||
>查看</Button
|
>
|
||||||
>
|
</template>
|
||||||
</template>
|
</Table>
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber + 1"
|
:current="searchForm.pageNumber + 1"
|
||||||
|
|
|
@ -1,70 +1,64 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Card>
|
<Form
|
||||||
<Row @keydown.enter.native="handleSearch">
|
ref="searchForm"
|
||||||
<Form
|
:model="searchForm"
|
||||||
ref="searchForm"
|
inline
|
||||||
:model="searchForm"
|
:label-width="70"
|
||||||
inline
|
class="search-form"
|
||||||
:label-width="70"
|
>
|
||||||
class="search-form"
|
<Form-item label="开始时间" prop="startDay">
|
||||||
>
|
<DatePicker
|
||||||
<Form-item label="开始时间" prop="startDay">
|
type="date"
|
||||||
<DatePicker
|
v-model="searchForm.startDate"
|
||||||
type="date"
|
format="yyyy-MM-dd HH:mm:ss"
|
||||||
v-model="searchForm.startDate"
|
placeholder="请选择"
|
||||||
format="yyyy-MM-dd HH:mm:ss"
|
clearable
|
||||||
placeholder="请选择"
|
style="width: 200px"
|
||||||
clearable
|
></DatePicker>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
></DatePicker>
|
<Form-item label="结束时间" prop="endDate">
|
||||||
</Form-item>
|
<DatePicker
|
||||||
<Form-item label="结束时间" prop="endDate">
|
type="date"
|
||||||
<DatePicker
|
v-model="searchForm.endDate"
|
||||||
type="date"
|
format="yyyy-MM-dd HH:mm:ss"
|
||||||
v-model="searchForm.endDate"
|
di
|
||||||
format="yyyy-MM-dd HH:mm:ss"
|
placeholder="请选择"
|
||||||
di
|
clearable
|
||||||
placeholder="请选择"
|
style="width: 200px"
|
||||||
clearable
|
></DatePicker>
|
||||||
style="width: 200px"
|
</Form-item>
|
||||||
></DatePicker>
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form-item>
|
<Button @click="handleReset" class="search-btn">重置</Button>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
</Form>
|
||||||
<Button @click="handleReset" class="search-btn">重置</Button>
|
</Row>
|
||||||
</Form>
|
<Table
|
||||||
</Row>
|
:loading="loading"
|
||||||
<Row class="padding-row">
|
border
|
||||||
<Table
|
:columns="columns"
|
||||||
:loading="loading"
|
:data="data"
|
||||||
border
|
ref="table"
|
||||||
:columns="columns"
|
sortable="custom"
|
||||||
:data="data"
|
@on-sort-change="changeSort"
|
||||||
ref="table"
|
@on-selection-change="changeSelect"
|
||||||
sortable="custom"
|
></Table>
|
||||||
@on-sort-change="changeSort"
|
<Row type="flex" justify="end" class="page">
|
||||||
@on-selection-change="changeSelect"
|
<Page
|
||||||
></Table>
|
:current="searchForm.pageNumber"
|
||||||
</Row>
|
:total="total"
|
||||||
<Row type="flex" justify="end" class="page">
|
:page-size="searchForm.pageSize"
|
||||||
<Page
|
@on-change="changePage"
|
||||||
:current="searchForm.pageNumber"
|
@on-page-size-change="changePageSize"
|
||||||
:total="total"
|
:page-size-opts="[10, 20, 50]"
|
||||||
:page-size="searchForm.pageSize"
|
size="small"
|
||||||
@on-change="changePage"
|
show-total
|
||||||
@on-page-size-change="changePageSize"
|
show-elevator
|
||||||
:page-size-opts="[10, 20, 50]"
|
show-sizer
|
||||||
size="small"
|
></Page>
|
||||||
show-total
|
</Row>
|
||||||
show-elevator
|
</Card>
|
||||||
show-sizer
|
|
||||||
></Page>
|
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -47,15 +47,13 @@
|
||||||
<Tabs active-key="tab" @on-click="clickTabs">
|
<Tabs active-key="tab" @on-click="clickTabs">
|
||||||
<Tab-pane label="订单列表" name="order">
|
<Tab-pane label="订单列表" name="order">
|
||||||
<Card>
|
<Card>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="orderColumns"
|
||||||
:columns="orderColumns"
|
:data="orderData"
|
||||||
:data="orderData"
|
ref="table"
|
||||||
ref="table"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="orderParam.pageNumber"
|
:current="orderParam.pageNumber"
|
||||||
|
@ -72,15 +70,13 @@
|
||||||
</Tab-pane>
|
</Tab-pane>
|
||||||
<Tab-pane label="退单列表" name="refund">
|
<Tab-pane label="退单列表" name="refund">
|
||||||
<Card>
|
<Card>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="refundColumns"
|
||||||
:columns="refundColumns"
|
:data="refundData"
|
||||||
:data="refundData"
|
ref="table"
|
||||||
ref="table"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="refundParam.pageNumber"
|
:current="refundParam.pageNumber"
|
||||||
|
@ -97,15 +93,13 @@
|
||||||
</Tab-pane>
|
</Tab-pane>
|
||||||
<Tab-pane label="分销费用列表" name="distribution">
|
<Tab-pane label="分销费用列表" name="distribution">
|
||||||
<Card>
|
<Card>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="distributionColumns"
|
||||||
:columns="distributionColumns"
|
:data="distributionData"
|
||||||
:data="distributionData"
|
ref="table"
|
||||||
ref="table"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="distributionParam.pageNumber"
|
:current="distributionParam.pageNumber"
|
||||||
|
|
|
@ -43,18 +43,16 @@
|
||||||
<Button @click="handleReset" class="search-btn">重置</Button>
|
<Button @click="handleReset" class="search-btn">重置</Button>
|
||||||
</Form>
|
</Form>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="padding-row">
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
|
|
@ -1,25 +1,17 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
<Card>
|
||||||
<Col>
|
<Table
|
||||||
<Card>
|
:loading="loading"
|
||||||
<Row>
|
border
|
||||||
<Table
|
:columns="columns"
|
||||||
:loading="loading"
|
:data="data"
|
||||||
border
|
ref="table"
|
||||||
:columns="columns"
|
sortable="custom"
|
||||||
:data="data"
|
@on-sort-change="changeSort"
|
||||||
ref="table"
|
@on-selection-change="changeSelect"
|
||||||
sortable="custom"
|
></Table>
|
||||||
@on-sort-change="changeSort"
|
</Card>
|
||||||
@on-selection-change="changeSelect"
|
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -7,17 +7,15 @@
|
||||||
<Row class="operation">
|
<Row class="operation">
|
||||||
<Button @click="add" type="primary">添加</Button>
|
<Button @click="add" type="primary">添加</Button>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Table
|
||||||
<Table
|
:loading="loading"
|
||||||
:loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data"
|
||||||
:data="data"
|
ref="table"
|
||||||
ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-selection-change="changeSelect"
|
||||||
@on-selection-change="changeSelect"
|
></Table>
|
||||||
></Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page
|
<Page
|
||||||
:current="searchForm.pageNumber"
|
:current="searchForm.pageNumber"
|
||||||
|
|
|
@ -150,7 +150,6 @@
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<Table stripe :columns="columns" :data="data"></Table>
|
<Table stripe :columns="columns" :data="data"></Table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<Page @on-change="(index)=>{refundParams.pageNumber = index}" @on-page-size-change="(size)=>{refundParams.pageSize= size}" class="page" show-total show-elevator :total="total" />
|
<Page @on-change="(index)=>{refundParams.pageNumber = index}" @on-page-size-change="(size)=>{refundParams.pageSize= size}" class="page" show-total show-elevator :total="total" />
|
||||||
|
|
||||||
|
|
|
@ -59,17 +59,14 @@
|
||||||
|
|
||||||
|
|
||||||
<Card style="margin-top: 2px">
|
<Card style="margin-top: 2px">
|
||||||
<Row>
|
<Table :loading="loading"
|
||||||
<Table :loading="loading"
|
border
|
||||||
border
|
:columns="columns"
|
||||||
:columns="columns"
|
:data="data" ref="table"
|
||||||
:data="data" ref="table"
|
sortable="custom"
|
||||||
sortable="custom"
|
@on-sort-change="changeSort"
|
||||||
@on-sort-change="changeSort"
|
@on-selection-change="changeSelect">
|
||||||
@on-selection-change="changeSelect">
|
</Table>
|
||||||
|
|
||||||
</Table>
|
|
||||||
</Row>
|
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
<Page :current="searchForm.pageNumber"
|
<Page :current="searchForm.pageNumber"
|
||||||
:total="total"
|
:total="total"
|
||||||
|
|
Loading…
Reference in New Issue