n20-common-lib 1.2.4 → 1.2.7
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/package.json +1 -1
- package/src/assets/css/cl-form-item.scss +126 -3
- package/src/assets/css/cl-suspend.scss +1 -1
- package/src/assets/css/font-icon.scss +2 -1
- package/src/assets/css/normalize.scss +1 -1
- package/src/assets/iconFont/demo.css +539 -0
- package/src/assets/iconFont/demo_index.html +1614 -0
- package/src/assets/iconFont/iconfont.css +263 -0
- package/src/assets/iconFont/iconfont.js +1 -0
- package/src/assets/iconFont/iconfont.json +443 -0
- package/src/assets/iconFont/iconfont.ttf +0 -0
- package/src/assets/iconFont/iconfont.woff +0 -0
- package/src/assets/iconFont/iconfont.woff2 +0 -0
- package/src/components/Filters/index.vue +6 -0
- package/src/components/Layout/AsideNav/index.vue +96 -42
- package/src/components/Layout/HeaderWrap/index.vue +29 -14
- package/src/components/Table/index.vue +10 -1
- package/src/plugins/SetMenuTree/setmenutree.vue +5 -5
- package/style/css/normalize.scss +1 -1
- package/style/fonts/iconfont.022f36c4.woff2 +0 -0
- package/style/fonts/iconfont.4a1b2c93.woff +0 -0
- package/style/fonts/iconfont.a9febaa2.ttf +0 -0
- package/style/index.css +3 -2
- package/style/index.css.map +1 -1
|
@@ -89,6 +89,23 @@
|
|
|
89
89
|
<el-dropdown-item command="myDeal" divided>{{
|
|
90
90
|
'我的交易' | $l(i18n)
|
|
91
91
|
}}</el-dropdown-item>
|
|
92
|
+
<el-dropdown-item
|
|
93
|
+
v-if="customOpt.agency && customOpt.agency.show"
|
|
94
|
+
command="myAgency"
|
|
95
|
+
divided
|
|
96
|
+
>
|
|
97
|
+
<div class="flex-box flex-v">
|
|
98
|
+
<span>{{ '工作代理' | $l(i18n) }}</span>
|
|
99
|
+
<el-badge
|
|
100
|
+
v-if="customOpt.agency.underway"
|
|
101
|
+
class="m-l-auto font-size-small color-primary"
|
|
102
|
+
is-dot
|
|
103
|
+
type="primary"
|
|
104
|
+
style="line-height: initial"
|
|
105
|
+
>进行中</el-badge
|
|
106
|
+
>
|
|
107
|
+
</div>
|
|
108
|
+
</el-dropdown-item>
|
|
92
109
|
<el-divider class="m-t-s m-b-s" />
|
|
93
110
|
<div class="user-log-time p-l p-r p-b-s">
|
|
94
111
|
<i
|
|
@@ -171,6 +188,9 @@ const i18n = {
|
|
|
171
188
|
我的交易: {
|
|
172
189
|
en: 'My deal'
|
|
173
190
|
},
|
|
191
|
+
工作代理: {
|
|
192
|
+
en: 'My agency'
|
|
193
|
+
},
|
|
174
194
|
登录时长: {
|
|
175
195
|
en: 'Login duration'
|
|
176
196
|
},
|
|
@@ -209,6 +229,12 @@ export default {
|
|
|
209
229
|
changePwd,
|
|
210
230
|
noticePop
|
|
211
231
|
},
|
|
232
|
+
inject: {
|
|
233
|
+
customOpt: {
|
|
234
|
+
type: Object,
|
|
235
|
+
default: () => ({})
|
|
236
|
+
}
|
|
237
|
+
},
|
|
212
238
|
data() {
|
|
213
239
|
return {
|
|
214
240
|
show: false,
|
|
@@ -271,18 +297,15 @@ export default {
|
|
|
271
297
|
case 'dowApp':
|
|
272
298
|
this.dowApp()
|
|
273
299
|
break
|
|
274
|
-
case 'setStyle':
|
|
275
|
-
this.setStyle()
|
|
276
|
-
break
|
|
277
300
|
case 'changePassword':
|
|
278
301
|
this.changePassword()
|
|
279
302
|
break
|
|
280
|
-
case 'myDeal':
|
|
281
|
-
this.myDeal()
|
|
282
|
-
break
|
|
283
303
|
case 'logOut':
|
|
284
304
|
this.logOut()
|
|
285
305
|
break
|
|
306
|
+
default:
|
|
307
|
+
this.$emit('custom-event', { type: c })
|
|
308
|
+
break
|
|
286
309
|
}
|
|
287
310
|
},
|
|
288
311
|
setLang() {
|
|
@@ -302,18 +325,10 @@ export default {
|
|
|
302
325
|
aDom = undefined
|
|
303
326
|
})
|
|
304
327
|
},
|
|
305
|
-
setStyle() {
|
|
306
|
-
// alert('主题设置')
|
|
307
|
-
this.$emit('custom-event', { type: 'setStyle' })
|
|
308
|
-
},
|
|
309
328
|
changePassword() {
|
|
310
329
|
// alert('修改密码')
|
|
311
330
|
this.cpwdV = true
|
|
312
331
|
},
|
|
313
|
-
myDeal() {
|
|
314
|
-
// alert('我的交易')
|
|
315
|
-
this.$emit('custom-event', { type: 'myDeal' })
|
|
316
|
-
},
|
|
317
332
|
logOut() {
|
|
318
333
|
// alert('退出登录')
|
|
319
334
|
this.$confirm(
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
v-else
|
|
22
22
|
:key="'cl-table-' + i"
|
|
23
23
|
:formatter="item.formatter | colfF"
|
|
24
|
+
:filters="item.filters | colftF(filtersMap)"
|
|
24
25
|
v-bind="item"
|
|
25
26
|
/>
|
|
26
27
|
</template>
|
|
@@ -104,7 +105,7 @@ export default {
|
|
|
104
105
|
let mc = colf.match(/{(\S+)\|rate}/)
|
|
105
106
|
let key = mc && mc[1]
|
|
106
107
|
|
|
107
|
-
return (row) => numerify(row[key], '0.
|
|
108
|
+
return (row) => numerify(row[key], '0.000000')
|
|
108
109
|
} else {
|
|
109
110
|
let mc = colf.match(/{[^}]+}/g) || []
|
|
110
111
|
let mcv = mc.map((m) => m.replace(/{|}/g, ''))
|
|
@@ -117,6 +118,10 @@ export default {
|
|
|
117
118
|
return str
|
|
118
119
|
}
|
|
119
120
|
}
|
|
121
|
+
},
|
|
122
|
+
colftF(colft, fMap) {
|
|
123
|
+
if (typeof colft !== 'string') return colft
|
|
124
|
+
return fMap[colft]
|
|
120
125
|
}
|
|
121
126
|
},
|
|
122
127
|
props: {
|
|
@@ -133,6 +138,10 @@ export default {
|
|
|
133
138
|
require: true,
|
|
134
139
|
default: () => []
|
|
135
140
|
},
|
|
141
|
+
filtersMap: {
|
|
142
|
+
type: Object,
|
|
143
|
+
default: () => ({})
|
|
144
|
+
},
|
|
136
145
|
pageObj: {
|
|
137
146
|
type: Object,
|
|
138
147
|
default: undefined
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
{ required: true, message: '请输入名称', trigger: 'blur' }
|
|
80
80
|
]"
|
|
81
81
|
>
|
|
82
|
-
<el-input v-model="activeMenu.label" class="w
|
|
82
|
+
<el-input v-model="activeMenu.label" class="input-w" />
|
|
83
83
|
</el-form-item>
|
|
84
84
|
<el-form-item label="属性:">
|
|
85
|
-
<el-select v-model="activeMenu.resType" class="w
|
|
85
|
+
<el-select v-model="activeMenu.resType" class="input-w">
|
|
86
86
|
<el-option value="1" label="左边栏菜单" />
|
|
87
87
|
<el-option value="2" label="隐藏菜单" />
|
|
88
88
|
<el-option value="3" label="权限按钮" />
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
>
|
|
100
100
|
<el-input
|
|
101
101
|
v-model="activeMenu.appNo"
|
|
102
|
-
class="w
|
|
102
|
+
class="input-w"
|
|
103
103
|
@change="(val) => setAppNo(val, activeMenu)"
|
|
104
104
|
/>
|
|
105
105
|
</el-form-item>
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
{ required: true, message: '请输入访问路径', trigger: 'blur' }
|
|
113
113
|
]"
|
|
114
114
|
>
|
|
115
|
-
<el-input v-model="activeMenu.pageurl" class="w
|
|
115
|
+
<el-input v-model="activeMenu.pageurl" class="input-w" />
|
|
116
116
|
</el-form-item>
|
|
117
117
|
<el-form-item label="图标:">
|
|
118
118
|
<div class="flex-box">
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
</el-form-item>
|
|
152
152
|
</template>
|
|
153
153
|
<el-form-item v-if="activeMenu.treeno" label="权限编码:">
|
|
154
|
-
<div class="w
|
|
154
|
+
<div class="input-w flex-box">
|
|
155
155
|
<el-input class="flex-item" :value="activeMenu.treeno" readonly />
|
|
156
156
|
</div>
|
|
157
157
|
</el-form-item>
|
package/style/css/normalize.scss
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|