askbot-dragon 0.6.17 → 0.6.21
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/README.md +27 -27
- package/babel.config.js +5 -5
- package/dragon.iml +7 -7
- package/package.json +54 -52
- package/public/index.html +27 -26
- package/src/App.vue +31 -31
- package/src/api/index.js +1 -1
- package/src/api/mock.http +2 -2
- package/src/api/requestUrl.js +185 -185
- package/src/assets/less/common.css +6760 -6760
- package/src/assets/less/converSationContainer/common.less +4751 -4751
- package/src/assets/less/converSationContainer/converSatonContainer.less +492 -492
- package/src/assets/less/ticketMessage.less +319 -319
- package/src/components/ActionAlertIframe.vue +117 -117
- package/src/components/AskIFrame.vue +15 -15
- package/src/components/ConversationContainer.vue +1388 -1388
- package/src/components/FileType.vue +88 -88
- package/src/components/Message.vue +27 -27
- package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
- package/src/components/ask-components/Msgloading.vue +37 -37
- package/src/components/ask-components/SatisfactionV2.vue +15 -15
- package/src/components/chatContent.vue +512 -512
- package/src/components/feedBack.vue +133 -133
- package/src/components/file/AliyunOssComponents.vue +109 -109
- package/src/components/formTemplate.vue +1898 -2039
- package/src/components/message/ActionAlertIframe.vue +116 -116
- package/src/components/message/ShopMessage.vue +168 -168
- package/src/components/message/TextMessage.vue +895 -895
- package/src/components/message/TicketMessage.vue +173 -173
- package/src/components/message/swiper/index.js +4 -4
- package/src/components/message/swiper/ticketSwiper.vue +530 -530
- package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
- package/src/components/selector/hOption.vue +20 -20
- package/src/components/selector/hSelector.vue +199 -199
- package/src/components/selector/hWrapper.vue +216 -216
- package/src/components/source/BotMessage.vue +24 -24
- package/src/components/source/CustomMessage.vue +24 -24
- package/src/components/test.vue +260 -260
- package/src/components/utils/AliyunIssUtil.js +72 -72
- package/src/components/utils/ckeditor.js +124 -0
- package/src/components/utils/format_date.js +18 -18
- package/src/components/utils/index.js +6 -6
- package/src/components/utils/math_utils.js +15 -15
- package/src/main.js +44 -43
- package/vue.config.js +34 -28
package/src/components/test.vue
CHANGED
|
@@ -1,261 +1,261 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div style="display: flex;height: auto;line-height: 2;" >
|
|
4
|
-
<div>
|
|
5
|
-
<div>aaa</div>
|
|
6
|
-
<i class="ask-component-placeholder-icon arsenal_icon arsenalkebianji ck-widget" @click="_askEditValue"></i>
|
|
7
|
-
</div>
|
|
8
|
-
</div>
|
|
9
|
-
<div style="text-align: right;padding: 10px 0 0 10px">
|
|
10
|
-
<el-button type="primary" size="small" :disabled="disableds" id="submit">{{submitValue}}</el-button>
|
|
11
|
-
</div>
|
|
12
|
-
<!-- <div v-if="isCompany">
|
|
13
|
-
<div v-if="single === true" style="border-top: 1px dashed #ebebeb;">
|
|
14
|
-
<el-input v-model="input" placeholder="请输入内容" style="padding: 10px 10px 10px 0;width: 80%;"></el-input>
|
|
15
|
-
<span><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
16
|
-
</div>
|
|
17
|
-
<div v-if="date" style="border-top: 1px dashed #ebebeb;">
|
|
18
|
-
<el-date-picker
|
|
19
|
-
v-model="dateValue"
|
|
20
|
-
type="date"
|
|
21
|
-
placeholder="选择日期"
|
|
22
|
-
style="width: 80%;margin: 10px 10px 10px 0"
|
|
23
|
-
>
|
|
24
|
-
</el-date-picker>
|
|
25
|
-
<span @click="quedingClick" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
26
|
-
</div>
|
|
27
|
-
<div v-if="time" style="border-top: 1px dashed #ebebeb;">
|
|
28
|
-
<el-time-picker
|
|
29
|
-
v-model="timeValue"
|
|
30
|
-
placeholder="任意时间点"
|
|
31
|
-
style="margin: 10px 10px 10px 0;width: 80%"
|
|
32
|
-
>
|
|
33
|
-
</el-time-picker>
|
|
34
|
-
<span @click="quedingClick" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
35
|
-
</div>
|
|
36
|
-
<!–<div v-if="dateRange" style="border-top: 1px dashed #ebebeb;">
|
|
37
|
-
<el-date-picker
|
|
38
|
-
v-model="dateRangeValue"
|
|
39
|
-
type="daterange"
|
|
40
|
-
range-separator="至"
|
|
41
|
-
start-placeholder="开始日期"
|
|
42
|
-
end-placeholder="结束日期"
|
|
43
|
-
style="margin: 10px 16px;width: 80%"
|
|
44
|
-
>
|
|
45
|
-
</el-date-picker>
|
|
46
|
-
<span @click="quedingClick(bianliangId)" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
47
|
-
</div>
|
|
48
|
-
<div v-if="timeRange" style="border-top: 1px dashed #ebebeb;">
|
|
49
|
-
<el-time-picker
|
|
50
|
-
is-range
|
|
51
|
-
v-model="timeRangeValue"
|
|
52
|
-
range-separator="至"
|
|
53
|
-
start-placeholder="开始时间"
|
|
54
|
-
end-placeholder="结束时间"
|
|
55
|
-
placeholder="选择时间范围"
|
|
56
|
-
style="margin: 10px 16px;width: 80%"
|
|
57
|
-
>
|
|
58
|
-
</el-time-picker>
|
|
59
|
-
<span @click="quedingClick(bianliangId)" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
60
|
-
|
|
61
|
-
</div>
|
|
62
|
-
<div v-if="dateTimeRange" style="border-top: 1px dashed #ebebeb;">
|
|
63
|
-
<el-date-picker
|
|
64
|
-
v-model="dateTimeValue"
|
|
65
|
-
type="datetimerange"
|
|
66
|
-
range-separator="至"
|
|
67
|
-
start-placeholder="开始日期"
|
|
68
|
-
end-placeholder="结束日期"
|
|
69
|
-
style="width: 80%;margin: 10px 16px"
|
|
70
|
-
|
|
71
|
-
>
|
|
72
|
-
</el-date-picker>
|
|
73
|
-
<span @click="quedingClick(bianliangId)" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
74
|
-
</div>–>
|
|
75
|
-
</div>
|
|
76
|
-
<div v-if="isPhone">
|
|
77
|
-
<div v-if="single" style="border-top: 1px dashed #ebebeb;">
|
|
78
|
-
<el-input v-model="input" placeholder="请输入内容" style="padding: 10px 10px 10px 0;width: 80%;"></el-input>
|
|
79
|
-
<span @click="quedingClick"><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
80
|
-
</div>
|
|
81
|
-
<div v-if="date" style="border-top: 1px dashed #ebebeb;">
|
|
82
|
-
<el-date-picker
|
|
83
|
-
v-model="dateValue"
|
|
84
|
-
type="date"
|
|
85
|
-
placeholder="选择日期"
|
|
86
|
-
style="width: 80%;margin: 10px 10px 10px 0"
|
|
87
|
-
:editable=false
|
|
88
|
-
>
|
|
89
|
-
</el-date-picker>
|
|
90
|
-
<span @click="quedingClick" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
91
|
-
</div>
|
|
92
|
-
|
|
93
|
-
<div v-if="time" style="border-top: 1px dashed #ebebeb;">
|
|
94
|
-
<el-time-picker
|
|
95
|
-
v-model="timeValue"
|
|
96
|
-
placeholder="任意时间点"
|
|
97
|
-
style="margin: 10px 10px 10px 0;width: 80%"
|
|
98
|
-
|
|
99
|
-
:editable=false
|
|
100
|
-
|
|
101
|
-
>
|
|
102
|
-
</el-time-picker>
|
|
103
|
-
<span @click="quedingClick" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
104
|
-
</div>
|
|
105
|
-
<!– <div v-if="dateRange" style="border-top: 1px dashed #ebebeb;display: flex">
|
|
106
|
-
<!–<el-date-picker
|
|
107
|
-
v-model="dateRangeValue"
|
|
108
|
-
type="daterange"
|
|
109
|
-
range-separator="至"
|
|
110
|
-
start-placeholder="开始日期"
|
|
111
|
-
end-placeholder="结束日期"
|
|
112
|
-
style="margin: 10px 16px;width: 80%"
|
|
113
|
-
:editable=false
|
|
114
|
-
|
|
115
|
-
>
|
|
116
|
-
</el-date-picker>–>
|
|
117
|
-
<div style="width: 90%">
|
|
118
|
-
<van-cell title="选择日期区间" :value="dateRangeValue" @click="show = true" />
|
|
119
|
-
<van-calendar v-model="show" type="range" @confirm="onConfirm" />
|
|
120
|
-
</div>
|
|
121
|
-
<span @click="quedingClick(bianliangId)" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
</div>
|
|
126
|
-
<div v-if="timeRange" style="border-top: 1px dashed #ebebeb;">
|
|
127
|
-
<el-time-picker
|
|
128
|
-
is-range
|
|
129
|
-
v-model="timeRangeValue"
|
|
130
|
-
range-separator="至"
|
|
131
|
-
start-placeholder="开始时间"
|
|
132
|
-
end-placeholder="结束时间"
|
|
133
|
-
placeholder="选择时间范围"
|
|
134
|
-
style="margin: 10px 16px;width: 80%"
|
|
135
|
-
|
|
136
|
-
:editable=false
|
|
137
|
-
>
|
|
138
|
-
</el-time-picker>
|
|
139
|
-
<span @click="quedingClick(bianliangId)" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
140
|
-
|
|
141
|
-
</div>
|
|
142
|
-
<div v-if="dateTimeRange" style="border-top: 1px dashed #ebebeb;display: flex">
|
|
143
|
-
<!– <el-date-picker
|
|
144
|
-
v-model="dateTimeValue"
|
|
145
|
-
type="datetimerange"
|
|
146
|
-
range-separator="至"
|
|
147
|
-
start-placeholder="开始日期"
|
|
148
|
-
end-placeholder="结束日期"
|
|
149
|
-
style="width: 80%;margin: 10px 16px"
|
|
150
|
-
:editable=false
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
>
|
|
154
|
-
</el-date-picker>–>
|
|
155
|
-
<div style="width: 90%">
|
|
156
|
-
<van-field
|
|
157
|
-
readonly
|
|
158
|
-
clickable
|
|
159
|
-
name="datetimePicker"
|
|
160
|
-
:value=dateTimeValue[0]
|
|
161
|
-
label='选择时间'
|
|
162
|
-
placeholder="点击选择开始日期时间"
|
|
163
|
-
@click="showDateTimePicker=true"
|
|
164
|
-
/>
|
|
165
|
-
<van-popup v-model="showDateTimePicker" position="bottom">
|
|
166
|
-
<van-datetime-picker
|
|
167
|
-
v-model="currentDate"
|
|
168
|
-
type="datetime"
|
|
169
|
-
title="选择开始日期时间"
|
|
170
|
-
@confirm="onConfirmDateTime($event)"
|
|
171
|
-
@cancel="showDateTimePicker = false"
|
|
172
|
-
:min-date="minDate"
|
|
173
|
-
:formatter="formatter"
|
|
174
|
-
/>
|
|
175
|
-
</van-popup>
|
|
176
|
-
<van-field
|
|
177
|
-
readonly
|
|
178
|
-
clickable
|
|
179
|
-
name="datetimePicker"
|
|
180
|
-
:value=dateTimeValue1[0]
|
|
181
|
-
label=" "
|
|
182
|
-
placeholder="点击选择结束日期时间"
|
|
183
|
-
@click="showDateTimePicker1=true"
|
|
184
|
-
/>
|
|
185
|
-
<van-popup v-model="showDateTimePicker1" position="bottom">
|
|
186
|
-
<van-datetime-picker
|
|
187
|
-
v-model="currentDate"
|
|
188
|
-
type="datetime"
|
|
189
|
-
title="选择结束日期时间"
|
|
190
|
-
@confirm="onConfirmDateTime1($event)"
|
|
191
|
-
@cancel="showDateTimePicker1 = false"
|
|
192
|
-
:min-date="minDate"
|
|
193
|
-
:formatter="formatter"
|
|
194
|
-
/>
|
|
195
|
-
</van-popup>
|
|
196
|
-
</div>
|
|
197
|
-
|
|
198
|
-
<span @click="quedingClick(bianliangId)" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
199
|
-
</div>–>
|
|
200
|
-
</div>-->
|
|
201
|
-
</div>
|
|
202
|
-
</template>
|
|
203
|
-
|
|
204
|
-
<script>
|
|
205
|
-
export default {
|
|
206
|
-
name: "test",
|
|
207
|
-
data(){
|
|
208
|
-
return{
|
|
209
|
-
show:false,
|
|
210
|
-
single:false,
|
|
211
|
-
date:false,
|
|
212
|
-
time:false,
|
|
213
|
-
dateTimeRange:false,
|
|
214
|
-
dateRange:false,
|
|
215
|
-
timeRange:false,
|
|
216
|
-
input:'',
|
|
217
|
-
bianliangId:'',
|
|
218
|
-
dateValue:'',
|
|
219
|
-
message:[{content:'王亚欣',type:'SINGLE',value:'',id:1},{content:['2020-11-18T07:25:16.000+0000','2020-11-21T07:25:16.000+0000'],type:'DATE-RANGE',value:'',id:2},{content:'2020-11-18T07:25:16.000+0000',type:'TIME',value:'',id:3},{content:'2020-11-18T07:25:16.000+0000',type:'DATE',value:'',id:4},{content:['2020-11-18T07:25:16.000+0000','2020-11-21T07:25:16.000+0000'],type:'DATERANGE',value:'',id:5},{content:['2020-11-18T08:25:16.000+0000','2020-11-21T07:25:16.000+0000'],type:'TIMERANGE',value:'',id:6},],
|
|
220
|
-
isPhone:false,
|
|
221
|
-
isCompany:false,
|
|
222
|
-
dateTimeValue:[],
|
|
223
|
-
timeValue:'',
|
|
224
|
-
dateRangeValue:'',
|
|
225
|
-
dateRangeValues:'',
|
|
226
|
-
timeRangeValue:[],
|
|
227
|
-
dateTimeValue1:[],
|
|
228
|
-
test:0,
|
|
229
|
-
currentDate:new Date(),
|
|
230
|
-
minDate: new Date(2020, 0, 1),
|
|
231
|
-
showDateTimePicker1:false,
|
|
232
|
-
showDateTimePicker:false,
|
|
233
|
-
values:[],
|
|
234
|
-
checkValue:'',
|
|
235
|
-
disableds:false,
|
|
236
|
-
submitValue:'确认'
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
methods:{
|
|
240
|
-
_askEditValue(){
|
|
241
|
-
console.log('aaa')
|
|
242
|
-
console.log(this.$el)
|
|
243
|
-
},
|
|
244
|
-
isMobile() {
|
|
245
|
-
let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
|
|
246
|
-
if (flag) {
|
|
247
|
-
this.isPhone=true
|
|
248
|
-
}
|
|
249
|
-
else
|
|
250
|
-
{
|
|
251
|
-
this.isCompany=true
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
</script>
|
|
258
|
-
|
|
259
|
-
<style scoped>
|
|
260
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div style="display: flex;height: auto;line-height: 2;" >
|
|
4
|
+
<div>
|
|
5
|
+
<div>aaa</div>
|
|
6
|
+
<i class="ask-component-placeholder-icon arsenal_icon arsenalkebianji ck-widget" @click="_askEditValue"></i>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
<div style="text-align: right;padding: 10px 0 0 10px">
|
|
10
|
+
<el-button type="primary" size="small" :disabled="disableds" id="submit">{{submitValue}}</el-button>
|
|
11
|
+
</div>
|
|
12
|
+
<!-- <div v-if="isCompany">
|
|
13
|
+
<div v-if="single === true" style="border-top: 1px dashed #ebebeb;">
|
|
14
|
+
<el-input v-model="input" placeholder="请输入内容" style="padding: 10px 10px 10px 0;width: 80%;"></el-input>
|
|
15
|
+
<span><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
16
|
+
</div>
|
|
17
|
+
<div v-if="date" style="border-top: 1px dashed #ebebeb;">
|
|
18
|
+
<el-date-picker
|
|
19
|
+
v-model="dateValue"
|
|
20
|
+
type="date"
|
|
21
|
+
placeholder="选择日期"
|
|
22
|
+
style="width: 80%;margin: 10px 10px 10px 0"
|
|
23
|
+
>
|
|
24
|
+
</el-date-picker>
|
|
25
|
+
<span @click="quedingClick" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
26
|
+
</div>
|
|
27
|
+
<div v-if="time" style="border-top: 1px dashed #ebebeb;">
|
|
28
|
+
<el-time-picker
|
|
29
|
+
v-model="timeValue"
|
|
30
|
+
placeholder="任意时间点"
|
|
31
|
+
style="margin: 10px 10px 10px 0;width: 80%"
|
|
32
|
+
>
|
|
33
|
+
</el-time-picker>
|
|
34
|
+
<span @click="quedingClick" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
35
|
+
</div>
|
|
36
|
+
<!–<div v-if="dateRange" style="border-top: 1px dashed #ebebeb;">
|
|
37
|
+
<el-date-picker
|
|
38
|
+
v-model="dateRangeValue"
|
|
39
|
+
type="daterange"
|
|
40
|
+
range-separator="至"
|
|
41
|
+
start-placeholder="开始日期"
|
|
42
|
+
end-placeholder="结束日期"
|
|
43
|
+
style="margin: 10px 16px;width: 80%"
|
|
44
|
+
>
|
|
45
|
+
</el-date-picker>
|
|
46
|
+
<span @click="quedingClick(bianliangId)" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
47
|
+
</div>
|
|
48
|
+
<div v-if="timeRange" style="border-top: 1px dashed #ebebeb;">
|
|
49
|
+
<el-time-picker
|
|
50
|
+
is-range
|
|
51
|
+
v-model="timeRangeValue"
|
|
52
|
+
range-separator="至"
|
|
53
|
+
start-placeholder="开始时间"
|
|
54
|
+
end-placeholder="结束时间"
|
|
55
|
+
placeholder="选择时间范围"
|
|
56
|
+
style="margin: 10px 16px;width: 80%"
|
|
57
|
+
>
|
|
58
|
+
</el-time-picker>
|
|
59
|
+
<span @click="quedingClick(bianliangId)" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
60
|
+
|
|
61
|
+
</div>
|
|
62
|
+
<div v-if="dateTimeRange" style="border-top: 1px dashed #ebebeb;">
|
|
63
|
+
<el-date-picker
|
|
64
|
+
v-model="dateTimeValue"
|
|
65
|
+
type="datetimerange"
|
|
66
|
+
range-separator="至"
|
|
67
|
+
start-placeholder="开始日期"
|
|
68
|
+
end-placeholder="结束日期"
|
|
69
|
+
style="width: 80%;margin: 10px 16px"
|
|
70
|
+
|
|
71
|
+
>
|
|
72
|
+
</el-date-picker>
|
|
73
|
+
<span @click="quedingClick(bianliangId)" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
74
|
+
</div>–>
|
|
75
|
+
</div>
|
|
76
|
+
<div v-if="isPhone">
|
|
77
|
+
<div v-if="single" style="border-top: 1px dashed #ebebeb;">
|
|
78
|
+
<el-input v-model="input" placeholder="请输入内容" style="padding: 10px 10px 10px 0;width: 80%;"></el-input>
|
|
79
|
+
<span @click="quedingClick"><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
80
|
+
</div>
|
|
81
|
+
<div v-if="date" style="border-top: 1px dashed #ebebeb;">
|
|
82
|
+
<el-date-picker
|
|
83
|
+
v-model="dateValue"
|
|
84
|
+
type="date"
|
|
85
|
+
placeholder="选择日期"
|
|
86
|
+
style="width: 80%;margin: 10px 10px 10px 0"
|
|
87
|
+
:editable=false
|
|
88
|
+
>
|
|
89
|
+
</el-date-picker>
|
|
90
|
+
<span @click="quedingClick" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<div v-if="time" style="border-top: 1px dashed #ebebeb;">
|
|
94
|
+
<el-time-picker
|
|
95
|
+
v-model="timeValue"
|
|
96
|
+
placeholder="任意时间点"
|
|
97
|
+
style="margin: 10px 10px 10px 0;width: 80%"
|
|
98
|
+
|
|
99
|
+
:editable=false
|
|
100
|
+
|
|
101
|
+
>
|
|
102
|
+
</el-time-picker>
|
|
103
|
+
<span @click="quedingClick" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
104
|
+
</div>
|
|
105
|
+
<!– <div v-if="dateRange" style="border-top: 1px dashed #ebebeb;display: flex">
|
|
106
|
+
<!–<el-date-picker
|
|
107
|
+
v-model="dateRangeValue"
|
|
108
|
+
type="daterange"
|
|
109
|
+
range-separator="至"
|
|
110
|
+
start-placeholder="开始日期"
|
|
111
|
+
end-placeholder="结束日期"
|
|
112
|
+
style="margin: 10px 16px;width: 80%"
|
|
113
|
+
:editable=false
|
|
114
|
+
|
|
115
|
+
>
|
|
116
|
+
</el-date-picker>–>
|
|
117
|
+
<div style="width: 90%">
|
|
118
|
+
<van-cell title="选择日期区间" :value="dateRangeValue" @click="show = true" />
|
|
119
|
+
<van-calendar v-model="show" type="range" @confirm="onConfirm" />
|
|
120
|
+
</div>
|
|
121
|
+
<span @click="quedingClick(bianliangId)" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
</div>
|
|
126
|
+
<div v-if="timeRange" style="border-top: 1px dashed #ebebeb;">
|
|
127
|
+
<el-time-picker
|
|
128
|
+
is-range
|
|
129
|
+
v-model="timeRangeValue"
|
|
130
|
+
range-separator="至"
|
|
131
|
+
start-placeholder="开始时间"
|
|
132
|
+
end-placeholder="结束时间"
|
|
133
|
+
placeholder="选择时间范围"
|
|
134
|
+
style="margin: 10px 16px;width: 80%"
|
|
135
|
+
|
|
136
|
+
:editable=false
|
|
137
|
+
>
|
|
138
|
+
</el-time-picker>
|
|
139
|
+
<span @click="quedingClick(bianliangId)" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
140
|
+
|
|
141
|
+
</div>
|
|
142
|
+
<div v-if="dateTimeRange" style="border-top: 1px dashed #ebebeb;display: flex">
|
|
143
|
+
<!– <el-date-picker
|
|
144
|
+
v-model="dateTimeValue"
|
|
145
|
+
type="datetimerange"
|
|
146
|
+
range-separator="至"
|
|
147
|
+
start-placeholder="开始日期"
|
|
148
|
+
end-placeholder="结束日期"
|
|
149
|
+
style="width: 80%;margin: 10px 16px"
|
|
150
|
+
:editable=false
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
>
|
|
154
|
+
</el-date-picker>–>
|
|
155
|
+
<div style="width: 90%">
|
|
156
|
+
<van-field
|
|
157
|
+
readonly
|
|
158
|
+
clickable
|
|
159
|
+
name="datetimePicker"
|
|
160
|
+
:value=dateTimeValue[0]
|
|
161
|
+
label='选择时间'
|
|
162
|
+
placeholder="点击选择开始日期时间"
|
|
163
|
+
@click="showDateTimePicker=true"
|
|
164
|
+
/>
|
|
165
|
+
<van-popup v-model="showDateTimePicker" position="bottom">
|
|
166
|
+
<van-datetime-picker
|
|
167
|
+
v-model="currentDate"
|
|
168
|
+
type="datetime"
|
|
169
|
+
title="选择开始日期时间"
|
|
170
|
+
@confirm="onConfirmDateTime($event)"
|
|
171
|
+
@cancel="showDateTimePicker = false"
|
|
172
|
+
:min-date="minDate"
|
|
173
|
+
:formatter="formatter"
|
|
174
|
+
/>
|
|
175
|
+
</van-popup>
|
|
176
|
+
<van-field
|
|
177
|
+
readonly
|
|
178
|
+
clickable
|
|
179
|
+
name="datetimePicker"
|
|
180
|
+
:value=dateTimeValue1[0]
|
|
181
|
+
label=" "
|
|
182
|
+
placeholder="点击选择结束日期时间"
|
|
183
|
+
@click="showDateTimePicker1=true"
|
|
184
|
+
/>
|
|
185
|
+
<van-popup v-model="showDateTimePicker1" position="bottom">
|
|
186
|
+
<van-datetime-picker
|
|
187
|
+
v-model="currentDate"
|
|
188
|
+
type="datetime"
|
|
189
|
+
title="选择结束日期时间"
|
|
190
|
+
@confirm="onConfirmDateTime1($event)"
|
|
191
|
+
@cancel="showDateTimePicker1 = false"
|
|
192
|
+
:min-date="minDate"
|
|
193
|
+
:formatter="formatter"
|
|
194
|
+
/>
|
|
195
|
+
</van-popup>
|
|
196
|
+
</div>
|
|
197
|
+
|
|
198
|
+
<span @click="quedingClick(bianliangId)" ><i class="el-icon-success" style="color: #409eff;font-size: 32px;text-align: center;vertical-align: middle;cursor: pointer"></i></span>
|
|
199
|
+
</div>–>
|
|
200
|
+
</div>-->
|
|
201
|
+
</div>
|
|
202
|
+
</template>
|
|
203
|
+
|
|
204
|
+
<script>
|
|
205
|
+
export default {
|
|
206
|
+
name: "test",
|
|
207
|
+
data(){
|
|
208
|
+
return{
|
|
209
|
+
show:false,
|
|
210
|
+
single:false,
|
|
211
|
+
date:false,
|
|
212
|
+
time:false,
|
|
213
|
+
dateTimeRange:false,
|
|
214
|
+
dateRange:false,
|
|
215
|
+
timeRange:false,
|
|
216
|
+
input:'',
|
|
217
|
+
bianliangId:'',
|
|
218
|
+
dateValue:'',
|
|
219
|
+
message:[{content:'王亚欣',type:'SINGLE',value:'',id:1},{content:['2020-11-18T07:25:16.000+0000','2020-11-21T07:25:16.000+0000'],type:'DATE-RANGE',value:'',id:2},{content:'2020-11-18T07:25:16.000+0000',type:'TIME',value:'',id:3},{content:'2020-11-18T07:25:16.000+0000',type:'DATE',value:'',id:4},{content:['2020-11-18T07:25:16.000+0000','2020-11-21T07:25:16.000+0000'],type:'DATERANGE',value:'',id:5},{content:['2020-11-18T08:25:16.000+0000','2020-11-21T07:25:16.000+0000'],type:'TIMERANGE',value:'',id:6},],
|
|
220
|
+
isPhone:false,
|
|
221
|
+
isCompany:false,
|
|
222
|
+
dateTimeValue:[],
|
|
223
|
+
timeValue:'',
|
|
224
|
+
dateRangeValue:'',
|
|
225
|
+
dateRangeValues:'',
|
|
226
|
+
timeRangeValue:[],
|
|
227
|
+
dateTimeValue1:[],
|
|
228
|
+
test:0,
|
|
229
|
+
currentDate:new Date(),
|
|
230
|
+
minDate: new Date(2020, 0, 1),
|
|
231
|
+
showDateTimePicker1:false,
|
|
232
|
+
showDateTimePicker:false,
|
|
233
|
+
values:[],
|
|
234
|
+
checkValue:'',
|
|
235
|
+
disableds:false,
|
|
236
|
+
submitValue:'确认'
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
methods:{
|
|
240
|
+
_askEditValue(){
|
|
241
|
+
console.log('aaa')
|
|
242
|
+
console.log(this.$el)
|
|
243
|
+
},
|
|
244
|
+
isMobile() {
|
|
245
|
+
let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
|
|
246
|
+
if (flag) {
|
|
247
|
+
this.isPhone=true
|
|
248
|
+
}
|
|
249
|
+
else
|
|
250
|
+
{
|
|
251
|
+
this.isCompany=true
|
|
252
|
+
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
</script>
|
|
258
|
+
|
|
259
|
+
<style scoped>
|
|
260
|
+
|
|
261
261
|
</style>
|