eoss-ui 0.4.95 → 0.4.97

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.
@@ -1 +1 @@
1
- @charset "UTF-8";.es-selector,.es-selector .es-selector-tags{position:relative}.es-selector{line-height:normal}.es-selector .el-select__tags{max-width:100%;padding-left:4px}.es-selector .el-select__tags.es-selector-edit>span{padding-top:4px}.es-selector .el-select__tags .el-tag{margin-right:4px;margin-bottom:4px}.es-selector .es-selector-search .el-select__tags{max-width:calc(100% - 71px)}.es-selector .es-selector-tags.es-selector-more{padding-right:50px;width:100%}.es-selector .es-selector-tags.es-selector-more .el-tag{display:block}.es-selector .es-selector-tags.es-selector-more .es-tags-more{width:40px;padding:0 4px;position:absolute;top:0;right:6px;text-align:center}.es-selector .es-selector-tags-box{line-height:0}.es-selector .es-pointer .el-input__inner{cursor:pointer}.es-selector .es-selector-dropdown-item.hover,.es-selector .es-selector-dropdown-item:hover{background-color:#f5f7fa}.es-selector .es-selector-dropdown-item{font-size:14px;padding:0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#606266;height:34px;line-height:34px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.es-selector .es-selector-dropdown-item.es-selected{color:#1890ff}.es-zindex-2{z-index:2}.es-selector-dialog .el-dialog__header{padding:12px 20px 8px}.es-selector-dialog .el-dialog__header .el-dialog__title{font-size:14px}.es-selector-dialog .el-dialog__headerbtn{top:14px;right:16px}.es-selector-dialog .el-dialog__body{padding:4px}
1
+ @charset "UTF-8";.es-selector,.es-selector .es-selector-tags{position:relative}.es-selector{line-height:normal}.es-selector .el-select__tags{max-width:100%;padding-left:4px}.es-selector .el-select__tags.es-selector-edit>span{padding-top:4px}.es-selector .el-select__tags .el-tag{margin-right:4px;margin-bottom:4px}.es-selector .es-selector-search .el-select__tags{max-width:calc(100% - 71px)}.es-selector .es-selector-tags.es-selector-more{padding-right:50px;width:100%}.es-selector .es-selector-tags.es-selector-more .el-tag{display:block}.es-selector .es-selector-tags.es-selector-more .es-tags-more{width:40px;padding:0 4px;position:absolute;top:0;right:6px;text-align:center}.es-selector .es-selector-tags-box{line-height:0}.es-selector .es-pointer .el-input__inner{cursor:pointer}.es-selector-dropdown-item.hover,.es-selector-dropdown-item:hover{background-color:#f5f7fa}.es-selector-popover{padding:0}.es-selector-popover .es-selector-dropdown__list{padding:12px}.es-selector-popover .es-selector-dropdown-item{font-size:14px;padding:0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#606266;height:34px;line-height:34px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.es-selector-popover .es-selector-dropdown-item.es-selected{color:#1890ff}.es-zindex-2{z-index:2}.es-selector-dialog .el-dialog__header{padding:12px 20px 8px}.es-selector-dialog .el-dialog__header .el-dialog__title{font-size:14px}.es-selector-dialog .el-dialog__headerbtn{top:14px;right:16px}.es-selector-dialog .el-dialog__body{padding:4px}
@@ -1 +1 @@
1
- @charset "UTF-8";.es-toolbar{padding:6px 12px;border-bottom:1px solid #d9d9d9;position:relative;background-color:#fff}.es-toolbar .es-toolbar-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.es-toolbar .es-toolbar-content .es-button-content{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-toolbar .es-toolbar-content .es-form{background:0 0}.es-toolbar .es-toolbar-content .es-form .es-form-content{padding:0}.es-toolbar .es-toolbar-content .es-form .el-form-item{margin-bottom:0}.es-toolbar .es-toolbar-content .es-advanced-btn{margin-left:12px}.es-toolbar .es-toolbar-content .es-toolbar-text{line-height:32px}.es-toolbar .es-toolbar-content .es-toolbar-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.es-toolbar .es-toolbar-content .es-toolbar-info .es-info{font-size:13px;margin-left:20px}.es-toolbar .es-toolbar-content .el-menu--horizontal{border-bottom:0;position:relative;bottom:-6px}.es-toolbar .es-toolbar-content .el-menu-item{height:32px;line-height:24px}.es-toolbar .es-toolbar-content .el-input__inner,.es-toolbar .es-toolbar-content .es-checkbox-group{height:32px;line-height:32px}.es-toolbar .es-toolbar-content .es-radio-group,.es-toolbar .es-toolbar-content .es-switch-content{line-height:32px}.es-toolbar .es-toolbar-content .el-switch{top:-2px}.es-toolbar .es-toolbar-content .el-button span{line-height:14px}.es-toolbar .es-toolbar-content .el-checkbox:not(:last-child),.es-toolbar .es-toolbar-content .el-radio:not(:last-child){margin-right:8px}.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-checkbox+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-radio+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-switch+.el-form-item{margin-left:16px}.es-toolbar .es-toolbar-content .el-form-item .el-input__icon{line-height:32px;vertical-align:top}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner{width:100%;max-width:156px}.es-toolbar .es-advanced-filter{margin-top:20px;z-index:9}.es-toolbar .es-advanced-filter.es-absolute{position:absolute;left:0;top:45px;right:0;margin-top:0;-webkit-box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);border-bottom-left-radius:6px;border-bottom-right-radius:6px}.es-toolbar .es-advanced-filter.es-absolute .es-form{background-color:#fff;border:1px solid #d9d9d9;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:0;padding:20px 20px 20px 10px}.es-toolbar .el-form-item__content,.es-toolbar .el-form-item__label{line-height:32px!important}.es-toolbar .el-button.es-upload{padding:0!important;border:0!important}
1
+ @charset "UTF-8";.es-toolbar{padding:6px 12px;border-bottom:1px solid #d9d9d9;position:relative;background-color:#fff}.es-toolbar .es-toolbar-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.es-toolbar .es-toolbar-content .es-button-content{-webkit-box-flex:1;-ms-flex:1;flex:1}.es-toolbar .es-toolbar-content .es-form{background:0 0}.es-toolbar .es-toolbar-content .es-form .es-form-content{padding:0}.es-toolbar .es-toolbar-content .es-form .el-form-item{margin-bottom:0}.es-toolbar .es-toolbar-content .es-advanced-btn{margin-left:12px}.es-toolbar .es-toolbar-content .es-toolbar-text{line-height:32px}.es-toolbar .es-toolbar-content .es-toolbar-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.es-toolbar .es-toolbar-content .es-toolbar-info .es-info{font-size:13px;margin-left:20px}.es-toolbar .es-toolbar-content .el-menu--horizontal{border-bottom:0;position:relative;bottom:-6px}.es-toolbar .es-toolbar-content .el-menu-item{height:32px;line-height:24px}.es-toolbar .es-toolbar-content .el-input__inner,.es-toolbar .es-toolbar-content .es-checkbox-group{height:32px;line-height:32px}.es-toolbar .es-toolbar-content .es-radio-group,.es-toolbar .es-toolbar-content .es-switch-content{line-height:32px}.es-toolbar .es-toolbar-content .el-switch{top:-2px}.es-toolbar .es-toolbar-content .el-button span{line-height:14px}.es-toolbar .es-toolbar-content .el-checkbox:not(:last-child),.es-toolbar .es-toolbar-content .el-radio:not(:last-child){margin-right:8px}.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-checkbox+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-radio+.el-form-item,.es-toolbar .es-toolbar-content .el-form-item.es-toolbar-item-switch+.el-form-item{margin-left:16px}.es-toolbar .es-toolbar-content .el-form-item .el-input__icon{line-height:32px;vertical-align:top}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner{width:100%;max-width:156px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange{max-width:300px}.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-input__icon,.es-toolbar .es-toolbar-content .es-form-search-small .el-input__inner.el-date-editor--daterange .el-range-separator{line-height:24px}.es-toolbar .es-advanced-filter{margin-top:20px;z-index:9}.es-toolbar .es-advanced-filter.es-absolute{position:absolute;left:0;top:45px;right:0;margin-top:0;-webkit-box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);box-shadow:0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12);border-bottom-left-radius:6px;border-bottom-right-radius:6px}.es-toolbar .es-advanced-filter.es-absolute .es-form{background-color:#fff;border:1px solid #d9d9d9;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:0;padding:20px 20px 20px 10px}.es-toolbar .el-form-item__content,.es-toolbar .el-form-item__label{line-height:32px!important}.es-toolbar .el-button.es-upload{padding:0!important;border:0!important}
package/lib/upload.js CHANGED
@@ -3312,6 +3312,13 @@ module.exports = require("eoss-element");
3312
3312
 
3313
3313
  /***/ }),
3314
3314
 
3315
+ /***/ 24:
3316
+ /***/ (function(module, exports) {
3317
+
3318
+ module.exports = require("js-base64");
3319
+
3320
+ /***/ }),
3321
+
3315
3322
  /***/ 3:
3316
3323
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3317
3324
 
@@ -3424,8 +3431,8 @@ function normalizeComponent(
3424
3431
  // ESM COMPAT FLAG
3425
3432
  __webpack_require__.r(__webpack_exports__);
3426
3433
 
3427
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=3bdc3f65&
3428
- var mainvue_type_template_id_3bdc3f65_render = function () {
3434
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=74d3e866&
3435
+ var mainvue_type_template_id_74d3e866_render = function () {
3429
3436
  var _vm = this
3430
3437
  var _h = _vm.$createElement
3431
3438
  var _c = _vm._self._c || _h
@@ -3805,10 +3812,10 @@ var mainvue_type_template_id_3bdc3f65_render = function () {
3805
3812
  : _vm._e()
3806
3813
  }
3807
3814
  var staticRenderFns = []
3808
- mainvue_type_template_id_3bdc3f65_render._withStripped = true
3815
+ mainvue_type_template_id_74d3e866_render._withStripped = true
3809
3816
 
3810
3817
 
3811
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=3bdc3f65&
3818
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=74d3e866&
3812
3819
 
3813
3820
  // EXTERNAL MODULE: ./src/config/api.js
3814
3821
  var api = __webpack_require__(1);
@@ -3835,6 +3842,9 @@ var util = __webpack_require__(0);
3835
3842
  // EXTERNAL MODULE: ./src/utils/store.js
3836
3843
  var store = __webpack_require__(8);
3837
3844
 
3845
+ // EXTERNAL MODULE: external "js-base64"
3846
+ var external_js_base64_ = __webpack_require__(24);
3847
+
3838
3848
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=script&lang=js&
3839
3849
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
3840
3850
 
@@ -4023,6 +4033,7 @@ var _props;
4023
4033
 
4024
4034
 
4025
4035
 
4036
+
4026
4037
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
4027
4038
  name: 'EsUpload',
4028
4039
  components: {
@@ -4248,7 +4259,8 @@ var _props;
4248
4259
  source: '',
4249
4260
  excludeNames: '',
4250
4261
  previewAdjunct: api["gb" /* previewAdjunct */],
4251
- boxHeight: this.listHeight
4262
+ boxHeight: this.listHeight,
4263
+ kkfileview: null
4252
4264
  };
4253
4265
  },
4254
4266
 
@@ -4501,6 +4513,7 @@ var _props;
4501
4513
  return item;
4502
4514
  }).join(',');
4503
4515
  }
4516
+ _this2.kkfileview = res.results.kkViewRootPath ? res.results.kkViewRootPath : null;
4504
4517
  _this2.fileSize = res.results.limitFileSize ? res.results.limitFileSize : 0;
4505
4518
  _this2.fileTotalSize = res.results.limitTotalSize;
4506
4519
  store["a" /* default */].set(_this2.code, {
@@ -4560,6 +4573,10 @@ var _props;
4560
4573
  handleUpload: function handleUpload() {
4561
4574
  this.$refs.upload.submit();
4562
4575
  },
4576
+ openKkfileview: function openKkfileview(file) {
4577
+ var url = encodeURIComponent(external_js_base64_["Base64"].encode((typeof this.download === 'string' ? this.download : api["q" /* downloadByAdjunctId */]) + ('?adjunctId=' + (file.adjunctId || file.response.adjunctId) + '&fullfilename=' + file.originalName)));
4578
+ util["a" /* default */].win.top.open(this.kkfileview + '?url=' + url);
4579
+ },
4563
4580
  handlePreview: function handlePreview(res) {
4564
4581
  var _this4 = this;
4565
4582
 
@@ -4573,9 +4590,17 @@ var _props;
4573
4590
  var suffix = file.suffix;
4574
4591
  suffix = suffix.toLowerCase();
4575
4592
  if (suffix.includes('doc') || suffix.includes('docx') || suffix.includes('xls') || suffix.includes('xlsx') || suffix.includes('ppt')) {
4576
- util["a" /* default */].win.open(this.host + (url ? url : api["ib" /* previewAdjunctOffice */]) + '?cmd=view&bucketName=' + file.absolutePath + '&fileId=' + file.adjunctId + '&fileName=' + file.newName);
4593
+ if (this.kkfileview) {
4594
+ this.openKkfileview(file);
4595
+ } else {
4596
+ util["a" /* default */].win.top.open(this.host + (url ? url : api["ib" /* previewAdjunctOffice */]) + '?cmd=view&bucketName=' + file.absolutePath + '&fileId=' + file.adjunctId + '&fileName=' + file.newName);
4597
+ }
4577
4598
  } else if (suffix.includes('pdf')) {
4578
- util["a" /* default */].win.open(this.host + (url ? url : api["hb" /* previewAdjunct2 */]) + '/' + file.originalName + '?adjunctId=' + file.adjunctId);
4599
+ if (this.kkfileview) {
4600
+ this.openKkfileview(file);
4601
+ } else {
4602
+ util["a" /* default */].win.top.open(this.host + (url ? url : api["hb" /* previewAdjunct2 */]) + '/' + file.originalName + '?adjunctId=' + file.adjunctId);
4603
+ }
4579
4604
  } else if (suffix.includes('jpge') || suffix.includes('jpg') || suffix.includes('gif') || suffix.includes('png')) {
4580
4605
  this.imgUrl = res.url && util["a" /* default */].startWith(url, ['http', '/', true]) ? res.url : this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId;
4581
4606
  this.title = file.originalName;
@@ -4590,10 +4615,14 @@ var _props;
4590
4615
  this.title = file.originalName;
4591
4616
  this.showVideo = true;
4592
4617
  } else {
4593
- util["a" /* default */].win.open(this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId);
4618
+ if (this.kkfileview) {
4619
+ this.openKkfileview(file);
4620
+ } else {
4621
+ util["a" /* default */].win.top.open(this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId);
4622
+ }
4594
4623
  }
4595
4624
  } else {
4596
- util["a" /* default */].win.open(URL.createObjectURL(file.raw));
4625
+ util["a" /* default */].win.top.open(URL.createObjectURL(file.raw));
4597
4626
  }
4598
4627
  }
4599
4628
  }
@@ -4874,7 +4903,7 @@ var componentNormalizer = __webpack_require__(3);
4874
4903
 
4875
4904
  var component = Object(componentNormalizer["a" /* default */])(
4876
4905
  src_mainvue_type_script_lang_js_,
4877
- mainvue_type_template_id_3bdc3f65_render,
4906
+ mainvue_type_template_id_74d3e866_render,
4878
4907
  staticRenderFns,
4879
4908
  false,
4880
4909
  null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.4.95",
3
+ "version": "0.4.97",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -56,6 +56,7 @@
56
56
  "@interactjs/feedback": "^1.10.3",
57
57
  "axios": "^0.27.2",
58
58
  "interactjs": "^1.10.26",
59
+ "js-base64": "^3.7.5",
59
60
  "json-bigint": "^1.0.0",
60
61
  "net": "^1.0.2",
61
62
  "qrcode": "^1.5.1",
@@ -95,7 +96,7 @@
95
96
  "cp-cli": "^1.0.2",
96
97
  "cross-env": "^3.1.3",
97
98
  "css-loader": "^2.1.0",
98
- "eoss-element": "^0.2.74",
99
+ "eoss-element": "^0.2.75",
99
100
  "es6-promise": "^4.0.5",
100
101
  "eslint": "4.18.2",
101
102
  "eslint-config-elemefe": "0.1.1",
@@ -274,7 +274,7 @@
274
274
  />
275
275
  </el-form-item>
276
276
  <el-form-item
277
- v-if="isMainSubProcess"
277
+ v-if="isMainSubProcess && isNodeShowProcess"
278
278
  prop="mainSubId"
279
279
  label="主办"
280
280
  >
@@ -501,7 +501,7 @@
501
501
  "
502
502
  trigger="click"
503
503
  placement="top"
504
- style="border-left:1px solid #d9d9d9"
504
+ style="border-left: 1px solid #d9d9d9"
505
505
  >
506
506
  <el-button>...</el-button>
507
507
  <el-dropdown-menu slot="dropdown">
@@ -778,6 +778,7 @@ export default {
778
778
  isHideCurrentOrg: false, //是否隐藏本单位(承办)
779
779
  isHideOtherOrg: false, //是否隐藏外单位(承办)
780
780
  isMainSubProcess: false, // 判断是否子-主流程
781
+ isNodeShowProcess: false, //是否展示主办
781
782
  isNextUser: false,
782
783
  isShowNode: false,
783
784
  nextNodeList: [],
@@ -945,7 +946,7 @@ export default {
945
946
  },
946
947
  methods: {
947
948
  getsubProcessColumns() {
948
- if (!this.isMainSubProcess) return [];
949
+ if (!this.isMainSubProcess || !this.isNodeShowProcess) return [];
949
950
  let data = [];
950
951
  let obj = { name: '[部门员工]-' };
951
952
  if (this.nextCurrentOrgObjSelect.length > 0) {
@@ -1644,6 +1645,9 @@ export default {
1644
1645
  this.nodeType = data.nodeExtAttr.nodeType;
1645
1646
  //如果当前为承办节点/会签节点,则展示本单位外单位办理人选择
1646
1647
  if (this.nodeType === 1 || this.nodeType === 2) {
1648
+ this.isMainSubProcess === true
1649
+ ? (this.isNodeShowProcess = true)
1650
+ : (this.isNodeShowProcess = false);
1647
1651
  this.isMainSubProcess === true
1648
1652
  ? (this.isMainSubProcess = true)
1649
1653
  : (this.isMainSubProcess = false);
@@ -1655,6 +1659,7 @@ export default {
1655
1659
  } else {
1656
1660
  this.isHideCurrentOrg = false;
1657
1661
  this.isHideOtherOrg = false;
1662
+ this.isNodeShowProcess = false;
1658
1663
  this.isMainSubProcess = false;
1659
1664
  this.isNextUser = true;
1660
1665
  // this.isMainSubProcess === true
@@ -1748,6 +1753,7 @@ export default {
1748
1753
  this.isNextUser = false;
1749
1754
  this.isShowNode = false;
1750
1755
  this.isMainSubProcess = false;
1756
+ this.isNodeShowProcess = false;
1751
1757
  this.nextNode.nextNodeId = '';
1752
1758
  this.nextNode.isReturnSubmitter = 0;
1753
1759
  this.nextNode.isUndertakeReply = 0;
@@ -2255,7 +2261,7 @@ export default {
2255
2261
  this.value = this.value.replace(RegExp('同意。', 'g'), '');
2256
2262
  this.value = val + this.value;
2257
2263
  }
2258
- if(!this.validInfo()) return
2264
+ if (!this.validInfo()) return;
2259
2265
  if (this.beforeSubmit == undefined) {
2260
2266
  this.subFun(this.sendData);
2261
2267
  } else {
@@ -2269,58 +2275,59 @@ export default {
2269
2275
  });
2270
2276
  },
2271
2277
  validInfo() {
2272
- if (
2273
- !this.endFlow &&
2274
- this.newTypeCode != 'fenyue' &&
2275
- !this.shrink &&
2276
- this.nextNode.isAddSign != '1' &&
2277
- this.nextNode.isRemoveSign != '1' &&
2278
- this.isSpecial &&
2279
- !this.isReject &&
2280
- this.nodeInfos.length != 0 &&
2281
- this.isNextUser
2282
- ) {
2283
- if (this.isShowNextUser) {
2284
- if (
2285
- this.nextNode.nextUserId == '' ||
2286
- (this.multiple && this.nextNode.nextUserId.length == 0)
2287
- ) {
2288
- this.$message.warning('请选择下步办理人');
2289
- return false
2290
- }
2291
- } else {
2292
- if (
2293
- this.nextNode.nextOrgId == '' ||
2294
- (this.multiple && this.nextNode.nextOrgId.length == 0)
2295
- ) {
2296
- this.$message.warning('请选择办理对象');
2297
- return false
2298
- }
2299
- }
2300
- }
2301
-
2302
- if (
2303
- this.nextNode.isAddSign == '1' &&
2304
- this.nextNode.addSignUserId.length == 0
2305
- )
2306
- {this.$message.warning('请选择加签办理人');
2307
- return false}
2278
+ if (
2279
+ !this.endFlow &&
2280
+ this.newTypeCode != 'fenyue' &&
2281
+ !this.shrink &&
2282
+ this.nextNode.isAddSign != '1' &&
2283
+ this.nextNode.isRemoveSign != '1' &&
2284
+ this.isSpecial &&
2285
+ !this.isReject &&
2286
+ this.nodeInfos.length != 0 &&
2287
+ this.isNextUser
2288
+ ) {
2289
+ if (this.isShowNextUser) {
2308
2290
  if (
2309
- this.nextNode.isRemoveSign == '1' &&
2310
- this.nextNode.removeSignUserId.length == 0
2311
- ){
2312
- this.$message.warning('请选择减签办理人');
2313
- return false
2314
- }
2315
- if (!this.value && this.isOpinionRequired === 1) {
2316
- this.$message.warning('请选择输入审批意见');
2291
+ this.nextNode.nextUserId == '' ||
2292
+ (this.multiple && this.nextNode.nextUserId.length == 0)
2293
+ ) {
2294
+ this.$message.warning('请选择下步办理人');
2317
2295
  return false;
2318
2296
  }
2319
- if (this.isHideCurrentOrg && !this.nextNode.nextCurrentOrgObjJson) {
2320
- this.$message.warning(`请选择${this.currentOrgName || '本单位'}`);
2297
+ } else {
2298
+ if (
2299
+ this.nextNode.nextOrgId == '' ||
2300
+ (this.multiple && this.nextNode.nextOrgId.length == 0)
2301
+ ) {
2302
+ this.$message.warning('请选择办理对象');
2321
2303
  return false;
2322
2304
  }
2323
- return true
2305
+ }
2306
+ }
2307
+
2308
+ if (
2309
+ this.nextNode.isAddSign == '1' &&
2310
+ this.nextNode.addSignUserId.length == 0
2311
+ ) {
2312
+ this.$message.warning('请选择加签办理人');
2313
+ return false;
2314
+ }
2315
+ if (
2316
+ this.nextNode.isRemoveSign == '1' &&
2317
+ this.nextNode.removeSignUserId.length == 0
2318
+ ) {
2319
+ this.$message.warning('请选择减签办理人');
2320
+ return false;
2321
+ }
2322
+ if (!this.value && this.isOpinionRequired === 1) {
2323
+ this.$message.warning('请选择输入审批意见');
2324
+ return false;
2325
+ }
2326
+ if (this.isHideCurrentOrg && !this.nextNode.nextCurrentOrgObjJson) {
2327
+ this.$message.warning(`请选择${this.currentOrgName || '本单位'}`);
2328
+ return false;
2329
+ }
2330
+ return true;
2324
2331
  },
2325
2332
  sendData() {
2326
2333
  this.$refs['nextNode'].validate(async (valid) => {
@@ -271,10 +271,28 @@
271
271
  v-on="{ ...item.events }"
272
272
  >
273
273
  </es-dialog>
274
+ <component
275
+ v-if="item.component"
276
+ :is="item.type"
277
+ v-bind="
278
+ handleExclAttribute({
279
+ data: item
280
+ })
281
+ "
282
+ ></component>
274
283
  </template>
275
284
  </template>
276
285
  </template>
277
286
  <template v-else>
287
+ <component
288
+ v-if="contents.component"
289
+ :is="contents.type"
290
+ v-bind="
291
+ handleExclAttribute({
292
+ data: contents
293
+ })
294
+ "
295
+ ></component>
278
296
  <es-form
279
297
  v-if="contents.type === 'form'"
280
298
  :show-button="false"
@@ -456,14 +474,16 @@ export default {
456
474
  width: {
457
475
  type: String,
458
476
  default: '360px'
459
- }
477
+ },
478
+ refs: String
460
479
  },
461
480
  data() {
462
481
  return {
463
482
  activeName: this.active,
464
483
  businessId: undefined,
465
484
  taskExamineAppId: this.appId,
466
- showMsg: true
485
+ showMsg: true,
486
+ formRefs: this.refs
467
487
  };
468
488
  },
469
489
  computed: {
@@ -515,6 +535,10 @@ export default {
515
535
  : true;
516
536
  },
517
537
  handleExclAttribute({ data, attrs }) {
538
+ if (!attrs || !attrs.length) {
539
+ this.ref && (this.formRefs = this.ref);
540
+ return data;
541
+ }
518
542
  return util.exclAttribute({
519
543
  data: data,
520
544
  attrs: attrs
@@ -561,7 +585,9 @@ export default {
561
585
  });
562
586
  },
563
587
  handleSubmit(res) {
564
- let esFlowForm = this.$refs.esFlowForm;
588
+ let esFlowForm = this.formRefs
589
+ ? this.$refs[this.formRefs]
590
+ : this.$refs.esFlowForm;
565
591
  if (Array.isArray(esFlowForm)) {
566
592
  esFlowForm = esFlowForm[0];
567
593
  }
@@ -530,6 +530,10 @@ export default {
530
530
  useResults: {
531
531
  type: Boolean,
532
532
  default: true
533
+ },
534
+ scanIntervalTime: {
535
+ type: Number,
536
+ default: 1500
533
537
  }
534
538
  },
535
539
  computed: {
@@ -1271,12 +1275,12 @@ export default {
1271
1275
  },
1272
1276
  //获取app登录信息
1273
1277
  loginInfo(res) {
1274
- clearInterval(this.interval);
1278
+ clearTimeout(this.interval);
1275
1279
  if (res) {
1276
1280
  //this.modifyPasswordfun();
1277
- this.interval = setInterval(() => {
1281
+ this.interval = setTimeout(() => {
1278
1282
  this.initRequestLoginInfo();
1279
- }, 1000);
1283
+ }, this.scanIntervalTime);
1280
1284
  }
1281
1285
  },
1282
1286
  initRequestLoginInfo() {
@@ -1295,7 +1299,7 @@ export default {
1295
1299
  }
1296
1300
  })
1297
1301
  .catch((err) => {
1298
- clearInterval(this.interval);
1302
+ clearTimeout(this.interval);
1299
1303
  if (err.message && err.message !== 'canceled') {
1300
1304
  this.$message.error(err.message);
1301
1305
  }
@@ -707,9 +707,6 @@ export default {
707
707
  }
708
708
  } else {
709
709
  this.getConfig();
710
- if (this.socket) {
711
- this.initWebSocket();
712
- }
713
710
  }
714
711
  break;
715
712
  case 1:
@@ -790,9 +787,6 @@ export default {
790
787
  .catch((e) => {});
791
788
  } else {
792
789
  this.getConfig();
793
- if (this.socket) {
794
- this.initWebSocket();
795
- }
796
790
  }
797
791
  },
798
792
  menuSuccess(res) {
@@ -1060,6 +1054,9 @@ export default {
1060
1054
  .then((res) => {
1061
1055
  if (res && res.rCode === 0) {
1062
1056
  this.setConfig(res.results, 1);
1057
+ if (this.socket) {
1058
+ this.initWebSocket();
1059
+ }
1063
1060
  if (this.remote) {
1064
1061
  this.getMenu();
1065
1062
  } else {
@@ -2,7 +2,6 @@
2
2
  import { findSysCode } from 'eoss-ui/src/config/api.js';
3
3
  import store from 'eoss-ui/src/utils/store';
4
4
  import util from 'eoss-ui/src/utils/util';
5
- import { string } from 'slate';
6
5
  export default {
7
6
  name: 'EsSelect',
8
7
  componentName: 'EsSelect',
@@ -143,7 +143,11 @@
143
143
  v-model="show"
144
144
  placement="bottom-start"
145
145
  trigger="manual"
146
+ popper-class="es-selector-popover"
146
147
  :width="minWidth"
148
+ :queryParent="true"
149
+ :reference="reference"
150
+ :arrow-offset="20"
147
151
  >
148
152
  <el-scrollbar
149
153
  tag="ul"
@@ -151,6 +155,7 @@
151
155
  view-class="es-selector-dropdown__list"
152
156
  ref="scrollbar"
153
157
  v-show="options.length"
158
+ maxHeight="228"
154
159
  >
155
160
  <li
156
161
  v-for="item in options"
@@ -326,7 +331,8 @@ export default {
326
331
  minWidth: '',
327
332
  options: '',
328
333
  show: false,
329
- focus: false
334
+ focus: false,
335
+ reference: undefined
330
336
  };
331
337
  },
332
338
  computed: {
@@ -402,7 +408,9 @@ export default {
402
408
  }
403
409
  }
404
410
  },
405
- created() {},
411
+ created() {
412
+ this.reference = this.$refs.esSelector;
413
+ },
406
414
  mounted() {
407
415
  this.resetInputHeight();
408
416
  if (this.filterable) {