eoss-ui 0.8.34 → 0.8.36

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.
@@ -60,7 +60,7 @@
60
60
  >
61
61
 
62
62
  </div>
63
- <el-dropdown trigger="click" @command="handleClickTag">
63
+ <el-dropdown trigger="click" @command="handleClickTag">
64
64
  <span class="el-dropdown-link">
65
65
  <i class="el-icon-arrow-down el-icon--right"></i>
66
66
  </span>
@@ -72,7 +72,7 @@
72
72
  type="text"
73
73
  class="es-flow__opinions--edit"
74
74
  icon="es-icon-xiugai"
75
- @click="dialogVisible = true"
75
+ @click="handleOpenDialog"
76
76
  >
77
77
  </el-button>
78
78
  </div>
@@ -210,7 +210,7 @@ export default {
210
210
  },
211
211
  rows: {
212
212
  type: [Number, String],
213
- default: 10
213
+ default: 5
214
214
  },
215
215
  required: { type: Boolean, default: false }
216
216
  },
@@ -246,8 +246,14 @@ export default {
246
246
  }
247
247
  },
248
248
  methods: {
249
+ handleOpenDialog(){
250
+ if(this.isBanInputOpinion == '1' || this.disabled) return
251
+ this.dialogVisible = true
252
+ },
249
253
  handleClickTag(item) {
254
+ if(this.isBanInputOpinion == '1') return
250
255
  this.form.value = typeof item === 'object' ? item.content : item;
256
+ this.$emit('change', this.form.value);
251
257
  },
252
258
  handleBlur() {
253
259
  this.$emit('blur', this.form.value);
@@ -221,7 +221,7 @@
221
221
  />
222
222
  </div>
223
223
  <div
224
- v-show="!isStartFlow && !shrink && isSpecial"
224
+ v-show="!isStartFlow && !shrink && typeList.length > 1"
225
225
  class="es-flow-middle-more-btn"
226
226
  :style="{
227
227
  flex: getFlexStyle()
@@ -631,9 +631,7 @@
631
631
  <el-form-item
632
632
  prop="nextReadUserId"
633
633
  v-if="isTaskread == 1"
634
- label="
635
- 分阅用户
636
- "
634
+ label="分阅用户"
637
635
  >
638
636
  <SelectUser
639
637
  :nextUser="nextNode.nextReadUserId"
@@ -642,6 +640,7 @@
642
640
  :options="userOptions"
643
641
  :showTooltip="showTooltip"
644
642
  title="分阅用户"
643
+ :params="fyParams"
645
644
  :mix="true"
646
645
  :types="types"
647
646
  @change="changeSelectReadUser($event, 'nextReadUserId')"
@@ -664,6 +663,7 @@
664
663
  :radioList="presetReadUserId"
665
664
  :presetEdit="1"
666
665
  title="分阅用户"
666
+ :params="fyParams"
667
667
  :mix="true"
668
668
  :types="types"
669
669
  @change="changeSelectReadUser($event, 'presetReadUserId')"
@@ -916,6 +916,7 @@
916
916
  ref="reject"
917
917
  :pending-id="pendingId"
918
918
  :option="value"
919
+ class="es-info"
919
920
  hideBtn
920
921
  :showTooltip="showTooltip"
921
922
  :simpleTips="simpleTips"
@@ -930,8 +931,10 @@
930
931
  ref="toStartTaskRead"
931
932
  :pending-id="pendingId"
932
933
  hideBtn
934
+ class="es-info"
933
935
  :opinion="value"
934
936
  :type="taskReadType"
937
+ :resetAppId="resetAppId"
935
938
  :showTooltip="showTooltip"
936
939
  :flowLabelConfig="flowLabelConfig"
937
940
  :hideMessage="hideMessage"
@@ -943,24 +946,24 @@
943
946
  @cancel="closeProcess($event, 'showTaskRead')"
944
947
  />
945
948
  <TaskUnionExamine
946
- v-else-if="
947
- btnType === 'toTakeAdvice' ||
948
- btnType === 'toUnionExamine' ||
949
- btnType === 'toStartDraf'
950
- "
951
- :ref="btnType"
952
- class="es-info"
953
- hideBtn
954
- @cancel="closeProcess($event, 'showTaskUnionExamine')"
955
- :simpleTips="simpleTips"
956
- :pendingId="pendingId"
957
- :defaultOpinion="nodeDefaultSubmitOpinion"
958
- :oldOption="value"
959
- :selectorParams="selectorParams"
960
- :type="flowType"
961
- :multiple="flowMultiple"
962
- :disabled="flowDisabled"
963
- />
949
+ v-else-if="
950
+ btnType === 'toTakeAdvice' ||
951
+ btnType === 'toUnionExamine' ||
952
+ btnType === 'toStartDraf'
953
+ "
954
+ :ref="btnType"
955
+ class="es-info"
956
+ hideBtn
957
+ @cancel="closeProcess($event, 'showTaskUnionExamine')"
958
+ :simpleTips="simpleTips"
959
+ :pendingId="pendingId"
960
+ :defaultOpinion="nodeDefaultSubmitOpinion"
961
+ :oldOption="value"
962
+ :selectorParams="selectorParams"
963
+ :type="flowType"
964
+ :multiple="flowMultiple"
965
+ :disabled="flowDisabled"
966
+ />
964
967
  <div
965
968
  class="es-flow-buttons"
966
969
  v-if="newTypeCode != 'fenyue' && !shrink"
@@ -1044,7 +1047,7 @@
1044
1047
  style="margin: 0px 10px"
1045
1048
  v-if="hideBtn"
1046
1049
  > -->
1047
- <!-- <el-button
1050
+ <!-- <el-button
1048
1051
  v-show="isSubmitButtonShowAgreeAndDisagree != 1"
1049
1052
  v-for="item of btnList.slice(0, 2)"
1050
1053
  :key="item.name"
@@ -1056,7 +1059,7 @@
1056
1059
  >
1057
1060
  {{ item.event == 'save' ? saveButtonName : item.text }}
1058
1061
  </el-button> -->
1059
- <!-- <el-dropdown
1062
+ <!-- <el-dropdown
1060
1063
  v-if="
1061
1064
  !isFlow &&
1062
1065
  (rejectObj.fun || pointsReadingObj.fun || moreList.length > 0)
@@ -1111,7 +1114,7 @@
1111
1114
  size="medium"
1112
1115
  style="margin: 10px 0px; margin-left: 10px"
1113
1116
  @click="taskReadBtn"
1114
- >分阅222</el-button
1117
+ >分阅</el-button
1115
1118
  >
1116
1119
  </div>
1117
1120
  <!-- 弹窗内容 -->
@@ -1226,6 +1229,7 @@
1226
1229
  :flowLabelConfig="flowLabelConfig"
1227
1230
  :hideMessage="hideMessage"
1228
1231
  :selectorConfig="selectorConfig"
1232
+ :resetAppId="resetAppId"
1229
1233
  :simpleTips="simpleTips"
1230
1234
  :subParams="subParams"
1231
1235
  :taskExamine="taskExamineInfo"
@@ -1426,7 +1430,7 @@ export default {
1426
1430
  type: Array,
1427
1431
  default: () => [
1428
1432
  { text: '暂存', event: 'save' },
1429
- { text: '提交', event: 'sub', type: 'primary' },
1433
+ { text: '提交', event: 'sub', type: 'primary' }
1430
1434
  ]
1431
1435
  },
1432
1436
  subFun: {
@@ -1474,7 +1478,7 @@ export default {
1474
1478
  },
1475
1479
  rows: {
1476
1480
  type: [String, Number],
1477
- default: 10
1481
+ default: 5
1478
1482
  },
1479
1483
  showOther: {
1480
1484
  type: Boolean,
@@ -1849,6 +1853,28 @@ export default {
1849
1853
  } else {
1850
1854
  return { width: '100%' };
1851
1855
  }
1856
+ },
1857
+ fyParams() {
1858
+ let orgId = JSON.parse(util.getStorage('mainConfig')).userModel.orgId;
1859
+ let params = {};
1860
+ if (this.configInfo.selectPersonValue == 1) {
1861
+ params.filid = orgId;
1862
+ } else if (this.configInfo.selectPersonValue == 2) {
1863
+ params.filid = orgId;
1864
+ } else if (this.configInfo.selectPersonValue == 3) {
1865
+ params.filid = 'all';
1866
+ } else if (this.configInfo.selectPersonValue == 4) {
1867
+ params.filid = 'all';
1868
+ } else if (this.configInfo.selectPersonValue == 5) {
1869
+ params.filid = '';
1870
+ } else if (this.configInfo.selectPersonValue == 6) {
1871
+ params.filid = '';
1872
+ } else if (this.configInfo.selectPersonValue == 7) {
1873
+ params.filid = orgId;
1874
+ } else if (this.configInfo.selectPersonValue == 8) {
1875
+ params.filid = orgId;
1876
+ }
1877
+ return params;
1852
1878
  }
1853
1879
  },
1854
1880
  methods: {
@@ -2464,7 +2490,7 @@ export default {
2464
2490
  **/
2465
2491
  taskReadBtn(res) {
2466
2492
  // return this.$message.warning('暂未开放!敬请期待');
2467
-
2493
+
2468
2494
  if (this.beforeSubmit != undefined) {
2469
2495
  this.beforeSubmit()
2470
2496
  .then((next) => {
@@ -2764,9 +2790,9 @@ export default {
2764
2790
  this.loading.close();
2765
2791
  if (message == 'success') {
2766
2792
  // this.showTaskUnionExamine = true;
2767
- this.btnType = ''
2793
+ this.btnType = '';
2768
2794
  setTimeout(() => {
2769
- this.btnType = this.btnFunValue(resInfo.fun)
2795
+ this.btnType = this.btnFunValue(resInfo.fun);
2770
2796
  }, 0);
2771
2797
  } else {
2772
2798
  this.$message.error(message || '系统错误,请联系管理员!');
@@ -2786,24 +2812,24 @@ export default {
2786
2812
  * @date 2022年9月29日
2787
2813
  **/
2788
2814
  toStartDraf(res) {
2789
- console.log(res)
2815
+ console.log(res);
2790
2816
  if (this.beforeSubmit != undefined) {
2791
2817
  this.beforeSubmit()
2792
2818
  .then((next) => {
2793
2819
  // this.showTaskUnionExamine = true;
2794
- this.btnType = ''
2820
+ this.btnType = '';
2795
2821
  setTimeout(() => {
2796
- this.btnType = this.btnFunValue(res.fun)
2822
+ this.btnType = this.btnFunValue(res.fun);
2797
2823
  }, 0);
2798
2824
  // this.btnType = this.btnFunValue(res.fun) //this.btnFunValue(res.fun);
2799
2825
  })
2800
2826
  .catch((e) => {});
2801
2827
  } else {
2802
2828
  // this.showTaskUnionExamine = true;
2803
- this.btnType = ''
2804
- setTimeout(() => {
2805
- this.btnType = this.btnFunValue(res.fun)
2806
- }, 0);
2829
+ this.btnType = '';
2830
+ setTimeout(() => {
2831
+ this.btnType = this.btnFunValue(res.fun);
2832
+ }, 0);
2807
2833
  }
2808
2834
  },
2809
2835
  /**
@@ -3134,6 +3160,10 @@ export default {
3134
3160
  data.globalNodeType === 'endEvent' ? (this.endFlow = true) : '';
3135
3161
  }
3136
3162
  }
3163
+ console.log(
3164
+ this.$refs.customPreset.getPresetFlowInfo,
3165
+ 'his.$refs.customPreset'
3166
+ );
3137
3167
  this.isCustomPreset &&
3138
3168
  this.$refs.customPreset.getPresetFlowInfo(
3139
3169
  this.nextNode.nextNodeId,
@@ -3933,7 +3963,7 @@ export default {
3933
3963
  warning('暂无可驳回节点及对象');
3934
3964
  return;
3935
3965
  }
3936
- console.log('taskReadBtn', this.btnType);
3966
+ console.log('taskReadBtn', this.btnType);
3937
3967
  this.$refs[this.btnType].subProcess('nextNode');
3938
3968
  return;
3939
3969
  }