eoss-ui 0.4.55 → 0.4.57
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 +140 -102
- package/lib/button.js +142 -104
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +144 -106
- package/lib/config/api.js +4 -0
- package/lib/data-table-form.js +141 -103
- package/lib/data-table.js +149 -110
- package/lib/date-picker.js +149 -111
- package/lib/dialog.js +140 -102
- package/lib/eoss-ui.common.js +1107 -356
- package/lib/flow-group.js +140 -102
- package/lib/flow-list.js +147 -109
- package/lib/flow.js +462 -180
- package/lib/form.js +158 -121
- package/lib/handle-user.js +141 -103
- package/lib/handler.js +141 -103
- package/lib/index.js +1 -1
- package/lib/input-number.js +142 -104
- package/lib/input.js +142 -104
- package/lib/label.js +2 -2
- package/lib/login.js +176 -130
- package/lib/main.js +156 -118
- package/lib/mainComp.js +156 -118
- package/lib/menu.js +2 -2
- package/lib/nav.js +140 -102
- package/lib/notify.js +109 -101
- package/lib/page.js +140 -102
- package/lib/player.js +140 -102
- package/lib/qr-code.js +140 -102
- package/lib/radio-group.js +141 -103
- package/lib/retrial-auth.js +3330 -0
- package/lib/select-ganged.js +142 -104
- package/lib/select.js +143 -105
- package/lib/selector-panel.js +158 -120
- package/lib/selector.js +143 -105
- package/lib/sizer.js +144 -106
- package/lib/steps.js +142 -104
- package/lib/switch.js +142 -104
- package/lib/table-form.js +142 -104
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +149 -111
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/retrial-auth.css +1 -0
- package/lib/tips.js +143 -105
- package/lib/toolbar.js +14 -10
- package/lib/tree-group.js +142 -104
- package/lib/tree.js +143 -105
- package/lib/upload.js +150 -112
- package/lib/utils/util.js +36 -6
- package/lib/wujie.js +142 -104
- package/lib/wxlogin.js +142 -104
- package/package.json +2 -2
- package/packages/checkbox-group/src/main.vue +7 -7
- package/packages/data-table/src/main.vue +1 -0
- package/packages/flow/src/main.vue +148 -11
- package/packages/flow/src/startTaskRead.vue +12 -9
- package/packages/form/src/main.vue +13 -7
- package/packages/login/src/main.vue +27 -18
- package/packages/retrial-auth/index.js +5 -0
- package/packages/retrial-auth/src/main.vue +271 -0
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/retrial-auth.css +1 -0
- package/packages/theme-chalk/src/index.scss +1 -0
- package/packages/theme-chalk/src/retrial-auth.scss +38 -0
- package/packages/toolbar/src/main.vue +6 -1
- package/src/config/api.js +4 -0
- package/src/index.js +4 -1
- package/src/utils/util.js +36 -6
- package/CHANGELOG.md +0 -929
|
@@ -169,6 +169,7 @@
|
|
|
169
169
|
<el-select
|
|
170
170
|
v-model="nextNode.nextOperate"
|
|
171
171
|
:placeholder="`请选择下步操作`"
|
|
172
|
+
:disabled="operationList && operationList.length == 1"
|
|
172
173
|
@change="selecNext($event, true)"
|
|
173
174
|
>
|
|
174
175
|
<el-option
|
|
@@ -191,6 +192,7 @@
|
|
|
191
192
|
<el-select
|
|
192
193
|
v-model="nextNode.nextNodeId"
|
|
193
194
|
:placeholder="`请选择下步节点`"
|
|
195
|
+
:disabled="nodeInfos && nodeInfos.length == 1"
|
|
194
196
|
@change="selecNext($event, false)"
|
|
195
197
|
>
|
|
196
198
|
<el-option
|
|
@@ -213,7 +215,7 @@
|
|
|
213
215
|
/>
|
|
214
216
|
</el-form-item>
|
|
215
217
|
<el-form-item
|
|
216
|
-
|
|
218
|
+
v-if="isNextUser"
|
|
217
219
|
:prop="isShowNextUser ? 'nextUserId' : 'nextOrgId'"
|
|
218
220
|
:label="isShowNextUser ? '下步办理人' : '办理对象'"
|
|
219
221
|
>
|
|
@@ -243,21 +245,51 @@
|
|
|
243
245
|
:tabs="nextUserTabs"
|
|
244
246
|
/>
|
|
245
247
|
</el-form-item>
|
|
246
|
-
|
|
248
|
+
<el-form-item
|
|
247
249
|
v-if="isHideCurrentOrg"
|
|
248
250
|
prop="nextCurrentOrgObj"
|
|
249
251
|
:label="currentOrgName ? currentOrgName : '本单位'"
|
|
250
252
|
>
|
|
251
253
|
<SelectUser
|
|
252
|
-
:nextUser="
|
|
254
|
+
:nextUser="nextCurrentOrgObjSelect"
|
|
253
255
|
multiple
|
|
254
256
|
mix
|
|
255
|
-
|
|
256
|
-
@change="changeSelectUser($event, 'nextCurrentOrgObj', true)"
|
|
257
|
+
@change="disposeAppUnit($event, 'nextCurrentOrgObjSelect')"
|
|
257
258
|
:types="['department', 'employee']"
|
|
258
259
|
:params="{ filid: userModel.orgId }"
|
|
259
260
|
/>
|
|
260
|
-
</el-form-item>
|
|
261
|
+
</el-form-item>
|
|
262
|
+
<el-form-item
|
|
263
|
+
v-if="isHideOtherOrg"
|
|
264
|
+
prop="nextOtherOrgObj"
|
|
265
|
+
:label="otherOrgName ? otherOrgName : '外单位'"
|
|
266
|
+
>
|
|
267
|
+
<SelectUser
|
|
268
|
+
:nextUser="nextOtherOrgObjSelect"
|
|
269
|
+
multiple
|
|
270
|
+
mix
|
|
271
|
+
@change="disposeAppUnit($event, 'nextOtherOrgObjSelect')"
|
|
272
|
+
:types="['enterprise']"
|
|
273
|
+
:params="{ filid: 'all' }"
|
|
274
|
+
/>
|
|
275
|
+
</el-form-item>
|
|
276
|
+
<el-form-item
|
|
277
|
+
v-if="isMainSubProcess"
|
|
278
|
+
prop="mainSubId"
|
|
279
|
+
label="主办"
|
|
280
|
+
>
|
|
281
|
+
<el-select
|
|
282
|
+
v-model="nextNode.mainSubId"
|
|
283
|
+
:placeholder="`请选择主办`"
|
|
284
|
+
>
|
|
285
|
+
<el-option
|
|
286
|
+
v-for="items in subProcessColumns"
|
|
287
|
+
:key="items.id"
|
|
288
|
+
:label="items.name"
|
|
289
|
+
:value="items.value"
|
|
290
|
+
></el-option>
|
|
291
|
+
</el-select>
|
|
292
|
+
</el-form-item>
|
|
261
293
|
<TimeLimit
|
|
262
294
|
v-if="nodeType !== 0 && isLimitedTimeHandling === 1"
|
|
263
295
|
:newsList="newsList"
|
|
@@ -643,6 +675,9 @@ export default {
|
|
|
643
675
|
data() {
|
|
644
676
|
return {
|
|
645
677
|
userModel: {},
|
|
678
|
+
nextOtherOrgObjSelect: [],
|
|
679
|
+
subProcessColumns: [],
|
|
680
|
+
nextCurrentOrgObjSelect: [],
|
|
646
681
|
loading: null, // 加载中
|
|
647
682
|
newTypeCode: '',
|
|
648
683
|
NodeName: '', // 当前节点值
|
|
@@ -766,15 +801,20 @@ export default {
|
|
|
766
801
|
removeSignUserId: [], // 减签办理人
|
|
767
802
|
nextUserId: [], // 下步办理人
|
|
768
803
|
nextOrgId: [], //办理对象
|
|
804
|
+
nextCurrentOrgObj: [],
|
|
769
805
|
nextCurrentOrgObjSerialId: [], //本单位用户
|
|
806
|
+
nextOtherOrgObj: [], //外单位
|
|
770
807
|
nextReadUserId: [], //分阅用户
|
|
771
808
|
presetReadUserId: [], //自动分阅
|
|
772
809
|
handleExplain: '', //办理意见
|
|
773
810
|
notificationType: [], // 通知方式
|
|
774
|
-
isLimitedTime: '2' // 是否限时办理
|
|
811
|
+
isLimitedTime: '2', // 是否限时办理
|
|
812
|
+
mainSubId: ''
|
|
775
813
|
},
|
|
776
814
|
nodeInfos: [], // 下步节点选择数组
|
|
777
815
|
nextFlowNode: '',
|
|
816
|
+
currentOrgName: '', //本单位名称
|
|
817
|
+
otherOrgName: '', //外单位名称
|
|
778
818
|
nodeInfo: {
|
|
779
819
|
nextNode: '',
|
|
780
820
|
nextUser: '',
|
|
@@ -853,6 +893,39 @@ export default {
|
|
|
853
893
|
}
|
|
854
894
|
},
|
|
855
895
|
methods: {
|
|
896
|
+
getsubProcessColumns() {
|
|
897
|
+
if (!this.isMainSubProcess) return [];
|
|
898
|
+
let data = [];
|
|
899
|
+
let obj = { name: '[部门员工]-' };
|
|
900
|
+
if (this.nextCurrentOrgObjSelect.length > 0) {
|
|
901
|
+
this.nextCurrentOrgObjSelect.map((x) => {
|
|
902
|
+
if (x.stype == 'employee') {
|
|
903
|
+
obj.name = !obj.value
|
|
904
|
+
? obj.name + x.showname
|
|
905
|
+
: obj.name + ',' + x.showname;
|
|
906
|
+
obj.value = obj.value
|
|
907
|
+
? obj.value + ',' + x.showid
|
|
908
|
+
: 'employee-' + x.showid;
|
|
909
|
+
} else {
|
|
910
|
+
data.push({
|
|
911
|
+
name: '[部门]' + x.showname,
|
|
912
|
+
value: 'department-' + x.showid
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
obj.value && data.push(obj);
|
|
918
|
+
if (this.nextOtherOrgObjSelect.length > 0) {
|
|
919
|
+
this.nextOtherOrgObjSelect.map((x) => {
|
|
920
|
+
data.push({
|
|
921
|
+
name: '[企业]' + x.showname,
|
|
922
|
+
value: 'enterprise-' + x.showid
|
|
923
|
+
});
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
this.subProcessColumns = data;
|
|
927
|
+
// return data;
|
|
928
|
+
},
|
|
856
929
|
// 分阅是否多选
|
|
857
930
|
isReadMultiple(nextReadUserSelectType) {
|
|
858
931
|
if (nextReadUserSelectType == 1) {
|
|
@@ -1622,6 +1695,7 @@ export default {
|
|
|
1622
1695
|
if (type) {
|
|
1623
1696
|
this.isNextUser = false;
|
|
1624
1697
|
this.isShowNode = false;
|
|
1698
|
+
this.isMainSubProcess = false;
|
|
1625
1699
|
this.nextNode.nextNodeId = '';
|
|
1626
1700
|
this.nextNode.isReturnSubmitter = 0;
|
|
1627
1701
|
this.nextNode.isUndertakeReply = 0;
|
|
@@ -1772,6 +1846,8 @@ export default {
|
|
|
1772
1846
|
choiceOrgId,
|
|
1773
1847
|
choiceDeptId,
|
|
1774
1848
|
pOrgId,
|
|
1849
|
+
currentOrgName,
|
|
1850
|
+
otherOrgName,
|
|
1775
1851
|
taskExamine,
|
|
1776
1852
|
nodeInfoMap,
|
|
1777
1853
|
canRemoveSignUserList,
|
|
@@ -1788,6 +1864,8 @@ export default {
|
|
|
1788
1864
|
}
|
|
1789
1865
|
} = res;
|
|
1790
1866
|
this.$emit('startTaskRead', res);
|
|
1867
|
+
this.currentOrgName = currentOrgName
|
|
1868
|
+
this.otherOrgName = otherOrgName
|
|
1791
1869
|
this.endFlowInfo.choiceOrgId = choiceOrgId;
|
|
1792
1870
|
this.endFlowInfo.choiceDeptId = choiceDeptId;
|
|
1793
1871
|
this.endFlowInfo.pendingId = this.pendingId;
|
|
@@ -1956,7 +2034,7 @@ export default {
|
|
|
1956
2034
|
}
|
|
1957
2035
|
});
|
|
1958
2036
|
}
|
|
1959
|
-
this.isMainSubProcess = res.data.isMainSubProcess
|
|
2037
|
+
this.isMainSubProcess = res.data.isMainSubProcess == 'true';
|
|
1960
2038
|
this.isCustomPreset = isCustomPreset;
|
|
1961
2039
|
this.isPreset = isPreset;
|
|
1962
2040
|
this.presetTaskNodeMap = presetTaskNodeMap;
|
|
@@ -1966,7 +2044,7 @@ export default {
|
|
|
1966
2044
|
this.getNodeInfo();
|
|
1967
2045
|
} else {
|
|
1968
2046
|
if (res.status === 'taskCompleted') {
|
|
1969
|
-
this.$emit('shrink', true)
|
|
2047
|
+
this.$emit('shrink', true);
|
|
1970
2048
|
this.shrinkAbled = true;
|
|
1971
2049
|
this.$message.warning(res.message || '系统错误,请联系管理员!');
|
|
1972
2050
|
} else {
|
|
@@ -2147,7 +2225,8 @@ export default {
|
|
|
2147
2225
|
this.nextNode.isRemoveSign != '1' &&
|
|
2148
2226
|
this.isSpecial &&
|
|
2149
2227
|
!this.isReject &&
|
|
2150
|
-
this.nodeInfos.length != 0 &&
|
|
2228
|
+
this.nodeInfos.length != 0 &&
|
|
2229
|
+
this.isNextUser
|
|
2151
2230
|
) {
|
|
2152
2231
|
if (this.isShowNextUser) {
|
|
2153
2232
|
if (
|
|
@@ -2197,7 +2276,10 @@ export default {
|
|
|
2197
2276
|
this.$message.warning('请选择输入审批意见');
|
|
2198
2277
|
return;
|
|
2199
2278
|
}
|
|
2200
|
-
|
|
2279
|
+
if (this.isHideCurrentOrg && !this.nextNode.nextCurrentOrgObjJson) {
|
|
2280
|
+
this.$message.warning(`请选择${this.currentOrgName || '本单位'}`);
|
|
2281
|
+
return;
|
|
2282
|
+
}
|
|
2201
2283
|
let str = '';
|
|
2202
2284
|
if (this.value) {
|
|
2203
2285
|
str = this.value.replace(/\s+/g, '');
|
|
@@ -2302,6 +2384,61 @@ export default {
|
|
|
2302
2384
|
return false;
|
|
2303
2385
|
}
|
|
2304
2386
|
});
|
|
2387
|
+
},
|
|
2388
|
+
// 单位选择完回调
|
|
2389
|
+
disposeAppUnit(res, type) {
|
|
2390
|
+
let label = type.substring(0, type.lastIndexOf('Select'));
|
|
2391
|
+
this.nextNode[label + 'Name'] = '';
|
|
2392
|
+
res.options && (this[type] = res.options);
|
|
2393
|
+
let obj = {};
|
|
2394
|
+
// if (typeof res.mixList == 'array')
|
|
2395
|
+
res.mixList && (this.nextNode[label] = res.mixList.join('|'));
|
|
2396
|
+
res.options.map((item) => {
|
|
2397
|
+
if (obj[item.stype]) {
|
|
2398
|
+
obj[item.stype].push(item.showname);
|
|
2399
|
+
} else {
|
|
2400
|
+
obj[item.stype] = [item.showname];
|
|
2401
|
+
}
|
|
2402
|
+
});
|
|
2403
|
+
for (let key in obj) {
|
|
2404
|
+
if (
|
|
2405
|
+
key === 'enterprise' &&
|
|
2406
|
+
this.nextNode[label + 'Name'].indexOf('[企业]') == -1
|
|
2407
|
+
) {
|
|
2408
|
+
this.nextNode[label + 'Name'] = this.nextNode[label + 'Name']
|
|
2409
|
+
? this.nextNode[label + 'Name'] +
|
|
2410
|
+
'|' +
|
|
2411
|
+
'[企业]-' +
|
|
2412
|
+
obj[key].join(',')
|
|
2413
|
+
: '' + '[企业]-' + obj[key].join(',');
|
|
2414
|
+
}
|
|
2415
|
+
if (
|
|
2416
|
+
key === 'department' &&
|
|
2417
|
+
this.nextNode[label + 'Name'].indexOf('[部门]') == -1
|
|
2418
|
+
) {
|
|
2419
|
+
this.nextNode[label + 'Name'] = this.nextNode[label + 'Name']
|
|
2420
|
+
? this.nextNode[label + 'Name'] +
|
|
2421
|
+
'|' +
|
|
2422
|
+
'[部门]-' +
|
|
2423
|
+
obj[key].join(',')
|
|
2424
|
+
: '' + '[部门]-' + obj[key].join(',');
|
|
2425
|
+
}
|
|
2426
|
+
if (
|
|
2427
|
+
key === 'employee' &&
|
|
2428
|
+
this.nextNode[label + 'Name'].indexOf('[部门员工]') == -1
|
|
2429
|
+
) {
|
|
2430
|
+
this.nextNode[label + 'Name'] = this.nextNode[label + 'Name']
|
|
2431
|
+
? this.nextNode[label + 'Name'] +
|
|
2432
|
+
'|' +
|
|
2433
|
+
'[部门员工]-' +
|
|
2434
|
+
obj[key].join(',')
|
|
2435
|
+
: '' + '[部门员工]-' + obj[key].join(',');
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
// this.nextNode[label + 'Name'] = obj.enterprise?;
|
|
2439
|
+
this.nextNode[label + 'SerialId'] = res.nextUser.join(',');
|
|
2440
|
+
this.nextNode[label + 'Json'] = JSON.stringify(res.options);
|
|
2441
|
+
this.getsubProcessColumns();
|
|
2305
2442
|
}
|
|
2306
2443
|
}
|
|
2307
2444
|
};
|
|
@@ -179,7 +179,7 @@ export default {
|
|
|
179
179
|
},
|
|
180
180
|
mixList: [],
|
|
181
181
|
newSelectUserList: [],
|
|
182
|
-
orgId:
|
|
182
|
+
orgId: '',
|
|
183
183
|
noticeList: [],
|
|
184
184
|
userOptions: [],
|
|
185
185
|
selectCheck: [],
|
|
@@ -197,18 +197,18 @@ export default {
|
|
|
197
197
|
tab = {
|
|
198
198
|
employee: {
|
|
199
199
|
param: {
|
|
200
|
-
filid:
|
|
200
|
+
filid: this.orgId,
|
|
201
201
|
name: '本单位用户'
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
|
-
department: { param: { filid:
|
|
204
|
+
department: { param: { filid: this.orgId } },
|
|
205
205
|
enterprise: {}
|
|
206
206
|
};
|
|
207
207
|
} else {
|
|
208
208
|
tab = {
|
|
209
209
|
employee: {
|
|
210
210
|
param: {
|
|
211
|
-
filid:
|
|
211
|
+
filid: this.orgId
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
};
|
|
@@ -218,6 +218,9 @@ export default {
|
|
|
218
218
|
},
|
|
219
219
|
mounted() {
|
|
220
220
|
this.getFind();
|
|
221
|
+
if(util.getStorage('mainConfig')){
|
|
222
|
+
this.orgId = JSON.parse(util.getStorage('mainConfig')).userModel.orgId
|
|
223
|
+
}
|
|
221
224
|
},
|
|
222
225
|
methods: {
|
|
223
226
|
toTaskTransfer() {
|
|
@@ -265,14 +268,14 @@ export default {
|
|
|
265
268
|
this.multiple = false;
|
|
266
269
|
}
|
|
267
270
|
if (val == 1 || val == 2 || val == 5) {
|
|
268
|
-
this.params.filid =
|
|
271
|
+
this.params.filid = this.orgId;
|
|
269
272
|
if (choiceOrgId) {
|
|
270
273
|
this.params.filid = choiceOrgId;
|
|
271
274
|
}
|
|
272
275
|
}
|
|
273
276
|
if (val == 5 || val == 6) {
|
|
274
|
-
this.params.filid =
|
|
275
|
-
this.params.deptid =
|
|
277
|
+
this.params.filid = this.orgId;
|
|
278
|
+
this.params.deptid = this.orgId;
|
|
276
279
|
if (choiceDeptId) {
|
|
277
280
|
this.params.deptid = choiceDeptId;
|
|
278
281
|
}
|
|
@@ -281,14 +284,14 @@ export default {
|
|
|
281
284
|
}
|
|
282
285
|
}
|
|
283
286
|
if (val == 15 || val == 16) {
|
|
284
|
-
this.params.filid =
|
|
287
|
+
this.params.filid = this.orgId;
|
|
285
288
|
if (pOrgId) {
|
|
286
289
|
this.params.filid = pOrgId;
|
|
287
290
|
}
|
|
288
291
|
}
|
|
289
292
|
},
|
|
290
293
|
isMultiple() {
|
|
291
|
-
let orgId =
|
|
294
|
+
let orgId = this.orgId;
|
|
292
295
|
if (this.configInfo.selectPersonValue == 1) {
|
|
293
296
|
this.multiple = false;
|
|
294
297
|
this.params.filid = orgId;
|
|
@@ -4316,7 +4316,14 @@ export default {
|
|
|
4316
4316
|
} else {
|
|
4317
4317
|
this.$refs.esForm.validate(async (valid, fields, triggers) => {
|
|
4318
4318
|
if (valid) {
|
|
4319
|
-
this.$emit(
|
|
4319
|
+
this.$emit(
|
|
4320
|
+
'submit',
|
|
4321
|
+
this.getNewValue(
|
|
4322
|
+
util.extend({}, this._value, this.models),
|
|
4323
|
+
res
|
|
4324
|
+
),
|
|
4325
|
+
res
|
|
4326
|
+
);
|
|
4320
4327
|
} else {
|
|
4321
4328
|
this.setScroll(valid, triggers, this.$refs.scrollbar);
|
|
4322
4329
|
}
|
|
@@ -4339,7 +4346,7 @@ export default {
|
|
|
4339
4346
|
'stepPrev',
|
|
4340
4347
|
res,
|
|
4341
4348
|
this.models,
|
|
4342
|
-
this.getNewValue(this.models, res)
|
|
4349
|
+
this.getNewValue(util.extend({}, this._value, this.models), res)
|
|
4343
4350
|
);
|
|
4344
4351
|
} else if (res.event === 'stepNext') {
|
|
4345
4352
|
this.$refs.esForm.validate((valid, fields, triggers) => {
|
|
@@ -4350,7 +4357,7 @@ export default {
|
|
|
4350
4357
|
'stepNext',
|
|
4351
4358
|
res,
|
|
4352
4359
|
this.models,
|
|
4353
|
-
this.getNewValue(this.models, res)
|
|
4360
|
+
this.getNewValue(util.extend({}, this._value, this.models), res)
|
|
4354
4361
|
);
|
|
4355
4362
|
} else {
|
|
4356
4363
|
this.setScroll(valid, triggers, this.$refs.scrollbar);
|
|
@@ -4361,14 +4368,14 @@ export default {
|
|
|
4361
4368
|
'click',
|
|
4362
4369
|
res,
|
|
4363
4370
|
this.models,
|
|
4364
|
-
this.getNewValue(this.models, res)
|
|
4371
|
+
this.getNewValue(util.extend({}, this._value, this.models), res)
|
|
4365
4372
|
);
|
|
4366
4373
|
} else {
|
|
4367
4374
|
this.$emit(
|
|
4368
4375
|
'click',
|
|
4369
4376
|
res,
|
|
4370
4377
|
this.models,
|
|
4371
|
-
this.getNewValue(this.models, res)
|
|
4378
|
+
this.getNewValue(util.extend({}, this._value, this.models), res)
|
|
4372
4379
|
);
|
|
4373
4380
|
}
|
|
4374
4381
|
},
|
|
@@ -4753,7 +4760,7 @@ export default {
|
|
|
4753
4760
|
models[handle.table] = handle.join ? ids.join(',') : ids;
|
|
4754
4761
|
}
|
|
4755
4762
|
}
|
|
4756
|
-
|
|
4763
|
+
let obj = JSON.parse(JSON.stringify(models));
|
|
4757
4764
|
if (this.within) {
|
|
4758
4765
|
//within:把提交数据装到指定属性中
|
|
4759
4766
|
let newData = {};
|
|
@@ -4778,7 +4785,6 @@ export default {
|
|
|
4778
4785
|
if (this.formatSubmit) {
|
|
4779
4786
|
//formatSubmit:提交数据装到masterData或者指定属性中
|
|
4780
4787
|
let masterData = {};
|
|
4781
|
-
let obj = JSON.parse(JSON.stringify(models));
|
|
4782
4788
|
if (typeof this.formatSubmit === 'string') {
|
|
4783
4789
|
masterData[this.formatSubmit] = obj;
|
|
4784
4790
|
} else {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
></i>
|
|
46
46
|
</div>
|
|
47
47
|
<div class="es-login-form-box">
|
|
48
|
-
<template v-if="isShow(active) && (active == 0 || active ==
|
|
48
|
+
<template v-if="isShow(active) && (active == 0 || active == 12)">
|
|
49
49
|
<el-form ref="login" class="es-login-form" :model="formData">
|
|
50
50
|
<div class="es-login-title">
|
|
51
51
|
<span class="es-login-title-content">{{ title }}</span>
|
|
@@ -91,7 +91,13 @@
|
|
|
91
91
|
<el-form-item
|
|
92
92
|
size="large"
|
|
93
93
|
prop="identifyingCode"
|
|
94
|
-
:rules="[
|
|
94
|
+
:rules="[
|
|
95
|
+
{
|
|
96
|
+
required: true,
|
|
97
|
+
message: '验证码不能为空',
|
|
98
|
+
trigger: 'change'
|
|
99
|
+
}
|
|
100
|
+
]"
|
|
95
101
|
v-if="imgCode || showVerifyCode"
|
|
96
102
|
>
|
|
97
103
|
<el-input
|
|
@@ -110,7 +116,7 @@
|
|
|
110
116
|
<el-button
|
|
111
117
|
class="es-get-code"
|
|
112
118
|
type="primary"
|
|
113
|
-
v-show="active ==
|
|
119
|
+
v-show="active == 12 && showVerifyCode"
|
|
114
120
|
:disabled="disabled"
|
|
115
121
|
@click.stop="getCode"
|
|
116
122
|
>{{ btnText }}</el-button
|
|
@@ -582,17 +588,16 @@ export default {
|
|
|
582
588
|
? {
|
|
583
589
|
0: { type: '0', icon: 'es-icon-shuru', name: '账号登录' },
|
|
584
590
|
1: { type: '1', icon: 'es-icon-usb-key', name: '证书登录' },
|
|
585
|
-
2: { type: '2', icon: 'es-icon-shuru', name: '账号登录' },
|
|
586
591
|
3: { type: '3', icon: 'es-icon-saoma', name: '扫码登录' },
|
|
587
592
|
6: { type: '6', icon: 'es-icon-duanxin', name: '短信登录' },
|
|
588
593
|
7: { type: '7', icon: 'es-icon-dingding', name: '钉钉扫码登录' },
|
|
589
594
|
9: { type: '9', icon: 'es-icon-weixin', name: '微信扫码登录' },
|
|
590
|
-
11: { type: '11', icon: 'es-icon-youxiang', name: '邮箱登录' }
|
|
595
|
+
11: { type: '11', icon: 'es-icon-youxiang', name: '邮箱登录' },
|
|
596
|
+
12: { type: '12', icon: 'es-icon-shuru', name: '账号登录' } //双因素
|
|
591
597
|
}
|
|
592
598
|
: {
|
|
593
599
|
0: { type: '0', icon: 'es-icon-jianpan', name: '账号登录' },
|
|
594
600
|
1: { type: '1', icon: 'es-icon-ca', name: '证书登录' },
|
|
595
|
-
2: { type: '2', icon: 'es-icon-jianpan', name: '账号登录' },
|
|
596
601
|
3: { type: '3', icon: 'es-icon-qrcode', name: '扫码登录' },
|
|
597
602
|
6: { type: '6', icon: 'es-icon-duanxin', name: '短信登录' },
|
|
598
603
|
7: { type: '7', icon: 'es-icon-dingding', name: '钉钉扫码登录' },
|
|
@@ -601,7 +606,8 @@ export default {
|
|
|
601
606
|
type: '11',
|
|
602
607
|
icon: 'es-icon-wodeyouxiang',
|
|
603
608
|
name: '邮箱登录'
|
|
604
|
-
}
|
|
609
|
+
},
|
|
610
|
+
12: { type: '12', icon: 'es-icon-jianpan', name: '账号登录' } //双因素
|
|
605
611
|
};
|
|
606
612
|
},
|
|
607
613
|
icons() {
|
|
@@ -621,8 +627,9 @@ export default {
|
|
|
621
627
|
},
|
|
622
628
|
showVerifyCode() {
|
|
623
629
|
return (
|
|
624
|
-
this.passModifyModel
|
|
625
|
-
this.passModifyModel.indexOf('
|
|
630
|
+
this.passModifyModel &&
|
|
631
|
+
(this.passModifyModel.indexOf('6') > -1 ||
|
|
632
|
+
this.passModifyModel.indexOf('11') > -1)
|
|
626
633
|
);
|
|
627
634
|
}
|
|
628
635
|
},
|
|
@@ -913,7 +920,6 @@ export default {
|
|
|
913
920
|
this.app = res.appName || res.subsystemName;
|
|
914
921
|
this.qrimg = res.qrimg || res.qrImg;
|
|
915
922
|
this.loginModel = res.loginModel;
|
|
916
|
-
// this.loginModel = '0,3,11,6,9,2';
|
|
917
923
|
this.loginBackgroundImg = res.loginBackgroundUrl
|
|
918
924
|
? res.loginBackgroundUrl.split(',')
|
|
919
925
|
: null;
|
|
@@ -978,7 +984,7 @@ export default {
|
|
|
978
984
|
}
|
|
979
985
|
let data = {};
|
|
980
986
|
let flag = false;
|
|
981
|
-
if (this.active ==
|
|
987
|
+
if (this.active == 12) {
|
|
982
988
|
if (!this.formData.username) {
|
|
983
989
|
this.$refs.login.validateField('username');
|
|
984
990
|
return false;
|
|
@@ -1019,13 +1025,14 @@ export default {
|
|
|
1019
1025
|
} else {
|
|
1020
1026
|
this.btnText = '重新获取';
|
|
1021
1027
|
this.disabled = false;
|
|
1028
|
+
this.submit = false;
|
|
1022
1029
|
}
|
|
1023
1030
|
}, 1000);
|
|
1024
1031
|
util
|
|
1025
1032
|
.ajax({
|
|
1026
1033
|
method: 'post',
|
|
1027
1034
|
url:
|
|
1028
|
-
this.active ==
|
|
1035
|
+
this.active == 12 ? this.getTwoFactorLoginCode : this.getLoginCode,
|
|
1029
1036
|
data: data
|
|
1030
1037
|
})
|
|
1031
1038
|
.then((res) => {
|
|
@@ -1069,9 +1076,9 @@ export default {
|
|
|
1069
1076
|
identifyingCode: this.formData.identifyingCode,
|
|
1070
1077
|
identifyingId: this.identifyingId
|
|
1071
1078
|
}
|
|
1072
|
-
: this.active == '
|
|
1079
|
+
: this.active == '12'
|
|
1073
1080
|
? {
|
|
1074
|
-
|
|
1081
|
+
username: this.formData.username,
|
|
1075
1082
|
password:
|
|
1076
1083
|
this.secret && this.isEncrypt
|
|
1077
1084
|
? util.esmEncrypt({
|
|
@@ -1079,9 +1086,10 @@ export default {
|
|
|
1079
1086
|
key: this.secret
|
|
1080
1087
|
})
|
|
1081
1088
|
: this.formData.password,
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1089
|
+
targetType:
|
|
1090
|
+
this.passModifyModel.indexOf('11') > -1 ? 'EMAIL' : 'SMS',
|
|
1091
|
+
verificationCode: this.formData.identifyingCode
|
|
1092
|
+
}
|
|
1085
1093
|
: {
|
|
1086
1094
|
target: this.formData.target,
|
|
1087
1095
|
verificationCode: this.formData.verificationCode,
|
|
@@ -1120,7 +1128,7 @@ export default {
|
|
|
1120
1128
|
url:
|
|
1121
1129
|
this.active == '0'
|
|
1122
1130
|
? this.actionUrl
|
|
1123
|
-
: this.active == '
|
|
1131
|
+
: this.active == '12'
|
|
1124
1132
|
? this.doTwoFactorLogin
|
|
1125
1133
|
: this.doCodeLogin,
|
|
1126
1134
|
data: extUserBindHandleId
|
|
@@ -1256,6 +1264,7 @@ export default {
|
|
|
1256
1264
|
type: 'success',
|
|
1257
1265
|
duration: 1500,
|
|
1258
1266
|
onClose: () => {
|
|
1267
|
+
sessionStorage.removeItem('remind');
|
|
1259
1268
|
if (this.toUrl) {
|
|
1260
1269
|
window.location.href = this.toUrl;
|
|
1261
1270
|
} else if (results.doorIndex && this.doorIndex) {
|