eoss-ui 0.6.66 → 0.6.68

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.
Files changed (78) hide show
  1. package/lib/button-group.js +108 -106
  2. package/lib/button.js +108 -106
  3. package/lib/calogin.js +567 -156
  4. package/lib/checkbox-group.js +110 -108
  5. package/lib/config/api.js +1 -0
  6. package/lib/data-table-form.js +110 -108
  7. package/lib/data-table.js +113 -111
  8. package/lib/date-picker.js +108 -106
  9. package/lib/dialog.js +108 -106
  10. package/lib/eoss-ui.common.js +956 -516
  11. package/lib/flow-group.js +108 -106
  12. package/lib/flow-list.js +199 -207
  13. package/lib/flow.js +230 -212
  14. package/lib/form.js +110 -108
  15. package/lib/handle-user.js +109 -107
  16. package/lib/handler.js +109 -107
  17. package/lib/icon.js +109 -107
  18. package/lib/index.js +1 -1
  19. package/lib/input-number.js +108 -106
  20. package/lib/input.js +108 -106
  21. package/lib/login.js +172 -147
  22. package/lib/main.js +141 -139
  23. package/lib/nav.js +108 -106
  24. package/lib/notify.js +111 -109
  25. package/lib/page.js +108 -106
  26. package/lib/pagination.js +108 -106
  27. package/lib/player.js +108 -106
  28. package/lib/qr-code.js +108 -106
  29. package/lib/radio-group.js +110 -108
  30. package/lib/retrial-auth.js +111 -109
  31. package/lib/select-ganged.js +110 -108
  32. package/lib/select.js +110 -108
  33. package/lib/selector-panel.js +126 -124
  34. package/lib/selector.js +109 -107
  35. package/lib/sizer.js +110 -108
  36. package/lib/steps.js +108 -106
  37. package/lib/switch.js +108 -106
  38. package/lib/table-form.js +108 -106
  39. package/lib/tabs.js +108 -106
  40. package/lib/theme-chalk/index.css +1 -1
  41. package/lib/theme-chalk/login.css +1 -1
  42. package/lib/tips.js +109 -107
  43. package/lib/tree-group.js +108 -106
  44. package/lib/tree.js +109 -107
  45. package/lib/upload.js +118 -116
  46. package/lib/wujie.js +108 -106
  47. package/lib/wxlogin.js +108 -106
  48. package/package.json +2 -2
  49. package/packages/.DS_Store +0 -0
  50. package/packages/autocomplete/.DS_Store +0 -0
  51. package/packages/calogin/.DS_Store +0 -0
  52. package/packages/calogin/src/main.vue +285 -48
  53. package/packages/calogin/src/plugin.js +167 -0
  54. package/packages/date-picker/.DS_Store +0 -0
  55. package/packages/date-picker/src/.DS_Store +0 -0
  56. package/packages/flow/.DS_Store +0 -0
  57. package/packages/flow/src/component/Circulate.vue +6 -1
  58. package/packages/flow/src/main.vue +6 -0
  59. package/packages/flow/src/reset.vue +6 -1
  60. package/packages/flow/src/selectUser.vue +1 -1
  61. package/packages/flow-list/.DS_Store +0 -0
  62. package/packages/flow-list/src/main.vue +12 -24
  63. package/packages/login/.DS_Store +0 -0
  64. package/packages/login/src/main.vue +28 -7
  65. package/packages/main/.DS_Store +0 -0
  66. package/packages/main/src/.DS_Store +0 -0
  67. package/packages/menu/.DS_Store +0 -0
  68. package/packages/scrollbar/.DS_Store +0 -0
  69. package/packages/select/.DS_Store +0 -0
  70. package/packages/theme-chalk/lib/index.css +1 -1
  71. package/packages/theme-chalk/lib/login.css +1 -1
  72. package/packages/theme-chalk/src/.DS_Store +0 -0
  73. package/packages/theme-chalk/src/login.scss +5 -5
  74. package/packages/upload/.DS_Store +0 -0
  75. package/src/.DS_Store +0 -0
  76. package/src/config/api.js +1 -0
  77. package/src/index.js +163 -163
  78. package/src/utils/.DS_Store +0 -0
@@ -28,7 +28,7 @@
28
28
  @cell-click="handleCellClick"
29
29
  :full="height !== 'auto'"
30
30
  v-bind="item"
31
- :data="returnData(item.type)"
31
+ :data="showDoresult?returnData(item.type).filter(x => x.doresult || x.handleInfo) : returnData(item.type)"
32
32
  @btn-click="handleBtnClick"
33
33
  @selection-change="handleSelectionChange"
34
34
  ></es-data-table>
@@ -1300,11 +1300,7 @@ export default {
1300
1300
  };
1301
1301
  util.ajax(params).then((res) => {
1302
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
- }
1303
+
1308
1304
  _that.circularData = res.data.fyHistoryList;
1309
1305
  _that.hasCircularReadWithdrawAuthority =
1310
1306
  res.data.hasCircularReadWithdrawAuthority;
@@ -1318,24 +1314,31 @@ export default {
1318
1314
  switch (type) {
1319
1315
  case 'preset':
1320
1316
  this.flowListCount.preset = this.presetData.length;
1317
+ this.flowListCount.presetData = this.presetData;
1321
1318
  return this.presetData;
1322
1319
  case 'sign':
1323
1320
  this.flowListCount.sign = this.signData.length;
1321
+ this.flowListCount.signData = this.signData;
1324
1322
  return this.signData;
1325
1323
  case 'splitReading':
1326
1324
  this.flowListCount.splitReading = this.splitReadingData.length;
1325
+ this.flowListCount.splitReadingData = this.splitReadingData;
1327
1326
  return this.splitReadingData;
1328
1327
  case 'circular':
1329
1328
  this.flowListCount.circular = this.circularData.length;
1329
+ this.flowListCount.circularData = this.circularData;
1330
1330
  return this.circularData;
1331
1331
  case 'untreatedRead':
1332
1332
  this.flowListCount.untreatedRead = this.untreatedReadData.length;
1333
+ this.flowListCount.untreatedReadData = this.untreatedReadData;
1333
1334
  return this.untreatedReadData;
1334
1335
  case 'processedRead':
1335
1336
  this.flowListCount.processedRead = this.processedReadData.length;
1337
+ this.flowListCount.processedReadData = this.processedReadData;
1336
1338
  return this.processedReadData;
1337
1339
  default:
1338
1340
  this.flowListCount.flow = this.flowData.length;
1341
+ this.flowListCount.flowData = this.flowData;
1339
1342
  return this.flowData;
1340
1343
  }
1341
1344
  },
@@ -1515,9 +1518,7 @@ export default {
1515
1518
  }
1516
1519
  };
1517
1520
  await util.ajax(params).then((res) => {
1518
- if (this.showDoresult && res.data) {
1519
- res.data = res.data.filter((x) => x.doresult || x.handleInfo);
1520
- }
1521
+
1521
1522
  if (type == 1) {
1522
1523
  this.untreatedReadData = res.data;
1523
1524
  } else {
@@ -1560,16 +1561,7 @@ export default {
1560
1561
  } = res;
1561
1562
  this.loading.close();
1562
1563
  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
- }
1564
+
1573
1565
  this.flowTableInfo.adjunctCode = adjunctCode;
1574
1566
  this.flowTableInfo.hasAgent = hasAgent;
1575
1567
  this.attachmentPaperClipCssStyle =
@@ -1723,11 +1715,7 @@ export default {
1723
1715
  } = res;
1724
1716
  this.loading.close();
1725
1717
  if (status == 'success') {
1726
- if (this.showDoresult && presetInfoList) {
1727
- presetInfoList = presetInfoList.filter(
1728
- (x) => x.doresult || x.handleInfo
1729
- );
1730
- }
1718
+
1731
1719
  presetInfoList && (this.presetData = presetInfoList);
1732
1720
  this.presetInfoListHiddenColumns = presetInfoListHiddenColumns;
1733
1721
  this.currentUserHasPresetInfoAuth = currentUserHasPresetInfoAuth;
Binary file
@@ -77,7 +77,8 @@
77
77
  <template v-for="item in icons">
78
78
  <div
79
79
  class="es-login-model-item-tips"
80
- v-show="modelLength == 2 && active != item.type && modelTips"
80
+ v-if="modelLength == 2"
81
+ v-show="active != item.type && modelTips"
81
82
  :key="item.type"
82
83
  >
83
84
  {{ item.name }}点这里<i class="es-icon-zhixiangyou"></i>
@@ -119,7 +120,7 @@
119
120
  <template v-else>
120
121
  <template v-for="item in icons">
121
122
  <div
122
- v-if="item.type !== '3' && item.type !== '1'"
123
+ v-if="item.type !== '3'"
123
124
  class="es-login-complex-models-item"
124
125
  :class="{ 'es-active': active == item.type }"
125
126
  :key="item.type"
@@ -500,8 +501,10 @@
500
501
  <es-ca-login
501
502
  v-if="isCaLogin"
502
503
  ref="calogin"
504
+ :ca-model="caLoginModel"
503
505
  :identifyingId="identifyingId"
504
506
  :success="caLogin"
507
+ @error="handleError"
505
508
  ></es-ca-login>
506
509
  </div>
507
510
  </template>
@@ -771,7 +774,8 @@ export default {
771
774
  default() {
772
775
  return [];
773
776
  }
774
- }
777
+ },
778
+ caModel: String
775
779
  },
776
780
  computed: {
777
781
  transform() {
@@ -879,6 +883,7 @@ export default {
879
883
  types.forEach((item) => {
880
884
  icon.push(this.iconfonts[item]);
881
885
  });
886
+ console.log(icon);
882
887
  return icon;
883
888
  },
884
889
  isCaLogin() {
@@ -973,6 +978,7 @@ export default {
973
978
  loginTitleImg: this.loginTitle,
974
979
  loginLogoImg: this.loginLogo,
975
980
  loginModel: this.type,
981
+ caLoginModel: this.caModel,
976
982
  passModifyModel: null,
977
983
  active: 0,
978
984
  submit: false,
@@ -1057,8 +1063,8 @@ export default {
1057
1063
  },
1058
1064
  created() {
1059
1065
  this.launchKey = 5 < new Date().getHours() < 18 ? 'day' : 'night';
1060
- if (ceshi == 'true' || ceshi == true) {
1061
- this.loginModel = '0';
1066
+ if (ceshi) {
1067
+ this.loginModel = ceshi == 'true' || ceshi == true ? '0' : ceshi;
1062
1068
  }
1063
1069
  if (this.isScale || util.getParams('scale')) {
1064
1070
  util.setScale();
@@ -1251,6 +1257,7 @@ export default {
1251
1257
  this.$refs[ref] && this.$refs[ref].clearValidate();
1252
1258
  });
1253
1259
  } else {
1260
+ this.submit = true;
1254
1261
  this.$refs.calogin && this.$refs.calogin.getCertificate();
1255
1262
  }
1256
1263
  this.countdown = 0;
@@ -1355,18 +1362,22 @@ export default {
1355
1362
  document.title = res.subsystemName;
1356
1363
  }
1357
1364
  this.app = res.appName || res.subsystemName;
1358
- if (res.loginModel && ceshi !== 'true' && ceshi !== true) {
1365
+ if (res.loginModel && !ceshi) {
1359
1366
  this.loginModel =
1360
1367
  (res.firstLoginModel || this.firstLoginModel) && !isLogined
1361
1368
  ? res.firstLoginModel || this.firstLoginModel
1362
1369
  : res.loginModel;
1363
1370
  }
1371
+
1364
1372
  if (res.loginBackgroundUrl) {
1365
1373
  this.loginBackgroundImg = res.loginBackgroundUrl.split(',');
1366
1374
  }
1367
1375
  if (res.loginLogoUrl) {
1368
1376
  this.loginLogoImg = res.loginLogoUrl;
1369
1377
  }
1378
+ if (res.caModel) {
1379
+ this.caLoginModel = res.caModel;
1380
+ }
1370
1381
  res.loginPage && sessionStorage.setItem('loginPage', res.loginPage);
1371
1382
  if (res.subsystemExtend && Object.keys(res.subsystemExtend).length) {
1372
1383
  if (
@@ -1401,6 +1412,9 @@ export default {
1401
1412
  ? res.firstLoginModel || this.firstLoginModel
1402
1413
  : res.subsystemExtend.loginModel;
1403
1414
  }
1415
+ if (res.subsystemExtend.caModel) {
1416
+ this.caLoginModel = res.subsystemExtend.caModel;
1417
+ }
1404
1418
  if (res.subsystemExtend.applicationName) {
1405
1419
  localStorage.setItem('appcode', res.subsystemExtend.applicationName);
1406
1420
  }
@@ -1698,7 +1712,10 @@ export default {
1698
1712
  .ajax({
1699
1713
  method: 'post',
1700
1714
  url: this.caAction,
1701
- data: { identifyingId: this.identifyingId, signedData: signedData }
1715
+ data:
1716
+ typeof signedData === 'string'
1717
+ ? { identifyingId: this.identifyingId, signedData: signedData }
1718
+ : signedData
1702
1719
  })
1703
1720
  .then((res) => {
1704
1721
  this.submit = false;
@@ -1724,6 +1741,7 @@ export default {
1724
1741
  }
1725
1742
  })
1726
1743
  .catch((err) => {
1744
+ this.submit = false;
1727
1745
  if (err.message && err.message !== 'canceled') {
1728
1746
  this.$message.error(err.message);
1729
1747
  }
@@ -1977,6 +1995,9 @@ export default {
1977
1995
  },
1978
1996
  handlePaste(event) {
1979
1997
  this.safe && event.preventDefault();
1998
+ },
1999
+ handleError() {
2000
+ this.submit = false;
1980
2001
  }
1981
2002
  },
1982
2003
  beforeDestroy() {
Binary file
Binary file
Binary file
Binary file
Binary file