eoss-ui 0.4.23 → 0.4.25
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 +36 -35
- package/lib/enterprise.js +2 -2
- package/lib/eoss-ui.common.js +192 -152
- package/lib/error-page.js +2 -2
- package/lib/flow-group.js +35 -35
- package/lib/flow-list.js +185 -195
- package/lib/flow.js +80 -78
- 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 +60 -43
- package/lib/mainComp.js +41 -40
- package/lib/menu.js +4 -3
- 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 +35 -35
- 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/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- 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 +151 -151
- package/packages/flow/src/main.vue +9 -22
- 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 +16 -1
- package/packages/menu/src/main.vue +12 -8
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/menu.css +1 -1
- package/packages/theme-chalk/src/menu.scss +4 -0
- package/src/index.js +1 -1
|
@@ -1038,7 +1038,7 @@ export default {
|
|
|
1038
1038
|
saveInfo(type, btn) {
|
|
1039
1039
|
if (this.isFlow) {
|
|
1040
1040
|
if (!type) {
|
|
1041
|
-
if (btn.before) {
|
|
1041
|
+
if (btn && btn.before) {
|
|
1042
1042
|
btn
|
|
1043
1043
|
.before(
|
|
1044
1044
|
Object.prototype.hasOwnProperty.call(btn, 'code') ? btn.code : 1
|
|
@@ -1049,7 +1049,9 @@ export default {
|
|
|
1049
1049
|
.catch((e) => {});
|
|
1050
1050
|
} else if (this.beforeSubmit != undefined) {
|
|
1051
1051
|
this.beforeSubmit(
|
|
1052
|
-
Object.prototype.hasOwnProperty.call(btn, 'code')
|
|
1052
|
+
btn && Object.prototype.hasOwnProperty.call(btn, 'code')
|
|
1053
|
+
? btn.code
|
|
1054
|
+
: 1
|
|
1053
1055
|
)
|
|
1054
1056
|
.then((next) => {
|
|
1055
1057
|
this.$emit('save', this.businessIds);
|
|
@@ -1060,7 +1062,7 @@ export default {
|
|
|
1060
1062
|
}
|
|
1061
1063
|
}
|
|
1062
1064
|
} else {
|
|
1063
|
-
if (btn.before && !type) {
|
|
1065
|
+
if (btn && btn.before && !type) {
|
|
1064
1066
|
btn
|
|
1065
1067
|
.before(
|
|
1066
1068
|
Object.prototype.hasOwnProperty.call(btn, 'code') ? btn.code : 2
|
|
@@ -1073,7 +1075,9 @@ export default {
|
|
|
1073
1075
|
this.subFun(this.saveFlowInfo);
|
|
1074
1076
|
} else if (!type && this.beforeSubmit != undefined) {
|
|
1075
1077
|
this.beforeSubmit(
|
|
1076
|
-
Object.prototype.hasOwnProperty.call(btn, 'code')
|
|
1078
|
+
btn && Object.prototype.hasOwnProperty.call(btn, 'code')
|
|
1079
|
+
? btn.code
|
|
1080
|
+
: 2
|
|
1077
1081
|
)
|
|
1078
1082
|
.then((next) => {
|
|
1079
1083
|
this.saveFlowInfo();
|
|
@@ -1501,7 +1505,6 @@ export default {
|
|
|
1501
1505
|
showid: data.nextUserList[0].userId
|
|
1502
1506
|
});
|
|
1503
1507
|
}
|
|
1504
|
-
// this.userSelectionType = results.nodeExtAttr.userSelectionType;
|
|
1505
1508
|
this.isLimitedTimeHandling =
|
|
1506
1509
|
data.nodeExtAttr.isLimitedTimeHandling;
|
|
1507
1510
|
this.isCustomUser = data.nodeExtAttr.isCustomUser;
|
|
@@ -1568,13 +1571,6 @@ export default {
|
|
|
1568
1571
|
this.nextNode.nextNodeId = this.nodeInfos[0].nodeId;
|
|
1569
1572
|
}
|
|
1570
1573
|
}
|
|
1571
|
-
// else {
|
|
1572
|
-
// this.nextNodeList.map(item => {
|
|
1573
|
-
// if (item.nodeId === val) {
|
|
1574
|
-
// this.isMultiple(item.transRule.userSelectionType);
|
|
1575
|
-
// }
|
|
1576
|
-
// });
|
|
1577
|
-
// }
|
|
1578
1574
|
|
|
1579
1575
|
if (val === 9) {
|
|
1580
1576
|
this.isReject = true;
|
|
@@ -1705,9 +1701,6 @@ export default {
|
|
|
1705
1701
|
if (item.taskNodeList != null) {
|
|
1706
1702
|
this.nodeInfos = item.taskNodeList;
|
|
1707
1703
|
}
|
|
1708
|
-
// if (item.taskNodeList) {
|
|
1709
|
-
// this.nextNode.nextNodeId = item.taskNodeList[0].nodeId;
|
|
1710
|
-
// }
|
|
1711
1704
|
}
|
|
1712
1705
|
if (taskOperations.length == 1) {
|
|
1713
1706
|
this.nodeInfos = [];
|
|
@@ -1816,11 +1809,6 @@ export default {
|
|
|
1816
1809
|
this.moreList.push(item);
|
|
1817
1810
|
}
|
|
1818
1811
|
});
|
|
1819
|
-
// else if (
|
|
1820
|
-
// item.fun === 'toSendMsg()' ||
|
|
1821
|
-
// item.fun === 'toStartDraf()'
|
|
1822
|
-
// ) {
|
|
1823
|
-
// }
|
|
1824
1812
|
}
|
|
1825
1813
|
this.isCustomPreset = isCustomPreset;
|
|
1826
1814
|
this.isPreset = isPreset;
|
|
@@ -2123,8 +2111,7 @@ export default {
|
|
|
2123
2111
|
params.processDefinitionId = taskExamineInfo.processDefinitionId;
|
|
2124
2112
|
params.isSubFlow = taskExamineInfo.isSubFlow;
|
|
2125
2113
|
params.nodeId = taskExamineInfo.nodeId;
|
|
2126
|
-
return
|
|
2127
|
-
util
|
|
2114
|
+
return util
|
|
2128
2115
|
.ajax({ url: taskHandleHtml, method: 'post', data: params })
|
|
2129
2116
|
.then((res) => {
|
|
2130
2117
|
const { status, message } = res;
|
|
@@ -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
|
};
|
|
@@ -286,6 +286,7 @@ export default {
|
|
|
286
286
|
type: String,
|
|
287
287
|
default: ''
|
|
288
288
|
},
|
|
289
|
+
param: Object,
|
|
289
290
|
header: {
|
|
290
291
|
type: Boolean,
|
|
291
292
|
default: true
|
|
@@ -665,6 +666,20 @@ export default {
|
|
|
665
666
|
}
|
|
666
667
|
});
|
|
667
668
|
},
|
|
669
|
+
// 将chalk写入到页面中
|
|
670
|
+
handleColorToPage(globalThalk) {
|
|
671
|
+
const thalk = document.getElementById('chalk-style');
|
|
672
|
+
if (!thalk) {
|
|
673
|
+
let ele = document.createElement('style');
|
|
674
|
+
ele.setAttribute('id', 'chalk-style');
|
|
675
|
+
ele.innerText = globalThalk;
|
|
676
|
+
document.head.appendChild(ele);
|
|
677
|
+
}
|
|
678
|
+
// 如果设置过主题的话
|
|
679
|
+
else {
|
|
680
|
+
thalk.innerText = globalThalk;
|
|
681
|
+
}
|
|
682
|
+
},
|
|
668
683
|
renderMenu() {
|
|
669
684
|
if (this.data !== undefined && this.data.length) {
|
|
670
685
|
this.menus = JSON.parse(JSON.stringify(this.data));
|
|
@@ -903,7 +918,7 @@ export default {
|
|
|
903
918
|
//获取应用导航菜单
|
|
904
919
|
getMenu() {
|
|
905
920
|
util
|
|
906
|
-
.ajax({ url: this.action })
|
|
921
|
+
.ajax({ url: this.action, params: this.param ? this.param : {} })
|
|
907
922
|
.then((res) => {
|
|
908
923
|
if (res.rCode === 0) {
|
|
909
924
|
this.menus = JSON.parse(JSON.stringify(res.results));
|
|
@@ -70,7 +70,7 @@ export default {
|
|
|
70
70
|
} else {
|
|
71
71
|
this.$nextTick(() => {
|
|
72
72
|
let w = 0;
|
|
73
|
-
Array.from(this.$refs.menu.$el.children).forEach(item => {
|
|
73
|
+
Array.from(this.$refs.menu.$el.children).forEach((item) => {
|
|
74
74
|
w += item.offsetWidth;
|
|
75
75
|
});
|
|
76
76
|
const styles = window.getComputedStyle(this.$refs.menu.$el);
|
|
@@ -114,7 +114,7 @@ export default {
|
|
|
114
114
|
this.$refs.menu.close(this.menuId);
|
|
115
115
|
} else {
|
|
116
116
|
let openedMenus = item.rootMenu.openedMenus;
|
|
117
|
-
openedMenus.forEach(item => {
|
|
117
|
+
openedMenus.forEach((item) => {
|
|
118
118
|
if (keyPath.indexOf(item) == -1) {
|
|
119
119
|
this.$refs.menu.close(item);
|
|
120
120
|
}
|
|
@@ -288,17 +288,20 @@ export default {
|
|
|
288
288
|
},
|
|
289
289
|
render(h) {
|
|
290
290
|
let doms = [];
|
|
291
|
-
this.data.forEach(item => {
|
|
291
|
+
this.data.forEach((item) => {
|
|
292
292
|
if (item.children && item.children.length) {
|
|
293
293
|
doms = doms.concat(this.getSub(item, h, 'es-sub-menu'));
|
|
294
294
|
} else {
|
|
295
295
|
const title = [
|
|
296
296
|
h('i', {
|
|
297
|
-
class:
|
|
298
|
-
|
|
299
|
-
? item.icons
|
|
300
|
-
|
|
301
|
-
|
|
297
|
+
class: [
|
|
298
|
+
item.icons
|
|
299
|
+
? this.unicode(item.icons)
|
|
300
|
+
? item.icons
|
|
301
|
+
: 'es-icons iconfont'
|
|
302
|
+
: 'es-icon-application',
|
|
303
|
+
'es-menu-item-icon'
|
|
304
|
+
],
|
|
302
305
|
domProps:
|
|
303
306
|
item.icons === '' || this.unicode(item.icons)
|
|
304
307
|
? {}
|
|
@@ -343,6 +346,7 @@ export default {
|
|
|
343
346
|
h(
|
|
344
347
|
'el-menu-item',
|
|
345
348
|
{
|
|
349
|
+
class: [`es-menu-item-${this.mode}`],
|
|
346
350
|
props: {
|
|
347
351
|
paddingLeft: this.paddingLeft
|
|
348
352
|
},
|