eoss-ui 0.4.22 → 0.4.23

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/main.js CHANGED
@@ -2765,7 +2765,7 @@ module.exports = require("stompjs");
2765
2765
  // ESM COMPAT FLAG
2766
2766
  __webpack_require__.r(__webpack_exports__);
2767
2767
 
2768
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=928abdb6&
2768
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=9860f06c&
2769
2769
  var render = function () {
2770
2770
  var _vm = this
2771
2771
  var _h = _vm.$createElement
@@ -3184,7 +3184,7 @@ var staticRenderFns = []
3184
3184
  render._withStripped = true
3185
3185
 
3186
3186
 
3187
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=928abdb6&
3187
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=9860f06c&
3188
3188
 
3189
3189
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=d575fa30&
3190
3190
  var userinfovue_type_template_id_d575fa30_render = function () {
@@ -6076,6 +6076,7 @@ var log = util["a" /* default */].getParams('console');
6076
6076
  handleJump: function handleJump(page, type, res) {
6077
6077
  var _this9 = this;
6078
6078
 
6079
+ console.log(page);
6079
6080
  if (util["a" /* default */].win.location.hash === page) {
6080
6081
  this.refresh = true;
6081
6082
  return;
package/lib/select.js CHANGED
@@ -3026,6 +3026,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3026
3026
  if (sysCode) {
3027
3027
  store["a" /* default */].set(sysCode, JSON.parse(JSON.stringify(_this3.options)));
3028
3028
  }
3029
+ } else {
3030
+ _this3.$message.error(res.msg);
3029
3031
  }
3030
3032
  }).catch(function (err) {
3031
3033
  _this3.loading = false;
@@ -3138,7 +3140,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3138
3140
  return '';
3139
3141
  },
3140
3142
  reload: function reload() {
3141
- this.getData(arguments);
3143
+ this.getData.apply(this, arguments);
3142
3144
  },
3143
3145
  handleExpand: function handleExpand(data, node) {
3144
3146
  if (this.onExpand) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.4.22",
3
+ "version": "0.4.23",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -290,6 +290,9 @@ export default {
290
290
  },
291
291
  tableReload: {
292
292
  default: ''
293
+ },
294
+ esDialog: {
295
+ default: ''
293
296
  }
294
297
  },
295
298
  props: {
@@ -429,6 +429,7 @@
429
429
  :close-on-click-modal="false"
430
430
  :visible.sync="handleVisible"
431
431
  v-if="handleVisible"
432
+ :closeParent="closeParent"
432
433
  height="auto"
433
434
  >
434
435
  <ProcessForm
@@ -600,7 +601,8 @@ export default {
600
601
  }
601
602
  },
602
603
  beforeSubmit: Function,
603
- title: { type: String, default: '事务表单办理' }
604
+ title: { type: String, default: '事务表单办理' },
605
+ closeParent: Boolean
604
606
  },
605
607
  data() {
606
608
  return {
@@ -2103,11 +2105,6 @@ export default {
2103
2105
  if (this.nextNode.isAddSign != '1') {
2104
2106
  delete params.addSignUserId;
2105
2107
  }
2106
- // if(this.isSubmitButtonShowAgreeAndDisagree == 1){
2107
- // this.value = this.value
2108
- // }
2109
- // console.log(params,'params')
2110
- // return
2111
2108
  this.loading = util.loading(this.$loading, '提交中...');
2112
2109
  const {
2113
2110
  isEndUserTask,
@@ -122,8 +122,8 @@
122
122
  <el-form-item
123
123
  v-show="
124
124
  nextNode.noticeType.length != 0 &&
125
- configInfo.isCdjxjTaskHandle != 'true' &&
126
- type == 'transfer'
125
+ configInfo.isCdjxjTaskHandle != 'true' &&
126
+ type == 'transfer'
127
127
  "
128
128
  prop="nextNode"
129
129
  label="通知消息"
@@ -131,7 +131,7 @@
131
131
  <span>{{ newsInfo }}</span>
132
132
  </el-form-item>
133
133
  <el-form-item>
134
- <div style="text-align:right">
134
+ <div style="text-align: right">
135
135
  <el-button type="primary" size="small" @click="submit('nextNode')">
136
136
  提交
137
137
  </el-button>
@@ -233,7 +233,7 @@ export default {
233
233
  };
234
234
  util
235
235
  .ajax(params)
236
- .then(res => {
236
+ .then((res) => {
237
237
  const {
238
238
  status,
239
239
  message,
@@ -251,7 +251,7 @@ export default {
251
251
  this.$message.error(message || '系统错误,请联系管理员!');
252
252
  }
253
253
  })
254
- .catch(err => {
254
+ .catch((err) => {
255
255
  this.loading = false;
256
256
  if (err.message && err.message !== 'canceled') {
257
257
  this.$message.error(err.message);
@@ -352,14 +352,14 @@ export default {
352
352
  if (this.type != 'taskReadAndEnd') delete params.params.taskAction;
353
353
  util
354
354
  .ajax(params)
355
- .then(res => {
355
+ .then((res) => {
356
356
  const { status, data } = res;
357
357
  if (status === 'success') {
358
358
  this.configInfo = data;
359
359
  this.isMultiple();
360
360
  }
361
361
  })
362
- .catch(err => {
362
+ .catch((err) => {
363
363
  this.loading = false;
364
364
  if (err.message && err.message !== 'canceled') {
365
365
  this.$message.error(err.message);
@@ -370,7 +370,7 @@ export default {
370
370
  const { nextUser, options, mixList } = val;
371
371
  this.nextNode[type] = nextUser;
372
372
  this.mixList = mixList;
373
- options.map(item => {
373
+ options.map((item) => {
374
374
  this.newSelectUserList.push({
375
375
  showname: item.showname,
376
376
  showid: item.showid
@@ -383,13 +383,13 @@ export default {
383
383
  url: findCodeValues,
384
384
  params: { ccCode: 'notification_type' }
385
385
  })
386
- .then(res => {
386
+ .then((res) => {
387
387
  const { status, data } = res;
388
388
  if (status === 'success') {
389
389
  this.noticeList = data;
390
390
  }
391
391
  })
392
- .catch(err => {
392
+ .catch((err) => {
393
393
  this.loading = false;
394
394
  if (err.message && err.message !== 'canceled') {
395
395
  this.$message.error(err.message);
@@ -418,7 +418,7 @@ export default {
418
418
  };
419
419
  util
420
420
  .ajax(params)
421
- .then(res => {
421
+ .then((res) => {
422
422
  const { message, status } = res;
423
423
  if (status === 'success') {
424
424
  this.$message.success('操作成功');
@@ -428,7 +428,7 @@ export default {
428
428
  }
429
429
  this.loading = false;
430
430
  })
431
- .catch(err => {
431
+ .catch((err) => {
432
432
  this.loading = false;
433
433
  if (err.message && err.message !== 'canceled') {
434
434
  this.$message.error(err.message);
@@ -437,7 +437,7 @@ export default {
437
437
  },
438
438
  // 提交表单
439
439
  submit(formName) {
440
- this.$refs[formName].validate(valid => {
440
+ this.$refs[formName].validate((valid) => {
441
441
  if (valid) {
442
442
  if (!this.option && this.isOpinionRequired === 1) {
443
443
  this.$message.warning('请选择输入审批意见');
@@ -479,17 +479,12 @@ export default {
479
479
  // nextNodeId: this.form.nextNodeId
480
480
  };
481
481
  delete params.nextUser;
482
- const {
483
- fyDoresult,
484
- fyeh,
485
- download,
486
- isCdjxjTaskHandle
487
- } = this.configInfo;
482
+ const { fyDoresult, fyeh, download, isCdjxjTaskHandle } =
483
+ this.configInfo;
488
484
  fyDoresult != 'true' && delete params.showDoresult;
489
485
  fyeh != 'true' && delete params.isInHistory;
490
486
  !download && delete params.isDownload;
491
487
  isCdjxjTaskHandle == 'true' && delete params.noticeType;
492
- console.log(params,'aaa')
493
488
  util
494
489
  .ajax({
495
490
  url: taskReadHtml,
@@ -498,7 +493,7 @@ export default {
498
493
  method: 'post',
499
494
  data: params
500
495
  })
501
- .then(res => {
496
+ .then((res) => {
502
497
  const { message, status } = res;
503
498
  this.loading = false;
504
499
  if (status === 'success') {
@@ -508,7 +503,7 @@ export default {
508
503
  this.$message.error(message || '系统错误,请联系管理员!');
509
504
  }
510
505
  })
511
- .catch(err => {
506
+ .catch((err) => {
512
507
  this.loading = false;
513
508
  if (err.message && err.message !== 'canceled') {
514
509
  this.$message.error(err.message);
@@ -531,7 +526,7 @@ export default {
531
526
  .ajax({
532
527
  url: findSysCodes
533
528
  })
534
- .then(res => {
529
+ .then((res) => {
535
530
  const { status, message } = res;
536
531
  this.loading = false;
537
532
  if (status === 'success') {
@@ -546,7 +541,7 @@ export default {
546
541
  this.toStartTaskRead();
547
542
  }
548
543
  })
549
- .catch(err => {
544
+ .catch((err) => {
550
545
  this.loading = false;
551
546
  if (err.message && err.message !== 'canceled') {
552
547
  this.$message.error(err.message);
@@ -371,6 +371,7 @@
371
371
  @startTaskRead="handleTaskRead"
372
372
  @success="handleSuccess"
373
373
  @save="handleSave"
374
+ :closeParent="closeParent"
374
375
  ></es-flow>
375
376
  </div>
376
377
  </template>
@@ -410,6 +411,10 @@ export default {
410
411
  type: Boolean,
411
412
  default: true
412
413
  },
414
+ closeParent: {
415
+ type: Boolean,
416
+ default: true
417
+ },
413
418
  appId: String,
414
419
  zoom: false
415
420
  },
@@ -5,7 +5,7 @@
5
5
  class="es-main-header"
6
6
  :style="{ backgroundImage: headerImg ? 'url(' + headerImg + ')' : '' }"
7
7
  >
8
- <AsyncComponent
8
+ <AsyncComponent
9
9
  v-if="themeJSON.logo.comp"
10
10
  :style="!themeJSON.topNav.comp ? 'width:100%' : ''"
11
11
  :key="themeJSON.logo.comp"
@@ -34,7 +34,7 @@
34
34
  "
35
35
  ></es-menu>
36
36
  </div>
37
- <AsyncComponent
37
+ <AsyncComponent
38
38
  v-if="themeJSON.topNav.comp"
39
39
  :style="!themeJSON.logo.comp ? 'width:100%' : ''"
40
40
  :hide="hide"
@@ -83,7 +83,7 @@
83
83
  @click="handleClick"
84
84
  ></es-handle-user>
85
85
  </div>
86
- <AsyncComponent
86
+ <AsyncComponent
87
87
  v-if="themeJSON.leftNav.comp"
88
88
  :biserial="biserial"
89
89
  :newTitle="showNavTitle ? title : false"
@@ -177,7 +177,7 @@
177
177
  /></keep-alive>
178
178
  </template>
179
179
  </div>
180
- <AsyncComponent
180
+ <AsyncComponent
181
181
  style="
182
182
  position: absolute;
183
183
  height: 60px;
@@ -368,7 +368,7 @@ export default {
368
368
  type: Boolean,
369
369
  default: true
370
370
  },
371
- isCustomMain:{
371
+ isCustomMain: {
372
372
  type: Boolean,
373
373
  default: false
374
374
  }
@@ -617,7 +617,7 @@ export default {
617
617
  this.customMenu = res;
618
618
  this.setMenu(res);
619
619
  },
620
- //获取主题模板JSON
620
+ //获取主题模板JSON
621
621
  getMainDetail(id) {
622
622
  let params = {
623
623
  url: mainDetail,
@@ -796,10 +796,10 @@ export default {
796
796
  let mainFrameLayout = results.mainFrameLayout;
797
797
  if (results.userStyle.layout && this.isCustomMain) {
798
798
  this.getMainDetail(results.userStyle.layout);
799
- } else if(this.isCustomMain){
799
+ } else if (this.isCustomMain) {
800
800
  this.getMainDetail(mainFrameLayout);
801
- }else{
802
- this.showDefault = true
801
+ } else {
802
+ this.showDefault = true;
803
803
  }
804
804
  },
805
805
  //获取用户配置及信息
@@ -968,18 +968,18 @@ export default {
968
968
  }
969
969
  if (this.modal === 'subsystem' || this.modal === 'topside') {
970
970
  if (this.modal === 'subsystem') {
971
- if (this.menuType === 'custom') {
971
+ if (this.menuType === 'custom') {
972
972
  this.subsystem = this.customMenu;
973
973
  } else {
974
974
  this.subsystem = res;
975
975
  }
976
976
  } else if (this.modal === 'topside') {
977
- if (this.menuType === 'custom') {
977
+ if (this.menuType === 'custom') {
978
978
  this.navs = this.customMenu;
979
979
  this.topActive = res[0].id;
980
980
  } else {
981
981
  this.navs = res;
982
- this.topActive = res[0].id;
982
+ this.topActive = res[0].id;
983
983
  }
984
984
  }
985
985
  if (this.application) {
@@ -998,12 +998,12 @@ export default {
998
998
  this.active = this.getFirst(this.menu[0]);
999
999
  }
1000
1000
  } else if (this.modal === 'topnav') {
1001
- if (this.menuType === 'custom') {
1001
+ if (this.menuType === 'custom') {
1002
1002
  this.navs = this.customMenu;
1003
1003
  this.topActive = this.getFirst(res[0]);
1004
1004
  } else {
1005
- this.navs = res;
1006
- this.topActive = this.getFirst(res[0]);
1005
+ this.navs = res;
1006
+ this.topActive = this.getFirst(res[0]);
1007
1007
  }
1008
1008
  } else {
1009
1009
  this.menu = res;
@@ -1114,14 +1114,13 @@ export default {
1114
1114
  this.modal === 'topSide'
1115
1115
  ) {
1116
1116
  if (this.modal === 'subsystem' || this.modal === 'subSystem') {
1117
- if (this.menuType === 'custom') {
1117
+ if (this.menuType === 'custom') {
1118
1118
  this.subsystem = this.customMenu;
1119
1119
  this.sysId = active[0];
1120
1120
  } else {
1121
1121
  this.subsystem = res;
1122
- this.sysId = active[0];
1122
+ this.sysId = active[0];
1123
1123
  }
1124
-
1125
1124
  } else if (
1126
1125
  this.modal === 'topnav' ||
1127
1126
  this.modal === 'topNav' ||
@@ -1384,6 +1383,7 @@ export default {
1384
1383
  },
1385
1384
  //跳转页面
1386
1385
  handleJump(page, type, res) {
1386
+ console.log(page);
1387
1387
  if (util.win.location.hash === page) {
1388
1388
  this.refresh = true;
1389
1389
  return;
@@ -329,6 +329,8 @@ export default {
329
329
  if (sysCode) {
330
330
  store.set(sysCode, JSON.parse(JSON.stringify(this.options)));
331
331
  }
332
+ } else {
333
+ this.$message.error(res.msg);
332
334
  }
333
335
  })
334
336
  .catch((err) => {
@@ -474,7 +476,7 @@ export default {
474
476
  return '';
475
477
  },
476
478
  reload() {
477
- this.getData(arguments);
479
+ this.getData(...arguments);
478
480
  },
479
481
  handleExpand(data, node) {
480
482
  if (this.onExpand) {
package/src/index.js CHANGED
@@ -115,7 +115,7 @@ if (typeof window !== 'undefined' && window.Vue) {
115
115
  }
116
116
 
117
117
  export default {
118
- version: '0.4.22',
118
+ version: '0.4.23',
119
119
  install,
120
120
  Button,
121
121
  ButtonGroup,