wl-design-mobile 0.8.19 → 0.8.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 +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 -120
- 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 -107
- 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 -413
- 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 +38 -37
- 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 +227 -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 +608 -565
- package/util/math.js +76 -76
- package/util/token.js +36 -36
package/title/lambo-title1.vue
CHANGED
|
@@ -1,151 +1,151 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="title1-box" :style="computedStyle">
|
|
3
|
-
<div class="title1-main">
|
|
4
|
-
<div class="title1-main-left">
|
|
5
|
-
<img class="title1-icon" :src="icon" />
|
|
6
|
-
<span class="title1-val">
|
|
7
|
-
{{ title }}
|
|
8
|
-
</span>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="top-btn-div">
|
|
11
|
-
<div class="opt-btn-div">
|
|
12
|
-
<slot name="opt"></slot>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
16
|
-
<div class="title1-sub" v-if="titleSub">
|
|
17
|
-
<span class="title1-sub-text">
|
|
18
|
-
{{titleSub}}
|
|
19
|
-
</span>
|
|
20
|
-
</div>
|
|
21
|
-
<div class="title1-border-line" v-if="border"></div>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
<script>
|
|
25
|
-
import editPageIcon from '../assets/img/title1-edit-page.png'
|
|
26
|
-
|
|
27
|
-
export default {
|
|
28
|
-
name: 'LamboTitle1',
|
|
29
|
-
components: {},
|
|
30
|
-
props: {
|
|
31
|
-
icon: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: editPageIcon,
|
|
34
|
-
},
|
|
35
|
-
title: {
|
|
36
|
-
type: String,
|
|
37
|
-
},
|
|
38
|
-
titleSub: {
|
|
39
|
-
type: String,
|
|
40
|
-
},
|
|
41
|
-
marginBottom: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: true,
|
|
44
|
-
},
|
|
45
|
-
border: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: true,
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
data() {
|
|
51
|
-
return {}
|
|
52
|
-
},
|
|
53
|
-
methods: {},
|
|
54
|
-
computed: {
|
|
55
|
-
computedStyle() {
|
|
56
|
-
return {
|
|
57
|
-
marginBottom: this.marginBottom===true?'8px':'0px'
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
</script>
|
|
63
|
-
<style scoped>
|
|
64
|
-
@import "../styles/index.less";
|
|
65
|
-
|
|
66
|
-
.title1-box {
|
|
67
|
-
display: flex;
|
|
68
|
-
flex-direction: column;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.title1-main {
|
|
72
|
-
min-height: 47px;
|
|
73
|
-
display: flex;
|
|
74
|
-
flex-direction: row;
|
|
75
|
-
flex-wrap: wrap;
|
|
76
|
-
justify-content: space-between;
|
|
77
|
-
align-items: center;
|
|
78
|
-
align-content: center;
|
|
79
|
-
background-color: var(--scl-white-1);
|
|
80
|
-
padding: 5px 14px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.title1-border-line {
|
|
84
|
-
height: 1px;
|
|
85
|
-
margin: 0 14px 0 14px;
|
|
86
|
-
background-color: var(--scl-white-2);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.title1-icon {
|
|
90
|
-
width: 23px;
|
|
91
|
-
height: 23px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.title1-main-left {
|
|
95
|
-
display: flex;
|
|
96
|
-
align-items: center;
|
|
97
|
-
align-content: center;
|
|
98
|
-
justify-content: center;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.title1-val {
|
|
102
|
-
padding: 0;
|
|
103
|
-
font-size: 16px;
|
|
104
|
-
border: none;
|
|
105
|
-
line-height: 23px;
|
|
106
|
-
margin-left: 8px;
|
|
107
|
-
font-weight: bold;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.top-btn-div {
|
|
111
|
-
display: flex;
|
|
112
|
-
flex-direction: row;
|
|
113
|
-
flex-wrap: wrap;
|
|
114
|
-
justify-content: flex-start;
|
|
115
|
-
align-items: center;
|
|
116
|
-
align-content: flex-start;
|
|
117
|
-
margin-left: auto;
|
|
118
|
-
background-color: var(--scl-white-1);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.opt-btn-div {
|
|
122
|
-
display: flex;
|
|
123
|
-
flex-direction: row;
|
|
124
|
-
flex-wrap: wrap;
|
|
125
|
-
justify-content: flex-start;
|
|
126
|
-
align-items: center;
|
|
127
|
-
align-content: flex-start;
|
|
128
|
-
flex: 1;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* 控制 .opt-btn-div 内的元素的右边距为 6px */
|
|
132
|
-
.opt-btn-div > * {
|
|
133
|
-
margin-right: 6px;
|
|
134
|
-
border-radius: 3px;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/* 控制 .opt-btn-div 内的最后一个元素的右边距为 0px */
|
|
138
|
-
.opt-btn-div > *:last-child {
|
|
139
|
-
margin-right: 0px;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.title1-sub{
|
|
143
|
-
background-color: var(--scl-white-1);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.title1-sub-text{
|
|
147
|
-
margin: 0 14px 5px 14px;
|
|
148
|
-
color:var(--scl-gray-3);
|
|
149
|
-
font-size: 14px;
|
|
150
|
-
}
|
|
151
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="title1-box" :style="computedStyle">
|
|
3
|
+
<div class="title1-main">
|
|
4
|
+
<div class="title1-main-left">
|
|
5
|
+
<img class="title1-icon" :src="icon" />
|
|
6
|
+
<span class="title1-val">
|
|
7
|
+
{{ title }}
|
|
8
|
+
</span>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="top-btn-div">
|
|
11
|
+
<div class="opt-btn-div">
|
|
12
|
+
<slot name="opt"></slot>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="title1-sub" v-if="titleSub">
|
|
17
|
+
<span class="title1-sub-text">
|
|
18
|
+
{{titleSub}}
|
|
19
|
+
</span>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="title1-border-line" v-if="border"></div>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
<script>
|
|
25
|
+
import editPageIcon from '../assets/img/title1-edit-page.png'
|
|
26
|
+
|
|
27
|
+
export default {
|
|
28
|
+
name: 'LamboTitle1',
|
|
29
|
+
components: {},
|
|
30
|
+
props: {
|
|
31
|
+
icon: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: editPageIcon,
|
|
34
|
+
},
|
|
35
|
+
title: {
|
|
36
|
+
type: String,
|
|
37
|
+
},
|
|
38
|
+
titleSub: {
|
|
39
|
+
type: String,
|
|
40
|
+
},
|
|
41
|
+
marginBottom: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: true,
|
|
44
|
+
},
|
|
45
|
+
border: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: true,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
data() {
|
|
51
|
+
return {}
|
|
52
|
+
},
|
|
53
|
+
methods: {},
|
|
54
|
+
computed: {
|
|
55
|
+
computedStyle() {
|
|
56
|
+
return {
|
|
57
|
+
marginBottom: this.marginBottom===true?'8px':'0px'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
</script>
|
|
63
|
+
<style scoped>
|
|
64
|
+
@import "../styles/index.less";
|
|
65
|
+
|
|
66
|
+
.title1-box {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.title1-main {
|
|
72
|
+
min-height: 47px;
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: row;
|
|
75
|
+
flex-wrap: wrap;
|
|
76
|
+
justify-content: space-between;
|
|
77
|
+
align-items: center;
|
|
78
|
+
align-content: center;
|
|
79
|
+
background-color: var(--scl-white-1);
|
|
80
|
+
padding: 5px 14px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.title1-border-line {
|
|
84
|
+
height: 1px;
|
|
85
|
+
margin: 0 14px 0 14px;
|
|
86
|
+
background-color: var(--scl-white-2);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.title1-icon {
|
|
90
|
+
width: 23px;
|
|
91
|
+
height: 23px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.title1-main-left {
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
align-content: center;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.title1-val {
|
|
102
|
+
padding: 0;
|
|
103
|
+
font-size: 16px;
|
|
104
|
+
border: none;
|
|
105
|
+
line-height: 23px;
|
|
106
|
+
margin-left: 8px;
|
|
107
|
+
font-weight: bold;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.top-btn-div {
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-direction: row;
|
|
113
|
+
flex-wrap: wrap;
|
|
114
|
+
justify-content: flex-start;
|
|
115
|
+
align-items: center;
|
|
116
|
+
align-content: flex-start;
|
|
117
|
+
margin-left: auto;
|
|
118
|
+
background-color: var(--scl-white-1);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.opt-btn-div {
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-direction: row;
|
|
124
|
+
flex-wrap: wrap;
|
|
125
|
+
justify-content: flex-start;
|
|
126
|
+
align-items: center;
|
|
127
|
+
align-content: flex-start;
|
|
128
|
+
flex: 1;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* 控制 .opt-btn-div 内的元素的右边距为 6px */
|
|
132
|
+
.opt-btn-div > * {
|
|
133
|
+
margin-right: 6px;
|
|
134
|
+
border-radius: 3px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* 控制 .opt-btn-div 内的最后一个元素的右边距为 0px */
|
|
138
|
+
.opt-btn-div > *:last-child {
|
|
139
|
+
margin-right: 0px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.title1-sub{
|
|
143
|
+
background-color: var(--scl-white-1);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.title1-sub-text{
|
|
147
|
+
margin: 0 14px 5px 14px;
|
|
148
|
+
color:var(--scl-gray-3);
|
|
149
|
+
font-size: 14px;
|
|
150
|
+
}
|
|
151
|
+
</style>
|
package/title/lambo-title2.vue
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="indicator-card-title">
|
|
3
|
-
<div class="tag-line"/>
|
|
4
|
-
{{ title }}
|
|
5
|
-
</div>
|
|
6
|
-
</template>
|
|
7
|
-
<script>
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
name: "LamboTitle2",
|
|
11
|
-
props: {
|
|
12
|
-
title: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: "",
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
</script>
|
|
19
|
-
<style scoped>
|
|
20
|
-
@import "../styles/index.less";
|
|
21
|
-
|
|
22
|
-
.indicator-card-title {
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
color: black;
|
|
26
|
-
font-weight: bold;
|
|
27
|
-
font-size: var(--ind-font-size-md);
|
|
28
|
-
margin-left: 10px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.indicator-card-title .tag-line {
|
|
32
|
-
width: 3px;
|
|
33
|
-
height: 14px;
|
|
34
|
-
background-color: var(--scl-blue);
|
|
35
|
-
margin-right: var(--ind-padding-xs);
|
|
36
|
-
}
|
|
37
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="indicator-card-title">
|
|
3
|
+
<div class="tag-line"/>
|
|
4
|
+
{{ title }}
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
<script>
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
name: "LamboTitle2",
|
|
11
|
+
props: {
|
|
12
|
+
title: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "",
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
</script>
|
|
19
|
+
<style scoped>
|
|
20
|
+
@import "../styles/index.less";
|
|
21
|
+
|
|
22
|
+
.indicator-card-title {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
color: black;
|
|
26
|
+
font-weight: bold;
|
|
27
|
+
font-size: var(--ind-font-size-md);
|
|
28
|
+
margin-left: 10px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.indicator-card-title .tag-line {
|
|
32
|
+
width: 3px;
|
|
33
|
+
height: 14px;
|
|
34
|
+
background-color: var(--scl-blue);
|
|
35
|
+
margin-right: var(--ind-padding-xs);
|
|
36
|
+
}
|
|
37
|
+
</style>
|
package/title/lambo-title3.vue
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="container">
|
|
3
|
-
<div class="nav">
|
|
4
|
-
<img class="img-0" :src="imgSrc"/>
|
|
5
|
-
</div>
|
|
6
|
-
<div class="column">
|
|
7
|
-
<section class="filter-txt">筛选名称</section>
|
|
8
|
-
<section class="title-txt">{{ title }}
|
|
9
|
-
<van-icon name="arrow-down"/>
|
|
10
|
-
</section>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
<script>
|
|
15
|
-
import leftImg from "../assets/img/title1-edit-page.png"
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* 列表页面使用一级标题
|
|
19
|
-
*/
|
|
20
|
-
export default {
|
|
21
|
-
name: 'LamboTitle3',
|
|
22
|
-
components: {},
|
|
23
|
-
props: {
|
|
24
|
-
title: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: "",
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
data() {
|
|
30
|
-
return {
|
|
31
|
-
imgSrc: leftImg,
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
methods: {},
|
|
35
|
-
created() {
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
</script>
|
|
40
|
-
<style scoped>
|
|
41
|
-
@import "../styles/index.less";
|
|
42
|
-
|
|
43
|
-
.container {
|
|
44
|
-
display: -webkit-flex;
|
|
45
|
-
display: flex;
|
|
46
|
-
background-color: var(--scl-white-1);
|
|
47
|
-
margin-bottom: 8px;
|
|
48
|
-
padding: 0 var(--ind-padding-sm-small);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.column {
|
|
52
|
-
-webkit-flex: 1;
|
|
53
|
-
flex: 1;
|
|
54
|
-
margin-left: 12px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.img-0 {
|
|
58
|
-
width: 32px;
|
|
59
|
-
height: 32px;
|
|
60
|
-
margin-top: 16px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.filter-txt {
|
|
64
|
-
margin-top: 10px;
|
|
65
|
-
color: var(--scl-gray-2);
|
|
66
|
-
font-family: Regular;
|
|
67
|
-
font-size: var(--ind-font-size-sm);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.title-txt {
|
|
71
|
-
margin-top: 4px;
|
|
72
|
-
color: var(--scl-gray-1);
|
|
73
|
-
font-family: Bold;
|
|
74
|
-
font-size: var(--ind-font-size-lg);
|
|
75
|
-
margin-bottom: 14px;
|
|
76
|
-
}
|
|
77
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="container">
|
|
3
|
+
<div class="nav">
|
|
4
|
+
<img class="img-0" :src="imgSrc"/>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="column">
|
|
7
|
+
<section class="filter-txt">筛选名称</section>
|
|
8
|
+
<section class="title-txt">{{ title }}
|
|
9
|
+
<van-icon name="arrow-down"/>
|
|
10
|
+
</section>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
<script>
|
|
15
|
+
import leftImg from "../assets/img/title1-edit-page.png"
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 列表页面使用一级标题
|
|
19
|
+
*/
|
|
20
|
+
export default {
|
|
21
|
+
name: 'LamboTitle3',
|
|
22
|
+
components: {},
|
|
23
|
+
props: {
|
|
24
|
+
title: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "",
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
data() {
|
|
30
|
+
return {
|
|
31
|
+
imgSrc: leftImg,
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
methods: {},
|
|
35
|
+
created() {
|
|
36
|
+
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
</script>
|
|
40
|
+
<style scoped>
|
|
41
|
+
@import "../styles/index.less";
|
|
42
|
+
|
|
43
|
+
.container {
|
|
44
|
+
display: -webkit-flex;
|
|
45
|
+
display: flex;
|
|
46
|
+
background-color: var(--scl-white-1);
|
|
47
|
+
margin-bottom: 8px;
|
|
48
|
+
padding: 0 var(--ind-padding-sm-small);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.column {
|
|
52
|
+
-webkit-flex: 1;
|
|
53
|
+
flex: 1;
|
|
54
|
+
margin-left: 12px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.img-0 {
|
|
58
|
+
width: 32px;
|
|
59
|
+
height: 32px;
|
|
60
|
+
margin-top: 16px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.filter-txt {
|
|
64
|
+
margin-top: 10px;
|
|
65
|
+
color: var(--scl-gray-2);
|
|
66
|
+
font-family: Regular;
|
|
67
|
+
font-size: var(--ind-font-size-sm);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.title-txt {
|
|
71
|
+
margin-top: 4px;
|
|
72
|
+
color: var(--scl-gray-1);
|
|
73
|
+
font-family: Bold;
|
|
74
|
+
font-size: var(--ind-font-size-lg);
|
|
75
|
+
margin-bottom: 14px;
|
|
76
|
+
}
|
|
77
|
+
</style>
|
package/util/assist.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
// 深拷贝
|
|
2
|
-
export function deepCopy(data) {
|
|
3
|
-
let i;
|
|
4
|
-
const t = typeOf(data);
|
|
5
|
-
let o;
|
|
6
|
-
|
|
7
|
-
if (t === 'array') {
|
|
8
|
-
o = [];
|
|
9
|
-
} else if (t === 'object') {
|
|
10
|
-
o = {};
|
|
11
|
-
} else {
|
|
12
|
-
return data;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
if (t === 'array') {
|
|
16
|
-
for (i = 0; i < data.length; i++) {
|
|
17
|
-
o.push(deepCopy(data[i]));
|
|
18
|
-
}
|
|
19
|
-
} else if (t === 'object') {
|
|
20
|
-
for (i in data) {
|
|
21
|
-
o[i] = deepCopy(data[i]);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return o;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// 判断对象类型
|
|
28
|
-
export function typeOf(obj) {
|
|
29
|
-
const toString = Object.prototype.toString;
|
|
30
|
-
const map = {
|
|
31
|
-
'[object Boolean]': 'boolean',
|
|
32
|
-
'[object Number]': 'number',
|
|
33
|
-
'[object String]': 'string',
|
|
34
|
-
'[object Function]': 'function',
|
|
35
|
-
'[object Array]': 'array',
|
|
36
|
-
'[object Date]': 'date',
|
|
37
|
-
'[object RegExp]': 'regExp',
|
|
38
|
-
'[object Undefined]': 'undefined',
|
|
39
|
-
'[object Null]': 'null',
|
|
40
|
-
'[object Object]': 'object'
|
|
41
|
-
};
|
|
42
|
-
return map[toString.call(obj)];
|
|
43
|
-
}
|
|
1
|
+
// 深拷贝
|
|
2
|
+
export function deepCopy(data) {
|
|
3
|
+
let i;
|
|
4
|
+
const t = typeOf(data);
|
|
5
|
+
let o;
|
|
6
|
+
|
|
7
|
+
if (t === 'array') {
|
|
8
|
+
o = [];
|
|
9
|
+
} else if (t === 'object') {
|
|
10
|
+
o = {};
|
|
11
|
+
} else {
|
|
12
|
+
return data;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if (t === 'array') {
|
|
16
|
+
for (i = 0; i < data.length; i++) {
|
|
17
|
+
o.push(deepCopy(data[i]));
|
|
18
|
+
}
|
|
19
|
+
} else if (t === 'object') {
|
|
20
|
+
for (i in data) {
|
|
21
|
+
o[i] = deepCopy(data[i]);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return o;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// 判断对象类型
|
|
28
|
+
export function typeOf(obj) {
|
|
29
|
+
const toString = Object.prototype.toString;
|
|
30
|
+
const map = {
|
|
31
|
+
'[object Boolean]': 'boolean',
|
|
32
|
+
'[object Number]': 'number',
|
|
33
|
+
'[object String]': 'string',
|
|
34
|
+
'[object Function]': 'function',
|
|
35
|
+
'[object Array]': 'array',
|
|
36
|
+
'[object Date]': 'date',
|
|
37
|
+
'[object RegExp]': 'regExp',
|
|
38
|
+
'[object Undefined]': 'undefined',
|
|
39
|
+
'[object Null]': 'null',
|
|
40
|
+
'[object Object]': 'object'
|
|
41
|
+
};
|
|
42
|
+
return map[toString.call(obj)];
|
|
43
|
+
}
|
package/util/axios/cacheconf.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 配置在该文件下的正则匹配都会被缓存
|
|
3
|
-
* @type {RegExp[]}
|
|
4
|
-
*/
|
|
5
|
-
const cacheRules = [
|
|
6
|
-
/manage\/menu\/list/,
|
|
7
|
-
/manage\/menu\/list/,
|
|
8
|
-
/dict\/getDictsMap/,
|
|
9
|
-
/dict\/getDicts/,
|
|
10
|
-
/dict\/getDictsForMulti/,
|
|
11
|
-
/upmsOrg\/getSubOrgCodes/,
|
|
12
|
-
/upmsOrg\/getSubDeptCodesByOrgCode/,
|
|
13
|
-
/upmsOrg\/getProvincesCodes/,
|
|
14
|
-
/upmsOrg\/getCitysCodes/,
|
|
15
|
-
/upmsOrg\/getIndustrysCodes/,
|
|
16
|
-
/manage\/permission\/check/
|
|
17
|
-
];
|
|
18
|
-
|
|
19
|
-
export default cacheRules
|
|
1
|
+
/**
|
|
2
|
+
* 配置在该文件下的正则匹配都会被缓存
|
|
3
|
+
* @type {RegExp[]}
|
|
4
|
+
*/
|
|
5
|
+
const cacheRules = [
|
|
6
|
+
/manage\/menu\/list/,
|
|
7
|
+
/manage\/menu\/list/,
|
|
8
|
+
/dict\/getDictsMap/,
|
|
9
|
+
/dict\/getDicts/,
|
|
10
|
+
/dict\/getDictsForMulti/,
|
|
11
|
+
/upmsOrg\/getSubOrgCodes/,
|
|
12
|
+
/upmsOrg\/getSubDeptCodesByOrgCode/,
|
|
13
|
+
/upmsOrg\/getProvincesCodes/,
|
|
14
|
+
/upmsOrg\/getCitysCodes/,
|
|
15
|
+
/upmsOrg\/getIndustrysCodes/,
|
|
16
|
+
/manage\/permission\/check/
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
export default cacheRules
|
package/util/axios/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import axios from 'axios'
|
|
2
|
-
import config from '../../config/config'
|
|
3
|
-
import interceptors from './interceptors'
|
|
4
|
-
|
|
5
|
-
const ajax = axios.create();
|
|
6
|
-
ajax.defaults.baseURL = config.serverContext
|
|
7
|
-
ajax.defaults.headers.common['Content-Type'] = 'application/json;charset=UTF-8'
|
|
8
|
-
ajax.interceptors.request.use(interceptors.requestInterceptors, interceptors.requestError);
|
|
9
|
-
ajax.interceptors.response.use(interceptors.responseInterceptors, interceptors.responseError);
|
|
10
|
-
|
|
11
|
-
export {ajax as axios}
|
|
1
|
+
import axios from 'axios'
|
|
2
|
+
import config from '../../config/config'
|
|
3
|
+
import interceptors from './interceptors'
|
|
4
|
+
|
|
5
|
+
const ajax = axios.create();
|
|
6
|
+
ajax.defaults.baseURL = config.serverContext
|
|
7
|
+
ajax.defaults.headers.common['Content-Type'] = 'application/json;charset=UTF-8'
|
|
8
|
+
ajax.interceptors.request.use(interceptors.requestInterceptors, interceptors.requestError);
|
|
9
|
+
ajax.interceptors.response.use(interceptors.responseInterceptors, interceptors.responseError);
|
|
10
|
+
|
|
11
|
+
export {ajax as axios}
|