wl-design-mobile 0.8.13 → 0.8.15
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 +6 -6
- package/api/doc.js +25 -25
- package/api/x1.js +56 -56
- package/btn/components/lambo-info-btn.vue +123 -123
- package/btn/components/lambo-primary-btn.vue +117 -117
- package/btn/components/lambo-text-btn.vue +116 -116
- package/btn/lambo-btn-divide.vue +35 -35
- package/btn/lambo-btn-group.vue +46 -46
- package/btn/lambo-btn-split-line.vue +41 -41
- package/btn/lambo-btn.vue +68 -68
- package/btn/lambo-extend-btn.vue +121 -121
- package/btn/lambo-icon-btn.vue +82 -82
- package/card-item/card-row-icon.vue +71 -71
- package/card-item/filtrate-row.vue +73 -73
- package/card-item/lambo-card-footer.vue +40 -40
- package/card-item/lambo-card-head.vue +66 -66
- package/card-item/lambo-card-row.vue +59 -59
- package/collapse/lambo-collapse.vue +93 -93
- package/config/config.js +14 -14
- package/detail/lambo-detail-grid.vue +58 -58
- package/detail/lambo-detail-row.vue +59 -59
- package/doc/file/compoents/lambo-file-list.vue +42 -42
- package/doc/file/compoents/lambo-file-row.vue +77 -77
- package/doc/file/lambo-file-upload-collapse.vue +107 -107
- package/doc/file-type/file-type.js +286 -286
- package/doc/img/comonents/lambo-img-grid.vue +109 -109
- package/doc/img/lambo-img-upload-collapse.vue +107 -109
- package/doc/img/styles/css/index.css +3 -3
- package/edit/list/Lambo-edit-list.vue +87 -87
- package/edit/list/lambo-edit-card-group.vue +100 -100
- package/edit/list/styles/css/index.css +39 -39
- package/edit/select/lambo-edit-date-range.vue +147 -147
- package/edit/select/lambo-edit-date-time.vue +122 -122
- package/edit/select/lambo-edit-date.vue +120 -120
- package/edit/select/lambo-edit-input-textarea.vue +91 -91
- package/edit/select/lambo-edit-input.vue +91 -91
- package/edit/select/lambo-edit-multi-select.vue +168 -168
- package/edit/select/lambo-edit-search-single-select.vue +186 -186
- package/edit/select/lambo-edit-single-select.vue +162 -162
- package/edit/select/styles/css/index.css +133 -133
- package/flow/approval/flow-approval.vue +552 -552
- package/flow/comps/flow-attachment-list.vue +230 -230
- package/flow/comps/flow-attachment-modal.vue +194 -194
- package/flow/comps/flow-copy-users.vue +358 -358
- package/flow/comps/flow-node-card.vue +150 -150
- package/flow/comps/flow-node-header.vue +172 -172
- package/flow/comps/flow-util.js +156 -156
- package/flow/comps/icons/approved.svg +11 -11
- package/flow/comps/icons/canceled.svg +11 -11
- package/flow/comps/icons/rejected.svg +11 -11
- package/flow/comps/icons/underway.svg +11 -11
- package/flow/detail/flow-detail.vue +467 -467
- package/flow/index.js +51 -51
- package/flow/lambo-flow-detail.vue +912 -912
- package/flow/lambo-flow-edit.vue +15 -15
- package/flow/submit/flow-submit.vue +383 -383
- package/icon/lambo-required-red-star.vue +47 -47
- package/icon/lambo-vector-icon.vue +71 -71
- package/list/lambo-list.vue +412 -294
- package/nav/lambo-top-nav.vue +81 -81
- package/order/comps/icons/approved.svg +10 -10
- package/order/comps/icons/underway.svg +10 -10
- package/order/comps/order-attachment-list.vue +228 -228
- package/order/comps/order-attachment-modal.vue +194 -194
- package/order/comps/order-node-card.vue +126 -126
- package/order/comps/order-node-header.vue +133 -133
- package/order/comps/order-util.js +132 -132
- package/order/detail/order-detail.vue +432 -432
- package/order/handle/order-handle.vue +517 -517
- package/order/index.js +33 -33
- package/package.json +1 -1
- package/search/lambo-date-range-page.vue +196 -196
- package/search/lambo-date-range.vue +111 -111
- package/search/lambo-date.vue +105 -105
- package/search/lambo-input.vue +74 -74
- package/search/lambo-multi-select.vue +129 -129
- package/search/lambo-org-select-page.vue +109 -109
- package/search/lambo-search-box.vue +61 -61
- package/search/lambo-search-single-select.vue +152 -152
- package/search/lambo-single-select.vue +123 -123
- package/search/lambo-week-date-select.vue +521 -521
- package/search/styles/css/index.css +138 -138
- package/styles/base.less +77 -77
- package/styles/components/btn.less +7 -7
- package/styles/components/search.less +33 -33
- package/styles/components/tag.less +181 -181
- package/styles/index.less +4 -4
- package/table/lambo-ag-table.vue +228 -227
- package/tag/lambo-tag.vue +23 -23
- package/title/lambo-title1.vue +151 -151
- package/title/lambo-title2.vue +37 -37
- package/title/lambo-title3.vue +77 -77
- package/util/assist.js +43 -43
- package/util/axios/cacheconf.js +19 -19
- package/util/axios/index.js +11 -11
- package/util/axios/interceptors.js +101 -101
- package/util/bus.js +4 -4
- package/util/jssdk-sczy.js +104 -104
- package/util/jssdk.js +565 -565
- package/util/math.js +76 -76
- package/util/token.js +36 -36
package/order/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 工单组件入口(移动端版本)
|
|
3
|
-
* 参照 lambo-design-bi 组件库重新实现的 Vant 版本
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
// 公共子组件
|
|
7
|
-
import OrderNodeHeader from './comps/order-node-header.vue'
|
|
8
|
-
import OrderNodeCard from './comps/order-node-card.vue'
|
|
9
|
-
import OrderAttachmentList from './comps/order-attachment-list.vue'
|
|
10
|
-
import OrderAttachmentModal from './comps/order-attachment-modal.vue'
|
|
11
|
-
import OrderDetail from './detail/order-detail.vue'
|
|
12
|
-
import OrderHandle from './handle/order-handle.vue'
|
|
13
|
-
|
|
14
|
-
export {
|
|
15
|
-
OrderNodeHeader,
|
|
16
|
-
OrderNodeCard,
|
|
17
|
-
OrderAttachmentList,
|
|
18
|
-
OrderAttachmentModal,
|
|
19
|
-
OrderDetail,
|
|
20
|
-
OrderHandle
|
|
21
|
-
}
|
|
22
|
-
export * from './comps/order-util.js'
|
|
23
|
-
|
|
24
|
-
export default {
|
|
25
|
-
install(Vue) {
|
|
26
|
-
Vue.component('OrderNodeHeader', OrderNodeHeader)
|
|
27
|
-
Vue.component('OrderNodeCard', OrderNodeCard)
|
|
28
|
-
Vue.component('OrderAttachmentList', OrderAttachmentList)
|
|
29
|
-
Vue.component('OrderAttachmentModal', OrderAttachmentModal)
|
|
30
|
-
Vue.component('OrderDetail', OrderDetail)
|
|
31
|
-
Vue.component('OrderHandle', OrderHandle)
|
|
32
|
-
}
|
|
33
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* 工单组件入口(移动端版本)
|
|
3
|
+
* 参照 lambo-design-bi 组件库重新实现的 Vant 版本
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
// 公共子组件
|
|
7
|
+
import OrderNodeHeader from './comps/order-node-header.vue'
|
|
8
|
+
import OrderNodeCard from './comps/order-node-card.vue'
|
|
9
|
+
import OrderAttachmentList from './comps/order-attachment-list.vue'
|
|
10
|
+
import OrderAttachmentModal from './comps/order-attachment-modal.vue'
|
|
11
|
+
import OrderDetail from './detail/order-detail.vue'
|
|
12
|
+
import OrderHandle from './handle/order-handle.vue'
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
OrderNodeHeader,
|
|
16
|
+
OrderNodeCard,
|
|
17
|
+
OrderAttachmentList,
|
|
18
|
+
OrderAttachmentModal,
|
|
19
|
+
OrderDetail,
|
|
20
|
+
OrderHandle
|
|
21
|
+
}
|
|
22
|
+
export * from './comps/order-util.js'
|
|
23
|
+
|
|
24
|
+
export default {
|
|
25
|
+
install(Vue) {
|
|
26
|
+
Vue.component('OrderNodeHeader', OrderNodeHeader)
|
|
27
|
+
Vue.component('OrderNodeCard', OrderNodeCard)
|
|
28
|
+
Vue.component('OrderAttachmentList', OrderAttachmentList)
|
|
29
|
+
Vue.component('OrderAttachmentModal', OrderAttachmentModal)
|
|
30
|
+
Vue.component('OrderDetail', OrderDetail)
|
|
31
|
+
Vue.component('OrderHandle', OrderHandle)
|
|
32
|
+
}
|
|
33
|
+
}
|
package/package.json
CHANGED
|
@@ -1,196 +1,196 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="time-div">
|
|
3
|
-
<div class="left" @click="onOpen">
|
|
4
|
-
<p class="time">{{ startDate }}</p>
|
|
5
|
-
</div>
|
|
6
|
-
<div class="middle" @click="replace">
|
|
7
|
-
<img class="img" :src="imgSrc"/>
|
|
8
|
-
<p class="nav"><img class="rest-img" :src="imgResetSrc">重置</p>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="right" @click="onOpen">
|
|
11
|
-
<p class="time">{{ endDate }}</p>
|
|
12
|
-
</div>
|
|
13
|
-
<van-calendar v-model:show="showBottom" :default-date="defaultDateArr" :min-date="minDate" :max-date="maxDate"
|
|
14
|
-
type="range" :style="{ maxHeight: '65%' }" color="#0070D2" @confirm="onConfirm" get-container="body"
|
|
15
|
-
:allow-same-day="allowSameDay"/>
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
18
|
-
<script>
|
|
19
|
-
import time from '../assets/icon/interval/time.png'
|
|
20
|
-
import reset from '../assets/icon/interval/reset.png'
|
|
21
|
-
import moment from 'moment'
|
|
22
|
-
import {deepCopy} from '../util/assist'
|
|
23
|
-
|
|
24
|
-
export default {
|
|
25
|
-
name: "LamboDateRangePage",
|
|
26
|
-
props: {
|
|
27
|
-
defaultDate: {
|
|
28
|
-
type: Array,
|
|
29
|
-
default: () => []
|
|
30
|
-
},
|
|
31
|
-
allowSameDay: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: false
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
data() {
|
|
37
|
-
return {
|
|
38
|
-
imgSrc: time,
|
|
39
|
-
imgResetSrc: reset,
|
|
40
|
-
showBottom: false,
|
|
41
|
-
selectItem: {
|
|
42
|
-
date: [],
|
|
43
|
-
date8: []
|
|
44
|
-
},
|
|
45
|
-
startDate: '',
|
|
46
|
-
endDate: '',
|
|
47
|
-
defaultDateArr: [],
|
|
48
|
-
minDate: new Date((new Date()).getFullYear() - 1, (new Date()).getMonth() + 1, (new Date()).getDate()),
|
|
49
|
-
maxDate: new Date((new Date()).getFullYear() + 1, (new Date()).getMonth() + 1, (new Date()).getDate()),
|
|
50
|
-
replaceDate: [],
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
created() {
|
|
54
|
-
this.initDefaultVal()
|
|
55
|
-
},
|
|
56
|
-
methods: {
|
|
57
|
-
initDefaultVal() {
|
|
58
|
-
if (this.defaultDate && Array.isArray(this.defaultDate) && this.defaultDate.length === 2) {
|
|
59
|
-
let defDateArr = this.defaultDate
|
|
60
|
-
this.replaceDate = this.defaultDate
|
|
61
|
-
if (defDateArr && defDateArr.length === 2 && defDateArr[0] && defDateArr[1]) {
|
|
62
|
-
this.selectItem.date8 = deepCopy(defDateArr)
|
|
63
|
-
|
|
64
|
-
let startDate8 = defDateArr[0]
|
|
65
|
-
let endDate8 = defDateArr[1]
|
|
66
|
-
let startDateFormat = moment(startDate8).format('yyyy-MM-DD') || ''
|
|
67
|
-
let endDateFormat = moment(endDate8).format('yyyy-MM-DD') || ''
|
|
68
|
-
this.selectItem.date[0] = startDateFormat
|
|
69
|
-
this.selectItem.date[1] = endDateFormat
|
|
70
|
-
this.startDate = startDateFormat
|
|
71
|
-
this.endDate = endDateFormat
|
|
72
|
-
|
|
73
|
-
let startDateObj = moment(startDate8).toDate()
|
|
74
|
-
let endDateObj = moment(endDate8).toDate()
|
|
75
|
-
this.defaultDateArr = [startDateObj, endDateObj]
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
onOpen() {
|
|
80
|
-
this.showBottom = true
|
|
81
|
-
},
|
|
82
|
-
onConfirm(time) {
|
|
83
|
-
console.log(" onConfirm time:", time)
|
|
84
|
-
if (Array.isArray(time)) {
|
|
85
|
-
if (time.length === 2) {
|
|
86
|
-
let startDate1 = moment(time[0]).format("yyyyMMDD") || ''
|
|
87
|
-
let endDate1 = moment(time[1]).format("yyyyMMDD") || ''
|
|
88
|
-
let startDateFormat = moment(time[0]).format('yyyy-MM-DD') || ''
|
|
89
|
-
let endDateFormat = moment(time[1]).format('yyyy-MM-DD') || ''
|
|
90
|
-
|
|
91
|
-
if (startDate1 && endDate1) {
|
|
92
|
-
this.selectItem.date8 = [startDate1, endDate1]
|
|
93
|
-
this.selectItem.date = [startDateFormat, endDateFormat]
|
|
94
|
-
this.startDate = startDateFormat
|
|
95
|
-
this.endDate = endDateFormat
|
|
96
|
-
this.$emit("on-ok", this.selectItem)
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
this.showBottom = false
|
|
101
|
-
},
|
|
102
|
-
replace() {
|
|
103
|
-
if (this.replaceDate && Array.isArray(this.replaceDate) && this.replaceDate.length === 2) {
|
|
104
|
-
let defDateArr = this.replaceDate
|
|
105
|
-
this.replaceDate = this.replaceDate
|
|
106
|
-
if (defDateArr && defDateArr.length === 2 && defDateArr[0] && defDateArr[1]) {
|
|
107
|
-
this.selectItem.date8 = deepCopy(defDateArr)
|
|
108
|
-
|
|
109
|
-
let startDate8 = defDateArr[0]
|
|
110
|
-
let endDate8 = defDateArr[1]
|
|
111
|
-
let startDateFormat = moment(startDate8).format("yyyy-MM-DD") || ''
|
|
112
|
-
let endDateFormat = moment(endDate8).format("yyyy-MM-DD") || ''
|
|
113
|
-
this.selectItem.date[0] = startDateFormat
|
|
114
|
-
this.selectItem.date[1] = endDateFormat
|
|
115
|
-
this.startDate = startDateFormat
|
|
116
|
-
this.endDate = endDateFormat
|
|
117
|
-
|
|
118
|
-
let startDateObj = moment(startDate8).toDate()
|
|
119
|
-
let endDateObj = moment(endDate8).toDate()
|
|
120
|
-
this.defaultDateArr = [startDateObj, endDateObj]
|
|
121
|
-
|
|
122
|
-
this.$emit("on-ok", this.selectItem)
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
</script>
|
|
130
|
-
<style scoped>
|
|
131
|
-
@import "../styles/index.less";
|
|
132
|
-
|
|
133
|
-
.time-div {
|
|
134
|
-
height: 72px;
|
|
135
|
-
background-color: var(--scl-white-1);
|
|
136
|
-
display: flex;
|
|
137
|
-
align-items: center;
|
|
138
|
-
justify-content: center;
|
|
139
|
-
padding: 14px;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.left {
|
|
143
|
-
width: 37.5%;
|
|
144
|
-
height: 100%;
|
|
145
|
-
display: flex;
|
|
146
|
-
flex-direction: column;
|
|
147
|
-
align-items: flex-start;
|
|
148
|
-
justify-content: center;
|
|
149
|
-
padding-left: 14px;
|
|
150
|
-
text-align: left;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.right {
|
|
154
|
-
width: 37.5%;
|
|
155
|
-
height: 100%;
|
|
156
|
-
display: flex;
|
|
157
|
-
flex-direction: column;
|
|
158
|
-
align-items: flex-end;
|
|
159
|
-
justify-content: center;
|
|
160
|
-
padding-right: 14px;
|
|
161
|
-
text-align: right;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.middle {
|
|
165
|
-
width: 25%;
|
|
166
|
-
height: 100%;
|
|
167
|
-
display: flex;
|
|
168
|
-
flex-direction: column;
|
|
169
|
-
align-items: center;
|
|
170
|
-
justify-content: center;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.time {
|
|
174
|
-
font-size: 14px;
|
|
175
|
-
color: var(--scl-gray-1);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.nav {
|
|
179
|
-
font-size: 11px;
|
|
180
|
-
color: var(--scl-blue);
|
|
181
|
-
margin-top: 3px;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.img {
|
|
185
|
-
width: 100%;
|
|
186
|
-
height: auto;
|
|
187
|
-
margin-top: 15px;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.rest-img {
|
|
191
|
-
width: 15%;
|
|
192
|
-
height: auto;
|
|
193
|
-
margin-left: 10px;
|
|
194
|
-
margin-right: 2px;
|
|
195
|
-
}
|
|
196
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="time-div">
|
|
3
|
+
<div class="left" @click="onOpen">
|
|
4
|
+
<p class="time">{{ startDate }}</p>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="middle" @click="replace">
|
|
7
|
+
<img class="img" :src="imgSrc"/>
|
|
8
|
+
<p class="nav"><img class="rest-img" :src="imgResetSrc">重置</p>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="right" @click="onOpen">
|
|
11
|
+
<p class="time">{{ endDate }}</p>
|
|
12
|
+
</div>
|
|
13
|
+
<van-calendar v-model:show="showBottom" :default-date="defaultDateArr" :min-date="minDate" :max-date="maxDate"
|
|
14
|
+
type="range" :style="{ maxHeight: '65%' }" color="#0070D2" @confirm="onConfirm" get-container="body"
|
|
15
|
+
:allow-same-day="allowSameDay"/>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
<script>
|
|
19
|
+
import time from '../assets/icon/interval/time.png'
|
|
20
|
+
import reset from '../assets/icon/interval/reset.png'
|
|
21
|
+
import moment from 'moment'
|
|
22
|
+
import {deepCopy} from '../util/assist'
|
|
23
|
+
|
|
24
|
+
export default {
|
|
25
|
+
name: "LamboDateRangePage",
|
|
26
|
+
props: {
|
|
27
|
+
defaultDate: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default: () => []
|
|
30
|
+
},
|
|
31
|
+
allowSameDay: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: false
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
data() {
|
|
37
|
+
return {
|
|
38
|
+
imgSrc: time,
|
|
39
|
+
imgResetSrc: reset,
|
|
40
|
+
showBottom: false,
|
|
41
|
+
selectItem: {
|
|
42
|
+
date: [],
|
|
43
|
+
date8: []
|
|
44
|
+
},
|
|
45
|
+
startDate: '',
|
|
46
|
+
endDate: '',
|
|
47
|
+
defaultDateArr: [],
|
|
48
|
+
minDate: new Date((new Date()).getFullYear() - 1, (new Date()).getMonth() + 1, (new Date()).getDate()),
|
|
49
|
+
maxDate: new Date((new Date()).getFullYear() + 1, (new Date()).getMonth() + 1, (new Date()).getDate()),
|
|
50
|
+
replaceDate: [],
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
created() {
|
|
54
|
+
this.initDefaultVal()
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
initDefaultVal() {
|
|
58
|
+
if (this.defaultDate && Array.isArray(this.defaultDate) && this.defaultDate.length === 2) {
|
|
59
|
+
let defDateArr = this.defaultDate
|
|
60
|
+
this.replaceDate = this.defaultDate
|
|
61
|
+
if (defDateArr && defDateArr.length === 2 && defDateArr[0] && defDateArr[1]) {
|
|
62
|
+
this.selectItem.date8 = deepCopy(defDateArr)
|
|
63
|
+
|
|
64
|
+
let startDate8 = defDateArr[0]
|
|
65
|
+
let endDate8 = defDateArr[1]
|
|
66
|
+
let startDateFormat = moment(startDate8).format('yyyy-MM-DD') || ''
|
|
67
|
+
let endDateFormat = moment(endDate8).format('yyyy-MM-DD') || ''
|
|
68
|
+
this.selectItem.date[0] = startDateFormat
|
|
69
|
+
this.selectItem.date[1] = endDateFormat
|
|
70
|
+
this.startDate = startDateFormat
|
|
71
|
+
this.endDate = endDateFormat
|
|
72
|
+
|
|
73
|
+
let startDateObj = moment(startDate8).toDate()
|
|
74
|
+
let endDateObj = moment(endDate8).toDate()
|
|
75
|
+
this.defaultDateArr = [startDateObj, endDateObj]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
onOpen() {
|
|
80
|
+
this.showBottom = true
|
|
81
|
+
},
|
|
82
|
+
onConfirm(time) {
|
|
83
|
+
console.log(" onConfirm time:", time)
|
|
84
|
+
if (Array.isArray(time)) {
|
|
85
|
+
if (time.length === 2) {
|
|
86
|
+
let startDate1 = moment(time[0]).format("yyyyMMDD") || ''
|
|
87
|
+
let endDate1 = moment(time[1]).format("yyyyMMDD") || ''
|
|
88
|
+
let startDateFormat = moment(time[0]).format('yyyy-MM-DD') || ''
|
|
89
|
+
let endDateFormat = moment(time[1]).format('yyyy-MM-DD') || ''
|
|
90
|
+
|
|
91
|
+
if (startDate1 && endDate1) {
|
|
92
|
+
this.selectItem.date8 = [startDate1, endDate1]
|
|
93
|
+
this.selectItem.date = [startDateFormat, endDateFormat]
|
|
94
|
+
this.startDate = startDateFormat
|
|
95
|
+
this.endDate = endDateFormat
|
|
96
|
+
this.$emit("on-ok", this.selectItem)
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
this.showBottom = false
|
|
101
|
+
},
|
|
102
|
+
replace() {
|
|
103
|
+
if (this.replaceDate && Array.isArray(this.replaceDate) && this.replaceDate.length === 2) {
|
|
104
|
+
let defDateArr = this.replaceDate
|
|
105
|
+
this.replaceDate = this.replaceDate
|
|
106
|
+
if (defDateArr && defDateArr.length === 2 && defDateArr[0] && defDateArr[1]) {
|
|
107
|
+
this.selectItem.date8 = deepCopy(defDateArr)
|
|
108
|
+
|
|
109
|
+
let startDate8 = defDateArr[0]
|
|
110
|
+
let endDate8 = defDateArr[1]
|
|
111
|
+
let startDateFormat = moment(startDate8).format("yyyy-MM-DD") || ''
|
|
112
|
+
let endDateFormat = moment(endDate8).format("yyyy-MM-DD") || ''
|
|
113
|
+
this.selectItem.date[0] = startDateFormat
|
|
114
|
+
this.selectItem.date[1] = endDateFormat
|
|
115
|
+
this.startDate = startDateFormat
|
|
116
|
+
this.endDate = endDateFormat
|
|
117
|
+
|
|
118
|
+
let startDateObj = moment(startDate8).toDate()
|
|
119
|
+
let endDateObj = moment(endDate8).toDate()
|
|
120
|
+
this.defaultDateArr = [startDateObj, endDateObj]
|
|
121
|
+
|
|
122
|
+
this.$emit("on-ok", this.selectItem)
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
</script>
|
|
130
|
+
<style scoped>
|
|
131
|
+
@import "../styles/index.less";
|
|
132
|
+
|
|
133
|
+
.time-div {
|
|
134
|
+
height: 72px;
|
|
135
|
+
background-color: var(--scl-white-1);
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
justify-content: center;
|
|
139
|
+
padding: 14px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.left {
|
|
143
|
+
width: 37.5%;
|
|
144
|
+
height: 100%;
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
align-items: flex-start;
|
|
148
|
+
justify-content: center;
|
|
149
|
+
padding-left: 14px;
|
|
150
|
+
text-align: left;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.right {
|
|
154
|
+
width: 37.5%;
|
|
155
|
+
height: 100%;
|
|
156
|
+
display: flex;
|
|
157
|
+
flex-direction: column;
|
|
158
|
+
align-items: flex-end;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
padding-right: 14px;
|
|
161
|
+
text-align: right;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.middle {
|
|
165
|
+
width: 25%;
|
|
166
|
+
height: 100%;
|
|
167
|
+
display: flex;
|
|
168
|
+
flex-direction: column;
|
|
169
|
+
align-items: center;
|
|
170
|
+
justify-content: center;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.time {
|
|
174
|
+
font-size: 14px;
|
|
175
|
+
color: var(--scl-gray-1);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.nav {
|
|
179
|
+
font-size: 11px;
|
|
180
|
+
color: var(--scl-blue);
|
|
181
|
+
margin-top: 3px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.img {
|
|
185
|
+
width: 100%;
|
|
186
|
+
height: auto;
|
|
187
|
+
margin-top: 15px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.rest-img {
|
|
191
|
+
width: 15%;
|
|
192
|
+
height: auto;
|
|
193
|
+
margin-left: 10px;
|
|
194
|
+
margin-right: 2px;
|
|
195
|
+
}
|
|
196
|
+
</style>
|