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/index.js
CHANGED
|
@@ -1,29 +1,20 @@
|
|
|
1
|
-
import LeDrag from "leisure-js/drag/drag.js";
|
|
2
1
|
import {
|
|
3
2
|
parseTime,
|
|
4
3
|
formatMoney,
|
|
5
4
|
formatCurrency,
|
|
6
5
|
} from "leisure-js/common/dformat";
|
|
7
6
|
import LeCommonPage from "./le-common-page/index.js";
|
|
8
|
-
import LeArea from "./le-area/index.js";
|
|
9
7
|
import LeLogin from "./le-login/index.js";
|
|
10
8
|
import LeHome from "./le-home/index.js";
|
|
11
9
|
import LeButton from "./le-button/index.js";
|
|
12
10
|
import LeButtonQr from "./le-button-qr/index.js";
|
|
13
11
|
import LeButtonMsg from "./le-button-msg/index.js";
|
|
14
|
-
import LeCompany from "./le-company/index.js";
|
|
15
12
|
import LeDialogContainer from "./le-dialog-container/index.js";
|
|
16
13
|
import LeRole from "./le-role/index.js";
|
|
17
14
|
import LeMenu from "./le-menu/index.js";
|
|
18
15
|
import LeRoleUser from "./le-role-user/index.js";
|
|
19
|
-
import LeDepart from "./le-depart/index.js";
|
|
20
|
-
import LeCouponGive from "./le-coupon-give/index.js";
|
|
21
16
|
import LeUser from "./le-user/index.js";
|
|
22
|
-
import LeUserType from "./le-user-type/index.js";
|
|
23
17
|
import LeMedia from "./le-media/index.js";
|
|
24
|
-
import LeIntegral from "./le-integral/index.js";
|
|
25
|
-
import LeMember from "./le-member/index.js";
|
|
26
|
-
import LeMemberLevel from "./le-member-level/index.js";
|
|
27
18
|
import LeMediaUpload from "./le-media-upload/index.js";
|
|
28
19
|
import LeMediaList from "./le-media-list/index.js";
|
|
29
20
|
import LeRichText from "./le-rich-text/index.js";
|
|
@@ -31,69 +22,37 @@ import LeButtonUpload from "./le-button-upload/index.js";
|
|
|
31
22
|
import LeButtonSelectMedia from "./le-button-select-media/index.js";
|
|
32
23
|
import LeImage from "./le-image/index.js";
|
|
33
24
|
import LeBackUp from "./le-backup/index.js";
|
|
34
|
-
import LeSeting from "./le-seting/index.js";
|
|
35
|
-
import LeRate from "./le-rate/index.js";
|
|
36
|
-
import { LeCoupon, LeCouponSub, LeCouponDetails } from "./le-coupon/index.js";
|
|
37
25
|
import LeUpload from "./le-upload/index.js";
|
|
38
|
-
import LePromotions from "./le-promotions/index.js";
|
|
39
|
-
import LePromotionsActivities from "./le-promotions-activities/index.js";
|
|
40
|
-
import LeCommission from "./le-commission/index.js";
|
|
41
|
-
import LeCommissionCp from "./le-commission-cp/index.js";
|
|
42
26
|
import LeMpurl from "./le-mpurl/index.js";
|
|
43
27
|
import { LeHelp, LeHelpDetail } from "./le-help/index.js";
|
|
44
|
-
import LeDistribution from "./le-distribution/index.js";
|
|
45
|
-
import LeDistributionCategory from "./le-distribution-category/index.js";
|
|
46
28
|
import LeSelectUser from "./le-select-user/index.js";
|
|
47
|
-
import
|
|
48
|
-
import LeAd from "./le-ad/index.js";
|
|
49
|
-
import LeCp from "./le-cp/index.js";
|
|
29
|
+
import LeArea from "./le-area/index.js";
|
|
50
30
|
|
|
51
31
|
const components = [
|
|
52
32
|
LeArea,
|
|
53
33
|
LeButton,
|
|
54
34
|
LeButtonQr,
|
|
55
35
|
LeButtonMsg,
|
|
56
|
-
LeCompany,
|
|
57
36
|
LeDialogContainer,
|
|
58
37
|
LeLogin,
|
|
59
38
|
LeHome,
|
|
60
39
|
LeMenu,
|
|
61
40
|
LeRole,
|
|
62
41
|
LeRoleUser,
|
|
63
|
-
LeDepart,
|
|
64
|
-
LeCouponGive,
|
|
65
42
|
LeUser,
|
|
66
|
-
LeUserType,
|
|
67
43
|
LeMedia,
|
|
68
44
|
LeMediaUpload,
|
|
69
|
-
LeIntegral,
|
|
70
|
-
LeMember,
|
|
71
|
-
LeMemberLevel,
|
|
72
45
|
LeMediaList,
|
|
73
46
|
LeRichText,
|
|
74
47
|
LeButtonUpload,
|
|
75
48
|
LeButtonSelectMedia,
|
|
76
49
|
LeImage,
|
|
77
50
|
LeBackUp,
|
|
78
|
-
LeSeting,
|
|
79
|
-
LeRate,
|
|
80
51
|
LeUpload,
|
|
81
|
-
LeCoupon,
|
|
82
|
-
LeCouponSub,
|
|
83
|
-
LeCouponDetails,
|
|
84
|
-
LePromotions,
|
|
85
|
-
LePromotionsActivities,
|
|
86
|
-
LeCommission,
|
|
87
|
-
LeCommissionCp,
|
|
88
52
|
LeMpurl,
|
|
89
53
|
LeHelp,
|
|
90
54
|
LeHelpDetail,
|
|
91
|
-
LeDistribution,
|
|
92
|
-
LeDistributionCategory,
|
|
93
55
|
LeSelectUser,
|
|
94
|
-
LeAdSpace,
|
|
95
|
-
LeAd,
|
|
96
|
-
LeCp,
|
|
97
56
|
LeCommonPage,
|
|
98
57
|
];
|
|
99
58
|
|
|
@@ -126,8 +85,6 @@ const install = function (Vue) {
|
|
|
126
85
|
},
|
|
127
86
|
});
|
|
128
87
|
|
|
129
|
-
Vue.directive("el-drag-dialog", LeDrag);
|
|
130
|
-
|
|
131
88
|
// Vue.directive("rtable", {
|
|
132
89
|
// bind(el) {
|
|
133
90
|
// const { componentInstance: $table } = vnode;
|
|
@@ -158,11 +115,7 @@ const install = function (Vue) {
|
|
|
158
115
|
});
|
|
159
116
|
};
|
|
160
117
|
|
|
161
|
-
|
|
162
|
-
if (typeof window !== "undefined" && window.Vue) {
|
|
163
|
-
window["el-drag-dialog"] = LeDrag;
|
|
164
|
-
install(window.Vue);
|
|
165
|
-
}
|
|
118
|
+
|
|
166
119
|
|
|
167
120
|
export default {
|
|
168
121
|
install,
|
|
@@ -170,47 +123,25 @@ export default {
|
|
|
170
123
|
LeButton,
|
|
171
124
|
LeButtonQr,
|
|
172
125
|
LeButtonMsg,
|
|
173
|
-
LeCompany,
|
|
174
126
|
LeDialogContainer,
|
|
175
127
|
LeLogin,
|
|
176
128
|
LeHome,
|
|
177
129
|
LeMenu,
|
|
178
130
|
LeRole,
|
|
179
131
|
LeRoleUser,
|
|
180
|
-
LeDrag,
|
|
181
|
-
LeDepart,
|
|
182
|
-
LeCouponGive,
|
|
183
132
|
LeUser,
|
|
184
|
-
LeUserType,
|
|
185
133
|
LeMedia,
|
|
186
134
|
LeMediaUpload,
|
|
187
|
-
LeIntegral,
|
|
188
|
-
LeMember,
|
|
189
|
-
LeMemberLevel,
|
|
190
135
|
LeMediaList,
|
|
191
136
|
LeRichText,
|
|
192
137
|
LeButtonUpload,
|
|
193
138
|
LeButtonSelectMedia,
|
|
194
139
|
LeImage,
|
|
195
140
|
LeBackUp,
|
|
196
|
-
LeSeting,
|
|
197
|
-
LeRate,
|
|
198
141
|
LeUpload,
|
|
199
|
-
LeCoupon,
|
|
200
|
-
LeCouponSub,
|
|
201
|
-
LeCouponDetails,
|
|
202
|
-
LePromotions,
|
|
203
|
-
LePromotionsActivities,
|
|
204
|
-
LeCommission,
|
|
205
|
-
LeCommissionCp,
|
|
206
142
|
LeMpurl,
|
|
207
143
|
LeHelp,
|
|
208
144
|
LeHelpDetail,
|
|
209
|
-
LeDistribution,
|
|
210
|
-
LeDistributionCategory,
|
|
211
145
|
LeSelectUser,
|
|
212
|
-
LeAdSpace,
|
|
213
|
-
LeAd,
|
|
214
|
-
LeCp,
|
|
215
146
|
LeCommonPage,
|
|
216
147
|
};
|
|
@@ -82,56 +82,30 @@
|
|
|
82
82
|
:title="popFormTitle"
|
|
83
83
|
:width="popFormWidth"
|
|
84
84
|
:showDialog="showDialog"
|
|
85
|
-
@close="closeDialog"
|
|
86
|
-
:showFooter="true"
|
|
87
|
-
@saveData="saveData"
|
|
88
85
|
>
|
|
89
|
-
<
|
|
90
|
-
:
|
|
91
|
-
:
|
|
92
|
-
|
|
93
|
-
:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
:prop="item.prop"
|
|
100
|
-
>
|
|
101
|
-
<el-input
|
|
102
|
-
v-if="!item.type || item.type === 'input'"
|
|
103
|
-
v-model="formPop[item.prop]"
|
|
104
|
-
/>
|
|
105
|
-
<el-input-number
|
|
106
|
-
v-else-if="item.type === 'number'"
|
|
107
|
-
v-model="formPop[item.prop]"
|
|
108
|
-
:min="item.min || 0"
|
|
109
|
-
:max="item.max || 9999999999"
|
|
110
|
-
label="item.label||''"
|
|
111
|
-
/>
|
|
112
|
-
<el-select
|
|
113
|
-
v-else-if="item.type === 'select'"
|
|
114
|
-
v-model="formPop[item.prop]"
|
|
115
|
-
placeholder="请选择"
|
|
116
|
-
>
|
|
117
|
-
<el-option
|
|
118
|
-
v-for="option in getOptions(item.prop)"
|
|
119
|
-
:key="option.value"
|
|
120
|
-
:label="option.label"
|
|
121
|
-
:value="option.value"
|
|
122
|
-
/>
|
|
123
|
-
</el-select>
|
|
124
|
-
</el-form-item>
|
|
125
|
-
</el-form>
|
|
86
|
+
<le-common-page-sub
|
|
87
|
+
:rulePop="rules"
|
|
88
|
+
:popFormLabelWidth="popFormLabelWidth"
|
|
89
|
+
:formColumns="formColumns"
|
|
90
|
+
:field-options="fieldOptions"
|
|
91
|
+
:formData="rowItem"
|
|
92
|
+
@closeDialog="closeDialog"
|
|
93
|
+
@saveData="saveData"
|
|
94
|
+
v-if="showDialog"
|
|
95
|
+
></le-common-page-sub>
|
|
126
96
|
</le-dialog-container>
|
|
127
97
|
</div>
|
|
128
98
|
</template>
|
|
129
99
|
<script>
|
|
130
100
|
import { Number } from "core-js";
|
|
131
101
|
import leMixins from "../../le-libs/mixins/main";
|
|
102
|
+
import LeCommonPageSub from "./sub.vue";
|
|
132
103
|
export default {
|
|
133
104
|
name: "le-common-page",
|
|
134
105
|
mixins: [leMixins],
|
|
106
|
+
components: {
|
|
107
|
+
LeCommonPageSub,
|
|
108
|
+
},
|
|
135
109
|
props: {
|
|
136
110
|
tableData: {
|
|
137
111
|
type: Array,
|
|
@@ -153,7 +127,7 @@ export default {
|
|
|
153
127
|
type: Object,
|
|
154
128
|
default: () => {},
|
|
155
129
|
},
|
|
156
|
-
|
|
130
|
+
rules: {
|
|
157
131
|
type: Object,
|
|
158
132
|
default: () => {},
|
|
159
133
|
},
|
|
@@ -206,7 +180,7 @@ export default {
|
|
|
206
180
|
},
|
|
207
181
|
data() {
|
|
208
182
|
return {
|
|
209
|
-
|
|
183
|
+
rowItem: {},
|
|
210
184
|
searchData: {
|
|
211
185
|
pageNo: 1,
|
|
212
186
|
total: 1,
|
|
@@ -221,7 +195,7 @@ export default {
|
|
|
221
195
|
},
|
|
222
196
|
methods: {
|
|
223
197
|
initFormItem() {
|
|
224
|
-
this.
|
|
198
|
+
this.rowItem = this.formColumns.reduce((acc, item) => {
|
|
225
199
|
acc[item.prop] = item.default;
|
|
226
200
|
return acc;
|
|
227
201
|
}, {});
|
|
@@ -244,35 +218,22 @@ export default {
|
|
|
244
218
|
});
|
|
245
219
|
},
|
|
246
220
|
editItem(row) {
|
|
247
|
-
this.
|
|
221
|
+
this.rowItem = row;
|
|
248
222
|
this.showDialog = true;
|
|
249
223
|
},
|
|
250
224
|
addItem() {
|
|
251
225
|
this.initFormItem();
|
|
252
226
|
this.showDialog = true;
|
|
253
227
|
},
|
|
254
|
-
saveData() {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
if (valid) {
|
|
259
|
-
this.$emit("saveForm", this.formPop, () => {
|
|
260
|
-
this.getList();
|
|
261
|
-
this.closeDialog();
|
|
262
|
-
});
|
|
263
|
-
} else {
|
|
264
|
-
return false;
|
|
265
|
-
}
|
|
228
|
+
saveData(params) {
|
|
229
|
+
this.$emit("saveForm", params, () => {
|
|
230
|
+
this.getList();
|
|
231
|
+
this.closeDialog();
|
|
266
232
|
});
|
|
267
233
|
},
|
|
268
234
|
closeDialog() {
|
|
269
|
-
this.initFormItem();
|
|
270
235
|
this.showDialog = false;
|
|
271
236
|
},
|
|
272
|
-
getOptions(prop) {
|
|
273
|
-
let options = this.fieldOptions[`${prop}Options`] || [];
|
|
274
|
-
return options;
|
|
275
|
-
},
|
|
276
237
|
},
|
|
277
238
|
};
|
|
278
239
|
</script>
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form
|
|
3
|
+
:model="formPop"
|
|
4
|
+
:rules="rulePop"
|
|
5
|
+
ref="ruleForm"
|
|
6
|
+
:label-width="popFormLabelWidth"
|
|
7
|
+
>
|
|
8
|
+
<el-form-item
|
|
9
|
+
v-for="(item, index) in formColumns"
|
|
10
|
+
:key="index"
|
|
11
|
+
:label="item.label"
|
|
12
|
+
:prop="item.prop"
|
|
13
|
+
>
|
|
14
|
+
<el-input
|
|
15
|
+
v-if="!item.type || item.type === 'input'"
|
|
16
|
+
v-model="formPop[item.prop]"
|
|
17
|
+
/>
|
|
18
|
+
<el-input-number
|
|
19
|
+
v-else-if="item.type === 'number'"
|
|
20
|
+
v-model="formPop[item.prop]"
|
|
21
|
+
:min="item.min || 0"
|
|
22
|
+
:max="item.max || 9999999999"
|
|
23
|
+
label="item.label||''"
|
|
24
|
+
/>
|
|
25
|
+
<el-radio-group
|
|
26
|
+
v-else-if="item.type === 'radio'"
|
|
27
|
+
v-model="formPop[item.prop]"
|
|
28
|
+
>
|
|
29
|
+
<el-radio
|
|
30
|
+
v-for="(option, index) in item.options"
|
|
31
|
+
:label="option.id"
|
|
32
|
+
:key="index + '_radio'"
|
|
33
|
+
>{{ option.label }}</el-radio
|
|
34
|
+
>
|
|
35
|
+
</el-radio-group>
|
|
36
|
+
<el-select
|
|
37
|
+
v-else-if="item.type === 'select'"
|
|
38
|
+
v-model="formPop[item.prop]"
|
|
39
|
+
placeholder="请选择"
|
|
40
|
+
>
|
|
41
|
+
<el-option
|
|
42
|
+
v-for="option in getOptions(item.prop)"
|
|
43
|
+
:key="option.value"
|
|
44
|
+
:label="option.label"
|
|
45
|
+
:value="option.value"
|
|
46
|
+
/>
|
|
47
|
+
</el-select>
|
|
48
|
+
</el-form-item>
|
|
49
|
+
<el-form-item v-rfooter>
|
|
50
|
+
<el-button type="primary" @click="saveData">保存</el-button>
|
|
51
|
+
<el-button @click="close()">关闭</el-button>
|
|
52
|
+
</el-form-item>
|
|
53
|
+
</el-form>
|
|
54
|
+
</template>
|
|
55
|
+
<script>
|
|
56
|
+
export default {
|
|
57
|
+
name: "le-common-page-sub",
|
|
58
|
+
props: {
|
|
59
|
+
formColumns: {
|
|
60
|
+
type: Array,
|
|
61
|
+
default: () => [],
|
|
62
|
+
},
|
|
63
|
+
formData: {
|
|
64
|
+
type: Object,
|
|
65
|
+
default: () => {},
|
|
66
|
+
},
|
|
67
|
+
rulePop: {
|
|
68
|
+
type: Object,
|
|
69
|
+
default: () => {},
|
|
70
|
+
},
|
|
71
|
+
popFormLabelWidth: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: "100px",
|
|
74
|
+
},
|
|
75
|
+
fieldOptions: {
|
|
76
|
+
type: Object,
|
|
77
|
+
default: () => {},
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
watch: {
|
|
81
|
+
formData: {
|
|
82
|
+
handler(val) {
|
|
83
|
+
this.formPop = val;
|
|
84
|
+
},
|
|
85
|
+
deep: true,
|
|
86
|
+
immediate: true,
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
data() {
|
|
90
|
+
return {
|
|
91
|
+
formPop: {},
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
computed: {},
|
|
95
|
+
mounted() {},
|
|
96
|
+
methods: {
|
|
97
|
+
close() {
|
|
98
|
+
this.$emit("closeDialog");
|
|
99
|
+
},
|
|
100
|
+
saveData() {
|
|
101
|
+
this.$refs["ruleForm"].validate((valid) => {
|
|
102
|
+
if (valid) {
|
|
103
|
+
this.$emit("saveData", this.formPop, () => {});
|
|
104
|
+
} else {
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
},
|
|
109
|
+
getOptions(prop) {
|
|
110
|
+
let options = this.fieldOptions[`${prop}Options`] || [];
|
|
111
|
+
return options;
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
</script>
|
|
116
|
+
<style lang="less" scoped></style>
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
</template>
|
|
88
88
|
<script>
|
|
89
89
|
import { systemMaterialList } from "@/api/media";
|
|
90
|
-
import leMixins from "
|
|
90
|
+
import leMixins from "../../le-libs/mixins/main"; //
|
|
91
91
|
export default {
|
|
92
92
|
name: "le-media-list",
|
|
93
93
|
mixins: [leMixins],
|
package/le-role/src/main.vue
CHANGED
|
@@ -75,11 +75,11 @@
|
|
|
75
75
|
</template>
|
|
76
76
|
<script>
|
|
77
77
|
import { roleDel, roleList, listUserOfRole } from "@/api/role";
|
|
78
|
-
import LeButton from "
|
|
79
|
-
import LeButtonMsg from "
|
|
80
|
-
import LeDialogContainer from "
|
|
81
|
-
import LeMenu from "
|
|
82
|
-
import leMixins from "
|
|
78
|
+
import LeButton from "../../le-button/index";
|
|
79
|
+
import LeButtonMsg from "../../le-button-msg/index";
|
|
80
|
+
import LeDialogContainer from "../..//le-dialog-container/index";
|
|
81
|
+
import LeMenu from "../../le-menu/index";
|
|
82
|
+
import leMixins from "../../le-libs/mixins/main";
|
|
83
83
|
import LeRoleSub from "./sub.vue";
|
|
84
84
|
export default {
|
|
85
85
|
name: "le-role",
|
package/le-user/src/main.vue
CHANGED
|
@@ -185,7 +185,7 @@ import {
|
|
|
185
185
|
close,
|
|
186
186
|
userChangePwd,
|
|
187
187
|
} from "@/api/user";
|
|
188
|
-
import leMixins from "
|
|
188
|
+
import leMixins from "../../le-libs/mixins/main"; //
|
|
189
189
|
import guid from "leisure-js/common/util";
|
|
190
190
|
import moment from "moment";
|
|
191
191
|
import LeUserSub from "./sub.vue";
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "leisure-core",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "leisure-core
|
|
3
|
+
"version": "0.4.52",
|
|
4
|
+
"description": "leisure-core是京心数据基于vue2.x开发的一套桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "北方乐逍遥(zcx7878)",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"leisure",
|
|
9
|
-
"leisure-core"
|
|
9
|
+
"leisure-core",
|
|
10
|
+
"京心数据"
|
|
10
11
|
],
|
|
11
12
|
"publishConfig": {
|
|
12
13
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -15,7 +16,6 @@
|
|
|
15
16
|
"axios": "^0.27.2",
|
|
16
17
|
"core-js": "^3.8.3",
|
|
17
18
|
"dayjs": "^1.11.7",
|
|
18
|
-
"echarts": "^5.4.2",
|
|
19
19
|
"element-ui": "^2.15.14",
|
|
20
20
|
"leisure-js": "^0.2.3",
|
|
21
21
|
"html2canvas": "^1.4.1",
|
|
@@ -28,7 +28,5 @@
|
|
|
28
28
|
"vxe-table": "^3.6.11",
|
|
29
29
|
"xe-utils": "^3.5.7"
|
|
30
30
|
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
|
|
33
|
-
}
|
|
31
|
+
"devDependencies": {}
|
|
34
32
|
}
|
package/le-ad/index.js
DELETED
package/le-ad/src/main.vue
DELETED
|
@@ -1,137 +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="title" label="广告图片" width="100" align="center">
|
|
28
|
-
<template slot-scope="scope">
|
|
29
|
-
<el-image style="width: 50px; height: 50px" :src="scope.row.imgsrc">
|
|
30
|
-
</el-image>
|
|
31
|
-
</template>
|
|
32
|
-
</el-table-column>
|
|
33
|
-
<el-table-column prop="linktype" label="导航类型">
|
|
34
|
-
<template slot-scope="scope">
|
|
35
|
-
<span v-if="scope.row.linktype == 0">不导航</span>
|
|
36
|
-
<span v-if="scope.row.linktype == 1">商城页面</span>
|
|
37
|
-
<span v-if="scope.row.linktype == 2">商品页面</span>
|
|
38
|
-
<span v-if="scope.row.linktype == 3">自定义链接</span>
|
|
39
|
-
</template>
|
|
40
|
-
</el-table-column>
|
|
41
|
-
<el-table-column prop="link_address" label="导航地址"> </el-table-column>
|
|
42
|
-
<el-table-column prop="note" label="备注"> </el-table-column>
|
|
43
|
-
<el-table-column fixed="right" label="操作" align="center" row>
|
|
44
|
-
<template slot-scope="scope">
|
|
45
|
-
<le-button
|
|
46
|
-
id="btnEdit"
|
|
47
|
-
text="编辑"
|
|
48
|
-
@click="openEditWindow(scope.row)"
|
|
49
|
-
></le-button>
|
|
50
|
-
<le-button-msg @click="del(scope.row)"></le-button-msg>
|
|
51
|
-
</template>
|
|
52
|
-
</el-table-column>
|
|
53
|
-
</el-table>
|
|
54
|
-
<div style="text-align: center; margin-top: 30px">
|
|
55
|
-
<el-pagination
|
|
56
|
-
background
|
|
57
|
-
layout="prev, pager, next"
|
|
58
|
-
:total="searchData.total"
|
|
59
|
-
:page-size="10"
|
|
60
|
-
@current-change="current_change"
|
|
61
|
-
></el-pagination>
|
|
62
|
-
</div>
|
|
63
|
-
<le-dialog-container
|
|
64
|
-
:showDialog="showDialog"
|
|
65
|
-
@close="closeDialog"
|
|
66
|
-
title="广告详情"
|
|
67
|
-
>
|
|
68
|
-
<le-ad-sub
|
|
69
|
-
@close="closeDialog"
|
|
70
|
-
@rowRefresh="list"
|
|
71
|
-
:rowitem="currentRow"
|
|
72
|
-
></le-ad-sub>
|
|
73
|
-
</le-dialog-container>
|
|
74
|
-
</div>
|
|
75
|
-
</template>
|
|
76
|
-
<script>
|
|
77
|
-
import { list, del } from "@/api/system-ad";
|
|
78
|
-
import LeAdSub from "./sub.vue";
|
|
79
|
-
export default {
|
|
80
|
-
name: "le-ad",
|
|
81
|
-
components: {
|
|
82
|
-
LeAdSub,
|
|
83
|
-
},
|
|
84
|
-
data() {
|
|
85
|
-
return {
|
|
86
|
-
searchData: {
|
|
87
|
-
pageNo: 1,
|
|
88
|
-
total: 1,
|
|
89
|
-
dtype: null,
|
|
90
|
-
},
|
|
91
|
-
tableData: [],
|
|
92
|
-
showDialog: false,
|
|
93
|
-
currentRow: {},
|
|
94
|
-
};
|
|
95
|
-
},
|
|
96
|
-
mounted() {
|
|
97
|
-
this.list();
|
|
98
|
-
},
|
|
99
|
-
methods: {
|
|
100
|
-
list() {
|
|
101
|
-
let params = JSON.parse(JSON.stringify(this.searchData));
|
|
102
|
-
list(params).then((res) => {
|
|
103
|
-
let data = res.data.data;
|
|
104
|
-
if (data) this.tableData = data.list;
|
|
105
|
-
});
|
|
106
|
-
},
|
|
107
|
-
del(id) {
|
|
108
|
-
let param = {};
|
|
109
|
-
param.id = id;
|
|
110
|
-
del(id).then((response) => {
|
|
111
|
-
this.list();
|
|
112
|
-
this.$message.success(response.data.info);
|
|
113
|
-
});
|
|
114
|
-
},
|
|
115
|
-
searData() {
|
|
116
|
-
this.searchData.pageNo = 1;
|
|
117
|
-
this.list();
|
|
118
|
-
},
|
|
119
|
-
current_change(currentPage) {
|
|
120
|
-
this.searchData.pageNo = currentPage;
|
|
121
|
-
this.list();
|
|
122
|
-
},
|
|
123
|
-
addAd() {
|
|
124
|
-
this.currentRow = null;
|
|
125
|
-
this.showDialog = true;
|
|
126
|
-
},
|
|
127
|
-
openEditWindow(item) {
|
|
128
|
-
this.currentRow = item;
|
|
129
|
-
this.showDialog = true;
|
|
130
|
-
},
|
|
131
|
-
closeDialog() {
|
|
132
|
-
this.currentRow = null;
|
|
133
|
-
this.showDialog = false;
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
};
|
|
137
|
-
</script>
|