gy-webcode2 1.0.2 → 1.0.4
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/components/breadcrumb.vue +3 -18
- package/css/modules/elementUI.scss +18 -5
- package/css/modules/tags.scss +47 -21
- package/extend/axios.js +11 -1
- package/package.json +1 -1
- package/updateLog.txt +1 -0
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
<div class="breadcrumb">
|
|
3
3
|
<div class="row1" v-show="$store.state.breadcrumbShow">
|
|
4
4
|
<div class="title ">
|
|
5
|
-
<span class="">{{
|
|
5
|
+
<span class="">{{$route.meta.headerMenuName}}</span>
|
|
6
6
|
<span class="iconBox">
|
|
7
7
|
<i class="el-icon-arrow-right"></i>
|
|
8
8
|
</span>
|
|
9
9
|
<span @click="menuClick" :class="{myHover:breadcrumb_list.length,s1:breadcrumb_list.length == 0}" >
|
|
10
|
-
{{$
|
|
10
|
+
{{$route.meta.name}}
|
|
11
11
|
</span>
|
|
12
12
|
<template v-for="item,index in breadcrumb_list">
|
|
13
13
|
<span class="iconBox">
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
{{breadcrumb_list[breadcrumb_list.length -1].name}}
|
|
33
33
|
</template>
|
|
34
34
|
<template v-else>
|
|
35
|
-
{{$
|
|
35
|
+
{{$route.meta.name}}
|
|
36
36
|
</template>
|
|
37
37
|
</span>
|
|
38
38
|
</div>
|
|
@@ -57,21 +57,6 @@ export default {
|
|
|
57
57
|
},
|
|
58
58
|
},
|
|
59
59
|
computed:{
|
|
60
|
-
activePath() {
|
|
61
|
-
return this.$store.state.menu.activePath
|
|
62
|
-
},
|
|
63
|
-
headerName() {
|
|
64
|
-
const list = this.$store.state.menu.data[0] || [];
|
|
65
|
-
let isFind = list.list.find((item2,index2) => {
|
|
66
|
-
if(index2 == this.activePath && item2.ismy == 1){
|
|
67
|
-
return true;
|
|
68
|
-
}
|
|
69
|
-
})
|
|
70
|
-
if(isFind){
|
|
71
|
-
return isFind.name
|
|
72
|
-
}
|
|
73
|
-
return ''
|
|
74
|
-
},
|
|
75
60
|
names(){
|
|
76
61
|
return this.name ? this.name.split(',') : []
|
|
77
62
|
},
|
|
@@ -304,18 +304,29 @@
|
|
|
304
304
|
// .el-input__inner{
|
|
305
305
|
// // border: 1px solid #aaaaaa;
|
|
306
306
|
// }
|
|
307
|
-
.el-
|
|
307
|
+
.el-input__inner{
|
|
308
308
|
border-right: none;
|
|
309
309
|
}
|
|
310
310
|
.el-input-group__append{
|
|
311
311
|
padding:0;
|
|
312
312
|
// background: #19bfa5;
|
|
313
|
-
|
|
313
|
+
@include themeColor('background-color','color');
|
|
314
|
+
color: #fff;
|
|
314
315
|
// @include themeColor('color','hover');
|
|
315
316
|
// color:#fff;
|
|
316
317
|
// border: none;
|
|
317
318
|
width:35px;
|
|
319
|
+
border-radius: 0 6px 6px 0;
|
|
318
320
|
text-align: center;
|
|
321
|
+
&:hover{
|
|
322
|
+
@include themeColor('background-color','hover');
|
|
323
|
+
}
|
|
324
|
+
&:active{
|
|
325
|
+
color: #fff !important;
|
|
326
|
+
@include themeColor('background-color','active');
|
|
327
|
+
// @include themeColor('background-color','hover',0.1);
|
|
328
|
+
// @include themeColor('color','active');
|
|
329
|
+
}
|
|
319
330
|
.el-button--default{
|
|
320
331
|
// padding: 0;
|
|
321
332
|
min-width: auto;
|
|
@@ -325,11 +336,13 @@
|
|
|
325
336
|
border-radius: 0;
|
|
326
337
|
// @include themeColor('color','color');
|
|
327
338
|
&:hover{
|
|
328
|
-
|
|
339
|
+
color: #fff !important;
|
|
340
|
+
// @include themeColor('color','hover');
|
|
329
341
|
}
|
|
330
342
|
&:active{
|
|
331
|
-
|
|
332
|
-
@include themeColor('color','
|
|
343
|
+
color: #fff !important;
|
|
344
|
+
// @include themeColor('background-color','hover',0.1);
|
|
345
|
+
// @include themeColor('color','active');
|
|
333
346
|
}
|
|
334
347
|
}
|
|
335
348
|
// border: 1px solid #aaaaaa{
|
package/css/modules/tags.scss
CHANGED
|
@@ -34,20 +34,25 @@
|
|
|
34
34
|
&.hong{
|
|
35
35
|
background: #ff4d50;
|
|
36
36
|
border-color: #ff4d50;
|
|
37
|
+
}
|
|
38
|
+
&.hong2{
|
|
39
|
+
background: #fff0f0;
|
|
40
|
+
border-color: #fff0f0;
|
|
41
|
+
color: #f5212d;
|
|
37
42
|
&.plain{
|
|
38
|
-
|
|
39
|
-
border-color: #ffa49f;
|
|
40
|
-
color: #f5212d;
|
|
43
|
+
border-color: #ffa19d;
|
|
41
44
|
}
|
|
42
45
|
}
|
|
46
|
+
|
|
47
|
+
|
|
43
48
|
&.lan{
|
|
44
49
|
background: #1890ff;
|
|
45
50
|
border-color: #1890ff;
|
|
46
51
|
color: #fff;
|
|
47
52
|
&.plain{
|
|
48
|
-
background: #
|
|
49
|
-
border-color: #
|
|
50
|
-
color: #
|
|
53
|
+
background: #fff;
|
|
54
|
+
border-color: #1890fe;
|
|
55
|
+
color: #1791ff;
|
|
51
56
|
}
|
|
52
57
|
}
|
|
53
58
|
&.lan2{
|
|
@@ -68,20 +73,31 @@
|
|
|
68
73
|
background: #353688;
|
|
69
74
|
border-color: #353688;
|
|
70
75
|
}
|
|
71
|
-
|
|
72
76
|
&.lan4{
|
|
77
|
+
background: #f1f1f9;
|
|
78
|
+
border-color: #f1f1f9;
|
|
79
|
+
color: #373686;
|
|
80
|
+
&.plain{
|
|
81
|
+
border-color: #a4a4ca;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.lan5{
|
|
73
86
|
background: #155bd5;
|
|
74
87
|
border-color: #155bd5;
|
|
75
88
|
}
|
|
89
|
+
&.lan6{
|
|
90
|
+
background: #edf3ff;
|
|
91
|
+
border-color: #edf3ff;
|
|
92
|
+
color: #125cd5;
|
|
93
|
+
&.plain{
|
|
94
|
+
border-color: #94b4ed;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
76
97
|
|
|
77
98
|
&.lv{
|
|
78
99
|
background: #4fc519;
|
|
79
100
|
border-color: #4fc519;
|
|
80
|
-
&.plain{
|
|
81
|
-
background: #f8ffed;
|
|
82
|
-
border-color: #b8eb8e;
|
|
83
|
-
color: #51c51a;
|
|
84
|
-
}
|
|
85
101
|
}
|
|
86
102
|
&.lv2{
|
|
87
103
|
border-color: #f8ffed;
|
|
@@ -95,10 +111,13 @@
|
|
|
95
111
|
&.huang{
|
|
96
112
|
background: #fbad15;
|
|
97
113
|
border-color: #fbad15;
|
|
114
|
+
}
|
|
115
|
+
&.huang2{
|
|
116
|
+
background: #fefbe8;
|
|
117
|
+
border-color: #fefbe8;
|
|
118
|
+
color: #ffa83f;
|
|
98
119
|
&.plain{
|
|
99
|
-
background: #fefbe8;
|
|
100
120
|
border-color: #ffe58e;
|
|
101
|
-
color: #ffa83f;
|
|
102
121
|
}
|
|
103
122
|
}
|
|
104
123
|
|
|
@@ -116,22 +135,29 @@
|
|
|
116
135
|
}
|
|
117
136
|
|
|
118
137
|
&.zi{
|
|
119
|
-
background: #
|
|
120
|
-
border-color: #
|
|
138
|
+
background: #893fd4;
|
|
139
|
+
border-color: #893fd4;
|
|
140
|
+
}
|
|
141
|
+
&.zi2{
|
|
142
|
+
background: #faeffd;
|
|
143
|
+
border-color: #faeffd;
|
|
144
|
+
color: #883ed3;
|
|
121
145
|
&.plain{
|
|
122
|
-
|
|
123
|
-
border-color: #c7a7ea;
|
|
124
|
-
color: #883ed3;
|
|
146
|
+
border-color: #c7a8ec;
|
|
125
147
|
}
|
|
126
148
|
}
|
|
127
149
|
|
|
128
150
|
&.fen{
|
|
129
151
|
background: #d42a8d;
|
|
130
152
|
border-color: #d42a8d;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&.fen2{
|
|
156
|
+
background: #ffeefa;
|
|
157
|
+
border-color: #ffeefa;
|
|
158
|
+
color: #d5298b;
|
|
131
159
|
&.plain{
|
|
132
|
-
background: #fff0fa;
|
|
133
160
|
border-color: #ea9ecd;
|
|
134
|
-
color: #d5298b;
|
|
135
161
|
}
|
|
136
162
|
}
|
|
137
163
|
|
package/extend/axios.js
CHANGED
|
@@ -154,7 +154,17 @@ http.interceptors.response.use(
|
|
|
154
154
|
return response.data;
|
|
155
155
|
},
|
|
156
156
|
function (error) {
|
|
157
|
-
|
|
157
|
+
if (error.response) {
|
|
158
|
+
return error.response.data;
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
}
|
|
162
|
+
console.log(error);
|
|
163
|
+
// 对响应错误做点什么
|
|
164
|
+
return Promise.reject({
|
|
165
|
+
status: 9999,
|
|
166
|
+
message: "服务器连接失败"
|
|
167
|
+
});
|
|
158
168
|
// 对响应错误做点什么
|
|
159
169
|
// return Promise.reject(error);
|
|
160
170
|
}
|
package/package.json
CHANGED
package/updateLog.txt
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
222
|