eoss-ui 0.6.63 → 0.6.65
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 +41 -30
- package/lib/button.js +40 -29
- package/lib/calendar.js +2 -2
- package/lib/calogin.js +5279 -0
- package/lib/card.js +2 -2
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +45 -34
- package/lib/clients.js +2 -2
- package/lib/config/api.js +15 -15
- package/lib/data-table-form.js +43 -33
- package/lib/data-table.js +42 -32
- package/lib/date-picker.js +40 -29
- package/lib/dialog.js +44 -33
- package/lib/enable-drag.js +2 -2
- package/lib/enterprise.js +2 -2
- package/lib/eoss-ui.common.js +1691 -257
- package/lib/error-page.js +2 -2
- package/lib/flow-group.js +262 -233
- package/lib/flow-list.js +146 -103
- package/lib/flow.js +311 -76
- package/lib/form.js +59 -44
- package/lib/handle-user.js +44 -33
- package/lib/handler.js +47 -36
- package/lib/icon.js +40 -29
- package/lib/icons.js +4 -4
- package/lib/index.js +1 -1
- package/lib/input-number.js +40 -29
- package/lib/input.js +44 -33
- package/lib/label.js +2 -2
- package/lib/layout.js +4 -4
- package/lib/login.js +239 -95
- package/lib/main.js +79 -58
- package/lib/menu.js +4 -4
- package/lib/nav.js +42 -31
- package/lib/notify.js +17 -17
- package/lib/page.js +40 -29
- package/lib/pagination.js +40 -29
- package/lib/player.js +50 -39
- package/lib/qr-code.js +42 -31
- package/lib/radio-group.js +51 -40
- package/lib/retrial-auth.js +47 -36
- package/lib/select-ganged.js +185 -174
- package/lib/select.js +187 -176
- package/lib/selector-panel.js +45 -35
- package/lib/selector.js +42 -31
- package/lib/sizer.js +40 -29
- package/lib/steps.js +42 -31
- package/lib/switch.js +40 -29
- package/lib/table-form.js +49 -38
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +40 -29
- package/lib/theme-chalk/calogin.css +0 -0
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/simplicity.css +1 -1
- package/lib/tips.js +42 -31
- package/lib/toolbar.js +2 -2
- package/lib/tree-group.js +40 -29
- package/lib/tree.js +42 -31
- package/lib/upload.js +48 -37
- package/lib/utils/util.js +4 -1
- package/lib/wujie.js +47 -36
- package/lib/wxlogin.js +40 -29
- package/package.json +2 -1
- package/packages/calogin/index.js +5 -0
- package/packages/calogin/src/main.vue +131 -0
- package/packages/calogin/src/plugin.js +748 -0
- package/packages/flow/src/component/Circulate.vue +11 -1
- package/packages/flow/src/main.vue +103 -19
- package/packages/flow-list/src/main.vue +37 -7
- package/packages/form/src/main.vue +3 -5
- package/packages/login/src/main.vue +89 -43
- package/packages/main/src/simplicity/avatar.vue +1 -0
- package/packages/main/src/simplicity/index.vue +3 -1
- package/packages/theme-chalk/lib/calogin.css +0 -0
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/login.css +1 -1
- package/packages/theme-chalk/lib/main.css +1 -1
- package/packages/theme-chalk/lib/simplicity.css +1 -1
- package/packages/theme-chalk/src/calogin.scss +0 -0
- package/packages/theme-chalk/src/index.scss +1 -0
- package/packages/theme-chalk/src/login.scss +13 -1
- package/packages/theme-chalk/src/simplicity.scss +7 -3
- package/src/config/api.js +15 -15
- package/src/index.js +4 -1
- package/src/utils/util.js +3 -1
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
<!-- <span>{{ infoList.noticeInfo }}</span> -->
|
|
75
75
|
</el-form-item>
|
|
76
76
|
</el-form>
|
|
77
|
-
<div style="text-align: right">
|
|
77
|
+
<div v-if="showBtn" style="text-align: right">
|
|
78
78
|
<el-button type="primary" size="small" @click="subMit"> 确定 </el-button>
|
|
79
79
|
<el-button @click="quit" size="small"> 取消 </el-button>
|
|
80
80
|
</div>
|
|
@@ -106,6 +106,7 @@ export default {
|
|
|
106
106
|
oldOption: { type: String, default: '' },
|
|
107
107
|
disabled: { type: Boolean, default: false },
|
|
108
108
|
simpleTips: { type: Boolean, default: true },
|
|
109
|
+
showBtn: { type: Boolean, default: true },
|
|
109
110
|
multiple: { type: Boolean, default: true }
|
|
110
111
|
},
|
|
111
112
|
inheritAttrs: false,
|
|
@@ -143,6 +144,15 @@ export default {
|
|
|
143
144
|
loading: false
|
|
144
145
|
};
|
|
145
146
|
},
|
|
147
|
+
watch:{
|
|
148
|
+
oldOption:{
|
|
149
|
+
handler(val) {
|
|
150
|
+
this.opinion = val;
|
|
151
|
+
},
|
|
152
|
+
deep: true,
|
|
153
|
+
immediate: true
|
|
154
|
+
}
|
|
155
|
+
},
|
|
146
156
|
mounted() {
|
|
147
157
|
this.loading = true;
|
|
148
158
|
this.newMultiple = this.multiple;
|
|
@@ -5,8 +5,56 @@
|
|
|
5
5
|
:style="styles"
|
|
6
6
|
v-if="!shrinkAbled"
|
|
7
7
|
>
|
|
8
|
+
<div v-if="showCirculate">
|
|
9
|
+
<CommonOpinions
|
|
10
|
+
class="es-common-opinions"
|
|
11
|
+
v-show="!shrink"
|
|
12
|
+
ref="commonOpinions"
|
|
13
|
+
@change="(val) => (value = val)"
|
|
14
|
+
:opinion="value"
|
|
15
|
+
:rows="rows"
|
|
16
|
+
:required="isOpinionRequired == 1"
|
|
17
|
+
:isBanInputOpinion="isBanInputOpinion"
|
|
18
|
+
:nodeFixedOpinionSelectList="nodeFixedOpinionSelectList"
|
|
19
|
+
/>
|
|
20
|
+
<el-form ref="form" :model="circulateForm" label-width="120px">
|
|
21
|
+
<el-form-item prop="nextNodeId" label="下步节点">
|
|
22
|
+
<el-select
|
|
23
|
+
v-if="nextNodeCheckType == 'select'"
|
|
24
|
+
v-model="circulateForm.nextNodeId"
|
|
25
|
+
:placeholder="`请选择下步节点`"
|
|
26
|
+
>
|
|
27
|
+
<el-option label="传阅" value="111"></el-option>
|
|
28
|
+
</el-select>
|
|
29
|
+
<es-radio-group
|
|
30
|
+
v-else-if="nextNodeCheckType == 'radio'"
|
|
31
|
+
v-model="circulateForm.nextNodeId"
|
|
32
|
+
:data="[{ nodeId: '111', nodeName: '传阅' }]"
|
|
33
|
+
value-key="nodeId"
|
|
34
|
+
label-key="nodeName"
|
|
35
|
+
></es-radio-group>
|
|
36
|
+
</el-form-item>
|
|
37
|
+
</el-form>
|
|
38
|
+
<circulate
|
|
39
|
+
style="margin-top: 10px"
|
|
40
|
+
:businessId="businessId"
|
|
41
|
+
ref="circulate"
|
|
42
|
+
:showBtn="false"
|
|
43
|
+
:processDefinitionId="nodeInfo.nextNode"
|
|
44
|
+
:simpleTips="simpleTips"
|
|
45
|
+
:oldOption="value"
|
|
46
|
+
@cancel="closeProcess($event, 'circulateVisible')"
|
|
47
|
+
/>
|
|
48
|
+
<el-button
|
|
49
|
+
type="primary"
|
|
50
|
+
style="width: 100%"
|
|
51
|
+
@click="handleClickCirculate()"
|
|
52
|
+
>
|
|
53
|
+
提交
|
|
54
|
+
</el-button>
|
|
55
|
+
</div>
|
|
8
56
|
<StartTaskRead
|
|
9
|
-
v-if="typeCode == 'read'"
|
|
57
|
+
v-else-if="typeCode == 'read'"
|
|
10
58
|
:pending-id="pendingId"
|
|
11
59
|
:opinion="value"
|
|
12
60
|
type="create"
|
|
@@ -146,12 +194,14 @@
|
|
|
146
194
|
v-model="nodeInfo.nextNode"
|
|
147
195
|
style="width: calc(100% + 40px)"
|
|
148
196
|
:placeholder="`请选择流程`"
|
|
197
|
+
:key="optionsKey"
|
|
149
198
|
@change="handleChange"
|
|
150
199
|
>
|
|
151
200
|
<el-option
|
|
152
201
|
v-for="items in nodeInfo.option"
|
|
153
202
|
:key="items.id"
|
|
154
203
|
:label="items.name"
|
|
204
|
+
:disabled="items.disabled"
|
|
155
205
|
:value="items.processDefId"
|
|
156
206
|
></el-option>
|
|
157
207
|
</el-select>
|
|
@@ -929,7 +979,6 @@ import {
|
|
|
929
979
|
getNodeInfoForStart
|
|
930
980
|
} from 'eoss-ui/src/config/api';
|
|
931
981
|
import util from 'eoss-ui/src/utils/util';
|
|
932
|
-
import Circulate from './component/Circulate.vue';
|
|
933
982
|
export default {
|
|
934
983
|
name: 'EsFlow',
|
|
935
984
|
componentName: 'EsFlow',
|
|
@@ -960,7 +1009,7 @@ export default {
|
|
|
960
1009
|
flowTypeCode: { type: String, default: '' },
|
|
961
1010
|
defaultProcessKey: { type: String, default: '' },
|
|
962
1011
|
hideBtn: { type: Boolean, default: false },
|
|
963
|
-
|
|
1012
|
+
isCirculate: { type: Boolean, default: false },
|
|
964
1013
|
btnList: {
|
|
965
1014
|
type: Array,
|
|
966
1015
|
default: () => [
|
|
@@ -996,6 +1045,9 @@ export default {
|
|
|
996
1045
|
data() {
|
|
997
1046
|
return {
|
|
998
1047
|
styles: {},
|
|
1048
|
+
optionsKey: 0,
|
|
1049
|
+
showCirculate: false,
|
|
1050
|
+
circulateForm: { nextNodeId: '111' },
|
|
999
1051
|
userModel: {},
|
|
1000
1052
|
simpleTips: true,
|
|
1001
1053
|
showFreeStartFlow: false, //自由发起流程弹窗
|
|
@@ -1182,22 +1234,19 @@ export default {
|
|
|
1182
1234
|
mounted() {
|
|
1183
1235
|
this.businessIds = this.businessId;
|
|
1184
1236
|
this.nextNode.nextNodeId = this.nextNodeId;
|
|
1185
|
-
|
|
1186
|
-
this.getNodeType();
|
|
1187
|
-
!this.isFlow &&
|
|
1188
|
-
(this.newTypeCode = this.typeCode || this.$route.query.typecode);
|
|
1189
|
-
if (this.isFlow) {
|
|
1190
|
-
this.businessId && this.getProcess();
|
|
1191
|
-
} else if (this.newTypeCode == 'fenyue') {
|
|
1192
|
-
this.getTaskReadFlow();
|
|
1193
|
-
} else if (
|
|
1194
|
-
this.newTypeCode != 'reset' &&
|
|
1195
|
-
this.newTypeCode != 'continuation'
|
|
1196
|
-
) {
|
|
1197
|
-
this.getHedInfo();
|
|
1198
|
-
}
|
|
1237
|
+
this.getInfo();
|
|
1199
1238
|
},
|
|
1200
1239
|
watch: {
|
|
1240
|
+
isCirculate: {
|
|
1241
|
+
handler(val) {
|
|
1242
|
+
this.showCirculate = val;
|
|
1243
|
+
if (!val) {
|
|
1244
|
+
this.getInfo();
|
|
1245
|
+
}
|
|
1246
|
+
},
|
|
1247
|
+
deep: true,
|
|
1248
|
+
immediate: true
|
|
1249
|
+
},
|
|
1201
1250
|
width: {
|
|
1202
1251
|
immediate: true,
|
|
1203
1252
|
handler(val) {
|
|
@@ -1287,6 +1336,25 @@ export default {
|
|
|
1287
1336
|
}
|
|
1288
1337
|
},
|
|
1289
1338
|
methods: {
|
|
1339
|
+
getInfo() {
|
|
1340
|
+
if (this.typeCode == 'supervise' || this.typeCode == 'read') return;
|
|
1341
|
+
this.getNodeType();
|
|
1342
|
+
!this.isFlow &&
|
|
1343
|
+
(this.newTypeCode = this.typeCode || this.$route.query.typecode);
|
|
1344
|
+
if (this.isFlow) {
|
|
1345
|
+
this.businessId && this.getProcess();
|
|
1346
|
+
} else if (this.newTypeCode == 'fenyue') {
|
|
1347
|
+
this.getTaskReadFlow();
|
|
1348
|
+
} else if (
|
|
1349
|
+
this.newTypeCode != 'reset' &&
|
|
1350
|
+
this.newTypeCode != 'continuation'
|
|
1351
|
+
) {
|
|
1352
|
+
this.getHedInfo();
|
|
1353
|
+
}
|
|
1354
|
+
},
|
|
1355
|
+
handleClickCirculate() {
|
|
1356
|
+
this.$refs.circulate.subMit();
|
|
1357
|
+
},
|
|
1290
1358
|
getNodeInfoForStartFlow(processDefinitionId) {
|
|
1291
1359
|
let params = {
|
|
1292
1360
|
url: getNodeInfoForStart,
|
|
@@ -1297,6 +1365,18 @@ export default {
|
|
|
1297
1365
|
this.isBanInputOpinion = res.data.nodeExtAttr.isBanInputOpinion;
|
|
1298
1366
|
this.directCreateCircularReadWhenFlowStarted =
|
|
1299
1367
|
res.data.nodeExtAttr.directCreateCircularReadWhenFlowStarted == 1;
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
if (this.directCreateCircularReadWhenFlowStarted) {
|
|
1371
|
+
this.nodeInfo.option.map((item) => {
|
|
1372
|
+
item.disabled = item.processDefId != processDefinitionId;
|
|
1373
|
+
});
|
|
1374
|
+
} else {
|
|
1375
|
+
this.nodeInfo.option.map((item) => {
|
|
1376
|
+
item.disabled = false;
|
|
1377
|
+
});
|
|
1378
|
+
}
|
|
1379
|
+
this.optionsKey++;
|
|
1300
1380
|
this.isOpinionRequired = res.data.nodeExtAttr.isOpinionRequired == 1;
|
|
1301
1381
|
}
|
|
1302
1382
|
});
|
|
@@ -1565,7 +1645,7 @@ export default {
|
|
|
1565
1645
|
this.taskExamineInfo = taskExamine;
|
|
1566
1646
|
this.nodeName = this.nodename || taskExamine.nodeName || '分阅';
|
|
1567
1647
|
this.taskReadOpinionRequired = taskReadOpinionRequired;
|
|
1568
|
-
this.nextNode.notificationMsg = defaultNotificationMessage
|
|
1648
|
+
this.nextNode.notificationMsg = defaultNotificationMessage;
|
|
1569
1649
|
this.isCanReadTransferHandle = isCanReadTransferHandle;
|
|
1570
1650
|
this.isCanFenyue = isCanFenyue;
|
|
1571
1651
|
if (this.nodeName) {
|
|
@@ -2302,7 +2382,10 @@ export default {
|
|
|
2302
2382
|
this.presetEdit = data.nodeExtAttr.presetEdit;
|
|
2303
2383
|
this.countersignaturetypeCode = data.countersignaturetypeCode; //是否展示处理方式
|
|
2304
2384
|
this.handleMode = data.countersignaturetypeText;
|
|
2305
|
-
data.globalNodeType === 'endEvent'
|
|
2385
|
+
if (data.globalNodeType === 'endEvent') {
|
|
2386
|
+
this.isNextUser = data.globalNodeType != 'endEvent';
|
|
2387
|
+
data.globalNodeType === 'endEvent' ? (this.endFlow = true) : '';
|
|
2388
|
+
}
|
|
2306
2389
|
}
|
|
2307
2390
|
this.isCustomPreset &&
|
|
2308
2391
|
this.$refs.customPreset.getPresetFlowInfo(
|
|
@@ -2344,6 +2427,7 @@ export default {
|
|
|
2344
2427
|
this.isShowNode = false;
|
|
2345
2428
|
this.isMainSubProcess = false;
|
|
2346
2429
|
this.isNodeShowProcess = false;
|
|
2430
|
+
this.endFlow = false;
|
|
2347
2431
|
this.nextNode.nextNodeId = '';
|
|
2348
2432
|
this.nextNode.isReturnSubmitter = 0;
|
|
2349
2433
|
this.nextNode.isUndertakeReply = 0;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
v-if="show"
|
|
25
25
|
:class="{ 'es-flow-group-data-table': item.type !== 'sign' }"
|
|
26
26
|
:display="display"
|
|
27
|
-
|
|
27
|
+
:numbers="numbers"
|
|
28
28
|
@cell-click="handleCellClick"
|
|
29
29
|
:full="height !== 'auto'"
|
|
30
30
|
v-bind="item"
|
|
@@ -125,7 +125,7 @@ export default {
|
|
|
125
125
|
type: String,
|
|
126
126
|
default: ''
|
|
127
127
|
},
|
|
128
|
-
hideBtn:{
|
|
128
|
+
hideBtn: {
|
|
129
129
|
type: Boolean,
|
|
130
130
|
default: false
|
|
131
131
|
},
|
|
@@ -149,11 +149,18 @@ export default {
|
|
|
149
149
|
return ['flow', 'splitReading', 'preset'];
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
|
+
numbers: {
|
|
153
|
+
type: Boolean,
|
|
154
|
+
default: false
|
|
155
|
+
},
|
|
152
156
|
height: {
|
|
153
157
|
type: String,
|
|
154
158
|
default: ''
|
|
155
159
|
},
|
|
156
|
-
|
|
160
|
+
showDoresult: {
|
|
161
|
+
type: Boolean,
|
|
162
|
+
default: false
|
|
163
|
+
},
|
|
157
164
|
theadWidth: {
|
|
158
165
|
type: Object,
|
|
159
166
|
default: () => {
|
|
@@ -577,7 +584,7 @@ export default {
|
|
|
577
584
|
type: 'handle',
|
|
578
585
|
width: this.modify ? '130' : '100',
|
|
579
586
|
template: '',
|
|
580
|
-
hide:this.hideBtn,
|
|
587
|
+
hide: this.hideBtn,
|
|
581
588
|
events: [
|
|
582
589
|
{
|
|
583
590
|
text: '删除',
|
|
@@ -753,7 +760,7 @@ export default {
|
|
|
753
760
|
type: 'handle',
|
|
754
761
|
width: '100',
|
|
755
762
|
template: '',
|
|
756
|
-
hide:this.hideBtn,
|
|
763
|
+
hide: this.hideBtn,
|
|
757
764
|
events: [
|
|
758
765
|
{
|
|
759
766
|
text: '删除',
|
|
@@ -1293,6 +1300,11 @@ export default {
|
|
|
1293
1300
|
};
|
|
1294
1301
|
util.ajax(params).then((res) => {
|
|
1295
1302
|
if (res.status == 'success' || res.rCode == 0) {
|
|
1303
|
+
if (this.showDoresult && res.data.fyHistoryList) {
|
|
1304
|
+
res.data.fyHistoryList = res.data.fyHistoryList.filter(
|
|
1305
|
+
(x) => x.doresult || x.handleInfo
|
|
1306
|
+
);
|
|
1307
|
+
}
|
|
1296
1308
|
_that.circularData = res.data.fyHistoryList;
|
|
1297
1309
|
_that.hasCircularReadWithdrawAuthority =
|
|
1298
1310
|
res.data.hasCircularReadWithdrawAuthority;
|
|
@@ -1503,6 +1515,9 @@ export default {
|
|
|
1503
1515
|
}
|
|
1504
1516
|
};
|
|
1505
1517
|
await util.ajax(params).then((res) => {
|
|
1518
|
+
if (this.showDoresult && res.data) {
|
|
1519
|
+
res.data = res.data.filter((x) => x.doresult || x.handleInfo);
|
|
1520
|
+
}
|
|
1506
1521
|
if (type == 1) {
|
|
1507
1522
|
this.untreatedReadData = res.data;
|
|
1508
1523
|
} else {
|
|
@@ -1530,7 +1545,7 @@ export default {
|
|
|
1530
1545
|
util
|
|
1531
1546
|
.ajax(params)
|
|
1532
1547
|
.then((res) => {
|
|
1533
|
-
|
|
1548
|
+
let {
|
|
1534
1549
|
status,
|
|
1535
1550
|
message,
|
|
1536
1551
|
data: {
|
|
@@ -1545,6 +1560,16 @@ export default {
|
|
|
1545
1560
|
} = res;
|
|
1546
1561
|
this.loading.close();
|
|
1547
1562
|
if (status == 'success') {
|
|
1563
|
+
if (this.showDoresult) {
|
|
1564
|
+
wfHistoryList &&
|
|
1565
|
+
(wfHistoryList = wfHistoryList.filter(
|
|
1566
|
+
(x) => x.doresult || x.handleInfo
|
|
1567
|
+
));
|
|
1568
|
+
fyHistoryList &&
|
|
1569
|
+
(fyHistoryList = fyHistoryList.filter(
|
|
1570
|
+
(x) => x.doresult || x.handleInfo
|
|
1571
|
+
));
|
|
1572
|
+
}
|
|
1548
1573
|
this.flowTableInfo.adjunctCode = adjunctCode;
|
|
1549
1574
|
this.flowTableInfo.hasAgent = hasAgent;
|
|
1550
1575
|
this.attachmentPaperClipCssStyle =
|
|
@@ -1686,7 +1711,7 @@ export default {
|
|
|
1686
1711
|
util
|
|
1687
1712
|
.ajax(param)
|
|
1688
1713
|
.then((res) => {
|
|
1689
|
-
|
|
1714
|
+
let {
|
|
1690
1715
|
status,
|
|
1691
1716
|
message,
|
|
1692
1717
|
data: {
|
|
@@ -1698,6 +1723,11 @@ export default {
|
|
|
1698
1723
|
} = res;
|
|
1699
1724
|
this.loading.close();
|
|
1700
1725
|
if (status == 'success') {
|
|
1726
|
+
if (this.showDoresult && presetInfoList) {
|
|
1727
|
+
presetInfoList = presetInfoList.filter(
|
|
1728
|
+
(x) => x.doresult || x.handleInfo
|
|
1729
|
+
);
|
|
1730
|
+
}
|
|
1701
1731
|
presetInfoList && (this.presetData = presetInfoList);
|
|
1702
1732
|
this.presetInfoListHiddenColumns = presetInfoListHiddenColumns;
|
|
1703
1733
|
this.currentUserHasPresetInfoAuth = currentUserHasPresetInfoAuth;
|
|
@@ -3492,12 +3492,10 @@ export default {
|
|
|
3492
3492
|
} else {
|
|
3493
3493
|
for (let i in this.within) {
|
|
3494
3494
|
let names = this.within[i];
|
|
3495
|
-
let itemData;
|
|
3495
|
+
let itemData = {};
|
|
3496
3496
|
if (Array.isArray(names)) {
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
delete obj[item];
|
|
3500
|
-
return val;
|
|
3497
|
+
names.forEach((item) => {
|
|
3498
|
+
itemData[item] = obj[item];
|
|
3501
3499
|
});
|
|
3502
3500
|
}
|
|
3503
3501
|
newData[i] = itemData;
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
<template v-else>
|
|
120
120
|
<template v-for="item in icons">
|
|
121
121
|
<div
|
|
122
|
-
v-if="item.type !== '3'"
|
|
122
|
+
v-if="item.type !== '3' && item.type !== '1'"
|
|
123
123
|
class="es-login-complex-models-item"
|
|
124
124
|
:class="{ 'es-active': active == item.type }"
|
|
125
125
|
:key="item.type"
|
|
@@ -396,18 +396,58 @@
|
|
|
396
396
|
</div>
|
|
397
397
|
</div>
|
|
398
398
|
</div>
|
|
399
|
-
<
|
|
400
|
-
<
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
399
|
+
<slot name="footer" :copyright="copyright">
|
|
400
|
+
<div class="es-login-icp">
|
|
401
|
+
<template v-for="item in copyright">
|
|
402
|
+
<a
|
|
403
|
+
v-if="item.url || item.open"
|
|
404
|
+
class="es-login-icp-item"
|
|
405
|
+
:target="item.open ? '_blank' : '_self'"
|
|
406
|
+
:style="{
|
|
407
|
+
color: '#63c2ff',
|
|
408
|
+
...item.style
|
|
409
|
+
}"
|
|
410
|
+
:key="item.title"
|
|
411
|
+
:href="item.url || item.open"
|
|
412
|
+
>
|
|
413
|
+
{{ item.title }}
|
|
414
|
+
</a>
|
|
415
|
+
<span
|
|
416
|
+
v-else
|
|
417
|
+
class="es-login-icp-item"
|
|
418
|
+
:style="item.style || copyrightStyle"
|
|
419
|
+
:key="item.title"
|
|
420
|
+
>
|
|
421
|
+
{{ item.title }}
|
|
422
|
+
</span>
|
|
423
|
+
<template v-if="item.children && item.children.length">
|
|
424
|
+
<template v-for="child in item.children">
|
|
425
|
+
<a
|
|
426
|
+
v-if="child.url || child.open"
|
|
427
|
+
class="es-login-icp-child-item"
|
|
428
|
+
:target="child.open ? '_blank' : '_self'"
|
|
429
|
+
:style="{
|
|
430
|
+
color: '#63c2ff',
|
|
431
|
+
...child.style
|
|
432
|
+
}"
|
|
433
|
+
:key="child.title"
|
|
434
|
+
:href="child.url || child.open"
|
|
435
|
+
>
|
|
436
|
+
{{ child.title }}
|
|
437
|
+
</a>
|
|
438
|
+
<span
|
|
439
|
+
v-else
|
|
440
|
+
class="es-login-icp-child-item"
|
|
441
|
+
:style="child.style || copyrightStyle"
|
|
442
|
+
:key="child.title"
|
|
443
|
+
>
|
|
444
|
+
{{ child.title }}
|
|
445
|
+
</span>
|
|
446
|
+
</template>
|
|
447
|
+
</template>
|
|
448
|
+
</template>
|
|
449
|
+
</div>
|
|
450
|
+
</slot>
|
|
411
451
|
<es-dialog
|
|
412
452
|
:title="operationCheckCode ? '修改密码' : '密码重置'"
|
|
413
453
|
width="680px"
|
|
@@ -439,7 +479,6 @@
|
|
|
439
479
|
>
|
|
440
480
|
<es-clients :downloads="download" :showTips="showIosTips"></es-clients>
|
|
441
481
|
</es-dialog>
|
|
442
|
-
<slot name="calogin"></slot>
|
|
443
482
|
<es-dialog
|
|
444
483
|
title="请进行身份效验"
|
|
445
484
|
width="420px"
|
|
@@ -458,6 +497,12 @@
|
|
|
458
497
|
</p>
|
|
459
498
|
</div>
|
|
460
499
|
</transition>
|
|
500
|
+
<es-ca-login
|
|
501
|
+
v-if="isCaLogin"
|
|
502
|
+
ref="calogin"
|
|
503
|
+
:identifyingId="identifyingId"
|
|
504
|
+
:success="caLogin"
|
|
505
|
+
></es-ca-login>
|
|
461
506
|
</div>
|
|
462
507
|
</template>
|
|
463
508
|
<script>
|
|
@@ -667,14 +712,12 @@ export default {
|
|
|
667
712
|
type: [Boolean, String],
|
|
668
713
|
default: false
|
|
669
714
|
},
|
|
670
|
-
icp: {
|
|
671
|
-
type: Boolean,
|
|
672
|
-
default: true
|
|
673
|
-
},
|
|
674
715
|
copyrightStyle: {
|
|
675
716
|
type: Object,
|
|
676
717
|
default() {
|
|
677
|
-
return {
|
|
718
|
+
return {
|
|
719
|
+
color: '#fff'
|
|
720
|
+
};
|
|
678
721
|
}
|
|
679
722
|
},
|
|
680
723
|
appName: String,
|
|
@@ -722,7 +765,13 @@ export default {
|
|
|
722
765
|
};
|
|
723
766
|
}
|
|
724
767
|
},
|
|
725
|
-
loginDownloadApps: Boolean
|
|
768
|
+
loginDownloadApps: Boolean,
|
|
769
|
+
copyrights: {
|
|
770
|
+
type: Array,
|
|
771
|
+
default() {
|
|
772
|
+
return [];
|
|
773
|
+
}
|
|
774
|
+
}
|
|
726
775
|
},
|
|
727
776
|
computed: {
|
|
728
777
|
transform() {
|
|
@@ -832,12 +881,8 @@ export default {
|
|
|
832
881
|
});
|
|
833
882
|
return icon;
|
|
834
883
|
},
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
this.copyrightBgColor &&
|
|
838
|
-
(style['background-color'] = this.copyrightBgColor);
|
|
839
|
-
this.copyrightColor && (style['color'] = this.copyrightColor);
|
|
840
|
-
return { ...this.copyrightStyle, ...style };
|
|
884
|
+
isCaLogin() {
|
|
885
|
+
return this.loginModel.indexOf('1') > -1;
|
|
841
886
|
},
|
|
842
887
|
showVerifyCode() {
|
|
843
888
|
return (
|
|
@@ -937,11 +982,11 @@ export default {
|
|
|
937
982
|
users: [],
|
|
938
983
|
imageCode: '',
|
|
939
984
|
secret: null,
|
|
940
|
-
identifyingId:
|
|
985
|
+
identifyingId: undefined,
|
|
941
986
|
download: {},
|
|
942
987
|
setup: '',
|
|
943
988
|
sysName: '',
|
|
944
|
-
|
|
989
|
+
copyright: this.copyrights,
|
|
945
990
|
forgetUrl: this.forget,
|
|
946
991
|
actionUrl: this.action,
|
|
947
992
|
downloadSetup: '',
|
|
@@ -963,8 +1008,6 @@ export default {
|
|
|
963
1008
|
countdown: 0,
|
|
964
1009
|
code: null,
|
|
965
1010
|
defaultModel: JSON.parse(JSON.stringify(this.model)),
|
|
966
|
-
copyrightColor: null,
|
|
967
|
-
copyrightBgColor: null,
|
|
968
1011
|
checkCode: '',
|
|
969
1012
|
showAssistance: false,
|
|
970
1013
|
doAssistance: null,
|
|
@@ -1197,18 +1240,20 @@ export default {
|
|
|
1197
1240
|
}
|
|
1198
1241
|
},
|
|
1199
1242
|
switchLogin(res) {
|
|
1200
|
-
if (res != 1) {
|
|
1243
|
+
if (res.type != '1') {
|
|
1201
1244
|
this.active = res.type;
|
|
1202
1245
|
this.title = res.name;
|
|
1203
1246
|
Object.keys(this.defaultModel).length &&
|
|
1204
1247
|
(this.formData = JSON.parse(JSON.stringify(this.defaultModel)));
|
|
1248
|
+
this.$emit('change-type', res, this.identifyingId);
|
|
1249
|
+
this.$nextTick(() => {
|
|
1250
|
+
let ref = 'login' + this.active;
|
|
1251
|
+
this.$refs[ref] && this.$refs[ref].clearValidate();
|
|
1252
|
+
});
|
|
1253
|
+
} else {
|
|
1254
|
+
this.$refs.calogin && this.$refs.calogin.getCertificate();
|
|
1205
1255
|
}
|
|
1206
1256
|
this.countdown = 0;
|
|
1207
|
-
this.$emit('change-type', res, this.identifyingId);
|
|
1208
|
-
this.$nextTick(() => {
|
|
1209
|
-
let ref = 'login' + this.active;
|
|
1210
|
-
this.$refs[ref] && this.$refs[ref].clearValidate();
|
|
1211
|
-
});
|
|
1212
1257
|
},
|
|
1213
1258
|
switchLoginType(res) {
|
|
1214
1259
|
this.countdown = 0;
|
|
@@ -1324,7 +1369,12 @@ export default {
|
|
|
1324
1369
|
}
|
|
1325
1370
|
res.loginPage && sessionStorage.setItem('loginPage', res.loginPage);
|
|
1326
1371
|
if (res.subsystemExtend && Object.keys(res.subsystemExtend).length) {
|
|
1327
|
-
|
|
1372
|
+
if (
|
|
1373
|
+
res.subsystemExtend.copyright &&
|
|
1374
|
+
res.subsystemExtend.copyright.length
|
|
1375
|
+
) {
|
|
1376
|
+
this.copyright = JSON.parse(res.subsystemExtend.copyright);
|
|
1377
|
+
}
|
|
1328
1378
|
if (res.subsystemExtend.qrimg || res.subsystemExtend.qrImg) {
|
|
1329
1379
|
this.qrimg = res.subsystemExtend.qrimg || res.subsystemExtend.qrImg;
|
|
1330
1380
|
}
|
|
@@ -1370,12 +1420,6 @@ export default {
|
|
|
1370
1420
|
);
|
|
1371
1421
|
this.align = res.subsystemExtend.loginBoxAlign;
|
|
1372
1422
|
}
|
|
1373
|
-
if (res.subsystemExtend.copyrightColor) {
|
|
1374
|
-
this.copyrightColor = res.subsystemExtend.copyrightColor;
|
|
1375
|
-
}
|
|
1376
|
-
if (res.subsystemExtend.copyrightBackgroundColor) {
|
|
1377
|
-
this.copyrightBgColor = res.subsystemExtend.copyrightBackgroundColor;
|
|
1378
|
-
}
|
|
1379
1423
|
if (res.subsystemExtend.themeColor) {
|
|
1380
1424
|
util.updateTheme(res.subsystemExtend.themeColor);
|
|
1381
1425
|
localStorage.setItem('theme', res.subsystemExtend.themeColor);
|
|
@@ -1649,6 +1693,7 @@ export default {
|
|
|
1649
1693
|
});
|
|
1650
1694
|
},
|
|
1651
1695
|
caLogin(signedData) {
|
|
1696
|
+
this.loginInfo(false);
|
|
1652
1697
|
util
|
|
1653
1698
|
.ajax({
|
|
1654
1699
|
method: 'post',
|
|
@@ -1672,6 +1717,7 @@ export default {
|
|
|
1672
1717
|
duration: 1500,
|
|
1673
1718
|
onClose: () => {
|
|
1674
1719
|
this.getImgCode();
|
|
1720
|
+
this.loginInfo(this.active == 3);
|
|
1675
1721
|
}
|
|
1676
1722
|
});
|
|
1677
1723
|
this.onError(res);
|
|
@@ -24,9 +24,11 @@
|
|
|
24
24
|
@change="handleChangeConfig"
|
|
25
25
|
@close="handlerClose"
|
|
26
26
|
></user>
|
|
27
|
-
<avatar slot="reference" :user="user" :size="56"
|
|
27
|
+
<avatar slot="reference" :user="user" :size="56" :show-name="true">
|
|
28
|
+
</avatar>
|
|
28
29
|
<!-- 用户信息 end -->
|
|
29
30
|
</el-popover>
|
|
31
|
+
<div class="es-simplicity-username">{{ user.username }}</div>
|
|
30
32
|
<div class="es-simplicity-side-Application">
|
|
31
33
|
<!-- 常用应用 -->
|
|
32
34
|
<el-scrollbar>
|
|
File without changes
|