eoss-ui 0.6.25 → 0.6.27
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/button-group.js +3 -3
- package/lib/eoss-ui.common.js +283 -138
- package/lib/flow-list.js +13 -7
- package/lib/flow.js +8 -8
- package/lib/handler.js +73 -38
- package/lib/icons.js +1 -1
- package/lib/index.js +1 -1
- package/lib/login.js +18 -8
- package/lib/main.js +151 -57
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
- package/lib/theme-chalk/fonts/iconfont.woff +0 -0
- package/lib/theme-chalk/handler.css +1 -1
- package/lib/theme-chalk/icon.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/theme-chalk/simplicity.css +1 -1
- package/lib/theme-chalk/sizer.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/package.json +1 -1
- package/packages/.DS_Store +0 -0
- package/packages/button-group/src/main.vue +1 -1
- package/packages/flow/src/processReject.vue +1 -1
- package/packages/flow-list/src/main.vue +6 -1
- package/packages/handler/.DS_Store +0 -0
- package/packages/handler/src/main.vue +60 -46
- package/packages/icons/src/icon.json +1 -1
- package/packages/login/.DS_Store +0 -0
- package/packages/login/src/main.vue +16 -6
- package/packages/main/.DS_Store +0 -0
- package/packages/main/src/default/index.vue +16 -4
- package/packages/main/src/simplicity/handler.vue +55 -17
- package/packages/main/src/simplicity/index.vue +16 -3
- package/packages/theme-chalk/lib/base.css +1 -1
- package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/lib/handler.css +1 -1
- package/packages/theme-chalk/lib/icon.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/main.css +1 -1
- package/packages/theme-chalk/lib/menu.css +1 -1
- package/packages/theme-chalk/lib/simplicity.css +1 -1
- package/packages/theme-chalk/lib/sizer.css +1 -1
- package/packages/theme-chalk/lib/upload.css +1 -1
- package/packages/theme-chalk/src/.DS_Store +0 -0
- package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/src/handler.scss +10 -0
- package/packages/theme-chalk/src/icon.scss +8 -0
- package/packages/theme-chalk/src/simplicity.scss +18 -8
- package/src/index.js +1 -1
package/packages/.DS_Store
CHANGED
|
Binary file
|
|
@@ -244,7 +244,7 @@ export default {
|
|
|
244
244
|
if (useCaseCodes && (item.useCaseCode || keyword)) {
|
|
245
245
|
return useCaseCodes.indexOf(item.useCaseCode || keyword) > -1;
|
|
246
246
|
}
|
|
247
|
-
return true;
|
|
247
|
+
return item.hide !== true;
|
|
248
248
|
});
|
|
249
249
|
let newBtns = arry.map((item) => {
|
|
250
250
|
let badge;
|
|
@@ -112,6 +112,10 @@ export default {
|
|
|
112
112
|
type: String,
|
|
113
113
|
default: ''
|
|
114
114
|
},
|
|
115
|
+
params: {
|
|
116
|
+
type: Object,
|
|
117
|
+
default: () => {return {}}
|
|
118
|
+
},
|
|
115
119
|
toolbar: {
|
|
116
120
|
type: Array,
|
|
117
121
|
default: () => []
|
|
@@ -977,7 +981,8 @@ export default {
|
|
|
977
981
|
apprecordid: this.businessId,
|
|
978
982
|
pendingAttr: 0,
|
|
979
983
|
viewType: this.viewType,
|
|
980
|
-
showSuggest: this.showSuggest
|
|
984
|
+
showSuggest: this.showSuggest,
|
|
985
|
+
...this.params
|
|
981
986
|
}
|
|
982
987
|
};
|
|
983
988
|
util
|
|
Binary file
|
|
@@ -12,6 +12,16 @@
|
|
|
12
12
|
@click="handleClick"
|
|
13
13
|
@change="handleChange"
|
|
14
14
|
></es-handle-user>
|
|
15
|
+
<div
|
|
16
|
+
v-else-if="item.type == 'contact'"
|
|
17
|
+
class="es-handler-contact"
|
|
18
|
+
:key="item.type"
|
|
19
|
+
>
|
|
20
|
+
<div class="es-contact-label">{{ item.label }}</div>
|
|
21
|
+
<div class="es-contact-content">
|
|
22
|
+
<div v-for="ele in item.content" :key="ele">{{ ele }}</div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
15
25
|
<div v-else-if="item.type === 'date'" class="es-handler-date">
|
|
16
26
|
<div>
|
|
17
27
|
{{ time }}
|
|
@@ -115,6 +125,7 @@ export default {
|
|
|
115
125
|
}
|
|
116
126
|
},
|
|
117
127
|
props: {
|
|
128
|
+
contact: Object,
|
|
118
129
|
jobScrollbar: Boolean,
|
|
119
130
|
data: Array,
|
|
120
131
|
color: {
|
|
@@ -166,20 +177,66 @@ export default {
|
|
|
166
177
|
computed: {
|
|
167
178
|
lists() {
|
|
168
179
|
if (this.data === undefined) {
|
|
180
|
+
let list = [
|
|
181
|
+
{
|
|
182
|
+
type: 'user'
|
|
183
|
+
},
|
|
184
|
+
this.contact ? { ...this.contact, type: 'contact' } : {},
|
|
185
|
+
{
|
|
186
|
+
type: 'date'
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
type: 'system',
|
|
190
|
+
icon: 'es-icon-yingyong',
|
|
191
|
+
title: '切换子系统'
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
type: 'home',
|
|
195
|
+
icon: 'es-icon-zuomian',
|
|
196
|
+
title: '个人工作台'
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
type: 'index',
|
|
200
|
+
icon: 'es-icon-home',
|
|
201
|
+
title: '门户'
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
type: 'notice',
|
|
205
|
+
icon: 'es-icon-tongzhi',
|
|
206
|
+
title: '通知消息'
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
type: 'refresh',
|
|
210
|
+
icon: 'es-icon-shuaxin',
|
|
211
|
+
title: '刷新'
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
type: 'quit',
|
|
215
|
+
icon: 'es-icon-guanji',
|
|
216
|
+
title: '退出'
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
type: 'set',
|
|
220
|
+
icon: 'es-icon-xitongguanli',
|
|
221
|
+
title: '设置'
|
|
222
|
+
}
|
|
223
|
+
].filter((item) => {
|
|
224
|
+
return Object.keys(item).length;
|
|
225
|
+
});
|
|
169
226
|
if (Object.keys(this.hide).length) {
|
|
170
|
-
|
|
227
|
+
list.forEach((item) => {
|
|
171
228
|
item.hide = this.hide[item.type];
|
|
172
229
|
});
|
|
173
230
|
}
|
|
174
|
-
return
|
|
231
|
+
return list;
|
|
175
232
|
} else {
|
|
176
233
|
if (Object.keys(this.hide).length) {
|
|
177
234
|
this.data.forEach((item) => {
|
|
178
235
|
item.hide = this.hide[item.type];
|
|
179
236
|
});
|
|
180
237
|
}
|
|
181
|
-
return this.data;
|
|
182
238
|
}
|
|
239
|
+
return this.data;
|
|
183
240
|
},
|
|
184
241
|
system() {
|
|
185
242
|
return this.subSystem;
|
|
@@ -200,49 +257,6 @@ export default {
|
|
|
200
257
|
return {
|
|
201
258
|
date: '',
|
|
202
259
|
time: '',
|
|
203
|
-
list: [
|
|
204
|
-
{
|
|
205
|
-
type: 'user'
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
type: 'date'
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
type: 'system',
|
|
212
|
-
icon: 'es-icon-yingyong',
|
|
213
|
-
title: '切换子系统'
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
type: 'home',
|
|
217
|
-
icon: 'es-icon-zuomian',
|
|
218
|
-
title: '个人工作台'
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
type: 'index',
|
|
222
|
-
icon: 'es-icon-home',
|
|
223
|
-
title: '门户'
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
type: 'notice',
|
|
227
|
-
icon: 'es-icon-tongzhi',
|
|
228
|
-
title: '通知消息'
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
type: 'refresh',
|
|
232
|
-
icon: 'es-icon-shuaxin',
|
|
233
|
-
title: '刷新'
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
type: 'quit',
|
|
237
|
-
icon: 'es-icon-guanji',
|
|
238
|
-
title: '退出'
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
type: 'set',
|
|
242
|
-
icon: 'es-icon-xitongguanli',
|
|
243
|
-
title: '设置'
|
|
244
|
-
}
|
|
245
|
-
],
|
|
246
260
|
showPopper: false,
|
|
247
261
|
useCaseCodes: util.getStorage('useCaseCodes')
|
|
248
262
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
["zuomian","monitor","maximize","pointer-up","pointer-left","pointer-down","tri-down","retrograde","rainfall","caveat","print","alarm","table","duigouquan","bumen","mm","accelerate","quanping","password","qing","kaifa","daoru","piaochongicon","instructions","notice","wifi","tishicuo","minganciguanli","switch-off","switch-on","narrow","yidongduan","web","upload","message","go-back","close","shujutongji","folder","edit","enter","dian","wendu","shangwu","shenbao","magnifier","project-add","xiexian","caidan","tupian","yinyu","wenhao","template","daiban","set","zhengwen","cuowu","chenggong","indent","increase","ziliaoku","tuichu","quit","leaf","refresh","statistic","gengduo","lvyou","mail","user","zhishi","weizhi","jinggao","zuzhijigou","xue","fenxiang","jinrong","shanchu","jianhao","jiahao","yinzhang","renyuanqiehuan","gouxuanzhong1","circle","fuxuankuang1","fangkuang","application","wenjianjia","jiaren","xiugai","duanxinguanli","workbench","rizhi","gongwen","qingshi","shiwu","official","baogao","document","wodeyouxiang","ziliaojiaohuan","denglu","podium","fangkuai","xuewei","duoyun","pm","xiajia","huanbao","dunpai","shu","gongzuozheng","more","fenlei","delete","fengsu","bar","yuanqu","duomeiti","youjian","qiye","zuixinzixun","biaoge","omit","diaotou","jiantou-left","jiantou-right","jiantou-up","roles","jiantou-next","chijiuhuacunchu","zhuanhuan","cloudy","form","wuye","tri-up","pointer-right","bianji","tri-right","tri-left","daimaguanli","jiankong","kaifazhong","fujian","bingtu","zhuzhuangtu","lose","rmb","move","xiazai","yiban","laoshi","clear","jinyong","yunxing","weihu","chakan","pifu","ren","gouwuche","loading2","yulan","ziliao","yidong","fenxiang11","kaoqin","change","shidu","portfolio","info","yanjing","laba","camera","xitongxiaoxi","xitongguanli","webduan","wagnz","group","shengqian","jiantou-prev","attention","look","guanzhu","daikuan","tubiao","duigou","star","dayin","xinzeng","reduce","goup","calendar","tree","yingyong","caution","zhuanfa","add","zongtiqixian","daochu","gongwu","ihouse","chilun","weixiu","chengguo","trophy","duiwu","qiehuanjiaose","door","shebei","fangjian","microscope","huaxue","shiyanshianquan","shiyan","qiyexinxi","yewuxinxi","lab","shiyanguanli","yuqing","big-screen","signal-search","database","star-mark","cng","professor","informatization","code","science","price","xunhuan","savings","administration","aid","biao","line","xietong","jingzheng","enterprise","datatable","toubiao","bingdu","keji2","qiyeku5","touzi5","zijinliu","zhishichanquan3","kejifuwu2","zhishichanquan2","zijinanquan","kejifuwu1","geju","yiqingfangkong","kejifuwu","anquanfangkong","shujufuwu","shujuceng","shujugongxiang","flows","setup","shujulian","caiwujianguan","caiwuliushui","mubiaogeju","juxing","fuwuqi","touzijigou","xiezilou","jianzhu","logo","touzhi","zijin","fintech","touzixiangmu","library","touziguanli","zhongda","ziyuan","shujutai","shujudongtai","bank","shujuzhongxin","zhongyaomubiao","touzishijian","caiwuguanli","mingzhong","touzishenpi","jingzhenggeju","property","keji","qiyeku","zhongyaojihui","touzilicai","zhishichanquan","touzi","tzz","menu","xiangmushu","pdf","jiazai","gongsi","rise","jbxx","zwxx","jypx","jcgl","ndkh","grjl","shgx","gou","shijian","fukuan","guoji","shoukuan","down","gongzuotai","gaigedongtai","xitongshezhi","relation","zuzhirenshi","kaohepingjia","caiwujiandu","sanzhongyida","mima","xianshi","zhanghao","bangongshi","checked","checke","help","kuoda","banli","xiaoxi","shouqicaidan","shouqicaidan-right","smile","tongzhi","guanji","shuaxin","guiji","tianjiawenjianjia","yunxiazai","del","touzifangan","zongheguanli","sanzhongyida_mian","gongwenguanli1","heguiguanli","jingyingfenxi","txl","diannao","renliziyuan","caiwuxitong","shiwuguanli","shouye","bangongyongpin","sidebar","zhidulashi","log","fawenguanli","huiyiguanli","zuzhishishi","gongwenqianshou","jinxiupeixun","gongwenbao","jiaohuan","daibanshixiang","richeng","tongxunlu","yongche","yanzheng","daibanxinxi","shuben","fanfu","guangbo","shuzhuangtu","bengqiye","tongguo","dengdai","cross","daichuli","zhenggai","shouli","shujuhecha","guanli","paper-file","wenjian","dakaiwenjian","yewu","jiance","jiheguanli","jinru","arrow-right","lingdao","rencai","prev","next","jianpan","qrcode","bohui","homepage","download","gantanhao","dingding","weixin","pad","ios","android","txt","doc","audioo","video","zip","shuru","duanxin","saoma","youxiang","word","excel","fileword","picture","ppt","ca","usb-key","wenjianjiadakai","yingyonglan","home","tiyanxinban","shiyongjiuban","zhuomian","scan","youbian","zuobian"]
|
|
1
|
+
["zuomian","monitor","maximize","pointer-up","pointer-left","pointer-down","tri-down","retrograde","rainfall","caveat","print","alarm","table","duigouquan","bumen","mm","accelerate","quanping","password","qing","kaifa","daoru","piaochongicon","instructions","notice","wifi","tishicuo","minganciguanli","switch-off","switch-on","narrow","yidongduan","web","upload","message","go-back","close","shujutongji","folder","edit","enter","dian","wendu","shangwu","shenbao","magnifier","project-add","xiexian","caidan","tupian","yinyu","wenhao","template","daiban","set","zhengwen","cuowu","chenggong","indent","increase","ziliaoku","tuichu","quit","leaf","refresh","statistic","gengduo","lvyou","mail","user","zhishi","weizhi","jinggao","zuzhijigou","xue","fenxiang","jinrong","shanchu","jianhao","jiahao","yinzhang","renyuanqiehuan","gouxuanzhong1","circle","fuxuankuang1","fangkuang","application","wenjianjia","jiaren","xiugai","duanxinguanli","workbench","rizhi","gongwen","qingshi","shiwu","official","baogao","document","wodeyouxiang","ziliaojiaohuan","denglu","podium","fangkuai","xuewei","duoyun","pm","xiajia","huanbao","dunpai","shu","gongzuozheng","more","fenlei","delete","fengsu","bar","yuanqu","duomeiti","youjian","qiye","zuixinzixun","biaoge","omit","diaotou","jiantou-left","jiantou-right","jiantou-up","roles","jiantou-next","chijiuhuacunchu","zhuanhuan","cloudy","form","wuye","tri-up","pointer-right","bianji","tri-right","tri-left","daimaguanli","jiankong","kaifazhong","fujian","bingtu","zhuzhuangtu","lose","rmb","move","xiazai","yiban","laoshi","clear","jinyong","yunxing","weihu","chakan","pifu","ren","gouwuche","loading2","yulan","ziliao","yidong","fenxiang11","kaoqin","change","shidu","portfolio","info","yanjing","laba","camera","xitongxiaoxi","xitongguanli","webduan","wagnz","group","shengqian","jiantou-prev","attention","look","guanzhu","daikuan","tubiao","duigou","star","dayin","xinzeng","reduce","goup","calendar","tree","yingyong","caution","zhuanfa","add","zongtiqixian","daochu","gongwu","ihouse","chilun","weixiu","chengguo","trophy","duiwu","qiehuanjiaose","door","shebei","fangjian","microscope","huaxue","shiyanshianquan","shiyan","qiyexinxi","yewuxinxi","lab","shiyanguanli","yuqing","big-screen","signal-search","database","star-mark","cng","professor","informatization","code","science","price","xunhuan","savings","administration","aid","biao","line","xietong","jingzheng","enterprise","datatable","toubiao","bingdu","keji2","qiyeku5","touzi5","zijinliu","zhishichanquan3","kejifuwu2","zhishichanquan2","zijinanquan","kejifuwu1","geju","yiqingfangkong","kejifuwu","anquanfangkong","shujufuwu","shujuceng","shujugongxiang","flows","setup","shujulian","caiwujianguan","caiwuliushui","mubiaogeju","juxing","fuwuqi","touzijigou","xiezilou","jianzhu","logo","touzhi","zijin","fintech","touzixiangmu","library","touziguanli","zhongda","ziyuan","shujutai","shujudongtai","bank","shujuzhongxin","zhongyaomubiao","touzishijian","caiwuguanli","mingzhong","touzishenpi","jingzhenggeju","property","keji","qiyeku","zhongyaojihui","touzilicai","zhishichanquan","touzi","tzz","menu","xiangmushu","pdf","jiazai","gongsi","rise","jbxx","zwxx","jypx","jcgl","ndkh","grjl","shgx","gou","shijian","fukuan","guoji","shoukuan","down","gongzuotai","gaigedongtai","xitongshezhi","relation","zuzhirenshi","kaohepingjia","caiwujiandu","sanzhongyida","mima","xianshi","zhanghao","bangongshi","checked","checke","help","kuoda","banli","xiaoxi","shouqicaidan","shouqicaidan-right","smile","tongzhi","guanji","shuaxin","guiji","tianjiawenjianjia","yunxiazai","del","touzifangan","zongheguanli","sanzhongyida_mian","gongwenguanli1","heguiguanli","jingyingfenxi","txl","diannao","renliziyuan","caiwuxitong","shiwuguanli","shouye","bangongyongpin","sidebar","zhidulashi","log","fawenguanli","huiyiguanli","zuzhishishi","gongwenqianshou","jinxiupeixun","gongwenbao","jiaohuan","daibanshixiang","richeng","tongxunlu","yongche","yanzheng","daibanxinxi","shuben","fanfu","guangbo","shuzhuangtu","bengqiye","tongguo","dengdai","cross","daichuli","zhenggai","shouli","shujuhecha","guanli","paper-file","wenjian","dakaiwenjian","yewu","jiance","jiheguanli","jinru","arrow-right","lingdao","rencai","prev","next","jianpan","qrcode","bohui","homepage","download","gantanhao","dingding","weixin","pad","ios","android","txt","doc","audioo","video","zip","shuru","duanxin","saoma","youxiang","word","excel","fileword","picture","ppt","ca","usb-key","wenjianjiadakai","yingyonglan","home","tiyanxinban","shiyongjiuban","zhuomian","scan","youbian","zuobian","saomadenglu","zhanghaodenglu"]
|
package/packages/login/.DS_Store
CHANGED
|
Binary file
|
|
@@ -772,9 +772,19 @@ export default {
|
|
|
772
772
|
const types = this.loginModel.split(',');
|
|
773
773
|
return types.length > 2
|
|
774
774
|
? {
|
|
775
|
-
0: {
|
|
775
|
+
0: {
|
|
776
|
+
type: '0',
|
|
777
|
+
icon: 'es-icon-shuru',
|
|
778
|
+
icon2: '',
|
|
779
|
+
name: '账号登录'
|
|
780
|
+
},
|
|
776
781
|
1: { type: '1', icon: 'es-icon-usb-key', name: '证书登录' },
|
|
777
|
-
3: {
|
|
782
|
+
3: {
|
|
783
|
+
type: '3',
|
|
784
|
+
icon: 'es-icon-saoma',
|
|
785
|
+
icon2: '',
|
|
786
|
+
name: '扫码登录'
|
|
787
|
+
},
|
|
778
788
|
6: { type: '6', icon: 'es-icon-duanxin', name: '短信登录' },
|
|
779
789
|
7: { type: '7', icon: 'es-icon-dingding', name: '钉钉扫码登录' },
|
|
780
790
|
9: { type: '9', icon: 'es-icon-weixin', name: '微信扫码登录' },
|
|
@@ -782,14 +792,14 @@ export default {
|
|
|
782
792
|
12: { type: '12', icon: 'es-icon-shuru', name: '账号登录' } //双因素
|
|
783
793
|
}
|
|
784
794
|
: {
|
|
785
|
-
0: { type: '0', icon: 'es-icon-
|
|
795
|
+
0: { type: '0', icon: 'es-icon-zhanghaodenglu', name: '账号登录' },
|
|
786
796
|
1: { type: '1', icon: 'es-icon-ca', name: '证书登录' },
|
|
787
|
-
3: { type: '3', icon: 'es-icon-
|
|
797
|
+
3: { type: '3', icon: 'es-icon-saomadenglu', name: '扫码登录' },
|
|
788
798
|
6: { type: '6', icon: 'es-icon-duanxin', name: '短信登录' },
|
|
789
799
|
7: { type: '7', icon: 'es-icon-dingding', name: '钉钉扫码登录' },
|
|
790
800
|
9: { type: '9', icon: 'es-icon-weixin', name: '微信扫码登录' },
|
|
791
801
|
11: { type: '11', icon: 'es-icon-wodeyouxiang', name: '邮箱登录' },
|
|
792
|
-
12: { type: '12', icon: 'es-icon-
|
|
802
|
+
12: { type: '12', icon: 'es-icon-zhanghaodenglu', name: '账号登录' } //双因素
|
|
793
803
|
};
|
|
794
804
|
},
|
|
795
805
|
icons() {
|
|
@@ -958,7 +968,7 @@ export default {
|
|
|
958
968
|
launchKey: 'day',
|
|
959
969
|
launchTime: 2000,
|
|
960
970
|
switchActive: this.switchsActive,
|
|
961
|
-
loginDownloadApp:
|
|
971
|
+
loginDownloadApp: this.loginDownloadApps
|
|
962
972
|
};
|
|
963
973
|
},
|
|
964
974
|
beforeCreate() {
|
package/packages/main/.DS_Store
CHANGED
|
Binary file
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
:userModel="userModel"
|
|
36
36
|
:hide="hide"
|
|
37
37
|
:subSystem="subsystem"
|
|
38
|
+
:contact="contact"
|
|
38
39
|
:online="online"
|
|
39
40
|
:application="application"
|
|
40
41
|
:storage="storage"
|
|
@@ -399,7 +400,8 @@ export default {
|
|
|
399
400
|
type: [String, Boolean],
|
|
400
401
|
default: true
|
|
401
402
|
},
|
|
402
|
-
newVersion: Boolean
|
|
403
|
+
newVersion: Boolean,
|
|
404
|
+
contacts: Object
|
|
403
405
|
},
|
|
404
406
|
computed: {
|
|
405
407
|
showHeader() {
|
|
@@ -640,7 +642,8 @@ export default {
|
|
|
640
642
|
hideSubMenu: false,
|
|
641
643
|
doorIndex: '',
|
|
642
644
|
topRightToolHide: '',
|
|
643
|
-
showSet: this.set
|
|
645
|
+
showSet: this.set,
|
|
646
|
+
contact: this.contacts
|
|
644
647
|
};
|
|
645
648
|
},
|
|
646
649
|
created() {
|
|
@@ -893,6 +896,14 @@ export default {
|
|
|
893
896
|
if (results[i].topRightToolHide) {
|
|
894
897
|
this.topRightToolHide = results[i].topRightToolHide;
|
|
895
898
|
}
|
|
899
|
+
if (results[i].contact) {
|
|
900
|
+
let contact = JSON.parse(results[i].contact);
|
|
901
|
+
let content = contact.content.split(',');
|
|
902
|
+
this.contact = {
|
|
903
|
+
...contact,
|
|
904
|
+
content
|
|
905
|
+
};
|
|
906
|
+
}
|
|
896
907
|
}
|
|
897
908
|
store.set(i, results[i]);
|
|
898
909
|
}
|
|
@@ -1360,8 +1371,9 @@ export default {
|
|
|
1360
1371
|
return true;
|
|
1361
1372
|
}
|
|
1362
1373
|
} else {
|
|
1363
|
-
|
|
1364
|
-
|
|
1374
|
+
let tips = this.menuTips[obj.id] || this.menuTips[obj.appCode];
|
|
1375
|
+
if (tips && Number(tips)) {
|
|
1376
|
+
this.$set(obj, 'tips', tips);
|
|
1365
1377
|
return true;
|
|
1366
1378
|
}
|
|
1367
1379
|
}
|
|
@@ -1,24 +1,46 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="es-simplicity-handler">
|
|
3
|
-
<div class="es-simplicity-handler-time">{{ time }}</div>
|
|
4
|
-
<div class="es-simplicity-handler-date">
|
|
5
|
-
{{ date }}
|
|
6
|
-
</div>
|
|
7
|
-
<div class="es-simplicity-online">
|
|
8
|
-
当前
|
|
9
|
-
<span
|
|
10
|
-
class="es-simplicity-online-num"
|
|
11
|
-
@click="isClick ? handleClick({ type: 'online' }) : ''"
|
|
12
|
-
:class="{ 'es-pointer': isClick }"
|
|
13
|
-
>
|
|
14
|
-
{{ online }}
|
|
15
|
-
</span>
|
|
16
|
-
人在线
|
|
17
|
-
</div>
|
|
18
3
|
<template v-for="item in lists">
|
|
4
|
+
<div
|
|
5
|
+
v-if="item.type == 'contact'"
|
|
6
|
+
class="es-simplicity-contact"
|
|
7
|
+
:key="item.type"
|
|
8
|
+
>
|
|
9
|
+
<div class="es-contact-label">{{ item.label }}</div>
|
|
10
|
+
<div class="es-contact-content">
|
|
11
|
+
<div v-for="ele in item.content" :key="ele">{{ ele }}</div>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
<div
|
|
15
|
+
class="es-simplicity-date-time"
|
|
16
|
+
v-else-if="item.type === 'dateTime'"
|
|
17
|
+
:key="item.type"
|
|
18
|
+
>
|
|
19
|
+
<div class="es-simplicity-handler-time">
|
|
20
|
+
{{ time }}
|
|
21
|
+
</div>
|
|
22
|
+
<div class="es-simplicity-handler-date">
|
|
23
|
+
{{ date }}
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<div
|
|
27
|
+
v-else-if="item.type === 'online'"
|
|
28
|
+
class="es-simplicity-online"
|
|
29
|
+
:key="item.type"
|
|
30
|
+
>
|
|
31
|
+
当前
|
|
32
|
+
<span
|
|
33
|
+
class="es-simplicity-online-num"
|
|
34
|
+
@click="isClick ? handleClick({ type: 'online' }) : ''"
|
|
35
|
+
:class="{ 'es-pointer': isClick }"
|
|
36
|
+
>
|
|
37
|
+
{{ online }}
|
|
38
|
+
</span>
|
|
39
|
+
人在线
|
|
40
|
+
</div>
|
|
19
41
|
<el-badge
|
|
20
42
|
class="es-simplicity-handler-item"
|
|
21
|
-
v-if="item.type === 'notice'"
|
|
43
|
+
v-else-if="item.type === 'notice'"
|
|
22
44
|
:key="item.type"
|
|
23
45
|
:value="noticeNum"
|
|
24
46
|
:max="99"
|
|
@@ -49,6 +71,11 @@ export default {
|
|
|
49
71
|
name: 'Handler',
|
|
50
72
|
components: {},
|
|
51
73
|
props: {
|
|
74
|
+
contact: Object,
|
|
75
|
+
dateTime: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: true
|
|
78
|
+
},
|
|
52
79
|
search: {
|
|
53
80
|
type: Object,
|
|
54
81
|
default() {
|
|
@@ -136,9 +163,20 @@ export default {
|
|
|
136
163
|
},
|
|
137
164
|
computed: {
|
|
138
165
|
lists() {
|
|
166
|
+
let df = [];
|
|
167
|
+
if (this.contact) {
|
|
168
|
+
df.push({ ...this.contact, type: 'contact' });
|
|
169
|
+
}
|
|
170
|
+
if (this.dateTime) {
|
|
171
|
+
df.push({ type: 'dateTime' });
|
|
172
|
+
}
|
|
173
|
+
if (this.online) {
|
|
174
|
+
df.push({ type: 'online' });
|
|
175
|
+
}
|
|
139
176
|
let data = this.data
|
|
140
|
-
? this.data
|
|
177
|
+
? [...df, ...this.data]
|
|
141
178
|
: [
|
|
179
|
+
...df,
|
|
142
180
|
this.search,
|
|
143
181
|
this.index,
|
|
144
182
|
this.home,
|
|
@@ -207,6 +207,7 @@
|
|
|
207
207
|
v-bind="handleConfig"
|
|
208
208
|
:data="handleData"
|
|
209
209
|
:hide="hide"
|
|
210
|
+
:contact="contact"
|
|
210
211
|
:online="userNums"
|
|
211
212
|
:notice-num="notice"
|
|
212
213
|
@click="handleClick"
|
|
@@ -521,7 +522,9 @@ export default {
|
|
|
521
522
|
}
|
|
522
523
|
},
|
|
523
524
|
//切换旧版样式
|
|
524
|
-
oldVersion: Boolean
|
|
525
|
+
oldVersion: Boolean,
|
|
526
|
+
//运维联系人
|
|
527
|
+
contacts: Object
|
|
525
528
|
},
|
|
526
529
|
data() {
|
|
527
530
|
return {
|
|
@@ -616,7 +619,9 @@ export default {
|
|
|
616
619
|
//单位名称
|
|
617
620
|
simpleUserInfo: {},
|
|
618
621
|
topRightToolHide: '',
|
|
619
|
-
showOld: this.oldVersion
|
|
622
|
+
showOld: this.oldVersion,
|
|
623
|
+
//运维联系人
|
|
624
|
+
contact: this.contacts
|
|
620
625
|
};
|
|
621
626
|
},
|
|
622
627
|
computed: {
|
|
@@ -871,6 +876,14 @@ export default {
|
|
|
871
876
|
if (results[i].topRightToolHide) {
|
|
872
877
|
this.topRightToolHide = results[i].topRightToolHide;
|
|
873
878
|
}
|
|
879
|
+
if (results[i].contact) {
|
|
880
|
+
let contact = JSON.parse(results[i].contact);
|
|
881
|
+
let content = contact.content.split(',');
|
|
882
|
+
this.contact = {
|
|
883
|
+
...contact,
|
|
884
|
+
content
|
|
885
|
+
};
|
|
886
|
+
}
|
|
874
887
|
}
|
|
875
888
|
if (i === 'userModel' && results[i]) {
|
|
876
889
|
if (results[i].userHeadUrl) {
|
|
@@ -1250,7 +1263,7 @@ export default {
|
|
|
1250
1263
|
this.menuTips[obj.appCode];
|
|
1251
1264
|
if (num && Number(num)) {
|
|
1252
1265
|
this.$set(obj, 'tips', Number(num));
|
|
1253
|
-
return
|
|
1266
|
+
return num;
|
|
1254
1267
|
}
|
|
1255
1268
|
}
|
|
1256
1269
|
}
|