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
|
@@ -1,186 +1,186 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div class="edit-box" @click="changeColor">
|
|
4
|
-
<div class="edit-left-box">
|
|
5
|
-
<div class="edit-left-top">
|
|
6
|
-
<div v-if="required" class="edit-red-icon">
|
|
7
|
-
<lambo-required-red-star :required="required"></lambo-required-red-star>
|
|
8
|
-
</div>
|
|
9
|
-
<div class="edit-title">{{ title }}</div>
|
|
10
|
-
</div>
|
|
11
|
-
<van-field v-model="valName" :placeholder="placeholder" :readonly="true"
|
|
12
|
-
class="edit-lambo-input" clear-trigger="focus"></van-field>
|
|
13
|
-
</div>
|
|
14
|
-
<div v-if="icon" class="edit-right-icon">
|
|
15
|
-
<lambo-vector-icon :icon="icon" @click="onOpen"></lambo-vector-icon>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
<div>
|
|
19
|
-
<van-popup v-model="showBottom" :style="{ height: '33%' }" position="bottom">
|
|
20
|
-
<van-radio-group v-model="selectItem.K">
|
|
21
|
-
<div class="bottom-div">
|
|
22
|
-
<div class="edit-top-div">
|
|
23
|
-
<van-button class="edit-cancel-btn" size="normal" @click="cancel">取消</van-button>
|
|
24
|
-
<span class="edit-select-title">请选择</span>
|
|
25
|
-
<van-button class="edit-confirm-btn" size="normal" @click="onConfirm">确认</van-button>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="cell-group-div">
|
|
28
|
-
<van-cell-group>
|
|
29
|
-
<van-search v-model="searchField" placeholder="请输入筛选名称" clearable @input="search"/>
|
|
30
|
-
<van-cell v-for="(c, index) in searchData" :key="index" :title="`${c.V}`" clickable @click.stop="radioClick(c)">
|
|
31
|
-
<template #right-icon>
|
|
32
|
-
<div style="pointer-events: none;">
|
|
33
|
-
<van-radio :name="c.K" checked-color="#0070D2"/>
|
|
34
|
-
</div>
|
|
35
|
-
</template>
|
|
36
|
-
</van-cell>
|
|
37
|
-
</van-cell-group>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
</van-radio-group>
|
|
41
|
-
</van-popup>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
</template>
|
|
45
|
-
<script>
|
|
46
|
-
import requiredIcon from '../../assets/icon/required.png'
|
|
47
|
-
import LamboVectorIcon from '../../icon/lambo-vector-icon.vue'
|
|
48
|
-
import LamboRequiredRedStar from '../../icon/lambo-required-red-star.vue'
|
|
49
|
-
|
|
50
|
-
export default {
|
|
51
|
-
name: 'LamboEditSearchSingleSelect',
|
|
52
|
-
components: {LamboRequiredRedStar, LamboVectorIcon},
|
|
53
|
-
props: {
|
|
54
|
-
title: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: '',
|
|
57
|
-
},
|
|
58
|
-
placeholder: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: '请选择',
|
|
61
|
-
},
|
|
62
|
-
required: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: false,
|
|
65
|
-
},
|
|
66
|
-
icon: {
|
|
67
|
-
type: String,
|
|
68
|
-
default: 'arrow-right-big.png',
|
|
69
|
-
},
|
|
70
|
-
data: {
|
|
71
|
-
type: Array,
|
|
72
|
-
default: () => ([]),
|
|
73
|
-
},
|
|
74
|
-
defaultItem: {
|
|
75
|
-
type: Object,
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
data() {
|
|
79
|
-
return {
|
|
80
|
-
iconSrc: requiredIcon,
|
|
81
|
-
showBottom: false,
|
|
82
|
-
val: '',
|
|
83
|
-
valName: '',
|
|
84
|
-
selectItem: {
|
|
85
|
-
K: '',
|
|
86
|
-
V: '',
|
|
87
|
-
},
|
|
88
|
-
firstLoad: true,
|
|
89
|
-
searchField:'',
|
|
90
|
-
searchData:this.data
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
watch: {
|
|
94
|
-
defaultItem: {
|
|
95
|
-
handler: function (val, oldVal) {
|
|
96
|
-
console.log('lambo-select -- defaultItem -- val,oldVal,firstLoad:', {
|
|
97
|
-
val,
|
|
98
|
-
oldVal,
|
|
99
|
-
'firstLoad': this.firstLoad,
|
|
100
|
-
})
|
|
101
|
-
if (this.defaultItem && ((this.defaultItem.K && this.firstLoad === true) || !this.firstLoad) ) {
|
|
102
|
-
this.val = this.defaultItem.K || ''
|
|
103
|
-
this.valName = this.defaultItem.V || ''
|
|
104
|
-
this.$set(this.selectItem, 'K', this.defaultItem.K)
|
|
105
|
-
this.$set(this.selectItem, 'V', this.defaultItem.V)
|
|
106
|
-
this.firstLoad = false
|
|
107
|
-
this.$emit('on-ok', this.defaultItem)
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
deep: true,
|
|
111
|
-
immediate: true,
|
|
112
|
-
},
|
|
113
|
-
data:{
|
|
114
|
-
handler: function (val) {
|
|
115
|
-
this.searchData = val
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
methods: {
|
|
120
|
-
onOpen() {
|
|
121
|
-
console.log('this.data:', this.data)
|
|
122
|
-
this.showBottom = true
|
|
123
|
-
},
|
|
124
|
-
cancel() {
|
|
125
|
-
this.showBottom = false
|
|
126
|
-
},
|
|
127
|
-
onConfirm() {
|
|
128
|
-
if (this.selectItem && this.selectItem.K && this.selectItem.K !== '') {
|
|
129
|
-
this.val = this.selectItem.K
|
|
130
|
-
this.valName = this.selectItem.V
|
|
131
|
-
this.$emit('on-ok', this.selectItem)
|
|
132
|
-
} else {
|
|
133
|
-
console.log('lambo-select -- 用户取消选择或未选择,清空值')
|
|
134
|
-
this.val = ''
|
|
135
|
-
this.valName = ''
|
|
136
|
-
this.$emit('on-ok', {K: '', V: ''})
|
|
137
|
-
}
|
|
138
|
-
this.showBottom = false
|
|
139
|
-
},
|
|
140
|
-
radioClick(data) {
|
|
141
|
-
if (this.selectItem.K === data.K) {
|
|
142
|
-
this.selectItem.K = ''
|
|
143
|
-
this.selectItem.V = ''
|
|
144
|
-
} else {
|
|
145
|
-
this.selectItem.K = data.K
|
|
146
|
-
this.selectItem.V = data.V
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
changeColor() {
|
|
150
|
-
let searchRows = document.querySelectorAll('.edit-box')
|
|
151
|
-
Array.from(searchRows).forEach(function (row) {
|
|
152
|
-
row.addEventListener('click', function () {
|
|
153
|
-
Array.from(searchRows).forEach(function (row) {
|
|
154
|
-
row.style.borderBottom = '1px solid var(--scl-white-2)'
|
|
155
|
-
})
|
|
156
|
-
row.style.borderBottom = '1px solid var(--scl-blue)'
|
|
157
|
-
})
|
|
158
|
-
})
|
|
159
|
-
},
|
|
160
|
-
search(){
|
|
161
|
-
let arr = []
|
|
162
|
-
let searchData = this.data
|
|
163
|
-
for (let i = 0; i < searchData.length; i++) {
|
|
164
|
-
if(searchData[i].V.indexOf(this.searchField)>=0){
|
|
165
|
-
arr.push(searchData[i]);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
this.searchData = arr
|
|
169
|
-
},
|
|
170
|
-
resetSearchField() {
|
|
171
|
-
this.searchField = ''
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
created() {
|
|
175
|
-
|
|
176
|
-
},
|
|
177
|
-
}
|
|
178
|
-
</script>
|
|
179
|
-
<style scoped>
|
|
180
|
-
@import "../../styles/index.less";
|
|
181
|
-
@import "./styles/css/index.css";
|
|
182
|
-
|
|
183
|
-
/deep/ .edit-left-box .van-cell {
|
|
184
|
-
padding: 0px 0px;
|
|
185
|
-
}
|
|
186
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="edit-box" @click="changeColor">
|
|
4
|
+
<div class="edit-left-box">
|
|
5
|
+
<div class="edit-left-top">
|
|
6
|
+
<div v-if="required" class="edit-red-icon">
|
|
7
|
+
<lambo-required-red-star :required="required"></lambo-required-red-star>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="edit-title">{{ title }}</div>
|
|
10
|
+
</div>
|
|
11
|
+
<van-field v-model="valName" :placeholder="placeholder" :readonly="true"
|
|
12
|
+
class="edit-lambo-input" clear-trigger="focus"></van-field>
|
|
13
|
+
</div>
|
|
14
|
+
<div v-if="icon" class="edit-right-icon">
|
|
15
|
+
<lambo-vector-icon :icon="icon" @click="onOpen"></lambo-vector-icon>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
<div>
|
|
19
|
+
<van-popup v-model="showBottom" :style="{ height: '33%' }" position="bottom">
|
|
20
|
+
<van-radio-group v-model="selectItem.K">
|
|
21
|
+
<div class="bottom-div">
|
|
22
|
+
<div class="edit-top-div">
|
|
23
|
+
<van-button class="edit-cancel-btn" size="normal" @click="cancel">取消</van-button>
|
|
24
|
+
<span class="edit-select-title">请选择</span>
|
|
25
|
+
<van-button class="edit-confirm-btn" size="normal" @click="onConfirm">确认</van-button>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="cell-group-div">
|
|
28
|
+
<van-cell-group>
|
|
29
|
+
<van-search v-model="searchField" placeholder="请输入筛选名称" clearable @input="search"/>
|
|
30
|
+
<van-cell v-for="(c, index) in searchData" :key="index" :title="`${c.V}`" clickable @click.stop="radioClick(c)">
|
|
31
|
+
<template #right-icon>
|
|
32
|
+
<div style="pointer-events: none;">
|
|
33
|
+
<van-radio :name="c.K" checked-color="#0070D2"/>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
</van-cell>
|
|
37
|
+
</van-cell-group>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</van-radio-group>
|
|
41
|
+
</van-popup>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</template>
|
|
45
|
+
<script>
|
|
46
|
+
import requiredIcon from '../../assets/icon/required.png'
|
|
47
|
+
import LamboVectorIcon from '../../icon/lambo-vector-icon.vue'
|
|
48
|
+
import LamboRequiredRedStar from '../../icon/lambo-required-red-star.vue'
|
|
49
|
+
|
|
50
|
+
export default {
|
|
51
|
+
name: 'LamboEditSearchSingleSelect',
|
|
52
|
+
components: {LamboRequiredRedStar, LamboVectorIcon},
|
|
53
|
+
props: {
|
|
54
|
+
title: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: '',
|
|
57
|
+
},
|
|
58
|
+
placeholder: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: '请选择',
|
|
61
|
+
},
|
|
62
|
+
required: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: false,
|
|
65
|
+
},
|
|
66
|
+
icon: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: 'arrow-right-big.png',
|
|
69
|
+
},
|
|
70
|
+
data: {
|
|
71
|
+
type: Array,
|
|
72
|
+
default: () => ([]),
|
|
73
|
+
},
|
|
74
|
+
defaultItem: {
|
|
75
|
+
type: Object,
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
data() {
|
|
79
|
+
return {
|
|
80
|
+
iconSrc: requiredIcon,
|
|
81
|
+
showBottom: false,
|
|
82
|
+
val: '',
|
|
83
|
+
valName: '',
|
|
84
|
+
selectItem: {
|
|
85
|
+
K: '',
|
|
86
|
+
V: '',
|
|
87
|
+
},
|
|
88
|
+
firstLoad: true,
|
|
89
|
+
searchField:'',
|
|
90
|
+
searchData:this.data
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
watch: {
|
|
94
|
+
defaultItem: {
|
|
95
|
+
handler: function (val, oldVal) {
|
|
96
|
+
console.log('lambo-select -- defaultItem -- val,oldVal,firstLoad:', {
|
|
97
|
+
val,
|
|
98
|
+
oldVal,
|
|
99
|
+
'firstLoad': this.firstLoad,
|
|
100
|
+
})
|
|
101
|
+
if (this.defaultItem && ((this.defaultItem.K && this.firstLoad === true) || !this.firstLoad) ) {
|
|
102
|
+
this.val = this.defaultItem.K || ''
|
|
103
|
+
this.valName = this.defaultItem.V || ''
|
|
104
|
+
this.$set(this.selectItem, 'K', this.defaultItem.K)
|
|
105
|
+
this.$set(this.selectItem, 'V', this.defaultItem.V)
|
|
106
|
+
this.firstLoad = false
|
|
107
|
+
this.$emit('on-ok', this.defaultItem)
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
deep: true,
|
|
111
|
+
immediate: true,
|
|
112
|
+
},
|
|
113
|
+
data:{
|
|
114
|
+
handler: function (val) {
|
|
115
|
+
this.searchData = val
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
methods: {
|
|
120
|
+
onOpen() {
|
|
121
|
+
console.log('this.data:', this.data)
|
|
122
|
+
this.showBottom = true
|
|
123
|
+
},
|
|
124
|
+
cancel() {
|
|
125
|
+
this.showBottom = false
|
|
126
|
+
},
|
|
127
|
+
onConfirm() {
|
|
128
|
+
if (this.selectItem && this.selectItem.K && this.selectItem.K !== '') {
|
|
129
|
+
this.val = this.selectItem.K
|
|
130
|
+
this.valName = this.selectItem.V
|
|
131
|
+
this.$emit('on-ok', this.selectItem)
|
|
132
|
+
} else {
|
|
133
|
+
console.log('lambo-select -- 用户取消选择或未选择,清空值')
|
|
134
|
+
this.val = ''
|
|
135
|
+
this.valName = ''
|
|
136
|
+
this.$emit('on-ok', {K: '', V: ''})
|
|
137
|
+
}
|
|
138
|
+
this.showBottom = false
|
|
139
|
+
},
|
|
140
|
+
radioClick(data) {
|
|
141
|
+
if (this.selectItem.K === data.K) {
|
|
142
|
+
this.selectItem.K = ''
|
|
143
|
+
this.selectItem.V = ''
|
|
144
|
+
} else {
|
|
145
|
+
this.selectItem.K = data.K
|
|
146
|
+
this.selectItem.V = data.V
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
changeColor() {
|
|
150
|
+
let searchRows = document.querySelectorAll('.edit-box')
|
|
151
|
+
Array.from(searchRows).forEach(function (row) {
|
|
152
|
+
row.addEventListener('click', function () {
|
|
153
|
+
Array.from(searchRows).forEach(function (row) {
|
|
154
|
+
row.style.borderBottom = '1px solid var(--scl-white-2)'
|
|
155
|
+
})
|
|
156
|
+
row.style.borderBottom = '1px solid var(--scl-blue)'
|
|
157
|
+
})
|
|
158
|
+
})
|
|
159
|
+
},
|
|
160
|
+
search(){
|
|
161
|
+
let arr = []
|
|
162
|
+
let searchData = this.data
|
|
163
|
+
for (let i = 0; i < searchData.length; i++) {
|
|
164
|
+
if(searchData[i].V.indexOf(this.searchField)>=0){
|
|
165
|
+
arr.push(searchData[i]);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
this.searchData = arr
|
|
169
|
+
},
|
|
170
|
+
resetSearchField() {
|
|
171
|
+
this.searchField = ''
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
created() {
|
|
175
|
+
|
|
176
|
+
},
|
|
177
|
+
}
|
|
178
|
+
</script>
|
|
179
|
+
<style scoped>
|
|
180
|
+
@import "../../styles/index.less";
|
|
181
|
+
@import "./styles/css/index.css";
|
|
182
|
+
|
|
183
|
+
/deep/ .edit-left-box .van-cell {
|
|
184
|
+
padding: 0px 0px;
|
|
185
|
+
}
|
|
186
|
+
</style>
|