eoss-ui 0.5.46 → 0.5.48

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/toolbar.js CHANGED
@@ -260,21 +260,21 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
260
260
  searchValue: {
261
261
  deep: true,
262
262
  handler: function handler(val) {
263
- this.searchData = val;
263
+ this.searchData = JSON.parse(JSON.stringify(val));
264
264
  }
265
265
  },
266
266
  advanceValue: {
267
267
  deep: true,
268
268
  handler: function handler(val) {
269
- this.advancedData = val;
269
+ this.advancedData = JSON.parse(JSON.stringify(val));
270
270
  }
271
271
  }
272
272
  },
273
273
  data: function data() {
274
274
  return {
275
275
  show: false,
276
- searchData: this.searchValue,
277
- advancedData: this.advanceValue
276
+ searchData: JSON.parse(JSON.stringify(this.searchValue)),
277
+ advancedData: JSON.parse(JSON.stringify(this.advanceValue))
278
278
  };
279
279
  },
280
280
  created: function created() {
@@ -324,13 +324,14 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
324
324
  },
325
325
  hanleReset: function hanleReset() {
326
326
  this.$refs.filter && this.$refs.filter.resetFields();
327
- this.searchData = {};
328
- this.advancedData = {};
329
- this.$emit('reset');
327
+ this.searchData = JSON.parse(JSON.stringify(this.searchValue));
328
+ this.advancedData = JSON.parse(JSON.stringify(this.advanceValue));
329
+ this.$emit('reset', this.searchData);
330
330
  },
331
331
  hanleCancel: function hanleCancel() {
332
332
  this.show = false;
333
- this.$emit('cancel');
333
+ this.advancedData = JSON.parse(JSON.stringify(this.advanceValue));
334
+ this.$emit('cancel', this.advancedData);
334
335
  }
335
336
  },
336
337
  render: function render(h) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.46",
3
+ "version": "0.5.48",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -70,15 +70,8 @@ export default {
70
70
  evt.preventDefault();
71
71
  let width = 0;
72
72
  let height = 0;
73
- let win;
74
- try {
75
- util.win.top.document;
76
- win = util.win.top;
77
- } catch (error) {
78
- win = util.getMyWinTop();
79
- }
80
- width = win.screen.availWidth - 10;
81
- height = win.screen.availHeight - 60;
73
+ width = util.win.top.screen.availWidth - 10;
74
+ height = util.win.top.screen.availHeight - 60;
82
75
  let flag = true;
83
76
  if (this.esForm) {
84
77
  let params = util.getParams({ url: this.link });
@@ -409,6 +409,13 @@ export default {
409
409
  };
410
410
  },
411
411
  computed: {
412
+ params() {
413
+ return {
414
+ ...(this.param || {}),
415
+ ...(this.searchValue || {}),
416
+ ...(this.advanceValue || {})
417
+ };
418
+ },
412
419
  tag() {
413
420
  return this.form && this.elForm == '' ? 'el-form' : 'div';
414
421
  },
@@ -882,7 +889,7 @@ export default {
882
889
  this.tableLoadingText = '加载中...';
883
890
  let reqData = util.extend(
884
891
  {},
885
- this.param,
892
+ this.params,
886
893
  this.page
887
894
  ? {
888
895
  pageNum: this.config.pageNum,
@@ -1292,50 +1299,44 @@ export default {
1292
1299
  this.$emit('next', res);
1293
1300
  },
1294
1301
  hanleSearch(data) {
1295
- this.wheres = data;
1296
- if (this.url) {
1297
- if (this.response !== undefined) {
1298
- this.getTableData({
1299
- where: this.response({
1302
+ this.wheres =
1303
+ this.response !== undefined
1304
+ ? this.response({
1300
1305
  type: 'search',
1301
1306
  data: JSON.parse(JSON.stringify(data))
1302
1307
  })
1303
- });
1304
- } else {
1305
- this.getTableData({ where: this.wheres });
1306
- }
1308
+ : data;
1309
+ if (this.url) {
1310
+ this.getTableData({ where: this.wheres });
1307
1311
  }
1308
- this.$emit('search', data);
1312
+ this.$emit('search', this.wheres);
1309
1313
  },
1310
1314
  hanleReset() {
1311
1315
  if (this.url) {
1312
1316
  this.wheres = {};
1313
1317
  this.getTableData();
1314
1318
  }
1315
- this.$emit('reset');
1319
+ this.$emit('reset', this.params);
1316
1320
  },
1317
1321
  hanleSubmit({ data, show }) {
1318
- this.wheres = data;
1319
- if (this.url) {
1320
- if (this.response !== undefined) {
1321
- this.getTableData({
1322
- where: this.response({
1322
+ this.wheres =
1323
+ this.response !== undefined
1324
+ ? this.response({
1323
1325
  type: 'filter',
1324
1326
  data: JSON.parse(JSON.stringify(data))
1325
1327
  })
1326
- });
1327
- } else {
1328
- this.getTableData({ where: this.wheres });
1329
- }
1328
+ : data;
1329
+ if (this.url) {
1330
+ this.getTableData({ where: this.wheres });
1330
1331
  }
1331
- this.$emit('submit', { data, show });
1332
+ this.$emit('submit', { data: this.wheres, show });
1332
1333
  },
1333
1334
  hanleCancel() {
1334
- if (this.url && JSON.stringify(this.wheres) !== '{}') {
1335
- this.wheres = {};
1336
- this.getTableData();
1337
- }
1338
- this.$emit('cancel');
1335
+ // if (this.url && JSON.stringify(this.wheres) !== '{}') {
1336
+ // this.wheres = {};
1337
+ // this.getTableData();
1338
+ // }
1339
+ this.$emit('cancel', this.params);
1339
1340
  },
1340
1341
  handleTabs({ item, index }) {
1341
1342
  if (this.url) {
@@ -381,15 +381,8 @@ export default {
381
381
  created() {
382
382
  let availWidth = 0;
383
383
  let availHeight = 0;
384
- let win;
385
- try {
386
- util.win.top.document;
387
- win = util.win.top;
388
- } catch (error) {
389
- win = util.getMyWinTop();
390
- }
391
- availWidth = win.document.body.offsetWidth - 260;
392
- availHeight = win.document.body.offsetHeight - 60;
384
+ availWidth = util.win.top.document.body.offsetWidth - 260;
385
+ availHeight = util.win.top.document.body.offsetHeight - 60;
393
386
  this.sizes.max = { width: `${availWidth}px`, height: `${availHeight}px` };
394
387
  if (
395
388
  this.size === 'full' ||
@@ -471,12 +471,12 @@
471
471
  </el-button>
472
472
  <el-button
473
473
  v-if="pointsReadingObj.fun"
474
- class="btn"
474
+ class="es-flow-btn"
475
475
  @click="taskReadBtn"
476
476
  >分阅</el-button
477
477
  >
478
478
  <el-button
479
- class="btn"
479
+ class="es-flow-btn"
480
480
  v-for="item of moreList"
481
481
  :key="item.key"
482
482
  @click="goView(item)"
@@ -513,12 +513,12 @@
513
513
  <el-button>...</el-button>
514
514
  <el-dropdown-menu slot="dropdown">
515
515
  <el-dropdown-item v-for="item of moreList" :key="item.key">
516
- <div class="btn" @click="goView(item)">
516
+ <div class="es-flow-btn" @click="goView(item)">
517
517
  {{ item.value }}
518
518
  </div>
519
519
  </el-dropdown-item>
520
520
  <el-dropdown-item v-if="pointsReadingObj.fun">
521
- <div class="btn" @click="taskReadBtn">分阅</div>
521
+ <div class="es-flow-btn" @click="taskReadBtn">分阅</div>
522
522
  </el-dropdown-item>
523
523
  <el-dropdown-item v-if="rejectObj.fun">
524
524
  <div style="color: red" @click="rejectBtn">
@@ -541,7 +541,7 @@
541
541
  阅结
542
542
  </el-button>
543
543
  <el-button
544
- class="btn"
544
+ class="es-flow-btn"
545
545
  v-if="isCanFenyue == '1'"
546
546
  size="medium"
547
547
  style="margin-left: 0px"
@@ -575,13 +575,7 @@ export default {
575
575
  let name = item.name;
576
576
  let width = 0;
577
577
  let height = 0;
578
- let win;
579
- try {
580
- util.win.top.document;
581
- win = util.win.top;
582
- } catch (error) {
583
- win = util.getMyWinTop();
584
- }
578
+ let win = util.win.top;
585
579
  width = win.screen.availWidth - 10;
586
580
  height = win.screen.availHeight - 60;
587
581
  if (item.url) {
@@ -654,16 +648,10 @@ export default {
654
648
  handleSuccess() {
655
649
  if (this.closeDialog && this.esDialog) {
656
650
  this.esDialog.handleClose();
657
- } else if (util.win.opener) {
658
- let win;
659
- try {
660
- util.win.top.document;
661
- win = util.win.top;
662
- } catch (error) {
663
- win = util.getMyWinTop();
664
- }
665
- win.close();
666
- win.postMessage({ type: 0 }, '*');
651
+ } else if (util.win.top.COOS_SDK) {
652
+ util.win.top.COOS_SDK.closePopup && util.win.top.COOS_SDK.closePopup();
653
+ } else if (util.win.top.opener) {
654
+ util.win.top.close();
667
655
  }
668
656
  if (this.events && this.events.success) {
669
657
  this.events.success();
@@ -98,13 +98,7 @@ export default {
98
98
  duration: 500,
99
99
  onClose: () => {
100
100
  util.removeStorage(['mainConfig', 'jump']);
101
- let win;
102
- try {
103
- util.win.top.document;
104
- win = util.win.top;
105
- } catch (error) {
106
- win = util.getMyWinTop();
107
- }
101
+ let win = util.win.top;
108
102
  win.location.reload();
109
103
  }
110
104
  });
@@ -1 +1 @@
1
- @charset "UTF-8";.commonOpinion-set,.es-flow-index{-webkit-box-orient:vertical;-webkit-box-direction:normal}.es-common-opinions,.es-fenyue-buttons,.es-flow-buttons,.es-flow-title,.es-opinion{padding:0 12px}.es-user-defined{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.es-user-defined .el-button--primary{-webkit-box-flex:1;-ms-flex:1;flex:1}.required .el-textarea__inner::-webkit-input-placeholder{color:red}.required .el-textarea__inner::-moz-placeholder{color:red}.required .el-textarea__inner:-ms-input-placeholder{color:red}.required .el-textarea__inner::-ms-input-placeholder{color:red}.required .el-textarea__inner::placeholder{color:red}.no-checked .el-checkbox__input{display:none!important}.es-flow-index{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-bottom:12px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;position:relative}.es-flow-index .em-flow-more-btn{display:block;width:100%}.es-flow-index .el-checkbox-group{display:contents}.es-flow-index .es-eidt-title{font-size:13px;color:#333;line-height:20px}.es-flow-index .es-flow-top{height:350px}.es-flow-index .es-flow-top .es-flow-title{height:40px;line-height:40px}.es-flow-index .es-flow-top .es-flow-title .es-icon{position:absolute;right:8px;top:4px}.es-flow-index .es-flow-top .es-opinion{display:-webkit-box;display:-ms-flexbox;display:flex;margin:8px 0;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.es-flow-index .es-flow-top .es-opinion .es-opinion-file{cursor:pointer;position:relative}.es-flow-index .es-flow-top .es-opinion .es-opinion-file .es-file-num{color:red}.es-flow-index .es-button-agree{width:calc(43% - 15px)}.es-flow-index .es-button-agree-save{margin-top:10px}.commonOpinion-set{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.commonOpinion-set .el-table__body-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-flow-index-shrink{width:24px}.es-flow-index-shrink img{cursor:pointer;width:24px;height:24px}.es-flow-btn:hover{background-color:#f5f5f5;color:#1890ff}.es-flow-btn:hover ::v-deep .el-popover{padding:12px 0!important}.es-flow-form .el-checkbox-group{display:contents}.es-flow-index .el-input-group--prepend>.el-input__inner,.es-flow-index .select-process>.el-input__inner{display:none!important}.es-flow-form .el-textarea:first-child,.es-flow-index .el-textarea{width:100%;margin-bottom:10px!important}.es-flow-form .es-opinions .el-select,.es-flow-index .el-select{width:calc(100% + 40px)!important}.es-flow-index .el-select .el-input{width:100%;height:40px}.es-flow-index .process .el-select{width:calc(100% + 40px)!important}.es-flow-index .input-with-select .el-input-group__prepend{background-color:#fff;width:100%}.es-flow-index .select-process .el-input-group__append{height:40px}.es-flow-index button.el-button.sub.el-button--primary.el-button--medium{width:calc(100% - 85px)}.es-flow-index .el-input-group--prepend>.el-input-group__append{height:40px}.es-flow-index .demo-dynamic .el-select{width:100%!important}.es-flow-index .demo-dynamic .select-process .el-select,.es-flow-index .demo-dynamic .selectUser,.es-flow-index.task-union-examine .el-select{width:calc(100% + 40px)!important}.es-flow-index .el-input.el-input-group.el-input-group--append.el-input-group--prepend{margin:0!important}.es-flow-index .demo-dynamic,.es-flow-index .es-footer-btn{margin-top:10px}.es-flow-index .es-footer-btn .el-button+.el-button{margin:10px 10px 0 0}.es-flow-index .el-input.is-disabled .el-input__inner{color:#606266}.es-flow-index .btn{margin-right:10px}.es-flow-index .es-info{padding:0 8px;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;overflow-x:hidden}.es-flow-index .es-info::-webkit-scrollbar{width:5px}.es-flow-index .news{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer;padding:10px 0}.es-flow-index .news .sj,.show{width:10px;height:10px;border-right:1px solid #000;border-bottom:1px solid #000;margin-right:10px;-webkit-transform:rotate(-135deg);transform:rotate(-135deg);-webkit-transition:.5s;transition:.5s}.es-flow-index .news .show{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.es-flow-index .el-checkbox{margin:0 10px 10px 0}.es-flow-index .info::-webkit-scrollbar-track{-webkit-box-shadow:inset006pxrgba(0,0,0,.3);border-radius:10px}::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(0,0,0,.1);-webkit-box-shadow:inset006pxrgba(0,0,0,.5)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected::after{right:5px!important}.es-flow-form .input-with-select{width:100%;margin-top:0}.es-flow-form .el-select{width:100%}.es-flow-form .es-opinions .el-select{width:calc(100% + 40px)!important}.select-users .el-input-group__append .el-button span,.select-users .no-icon .el-input-group__append{display:none}.select-users .el-input-group__append{background-color:#1890ff}.select-users .el-input-group__append .el-button i{font-size:18px;color:#fff}.es-flow-form .input-with-select .el-input-group__prepend{background-color:#fff;width:100%}.es-flow-form .el-input-group--prepend>.el-input__inner{display:none!important}.es-flow-form button.el-button.sub.el-button--danger.el-button--medium{width:calc(100% - 85px)}.es-flow-form .el-input-group--prepend>.el-input-group__append{height:40px}.es-flow-form .el-form-item__label{font-weight:700}.es-flow-form .el-input.is-disabled .el-input__inner{color:#000}.select-user{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.select-user .left{width:30%}.select-user .right{padding:3px;width:69%}.select-user .el-checkbox{width:170px;margin-top:11px;margin-bottom:11px}.select-user .all{margin:0!important}
1
+ @charset "UTF-8";.commonOpinion-set,.es-flow-index{-webkit-box-orient:vertical;-webkit-box-direction:normal}.es-common-opinions,.es-fenyue-buttons,.es-flow-buttons,.es-flow-title,.es-opinion{padding:0 12px}.es-user-defined{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.es-user-defined .el-button--primary{-webkit-box-flex:1;-ms-flex:1;flex:1}.required .el-textarea__inner::-webkit-input-placeholder{color:red}.required .el-textarea__inner::-moz-placeholder{color:red}.required .el-textarea__inner:-ms-input-placeholder{color:red}.required .el-textarea__inner::-ms-input-placeholder{color:red}.required .el-textarea__inner::placeholder{color:red}.no-checked .el-checkbox__input{display:none!important}.es-flow-index{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-bottom:12px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;position:relative}.es-flow-index .em-flow-more-btn{display:block;width:100%}.es-flow-index .el-checkbox-group{display:contents}.es-flow-index .es-eidt-title{font-size:13px;color:#333;line-height:20px}.es-flow-index .es-flow-top{height:350px}.es-flow-index .es-flow-top .es-flow-title{height:40px;line-height:40px}.es-flow-index .es-flow-top .es-flow-title .es-icon{position:absolute;right:8px;top:4px}.es-flow-index .es-flow-top .es-opinion{display:-webkit-box;display:-ms-flexbox;display:flex;margin:8px 0;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.es-flow-index .es-flow-top .es-opinion .es-opinion-file{cursor:pointer;position:relative}.es-flow-index .es-flow-top .es-opinion .es-opinion-file .es-file-num{color:red}.es-flow-index .es-button-agree{width:calc(43% - 15px)}.es-flow-index .es-button-agree-save{margin-top:10px}.commonOpinion-set{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.commonOpinion-set .el-table__body-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-flow-index-shrink{width:24px}.es-flow-index-shrink img{cursor:pointer;width:24px;height:24px}.es-flow-btn:hover{background-color:#f5f5f5;color:#1890ff}.es-flow-btn:hover ::v-deep .el-popover{padding:12px 0!important}.es-flow-form .el-checkbox-group{display:contents}.es-flow-index .el-input-group--prepend>.el-input__inner,.es-flow-index .select-process>.el-input__inner{display:none!important}.es-flow-form .el-textarea:first-child,.es-flow-index .el-textarea{width:100%;margin-bottom:10px!important}.es-flow-form .es-opinions .el-select,.es-flow-index .el-select{width:calc(100% + 40px)!important}.es-flow-index .el-select .el-input{width:100%;height:40px}.es-flow-index .process .el-select{width:calc(100% + 40px)!important}.es-flow-index .input-with-select .el-input-group__prepend{background-color:#fff;width:100%}.es-flow-index .select-process .el-input-group__append{height:40px}.es-flow-index button.el-button.sub.el-button--primary.el-button--medium{width:calc(100% - 85px)}.es-flow-index .el-input-group--prepend>.el-input-group__append{height:40px}.es-flow-index .demo-dynamic .el-select{width:100%!important}.es-flow-index .demo-dynamic .select-process .el-select,.es-flow-index .demo-dynamic .selectUser,.es-flow-index.task-union-examine .el-select{width:calc(100% + 40px)!important}.es-flow-index .el-input.el-input-group.el-input-group--append.el-input-group--prepend{margin:0!important}.es-flow-index .demo-dynamic,.es-flow-index .es-footer-btn{margin-top:10px}.es-flow-index .es-footer-btn .el-button+.el-button{margin:10px 10px 0 0}.es-flow-index .el-input.is-disabled .el-input__inner{color:#606266}.es-flow-index .es-flow-btn{margin-right:10px}.es-flow-index .es-info{padding:0 8px;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;overflow-x:hidden}.es-flow-index .es-info::-webkit-scrollbar{width:5px}.es-flow-index .news{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer;padding:10px 0}.es-flow-index .news .sj,.show{width:10px;height:10px;border-right:1px solid #000;border-bottom:1px solid #000;margin-right:10px;-webkit-transform:rotate(-135deg);transform:rotate(-135deg);-webkit-transition:.5s;transition:.5s}.es-flow-index .news .show{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.es-flow-index .el-checkbox{margin:0 10px 10px 0}.es-flow-index .info::-webkit-scrollbar-track{-webkit-box-shadow:inset006pxrgba(0,0,0,.3);border-radius:10px}::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(0,0,0,.1);-webkit-box-shadow:inset006pxrgba(0,0,0,.5)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected::after{right:5px!important}.es-flow-form .input-with-select{width:100%;margin-top:0}.es-flow-form .el-select{width:100%}.es-flow-form .es-opinions .el-select{width:calc(100% + 40px)!important}.select-users .el-input-group__append .el-button span,.select-users .no-icon .el-input-group__append{display:none}.select-users .el-input-group__append{background-color:#1890ff}.select-users .el-input-group__append .el-button i{font-size:18px;color:#fff}.es-flow-form .input-with-select .el-input-group__prepend{background-color:#fff;width:100%}.es-flow-form .el-input-group--prepend>.el-input__inner{display:none!important}.es-flow-form button.el-button.sub.el-button--danger.el-button--medium{width:calc(100% - 85px)}.es-flow-form .el-input-group--prepend>.el-input-group__append{height:40px}.es-flow-form .el-form-item__label{font-weight:700}.es-flow-form .el-input.is-disabled .el-input__inner{color:#000}.select-user{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.select-user .left{width:30%}.select-user .right{padding:3px;width:69%}.select-user .el-checkbox{width:170px;margin-top:11px;margin-bottom:11px}.select-user .all{margin:0!important}