leisure-core 0.4.7 → 0.4.8
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.
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
:editType="editType"
|
|
98
98
|
:rowData="rowData"
|
|
99
99
|
@list="list"
|
|
100
|
+
:dtype="dtype"
|
|
100
101
|
v-if="showDetails"
|
|
101
102
|
>
|
|
102
103
|
<template v-slot:default="data">
|
|
@@ -114,6 +115,12 @@ import LePromotionsActivitiesSub from "./sub.vue";
|
|
|
114
115
|
export default {
|
|
115
116
|
name: "le-promotions-activities",
|
|
116
117
|
components: { LePromotionsActivitiesSub },
|
|
118
|
+
props: {
|
|
119
|
+
dtype: {
|
|
120
|
+
type: String,
|
|
121
|
+
default: "date",
|
|
122
|
+
},
|
|
123
|
+
},
|
|
117
124
|
data() {
|
|
118
125
|
return {
|
|
119
126
|
tableHeight: 200,
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<el-date-picker
|
|
26
26
|
value-format="timestamp"
|
|
27
27
|
v-model="form.date_start"
|
|
28
|
-
type="
|
|
28
|
+
:type="dtype"
|
|
29
29
|
placeholder="开始日期"
|
|
30
30
|
>
|
|
31
31
|
</el-date-picker>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<el-date-picker
|
|
35
35
|
value-format="timestamp"
|
|
36
36
|
v-model="form.date_end"
|
|
37
|
-
type="
|
|
37
|
+
:type="dtype"
|
|
38
38
|
placeholder="结束日期"
|
|
39
39
|
>
|
|
40
40
|
</el-date-picker>
|
|
@@ -71,6 +71,10 @@ export default {
|
|
|
71
71
|
type: Object,
|
|
72
72
|
default: () => {},
|
|
73
73
|
},
|
|
74
|
+
dtype: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: "date",
|
|
77
|
+
},
|
|
74
78
|
},
|
|
75
79
|
data() {
|
|
76
80
|
return {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
remote
|
|
8
8
|
reserve-keyword
|
|
9
9
|
placeholder="请输入用户关键字"
|
|
10
|
-
:remote-method="
|
|
10
|
+
:remote-method="getUserBackByComment"
|
|
11
11
|
:loading="loading"
|
|
12
12
|
@change="onChange"
|
|
13
13
|
>
|
|
@@ -29,6 +29,12 @@ export default {
|
|
|
29
29
|
type: Number,
|
|
30
30
|
default: 999,
|
|
31
31
|
},
|
|
32
|
+
initUserIds: {
|
|
33
|
+
type: Array,
|
|
34
|
+
default: () => {
|
|
35
|
+
return [];
|
|
36
|
+
},
|
|
37
|
+
},
|
|
32
38
|
},
|
|
33
39
|
data() {
|
|
34
40
|
return {
|
|
@@ -39,13 +45,24 @@ export default {
|
|
|
39
45
|
},
|
|
40
46
|
watch: {},
|
|
41
47
|
mounted() {
|
|
42
|
-
this.value = this.
|
|
48
|
+
this.value = this.initUserIds;
|
|
49
|
+
if (this.value.length > 0) {
|
|
50
|
+
this.getUserBackByUid();
|
|
51
|
+
}
|
|
43
52
|
},
|
|
44
53
|
methods: {
|
|
45
|
-
|
|
46
|
-
this.userList = [];
|
|
54
|
+
getUserBackByComment(comment) {
|
|
47
55
|
let param = {};
|
|
48
56
|
param.comment = comment;
|
|
57
|
+
this.getUserBack(param);
|
|
58
|
+
},
|
|
59
|
+
getUserBackByUid() {
|
|
60
|
+
let param = {};
|
|
61
|
+
param.id = this.value[0];
|
|
62
|
+
this.getUserBack(param);
|
|
63
|
+
},
|
|
64
|
+
getUserBack(param) {
|
|
65
|
+
this.userList = [];
|
|
49
66
|
if (param) {
|
|
50
67
|
this.loading = true;
|
|
51
68
|
listBack(param)
|
|
@@ -63,7 +80,7 @@ export default {
|
|
|
63
80
|
}
|
|
64
81
|
},
|
|
65
82
|
onChange(value) {
|
|
66
|
-
|
|
83
|
+
this.$emit("onChange", value);
|
|
67
84
|
},
|
|
68
85
|
},
|
|
69
86
|
};
|