imatrix-ui 2.7.78 → 2.7.80
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/lib/super-ui.css +1 -1
- package/lib/super-ui.umd.min.js +5 -5
- package/package.json +1 -1
- package/src/styles/index.scss +1 -18
- package/src/styles/theme/gray/card-style.scss +42 -0
- package/src/styles/theme/gray/font-style.scss +6 -0
- package/src/styles/theme/gray/index.scss +27 -7
- package/src/styles/theme/gray/input-style.scss +11 -0
- package/src/styles/theme/gray/tab-style.scss +81 -0
- package/src/utils/util.js +11 -0
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +20 -1
- package/src/views/dsc-component/tabs/tab-content.vue +30 -4
package/package.json
CHANGED
package/src/styles/index.scss
CHANGED
|
@@ -31,21 +31,4 @@ body .el-table th.gutter {
|
|
|
31
31
|
|
|
32
32
|
body .el-table colgroup.gutter {
|
|
33
33
|
display: table-cell !important;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
.card-title{
|
|
38
|
-
width:4px;
|
|
39
|
-
height:22px;
|
|
40
|
-
position: absolute;
|
|
41
|
-
left:0;
|
|
42
|
-
align-items:center;
|
|
43
|
-
text-align:center
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.card-title-bgc{
|
|
47
|
-
width:4px;
|
|
48
|
-
height:14px;
|
|
49
|
-
display:inline-block;
|
|
50
|
-
background-color:#3081f2
|
|
51
|
-
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.gray {
|
|
2
|
+
$titleColor: rgba(0, 0, 0, 0.85);
|
|
3
|
+
|
|
4
|
+
el-card box-card is-always-shadow .card-radius {
|
|
5
|
+
border-radius: 12px
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.form-card-header {
|
|
9
|
+
width: 3px;
|
|
10
|
+
height: 14px;
|
|
11
|
+
left: 0;
|
|
12
|
+
align-items: center;
|
|
13
|
+
text-align: center;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.form-card-header-bgc {
|
|
17
|
+
width: 3px;
|
|
18
|
+
height: 14px;
|
|
19
|
+
display: flex;
|
|
20
|
+
background-color: #3D4CF2
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.form-card-text {
|
|
24
|
+
padding-left: 8px;
|
|
25
|
+
font-size: 16px;
|
|
26
|
+
line-height: 24px;
|
|
27
|
+
font-weight: 500;
|
|
28
|
+
color: $titleColor;
|
|
29
|
+
display: table-cell;
|
|
30
|
+
position: relative;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.superForm {
|
|
34
|
+
.el-card {
|
|
35
|
+
border-radius: 12px;
|
|
36
|
+
box-shadow: 0 1px 4px 0 rgba(0, 13, 31, 0.10);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
@import './sidebar.scss';
|
|
2
2
|
@import './font-style.scss';
|
|
3
|
+
@import './card-style.scss';
|
|
4
|
+
@import './tab-style.scss';
|
|
5
|
+
@import './input-style.scss';
|
|
6
|
+
|
|
3
7
|
.gray {
|
|
4
8
|
font-family: microsoft yahei, Arial, Helvetica, sans-serif;
|
|
5
9
|
font-size: 14px;
|
|
@@ -73,11 +77,11 @@
|
|
|
73
77
|
.app-container {
|
|
74
78
|
// padding: 20px;
|
|
75
79
|
padding: 0px;
|
|
80
|
+
|
|
76
81
|
.box-card {
|
|
77
|
-
margin: 16px 24px
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
82
|
+
margin: 16px 24px;
|
|
83
|
+
|
|
84
|
+
.el-card__body {}
|
|
81
85
|
}
|
|
82
86
|
}
|
|
83
87
|
|
|
@@ -131,20 +135,36 @@
|
|
|
131
135
|
.el-tree-node.is-current>.el-tree-node__content {
|
|
132
136
|
background-color: #c2d6ea !important;
|
|
133
137
|
}
|
|
138
|
+
|
|
134
139
|
.menu-tab-container .el-tabs__item {
|
|
135
140
|
height: 48px;
|
|
136
141
|
line-height: 48px;
|
|
137
142
|
}
|
|
138
143
|
|
|
139
144
|
//顶部标签字体样式
|
|
140
|
-
.menu-tab-container .el-tabs__item.is-active{
|
|
141
|
-
color
|
|
145
|
+
.menu-tab-container .el-tabs__item.is-active {
|
|
146
|
+
color: #3D4cf2;
|
|
142
147
|
}
|
|
148
|
+
|
|
143
149
|
//顶部标签样式
|
|
144
|
-
.menu-tab-container .el-tabs__active-bar{
|
|
150
|
+
.menu-tab-container .el-tabs__active-bar {
|
|
145
151
|
background-color: #3D4cf2;
|
|
146
152
|
}
|
|
153
|
+
|
|
147
154
|
.el-pagination {
|
|
148
155
|
text-align: right;
|
|
149
156
|
}
|
|
157
|
+
|
|
158
|
+
.el-table td {
|
|
159
|
+
padding: 14px 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.el-table td,
|
|
163
|
+
.el-table th {
|
|
164
|
+
height: 48px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.el-table th {
|
|
168
|
+
padding: 0;
|
|
169
|
+
}
|
|
150
170
|
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
.gray {
|
|
2
|
+
|
|
3
|
+
.superForm,.chartTabPage {
|
|
4
|
+
|
|
5
|
+
.el-tabs {
|
|
6
|
+
background-color: #FFFFFF;
|
|
7
|
+
// margin-top: 16px;
|
|
8
|
+
// margin-left: 24px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.el-tabs__active-bar {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.el-tabs__header {
|
|
16
|
+
margin: 0 0 6px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.el-tabs__header.is-top {
|
|
20
|
+
border-bottom: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.el-tabs--top .el-tabs__item.is-top {
|
|
24
|
+
padding: 0px 20px 0px 20px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.el-tabs__nav {
|
|
28
|
+
background-color: #F7F7F8;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.el-tabs__item {
|
|
32
|
+
height: 32px;
|
|
33
|
+
line-height: 32px;
|
|
34
|
+
margin: 4px;
|
|
35
|
+
color: rgba(0, 13, 31, 0.85)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.el-tabs__nav-wrap::after {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
.el-tabs__item.is-active {
|
|
44
|
+
background-color: #FFFFFF;
|
|
45
|
+
color: #3D4CF2;
|
|
46
|
+
font-weight: 500;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.el-form--label-right {
|
|
50
|
+
border-radius: 28px 8px 0 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.el-tabs__content {
|
|
54
|
+
background-color: #FFFFFF;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.el-tabs--border-card>.el-tabs__content {
|
|
58
|
+
padding: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.el-tabs--border-card {
|
|
62
|
+
background-color: #F7F7F8;
|
|
63
|
+
border-radius: 8px 8px 0 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.el-tabs--border-card>.el-tabs__header {
|
|
67
|
+
background-color: #F7F7F8;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover {
|
|
71
|
+
color: #3D4CF2;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active {
|
|
75
|
+
color: #3D4CF2;
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
}
|
package/src/utils/util.js
CHANGED
|
@@ -539,3 +539,14 @@ export function getPropNameWhenJoinTable(prop, isJoinTable, tableName) {
|
|
|
539
539
|
}
|
|
540
540
|
return prop
|
|
541
541
|
}
|
|
542
|
+
|
|
543
|
+
export function isImage(fileName) {
|
|
544
|
+
// const fileType = fileName.substring(fileName.lastIndexOf('.'), fileName.length).toLowerCase()
|
|
545
|
+
// const imageTypes = ['.jpg', '.JPG', '.png', '.bmp', '.BMP', '.jpeg', '.gif', '.psd', '.tif', '.tga', '.svg', '.eps']
|
|
546
|
+
// const index = imageTypes.indexOf(fileType)
|
|
547
|
+
if (/\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF|bmp|BMP|psd|PSD|tif|TIF)$/.test(fileName)) {
|
|
548
|
+
return true
|
|
549
|
+
} else {
|
|
550
|
+
return false
|
|
551
|
+
}
|
|
552
|
+
}
|
|
@@ -96,7 +96,11 @@ export default {
|
|
|
96
96
|
toPathObj.query = {}
|
|
97
97
|
toPathObj.query.src = routePath
|
|
98
98
|
toPathObj.isExternal = true
|
|
99
|
-
|
|
99
|
+
if (!this.isHasCustomSystem(routePath)) {
|
|
100
|
+
// 如果路径中没有拼系统编码,才需要把系统编码放到参数中
|
|
101
|
+
toPathObj.query.customSystem = Vue.prototype.customSystem
|
|
102
|
+
}
|
|
103
|
+
|
|
100
104
|
toPathObj.query._menuCode = menu.code
|
|
101
105
|
toPathObj.query._menuName = menu.name
|
|
102
106
|
} else {
|
|
@@ -111,6 +115,21 @@ export default {
|
|
|
111
115
|
}
|
|
112
116
|
return toPathObj
|
|
113
117
|
},
|
|
118
|
+
// 是否已存在customSystem参数
|
|
119
|
+
isHasCustomSystem(routePath) {
|
|
120
|
+
if (routePath && routePath.indexOf('?') > 0) {
|
|
121
|
+
const params = routePath.substring(routePath.indexOf('?') + 1)
|
|
122
|
+
const paramArr = params.split('&')
|
|
123
|
+
for (let i = 0; i < paramArr.length; i++) {
|
|
124
|
+
const item = paramArr[i]
|
|
125
|
+
const key = item.split('=')[0]
|
|
126
|
+
if (key === 'customSystem') {
|
|
127
|
+
return true
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return false
|
|
132
|
+
},
|
|
114
133
|
clickMenu(toPathObj) {
|
|
115
134
|
console.log('clickMenu----toPathObj=', toPathObj)
|
|
116
135
|
this.addTabs(toPathObj.query, this.$store.state.tabContent.openTab, toPathObj.tabPath)
|
|
@@ -51,11 +51,37 @@ export default {
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
getFullPath(tag) {
|
|
54
|
-
let path
|
|
55
|
-
if (tag.
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
let path
|
|
55
|
+
if (tag.routePath === '/dsc/iframe-page') {
|
|
56
|
+
// 表示是iframe页面
|
|
57
|
+
let src
|
|
58
|
+
let params = ''
|
|
59
|
+
if (tag.routeQuery) {
|
|
60
|
+
for (const key in tag.routeQuery) {
|
|
61
|
+
if (key === 'src') {
|
|
62
|
+
src = tag.routeQuery[key]
|
|
63
|
+
} else {
|
|
64
|
+
params += key + '=' + tag.routeQuery[key] + '&'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
58
67
|
}
|
|
68
|
+
if (src) {
|
|
69
|
+
path = src
|
|
70
|
+
}
|
|
71
|
+
if (params) {
|
|
72
|
+
path += '?' + params
|
|
73
|
+
}
|
|
74
|
+
} else {
|
|
75
|
+
// 表示页面跳转
|
|
76
|
+
path = '#' + tag.routePath + '?'
|
|
77
|
+
if (tag.routeQuery) {
|
|
78
|
+
for (const key in tag.routeQuery) {
|
|
79
|
+
path += key + '=' + tag.routeQuery[key] + '&'
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (path && path.length > 0 && path.lastIndexOf('&') === path.length - 1) {
|
|
84
|
+
path = path.substring(0, path.lastIndexOf('&'))
|
|
59
85
|
}
|
|
60
86
|
return path
|
|
61
87
|
}
|