eoss-ui 0.4.22 → 0.4.24
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 +35 -35
- package/lib/button.js +35 -35
- package/lib/card.js +2 -2
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +35 -35
- package/lib/clients.js +2 -2
- package/lib/data-table-form.js +36 -35
- package/lib/data-table.js +36 -35
- package/lib/date-picker.js +35 -35
- package/lib/dialog.js +41 -37
- package/lib/enterprise.js +2 -2
- package/lib/eoss-ui.common.js +227 -180
- package/lib/error-page.js +2 -2
- package/lib/flow-group.js +43 -37
- package/lib/flow-list.js +185 -195
- package/lib/flow.js +92 -93
- package/lib/form.js +47 -39
- package/lib/handle-user.js +35 -35
- package/lib/handler.js +35 -35
- package/lib/icon.js +18 -11
- package/lib/index.js +1 -1
- package/lib/input-number.js +35 -35
- package/lib/input.js +35 -35
- package/lib/label.js +2 -2
- package/lib/login.js +36 -35
- package/lib/main.js +59 -42
- package/lib/mainComp.js +41 -40
- package/lib/menu.js +2 -2
- package/lib/nav.js +35 -35
- package/lib/notify.js +35 -35
- package/lib/page.js +35 -35
- package/lib/pagination.js +2 -2
- package/lib/player.js +52 -52
- package/lib/qr-code.js +37 -37
- package/lib/radio-group.js +35 -35
- package/lib/select-ganged.js +35 -35
- package/lib/select.js +38 -36
- package/lib/selector-panel.js +39 -38
- package/lib/selector.js +37 -37
- package/lib/sizer.js +35 -35
- package/lib/steps.js +35 -35
- package/lib/switch.js +35 -35
- package/lib/table-form.js +49 -41
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +35 -35
- package/lib/tips.js +35 -35
- package/lib/toolbar.js +2 -2
- package/lib/tree-group.js +42 -42
- package/lib/tree.js +35 -35
- package/lib/upload.js +38 -38
- package/lib/wujie.js +35 -35
- package/lib/wxlogin.js +35 -35
- package/package.json +1 -1
- package/packages/dialog/src/main.vue +3 -0
- package/packages/flow/src/main.vue +12 -28
- package/packages/flow/src/startTaskRead.vue +19 -24
- package/packages/flow-group/src/main.vue +5 -0
- package/packages/form/src/main.vue +6 -2
- package/packages/form/src/table.vue +9 -1
- package/packages/icon/src/icon.json +1 -0
- package/packages/icon/src/main.vue +3 -6
- package/packages/main/src/main.vue +32 -18
- package/packages/select/src/main.vue +3 -1
- package/src/index.js +1 -1
|
@@ -147,10 +147,11 @@
|
|
|
147
147
|
:tableAfter="tableAfter"
|
|
148
148
|
v-bind="items"
|
|
149
149
|
:thead="thead"
|
|
150
|
-
:model.sync="models"
|
|
151
150
|
:readonly="readonly"
|
|
152
151
|
:contents="items.contents"
|
|
153
152
|
:widths="widths"
|
|
153
|
+
:zoom="zoom"
|
|
154
|
+
:model.sync="models"
|
|
154
155
|
@click="handleClick"
|
|
155
156
|
@change="handleChange"
|
|
156
157
|
@dataChange="handleDataChange"
|
|
@@ -1000,6 +1001,7 @@
|
|
|
1000
1001
|
:label-width="labelWidth"
|
|
1001
1002
|
:span="span"
|
|
1002
1003
|
:widths="widths"
|
|
1004
|
+
:zoom="zoom"
|
|
1003
1005
|
:model.sync="models"
|
|
1004
1006
|
@click="handleClick"
|
|
1005
1007
|
@change="handleChange"
|
|
@@ -1901,6 +1903,7 @@
|
|
|
1901
1903
|
:model.sync="models"
|
|
1902
1904
|
:readonly="readonly"
|
|
1903
1905
|
:contents="items.contents"
|
|
1906
|
+
:zoom="zoom"
|
|
1904
1907
|
:widths="widths"
|
|
1905
1908
|
@click="handleClick"
|
|
1906
1909
|
@change="handleChange"
|
|
@@ -2700,12 +2703,13 @@
|
|
|
2700
2703
|
:tableAfter="tableAfter"
|
|
2701
2704
|
v-bind="tableAttrs"
|
|
2702
2705
|
:thead="thead"
|
|
2703
|
-
:model.sync="models"
|
|
2704
2706
|
:contents="formContent"
|
|
2705
2707
|
:readonly="readonly"
|
|
2706
2708
|
:label-width="labelWidth"
|
|
2707
2709
|
:span="span"
|
|
2708
2710
|
:widths="widths"
|
|
2711
|
+
:zoom="zoom"
|
|
2712
|
+
:model.sync="models"
|
|
2709
2713
|
@click="handleClick"
|
|
2710
2714
|
@change="handleChange"
|
|
2711
2715
|
@dataChange="handleDataChange"
|
|
@@ -1022,7 +1022,8 @@ export default {
|
|
|
1022
1022
|
},
|
|
1023
1023
|
caption: String,
|
|
1024
1024
|
widths: Array,
|
|
1025
|
-
thead: Array
|
|
1025
|
+
thead: Array,
|
|
1026
|
+
zoom: false
|
|
1026
1027
|
},
|
|
1027
1028
|
computed: {
|
|
1028
1029
|
content() {
|
|
@@ -1103,6 +1104,13 @@ export default {
|
|
|
1103
1104
|
}
|
|
1104
1105
|
}
|
|
1105
1106
|
},
|
|
1107
|
+
watch: {
|
|
1108
|
+
zoom: {
|
|
1109
|
+
handler(val) {
|
|
1110
|
+
this.getWidth();
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
},
|
|
1106
1114
|
data() {
|
|
1107
1115
|
return {
|
|
1108
1116
|
col: this.span ? this.span : 2,
|
|
@@ -0,0 +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","home","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"]
|
|
@@ -17,11 +17,7 @@
|
|
|
17
17
|
<es-dialog title="选择图标" :visible.sync="visible">
|
|
18
18
|
<el-scrollbar class="es-scrollbar" ref="scrollbar">
|
|
19
19
|
<ul class="es-icon-list">
|
|
20
|
-
<li
|
|
21
|
-
v-for="name in $icon"
|
|
22
|
-
:key="name"
|
|
23
|
-
@click.stop="handleSelect(name)"
|
|
24
|
-
>
|
|
20
|
+
<li v-for="name in list" :key="name" @click.stop="handleSelect(name)">
|
|
25
21
|
<span>
|
|
26
22
|
<i :class="'es-icon-' + name"></i>
|
|
27
23
|
<span class="icon-name">{{ 'es-icon-' + name }}</span>
|
|
@@ -33,7 +29,7 @@
|
|
|
33
29
|
</div>
|
|
34
30
|
</template>
|
|
35
31
|
<script>
|
|
36
|
-
|
|
32
|
+
import icon from './icon.json';
|
|
37
33
|
export default {
|
|
38
34
|
name: 'EsIcon',
|
|
39
35
|
inheritAttrs: false,
|
|
@@ -62,6 +58,7 @@ export default {
|
|
|
62
58
|
},
|
|
63
59
|
data() {
|
|
64
60
|
return {
|
|
61
|
+
list: icon,
|
|
65
62
|
icon: null,
|
|
66
63
|
visible: false
|
|
67
64
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
class="es-main-header"
|
|
6
6
|
:style="{ backgroundImage: headerImg ? 'url(' + headerImg + ')' : '' }"
|
|
7
7
|
>
|
|
8
|
-
|
|
8
|
+
<AsyncComponent
|
|
9
9
|
v-if="themeJSON.logo.comp"
|
|
10
10
|
:style="!themeJSON.topNav.comp ? 'width:100%' : ''"
|
|
11
11
|
:key="themeJSON.logo.comp"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"
|
|
35
35
|
></es-menu>
|
|
36
36
|
</div>
|
|
37
|
-
|
|
37
|
+
<AsyncComponent
|
|
38
38
|
v-if="themeJSON.topNav.comp"
|
|
39
39
|
:style="!themeJSON.logo.comp ? 'width:100%' : ''"
|
|
40
40
|
:hide="hide"
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
@click="handleClick"
|
|
84
84
|
></es-handle-user>
|
|
85
85
|
</div>
|
|
86
|
-
|
|
86
|
+
<AsyncComponent
|
|
87
87
|
v-if="themeJSON.leftNav.comp"
|
|
88
88
|
:biserial="biserial"
|
|
89
89
|
:newTitle="showNavTitle ? title : false"
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
/></keep-alive>
|
|
178
178
|
</template>
|
|
179
179
|
</div>
|
|
180
|
-
|
|
180
|
+
<AsyncComponent
|
|
181
181
|
style="
|
|
182
182
|
position: absolute;
|
|
183
183
|
height: 60px;
|
|
@@ -368,7 +368,7 @@ export default {
|
|
|
368
368
|
type: Boolean,
|
|
369
369
|
default: true
|
|
370
370
|
},
|
|
371
|
-
isCustomMain:{
|
|
371
|
+
isCustomMain: {
|
|
372
372
|
type: Boolean,
|
|
373
373
|
default: false
|
|
374
374
|
}
|
|
@@ -617,7 +617,7 @@ export default {
|
|
|
617
617
|
this.customMenu = res;
|
|
618
618
|
this.setMenu(res);
|
|
619
619
|
},
|
|
620
|
-
|
|
620
|
+
//获取主题模板JSON
|
|
621
621
|
getMainDetail(id) {
|
|
622
622
|
let params = {
|
|
623
623
|
url: mainDetail,
|
|
@@ -664,6 +664,20 @@ export default {
|
|
|
664
664
|
this.$message.error(err.message);
|
|
665
665
|
}
|
|
666
666
|
});
|
|
667
|
+
},
|
|
668
|
+
// 将chalk写入到页面中
|
|
669
|
+
handleColorToPage(globalThalk) {
|
|
670
|
+
const thalk = document.getElementById('chalk-style');
|
|
671
|
+
if (!thalk) {
|
|
672
|
+
let ele = document.createElement('style');
|
|
673
|
+
ele.setAttribute('id', 'chalk-style');
|
|
674
|
+
ele.innerText = globalThalk;
|
|
675
|
+
document.head.appendChild(ele);
|
|
676
|
+
}
|
|
677
|
+
// 如果设置过主题的话
|
|
678
|
+
else {
|
|
679
|
+
thalk.innerText = globalThalk;
|
|
680
|
+
}
|
|
667
681
|
},
|
|
668
682
|
renderMenu() {
|
|
669
683
|
if (this.data !== undefined && this.data.length) {
|
|
@@ -796,10 +810,10 @@ export default {
|
|
|
796
810
|
let mainFrameLayout = results.mainFrameLayout;
|
|
797
811
|
if (results.userStyle.layout && this.isCustomMain) {
|
|
798
812
|
this.getMainDetail(results.userStyle.layout);
|
|
799
|
-
} else if(this.isCustomMain){
|
|
813
|
+
} else if (this.isCustomMain) {
|
|
800
814
|
this.getMainDetail(mainFrameLayout);
|
|
801
|
-
}else{
|
|
802
|
-
this.showDefault = true
|
|
815
|
+
} else {
|
|
816
|
+
this.showDefault = true;
|
|
803
817
|
}
|
|
804
818
|
},
|
|
805
819
|
//获取用户配置及信息
|
|
@@ -968,18 +982,18 @@ export default {
|
|
|
968
982
|
}
|
|
969
983
|
if (this.modal === 'subsystem' || this.modal === 'topside') {
|
|
970
984
|
if (this.modal === 'subsystem') {
|
|
971
|
-
|
|
985
|
+
if (this.menuType === 'custom') {
|
|
972
986
|
this.subsystem = this.customMenu;
|
|
973
987
|
} else {
|
|
974
988
|
this.subsystem = res;
|
|
975
989
|
}
|
|
976
990
|
} else if (this.modal === 'topside') {
|
|
977
|
-
|
|
991
|
+
if (this.menuType === 'custom') {
|
|
978
992
|
this.navs = this.customMenu;
|
|
979
993
|
this.topActive = res[0].id;
|
|
980
994
|
} else {
|
|
981
995
|
this.navs = res;
|
|
982
|
-
|
|
996
|
+
this.topActive = res[0].id;
|
|
983
997
|
}
|
|
984
998
|
}
|
|
985
999
|
if (this.application) {
|
|
@@ -998,12 +1012,12 @@ export default {
|
|
|
998
1012
|
this.active = this.getFirst(this.menu[0]);
|
|
999
1013
|
}
|
|
1000
1014
|
} else if (this.modal === 'topnav') {
|
|
1001
|
-
|
|
1015
|
+
if (this.menuType === 'custom') {
|
|
1002
1016
|
this.navs = this.customMenu;
|
|
1003
1017
|
this.topActive = this.getFirst(res[0]);
|
|
1004
1018
|
} else {
|
|
1005
|
-
|
|
1006
|
-
|
|
1019
|
+
this.navs = res;
|
|
1020
|
+
this.topActive = this.getFirst(res[0]);
|
|
1007
1021
|
}
|
|
1008
1022
|
} else {
|
|
1009
1023
|
this.menu = res;
|
|
@@ -1114,14 +1128,13 @@ export default {
|
|
|
1114
1128
|
this.modal === 'topSide'
|
|
1115
1129
|
) {
|
|
1116
1130
|
if (this.modal === 'subsystem' || this.modal === 'subSystem') {
|
|
1117
|
-
|
|
1131
|
+
if (this.menuType === 'custom') {
|
|
1118
1132
|
this.subsystem = this.customMenu;
|
|
1119
1133
|
this.sysId = active[0];
|
|
1120
1134
|
} else {
|
|
1121
1135
|
this.subsystem = res;
|
|
1122
|
-
|
|
1136
|
+
this.sysId = active[0];
|
|
1123
1137
|
}
|
|
1124
|
-
|
|
1125
1138
|
} else if (
|
|
1126
1139
|
this.modal === 'topnav' ||
|
|
1127
1140
|
this.modal === 'topNav' ||
|
|
@@ -1384,6 +1397,7 @@ export default {
|
|
|
1384
1397
|
},
|
|
1385
1398
|
//跳转页面
|
|
1386
1399
|
handleJump(page, type, res) {
|
|
1400
|
+
console.log(page);
|
|
1387
1401
|
if (util.win.location.hash === page) {
|
|
1388
1402
|
this.refresh = true;
|
|
1389
1403
|
return;
|
|
@@ -329,6 +329,8 @@ export default {
|
|
|
329
329
|
if (sysCode) {
|
|
330
330
|
store.set(sysCode, JSON.parse(JSON.stringify(this.options)));
|
|
331
331
|
}
|
|
332
|
+
} else {
|
|
333
|
+
this.$message.error(res.msg);
|
|
332
334
|
}
|
|
333
335
|
})
|
|
334
336
|
.catch((err) => {
|
|
@@ -474,7 +476,7 @@ export default {
|
|
|
474
476
|
return '';
|
|
475
477
|
},
|
|
476
478
|
reload() {
|
|
477
|
-
this.getData(arguments);
|
|
479
|
+
this.getData(...arguments);
|
|
478
480
|
},
|
|
479
481
|
handleExpand(data, node) {
|
|
480
482
|
if (this.onExpand) {
|