leisure-core 0.4.50 → 0.4.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -71
- package/le-common-page/src/main.vue +22 -61
- package/le-common-page/src/sub.vue +116 -0
- package/le-media-list/src/main.vue +1 -1
- package/le-role/src/main.vue +5 -5
- package/le-user/src/main.vue +1 -1
- package/package.json +5 -7
- package/le-ad/index.js +0 -7
- package/le-ad/src/main.vue +0 -137
- package/le-ad/src/sub.vue +0 -180
- package/le-ad-space/index.js +0 -7
- package/le-ad-space/src/main.vue +0 -135
- package/le-ad-space/src/sub.vue +0 -119
- package/le-commission/index.js +0 -7
- package/le-commission/src/main.vue +0 -175
- package/le-commission/src/sub.vue +0 -213
- package/le-commission-cp/index.js +0 -7
- package/le-commission-cp/src/main.vue +0 -170
- package/le-company/index.js +0 -7
- package/le-company/src/main.vue +0 -101
- package/le-company/src/sub.vue +0 -111
- package/le-coupon/index.js +0 -17
- package/le-coupon/src/details.vue +0 -196
- package/le-coupon/src/main.vue +0 -193
- package/le-coupon/src/sub.vue +0 -362
- package/le-coupon-give/index.js +0 -7
- package/le-coupon-give/src/main.vue +0 -110
- package/le-cp/index.js +0 -7
- package/le-cp/src/main.vue +0 -166
- package/le-cp/src/sub.vue +0 -174
- package/le-depart/index.js +0 -7
- package/le-depart/src/main.vue +0 -162
- package/le-distribution/index.js +0 -7
- package/le-distribution/src/main.vue +0 -85
- package/le-distribution-category/index.js +0 -7
- package/le-distribution-category/src/main.vue +0 -106
- package/le-distribution-category/src/sub.vue +0 -112
- package/le-integral/index.js +0 -7
- package/le-integral/src/main.vue +0 -198
- package/le-member/index.js +0 -7
- package/le-member/src/main.vue +0 -494
- package/le-member/src/other.vue +0 -240
- package/le-member-level/index.js +0 -7
- package/le-member-level/src/main.vue +0 -93
- package/le-member-level/src/sub.vue +0 -112
- package/le-promotions/index.js +0 -9
- package/le-promotions/src/main.vue +0 -220
- package/le-promotions/src/sub.vue +0 -248
- package/le-promotions-activities/index.js +0 -7
- package/le-promotions-activities/src/main.vue +0 -208
- package/le-promotions-activities/src/sub.vue +0 -212
- package/le-rate/index.js +0 -7
- package/le-rate/src/main.vue +0 -194
- package/le-rate/src/qrinfo.vue +0 -32
- package/le-rate/src/sub.vue +0 -183
- package/le-seting/index.js +0 -7
- package/le-seting/src/main.vue +0 -154
- package/le-user-type/index.js +0 -7
- package/le-user-type/src/main.vue +0 -39
package/le-ad/src/sub.vue
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
3
|
-
<el-form-item label="广告标题" prop="title">
|
|
4
|
-
<el-input v-model="form.title"></el-input>
|
|
5
|
-
</el-form-item>
|
|
6
|
-
<el-form-item label="终端类型" prop="dtype">
|
|
7
|
-
<el-select
|
|
8
|
-
v-model="form.dtype"
|
|
9
|
-
placeholder="请选择终端类型"
|
|
10
|
-
clearable
|
|
11
|
-
@change="changeDType"
|
|
12
|
-
>
|
|
13
|
-
<el-option label="PC" :value="0" :key="0"></el-option>
|
|
14
|
-
<el-option label="移动" :value="1" :key="1"></el-option>
|
|
15
|
-
</el-select>
|
|
16
|
-
</el-form-item>
|
|
17
|
-
<el-form-item label="广告位" prop="sid">
|
|
18
|
-
<el-select v-model="form.sid" placeholder="请选择广告位" clearable>
|
|
19
|
-
<el-option
|
|
20
|
-
v-for="option in sidOptions"
|
|
21
|
-
:key="option.id"
|
|
22
|
-
:label="option.title + option.code"
|
|
23
|
-
:value="option.id"
|
|
24
|
-
>
|
|
25
|
-
</el-option>
|
|
26
|
-
</el-select>
|
|
27
|
-
</el-form-item>
|
|
28
|
-
<el-form-item label="图片" prop="imgsrc">
|
|
29
|
-
<le-image
|
|
30
|
-
:images="initPrimaryImages"
|
|
31
|
-
:limit="1"
|
|
32
|
-
@getImages="getPrimaryImages"
|
|
33
|
-
></le-image>
|
|
34
|
-
</el-form-item>
|
|
35
|
-
<el-form-item label="链接类型" prop="linktype">
|
|
36
|
-
<el-select v-model="form.linktype" placeholder="请选择链接类型" clearable>
|
|
37
|
-
<el-option label="不导航" :value="0" :key="0"></el-option>
|
|
38
|
-
<el-option label="商城页面" :value="1" :key="1"></el-option>
|
|
39
|
-
<el-option label="商品页面" :value="2" :key="2"></el-option>
|
|
40
|
-
<el-option label="自定义链接" :value="3" :key="3"></el-option>
|
|
41
|
-
</el-select>
|
|
42
|
-
</el-form-item>
|
|
43
|
-
<el-form-item label="链接地址">
|
|
44
|
-
<el-input v-model="form.link_address"></el-input>
|
|
45
|
-
</el-form-item>
|
|
46
|
-
<el-form-item label="排序">
|
|
47
|
-
<el-input v-model="form.seq"></el-input>
|
|
48
|
-
</el-form-item>
|
|
49
|
-
<el-form-item label="备注" prop="note">
|
|
50
|
-
<el-input v-model="form.note"></el-input>
|
|
51
|
-
</el-form-item>
|
|
52
|
-
<el-form-item v-rfooter>
|
|
53
|
-
<el-button type="primary" @click="onSubmit">保存</el-button>
|
|
54
|
-
<el-button @click="close()">取消</el-button>
|
|
55
|
-
</el-form-item>
|
|
56
|
-
</el-form>
|
|
57
|
-
</template>
|
|
58
|
-
<script>
|
|
59
|
-
import { add, edit } from "@/api/system-ad";
|
|
60
|
-
import { options as listOptions } from "@/api/system-ad-space";
|
|
61
|
-
export default {
|
|
62
|
-
name: "le-ad-sub",
|
|
63
|
-
props: {
|
|
64
|
-
rowitem: {},
|
|
65
|
-
},
|
|
66
|
-
data() {
|
|
67
|
-
return {
|
|
68
|
-
form: {
|
|
69
|
-
id: "",
|
|
70
|
-
sid: "",
|
|
71
|
-
dtype: 0,
|
|
72
|
-
title: "",
|
|
73
|
-
imgsrc: "",
|
|
74
|
-
linktype: 0,
|
|
75
|
-
link_address: "",
|
|
76
|
-
seq: 1,
|
|
77
|
-
status: 0,
|
|
78
|
-
note: "",
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
initPrimaryImages: [],
|
|
82
|
-
|
|
83
|
-
sidOptions: [],
|
|
84
|
-
|
|
85
|
-
rules: {
|
|
86
|
-
sid: [{ required: true, message: "广告位置必须选择", trigger: "blur" }],
|
|
87
|
-
dtype: [
|
|
88
|
-
{ required: true, message: "终端类型必须选择", trigger: "blur" },
|
|
89
|
-
],
|
|
90
|
-
title: [
|
|
91
|
-
{ required: true, message: "请输入标题名称", trigger: "blur" },
|
|
92
|
-
{
|
|
93
|
-
min: 1,
|
|
94
|
-
max: 80,
|
|
95
|
-
message: "长度在 1 到 80 个字符",
|
|
96
|
-
trigger: "blur",
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
imgsrc: [
|
|
100
|
-
{ required: true, message: "图片地址必须定义", trigger: "blur" },
|
|
101
|
-
],
|
|
102
|
-
linktype: [
|
|
103
|
-
{ required: true, message: "链接类型必须选择", trigger: "blur" },
|
|
104
|
-
],
|
|
105
|
-
note: [
|
|
106
|
-
{
|
|
107
|
-
max: 200,
|
|
108
|
-
message: "长度在 0 到 200个字符",
|
|
109
|
-
trigger: "blur",
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
},
|
|
113
|
-
};
|
|
114
|
-
},
|
|
115
|
-
watch: {
|
|
116
|
-
rowitem: {
|
|
117
|
-
handler(newValue) {
|
|
118
|
-
if (newValue && newValue.id && newValue.id.length > 0) {
|
|
119
|
-
this.form = newValue;
|
|
120
|
-
if (this.form.imgsrc && this.form.imgsrc.length > 0) {
|
|
121
|
-
this.initPrimaryImages = [];
|
|
122
|
-
this.initPrimaryImages.push(this.form.imgsrc);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
immediate: true,
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
mounted() {
|
|
130
|
-
let params = {};
|
|
131
|
-
params.dtype = null;
|
|
132
|
-
this.getSidOptions();
|
|
133
|
-
},
|
|
134
|
-
methods: {
|
|
135
|
-
onSubmit() {
|
|
136
|
-
this.$refs["form"].validate((valid) => {
|
|
137
|
-
if (valid) {
|
|
138
|
-
let params = JSON.parse(JSON.stringify(this.form));
|
|
139
|
-
if (params.id && params.id.length > 0) {
|
|
140
|
-
edit(params).then((res) => {
|
|
141
|
-
this.$message(res.data.info);
|
|
142
|
-
this.$emit("rowRefresh");
|
|
143
|
-
this.close();
|
|
144
|
-
});
|
|
145
|
-
} else {
|
|
146
|
-
add(params).then((response) => {
|
|
147
|
-
this.$emit("rowRefresh");
|
|
148
|
-
this.$message(response.data.info);
|
|
149
|
-
this.close();
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
},
|
|
155
|
-
close() {
|
|
156
|
-
this.$emit("close");
|
|
157
|
-
},
|
|
158
|
-
changeDType(e) {
|
|
159
|
-
let params = {};
|
|
160
|
-
params.dtype = e;
|
|
161
|
-
this.getSidOptions(params);
|
|
162
|
-
},
|
|
163
|
-
getSidOptions(params) {
|
|
164
|
-
listOptions(params).then((res) => {
|
|
165
|
-
let data = res.data.data;
|
|
166
|
-
if (data) {
|
|
167
|
-
this.sidOptions = data;
|
|
168
|
-
} else this.sidOptions = [];
|
|
169
|
-
});
|
|
170
|
-
},
|
|
171
|
-
getPrimaryImages(images) {
|
|
172
|
-
if (images && images.length > 0) {
|
|
173
|
-
this.form.imgsrc = images[0];
|
|
174
|
-
} else {
|
|
175
|
-
this.form.imgsrc = "";
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
};
|
|
180
|
-
</script>
|
package/le-ad-space/index.js
DELETED
package/le-ad-space/src/main.vue
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<el-form :inline="true" :model="searchData">
|
|
4
|
-
<el-form-item label="终端">
|
|
5
|
-
<el-select
|
|
6
|
-
v-model="searchData.dtype"
|
|
7
|
-
placeholder="请选择终端类型"
|
|
8
|
-
clearable
|
|
9
|
-
>
|
|
10
|
-
<el-option label="PC" value="0" key="0"></el-option>
|
|
11
|
-
<el-option label="移动" value="1" key="1"></el-option>
|
|
12
|
-
</el-select>
|
|
13
|
-
</el-form-item>
|
|
14
|
-
<el-form-item>
|
|
15
|
-
<el-button type="primary" @click="searData">查询</el-button>
|
|
16
|
-
<el-button type="primary" @click="addAd()">新增广告位</el-button>
|
|
17
|
-
</el-form-item>
|
|
18
|
-
</el-form>
|
|
19
|
-
<el-table :data="tableData" border row-key="id" stripe style="width: 100%">
|
|
20
|
-
<el-table-column prop="dtype" label="终端">
|
|
21
|
-
<template slot-scope="scope">
|
|
22
|
-
<span v-if="scope.row.dtype == 0">PC端</span>
|
|
23
|
-
<span v-if="scope.row.dtype == 1">移动端</span>
|
|
24
|
-
</template>
|
|
25
|
-
</el-table-column>
|
|
26
|
-
<el-table-column prop="title" label="广告位"> </el-table-column>
|
|
27
|
-
<el-table-column prop="code" label="编码"> </el-table-column>
|
|
28
|
-
<el-table-column prop="status" label="状态">
|
|
29
|
-
<template slot-scope="scope">
|
|
30
|
-
<span v-if="scope.row.status == 0">未启用</span>
|
|
31
|
-
<span v-if="scope.row.status == 1">已经启用</span>
|
|
32
|
-
</template>
|
|
33
|
-
</el-table-column>
|
|
34
|
-
<el-table-column prop="note" label="备注"> </el-table-column>
|
|
35
|
-
<el-table-column
|
|
36
|
-
fixed="right"
|
|
37
|
-
label="操作"
|
|
38
|
-
align="center"
|
|
39
|
-
width="160"
|
|
40
|
-
row
|
|
41
|
-
>
|
|
42
|
-
<template slot-scope="scope">
|
|
43
|
-
<le-button
|
|
44
|
-
id="btnEdit"
|
|
45
|
-
text="编辑"
|
|
46
|
-
@click="openEditWindow(scope.row)"
|
|
47
|
-
></le-button>
|
|
48
|
-
<le-button-msg @click="del(scope.row)"></le-button-msg>
|
|
49
|
-
</template>
|
|
50
|
-
</el-table-column>
|
|
51
|
-
</el-table>
|
|
52
|
-
<div style="text-align: center; margin-top: 30px">
|
|
53
|
-
<el-pagination
|
|
54
|
-
background
|
|
55
|
-
layout="prev, pager, next"
|
|
56
|
-
:total="searchData.total"
|
|
57
|
-
:page-size="10"
|
|
58
|
-
@current-change="current_change"
|
|
59
|
-
></el-pagination>
|
|
60
|
-
</div>
|
|
61
|
-
<le-dialog-container
|
|
62
|
-
:showDialog="showDialog"
|
|
63
|
-
@close="closeDialog"
|
|
64
|
-
title="广告位详情"
|
|
65
|
-
>
|
|
66
|
-
<le-ad-space-sub
|
|
67
|
-
@close="closeDialog"
|
|
68
|
-
@rowRefresh="list"
|
|
69
|
-
:rowitem="currentRow"
|
|
70
|
-
></le-ad-space-sub>
|
|
71
|
-
</le-dialog-container>
|
|
72
|
-
</div>
|
|
73
|
-
</template>
|
|
74
|
-
<script>
|
|
75
|
-
import { list, del } from "@/api/system-ad-space";
|
|
76
|
-
import LeAdSpaceSub from "./sub.vue";
|
|
77
|
-
export default {
|
|
78
|
-
name: "le-ad-space",
|
|
79
|
-
components: {
|
|
80
|
-
LeAdSpaceSub,
|
|
81
|
-
},
|
|
82
|
-
data() {
|
|
83
|
-
return {
|
|
84
|
-
searchData: {
|
|
85
|
-
pageNo: 1,
|
|
86
|
-
total: 1,
|
|
87
|
-
dtype: null,
|
|
88
|
-
},
|
|
89
|
-
tableData: [],
|
|
90
|
-
showDialog: false,
|
|
91
|
-
currentRow: {},
|
|
92
|
-
};
|
|
93
|
-
},
|
|
94
|
-
computed: {},
|
|
95
|
-
mounted() {
|
|
96
|
-
this.list();
|
|
97
|
-
},
|
|
98
|
-
methods: {
|
|
99
|
-
list() {
|
|
100
|
-
let params = JSON.parse(JSON.stringify(this.searchData));
|
|
101
|
-
list(params).then((res) => {
|
|
102
|
-
let data = res.data.data;
|
|
103
|
-
if (data) {
|
|
104
|
-
this.tableData = data.list;
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
},
|
|
108
|
-
del(id) {
|
|
109
|
-
del(id).then((response) => {
|
|
110
|
-
this.list();
|
|
111
|
-
this.$message.success(response.data.info);
|
|
112
|
-
});
|
|
113
|
-
},
|
|
114
|
-
searData() {
|
|
115
|
-
this.searchData.pageNo = 1;
|
|
116
|
-
this.list();
|
|
117
|
-
},
|
|
118
|
-
current_change(currentPage) {
|
|
119
|
-
this.searchData.pageNo = currentPage;
|
|
120
|
-
this.list();
|
|
121
|
-
},
|
|
122
|
-
addAd() {
|
|
123
|
-
this.currentRow = null;
|
|
124
|
-
this.showDialog = true;
|
|
125
|
-
},
|
|
126
|
-
openEditWindow(item) {
|
|
127
|
-
this.currentRow = item;
|
|
128
|
-
this.showDialog = true;
|
|
129
|
-
},
|
|
130
|
-
closeDialog() {
|
|
131
|
-
this.showDialog = false;
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
};
|
|
135
|
-
</script>
|
package/le-ad-space/src/sub.vue
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
3
|
-
<el-form-item label="广告位" prop="title">
|
|
4
|
-
<el-input v-model="form.title"></el-input>
|
|
5
|
-
</el-form-item>
|
|
6
|
-
<el-form-item label="位置编码" prop="code">
|
|
7
|
-
<el-input v-model="form.code"></el-input>
|
|
8
|
-
</el-form-item>
|
|
9
|
-
<el-form-item label="终端类型" prop="dtype">
|
|
10
|
-
<el-select v-model="form.dtype" placeholder="请选择终端类型" clearable>
|
|
11
|
-
<el-option label="PC" :value="0" :key="0"></el-option>
|
|
12
|
-
<el-option label="移动" :value="1" :key="1"></el-option>
|
|
13
|
-
</el-select>
|
|
14
|
-
</el-form-item>
|
|
15
|
-
<el-form-item label="图片长度" prop="img_length">
|
|
16
|
-
<el-input v-model="form.img_length" clearable>
|
|
17
|
-
<template slot="append">像素(PX)</template>
|
|
18
|
-
</el-input>
|
|
19
|
-
</el-form-item>
|
|
20
|
-
<el-form-item label="图片宽度" prop="img_width">
|
|
21
|
-
<el-input v-model="form.img_width" clearable>
|
|
22
|
-
<template slot="append">像素(PX)</template></el-input
|
|
23
|
-
>
|
|
24
|
-
</el-form-item>
|
|
25
|
-
<el-form-item label="是否启用">
|
|
26
|
-
<el-radio-group v-model="form.status">
|
|
27
|
-
<el-radio-button :label="0">不启用</el-radio-button>
|
|
28
|
-
<el-radio-button :label="1">启用</el-radio-button>
|
|
29
|
-
</el-radio-group>
|
|
30
|
-
</el-form-item>
|
|
31
|
-
<el-form-item label="备注" prop="note">
|
|
32
|
-
<el-input v-model="form.note"></el-input>
|
|
33
|
-
</el-form-item>
|
|
34
|
-
<el-form-item v-rfooter>
|
|
35
|
-
<el-button type="primary" @click="onSubmit">保存</el-button>
|
|
36
|
-
<el-button @click="close()">取消</el-button>
|
|
37
|
-
</el-form-item>
|
|
38
|
-
</el-form>
|
|
39
|
-
</template>
|
|
40
|
-
<script>
|
|
41
|
-
import { add, edit } from "@/api/system-ad-space";
|
|
42
|
-
export default {
|
|
43
|
-
name: "le-ad-space-sub",
|
|
44
|
-
props: {
|
|
45
|
-
rowitem: {},
|
|
46
|
-
},
|
|
47
|
-
data() {
|
|
48
|
-
return {
|
|
49
|
-
form: {
|
|
50
|
-
id: "",
|
|
51
|
-
dtype: 1,
|
|
52
|
-
title: "",
|
|
53
|
-
img_length: 300,
|
|
54
|
-
img_width: 300,
|
|
55
|
-
status: 1,
|
|
56
|
-
note: "",
|
|
57
|
-
},
|
|
58
|
-
rules: {
|
|
59
|
-
dtype: [{ required: true, message: "请选择终端", trigger: "blur" }],
|
|
60
|
-
img_length: [
|
|
61
|
-
{ required: true, message: "请选择终端", trigger: "blur" },
|
|
62
|
-
],
|
|
63
|
-
img_width: [{ required: true, message: "请选择终端", trigger: "blur" }],
|
|
64
|
-
title: [
|
|
65
|
-
{ required: true, message: "请输入广告位名称", trigger: "blur" },
|
|
66
|
-
{
|
|
67
|
-
min: 1,
|
|
68
|
-
max: 100,
|
|
69
|
-
message: "长度在 1 到 80 个字符",
|
|
70
|
-
trigger: "blur",
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
note: [
|
|
74
|
-
{
|
|
75
|
-
max: 100,
|
|
76
|
-
message: "长度在 0 到 100个字符",
|
|
77
|
-
trigger: "blur",
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
},
|
|
83
|
-
watch: {
|
|
84
|
-
rowitem: {
|
|
85
|
-
handler(newValue) {
|
|
86
|
-
if (newValue && newValue.id && newValue.id.length > 0)
|
|
87
|
-
this.form = newValue;
|
|
88
|
-
},
|
|
89
|
-
immediate: true,
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
mounted() {},
|
|
93
|
-
methods: {
|
|
94
|
-
onSubmit() {
|
|
95
|
-
this.$refs["form"].validate((valid) => {
|
|
96
|
-
if (valid) {
|
|
97
|
-
let param = JSON.parse(JSON.stringify(this.form));
|
|
98
|
-
if (param.id && param.id.length > 0) {
|
|
99
|
-
edit(param).then((res) => {
|
|
100
|
-
this.$message(res.data.info);
|
|
101
|
-
this.$emit("rowRefresh");
|
|
102
|
-
this.close();
|
|
103
|
-
});
|
|
104
|
-
} else {
|
|
105
|
-
add(param).then((response) => {
|
|
106
|
-
this.$message(response.data.info);
|
|
107
|
-
this.$emit("rowRefresh");
|
|
108
|
-
this.close();
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
},
|
|
114
|
-
close() {
|
|
115
|
-
this.$emit("close");
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
};
|
|
119
|
-
</script>
|
package/le-commission/index.js
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div class="divSearch">
|
|
4
|
-
<el-form :inline="true" :model="searchData">
|
|
5
|
-
<el-form-item label="账号">
|
|
6
|
-
<el-input
|
|
7
|
-
v-model="searchData.account"
|
|
8
|
-
placeholder="导游/分销员账号"
|
|
9
|
-
></el-input>
|
|
10
|
-
</el-form-item>
|
|
11
|
-
<el-form-item label="部门">
|
|
12
|
-
<el-select
|
|
13
|
-
v-model="searchData.did"
|
|
14
|
-
clearable
|
|
15
|
-
placeholder="请选择部门"
|
|
16
|
-
>
|
|
17
|
-
<el-option
|
|
18
|
-
v-for="item in departs"
|
|
19
|
-
:label="item.dname"
|
|
20
|
-
:value="item.id"
|
|
21
|
-
:key="item.id"
|
|
22
|
-
></el-option>
|
|
23
|
-
</el-select>
|
|
24
|
-
</el-form-item>
|
|
25
|
-
<el-form-item>
|
|
26
|
-
<el-button type="primary" @click="clickList">查询</el-button>
|
|
27
|
-
</el-form-item>
|
|
28
|
-
</el-form>
|
|
29
|
-
</div>
|
|
30
|
-
<vxe-table :data="tableData" align="center" border stripe>
|
|
31
|
-
<vxe-column field="account" title="账号" width="180"> </vxe-column>
|
|
32
|
-
<vxe-column align="center" title="佣金(元)">
|
|
33
|
-
<template slot-scope="scope">
|
|
34
|
-
<span>¥{{ formatMoney(scope.row.commissions) }}</span>
|
|
35
|
-
</template>
|
|
36
|
-
</vxe-column>
|
|
37
|
-
<vxe-column title="操作" align="center" width="220">
|
|
38
|
-
<template slot-scope="scope">
|
|
39
|
-
<el-button
|
|
40
|
-
v-if="scope.row.otype != 2"
|
|
41
|
-
type="primary"
|
|
42
|
-
size="small"
|
|
43
|
-
@click="dispListDetail(scope.row)"
|
|
44
|
-
style="margin-right: 2px"
|
|
45
|
-
>
|
|
46
|
-
详情
|
|
47
|
-
</el-button>
|
|
48
|
-
<el-button
|
|
49
|
-
type="primary"
|
|
50
|
-
size="small"
|
|
51
|
-
:disabled="judgeBtnIs(scope.row)"
|
|
52
|
-
@click="send(scope.row)"
|
|
53
|
-
style="margin-right: 2px"
|
|
54
|
-
>
|
|
55
|
-
发放
|
|
56
|
-
</el-button>
|
|
57
|
-
</template>
|
|
58
|
-
</vxe-column>
|
|
59
|
-
</vxe-table>
|
|
60
|
-
<div style="text-align: center; margin-top: 30px; width: 100%">
|
|
61
|
-
<vxe-pager
|
|
62
|
-
align="center"
|
|
63
|
-
:current-page="searchData.pageNo"
|
|
64
|
-
:page-size="10"
|
|
65
|
-
:total="total"
|
|
66
|
-
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'Total']"
|
|
67
|
-
@page-change="current_change"
|
|
68
|
-
></vxe-pager>
|
|
69
|
-
</div>
|
|
70
|
-
<le-dialog-container
|
|
71
|
-
width="90%"
|
|
72
|
-
title="促销详情"
|
|
73
|
-
:showDialog="showListDetails"
|
|
74
|
-
@close="closeDetailsDialog"
|
|
75
|
-
:showFooter="true"
|
|
76
|
-
:showSaveBtn="false"
|
|
77
|
-
>
|
|
78
|
-
<le-commission-sub
|
|
79
|
-
:account="account"
|
|
80
|
-
v-if="showListDetails"
|
|
81
|
-
></le-commission-sub>
|
|
82
|
-
</le-dialog-container>
|
|
83
|
-
</div>
|
|
84
|
-
</template>
|
|
85
|
-
<script>
|
|
86
|
-
import { listSum, send as commissionSend } from "@/api/commission";
|
|
87
|
-
import LeCommissionSub from "./sub.vue";
|
|
88
|
-
import { departList } from "@/api/depart";
|
|
89
|
-
|
|
90
|
-
export default {
|
|
91
|
-
name: "le-commission",
|
|
92
|
-
components: { LeCommissionSub },
|
|
93
|
-
data() {
|
|
94
|
-
return {
|
|
95
|
-
showListDetails: false,
|
|
96
|
-
account: null,
|
|
97
|
-
tableData: [],
|
|
98
|
-
searchData: {
|
|
99
|
-
account: "",
|
|
100
|
-
pageNo: 1,
|
|
101
|
-
did: "",
|
|
102
|
-
},
|
|
103
|
-
total: 0,
|
|
104
|
-
departs: [],
|
|
105
|
-
};
|
|
106
|
-
},
|
|
107
|
-
mounted() {
|
|
108
|
-
this.getDeparts();
|
|
109
|
-
this.commissionSumList();
|
|
110
|
-
},
|
|
111
|
-
methods: {
|
|
112
|
-
judgeBtnIs(item) {
|
|
113
|
-
if (item.commissions > 0) {
|
|
114
|
-
return false;
|
|
115
|
-
}
|
|
116
|
-
return true;
|
|
117
|
-
},
|
|
118
|
-
closeDetailsDialog() {
|
|
119
|
-
this.detailRow = null;
|
|
120
|
-
this.showListDetails = false;
|
|
121
|
-
},
|
|
122
|
-
current_change({ currentPage }) {
|
|
123
|
-
this.searchData.pageNo = currentPage;
|
|
124
|
-
this.commissionSumList();
|
|
125
|
-
},
|
|
126
|
-
clickList() {
|
|
127
|
-
this.searchData.pageNo = 1;
|
|
128
|
-
this.commissionSumList();
|
|
129
|
-
},
|
|
130
|
-
commissionSumList() {
|
|
131
|
-
let param = this.getSearchParam();
|
|
132
|
-
listSum(param).then((response) => {
|
|
133
|
-
this.tableData = response.data.data.list;
|
|
134
|
-
this.total = response.data.data.count;
|
|
135
|
-
});
|
|
136
|
-
},
|
|
137
|
-
getSearchParam() {
|
|
138
|
-
// let params = {};
|
|
139
|
-
// params.account = this.searchData.account;
|
|
140
|
-
return this.searchData;
|
|
141
|
-
},
|
|
142
|
-
dispListDetail(item) {
|
|
143
|
-
this.showListDetails = true;
|
|
144
|
-
this.account = item.account;
|
|
145
|
-
},
|
|
146
|
-
getDeparts() {
|
|
147
|
-
departList().then((res) => {
|
|
148
|
-
this.departs = res.data.data;
|
|
149
|
-
});
|
|
150
|
-
},
|
|
151
|
-
send(item) {
|
|
152
|
-
let param = {};
|
|
153
|
-
param.account = item.account;
|
|
154
|
-
param.commissions = item.commissions;
|
|
155
|
-
param.uid_send = this.$store.getters.userinfo.id;
|
|
156
|
-
commissionSend(param).then((res) => {
|
|
157
|
-
this.$message.success("发放状态已经变更");
|
|
158
|
-
this.clickList();
|
|
159
|
-
});
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
};
|
|
163
|
-
</script>
|
|
164
|
-
<style lang="scss" scoped>
|
|
165
|
-
.yeClass {
|
|
166
|
-
padding-left: 10px;
|
|
167
|
-
/* margin-top: 10px; */
|
|
168
|
-
background-color: #f2f6fc;
|
|
169
|
-
height: 40px;
|
|
170
|
-
line-height: 40px;
|
|
171
|
-
font-size: 13px;
|
|
172
|
-
display: flex;
|
|
173
|
-
justify-content: space-between;
|
|
174
|
-
}
|
|
175
|
-
</style>
|