eoss-ui 0.7.16 → 0.7.18

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 (35) hide show
  1. package/lib/eoss-ui.common.js +1076 -782
  2. package/lib/flow.js +102 -44
  3. package/lib/form.js +631 -425
  4. package/lib/handler.js +58 -50
  5. package/lib/icon.js +7 -4
  6. package/lib/index.js +1 -1
  7. package/lib/main.js +74 -56
  8. package/lib/table-form.js +9 -8
  9. package/lib/theme-chalk/form.css +1 -1
  10. package/lib/theme-chalk/handler.css +1 -1
  11. package/lib/theme-chalk/index.css +1 -1
  12. package/lib/theme-chalk/main.css +1 -1
  13. package/lib/theme-chalk/simplicity.css +1 -1
  14. package/package.json +1 -1
  15. package/packages/flow/src/component/Circulate.vue +12 -9
  16. package/packages/flow/src/component/FreeCirculation.vue +10 -5
  17. package/packages/flow/src/component/taskUnionExamine.vue +35 -29
  18. package/packages/flow/src/freeStartFlow.vue +5 -3
  19. package/packages/flow/src/main.vue +35 -17
  20. package/packages/form/src/main.vue +52 -1
  21. package/packages/form/src/table.vue +7 -3
  22. package/packages/handler/src/main.vue +31 -27
  23. package/packages/icon/src/main.vue +5 -2
  24. package/packages/main/src/default/index.vue +2 -6
  25. package/packages/main/src/main.vue +2 -1
  26. package/packages/main/src/simplicity/handler.vue +25 -21
  27. package/packages/theme-chalk/lib/form.css +1 -1
  28. package/packages/theme-chalk/lib/handler.css +1 -1
  29. package/packages/theme-chalk/lib/index.css +1 -1
  30. package/packages/theme-chalk/lib/main.css +1 -1
  31. package/packages/theme-chalk/lib/simplicity.css +1 -1
  32. package/packages/theme-chalk/src/form.scss +2 -0
  33. package/packages/theme-chalk/src/handler.scss +5 -0
  34. package/packages/theme-chalk/src/simplicity.scss +5 -0
  35. package/src/index.js +1 -1
@@ -24,7 +24,8 @@
24
24
  multiple
25
25
  mix
26
26
  :disableds="otherOrgDisabledObjId"
27
- :where="{ filid: 'other' }"
27
+ :where="{ filid: 'other',roleid :selectorParams.roleid }"
28
+
28
29
  @change="disposeAppUnit($event, 'nextOtherOrgObjSelect')"
29
30
  :types="foreignOrgSelectorTabs"
30
31
  :params="foreignOrgSelectorParams"
@@ -52,6 +53,7 @@ export default {
52
53
  type: String,
53
54
  default: 'left'
54
55
  },
56
+ selectorParams: { type: Object, default: () => {return {}} },
55
57
  params: {
56
58
  type: Object,
57
59
  default: () => {}
@@ -60,7 +62,7 @@ export default {
60
62
  type: String,
61
63
  default: ''
62
64
  },
63
- showOther:{type:Boolean,default:true}
65
+ showOther: { type: Boolean, default: true }
64
66
  },
65
67
  data() {
66
68
  return {
@@ -82,6 +84,8 @@ export default {
82
84
  };
83
85
  },
84
86
  mounted() {
87
+ this.foreignOrgSelectorParams.roleid = this.currentOrgSelectorParams.roleid =
88
+ this.selectorParams.roleid;
85
89
  this.getFreeTaskCircularRead();
86
90
  },
87
91
  methods: {
@@ -105,7 +109,6 @@ export default {
105
109
  util.ajax(param).then((res) => {
106
110
  this.loading.close();
107
111
  if (res.rCode == 0 || res.status == 'success') {
108
-
109
112
  if (!this.simpleTips) {
110
113
  this.$alert('提交成功', '', {
111
114
  confirmButtonText: '确定',
@@ -117,8 +120,10 @@ export default {
117
120
  } else {
118
121
  this.$parent.$emit('success');
119
122
  }
120
- }else{
121
- this.$message.error(res.message || res.msg || '系统错误,请联系管理员!');
123
+ } else {
124
+ this.$message.error(
125
+ res.message || res.msg || '系统错误,请联系管理员!'
126
+ );
122
127
  }
123
128
  });
124
129
  },
@@ -52,7 +52,9 @@
52
52
  ? ['enterprise', 'employee']
53
53
  : ['enterprise']
54
54
  "
55
- :params="type == 'startDraf' || type == 'unionExamine'?otherParams:params"
55
+ :params="
56
+ type == 'startDraf' || type == 'unionExamine' ? otherParams : params
57
+ "
56
58
  :tabs="currentOrgTabsParam"
57
59
  :disabled="disabled"
58
60
  :onlyName="onlyName"
@@ -65,7 +67,7 @@
65
67
  >
66
68
  <SelectUser
67
69
  :nextUser="infoList.nextOtherOrgObj"
68
- :where="{ filid: 'other' }"
70
+ :where="{ filid: 'other',roleid :selectorParams.roleid }"
69
71
  :multiple="newMultiple"
70
72
  @change="changeSelectUser($event, 'nextOtherOrgObj')"
71
73
  :mix="otherMix"
@@ -81,13 +83,13 @@
81
83
  :tabs="foreignOrgTabsParam"
82
84
  />
83
85
  </el-form-item>
84
- <!-- :rules="[
86
+ <!-- :rules="[
85
87
  { required: false, message: `请选择通知方式`, trigger: 'blur' }
86
88
  ]" -->
87
89
  <el-form-item
88
90
  prop="noticeType"
89
91
  label="通知方式"
90
- v-show="infoList.noticeList.length != 0"
92
+ v-show="infoList.noticeList.length != 0"
91
93
  >
92
94
  <el-checkbox-group
93
95
  v-model="infoList.noticeType"
@@ -166,8 +168,9 @@ export default {
166
168
  defaultOpinion: { type: String, default: '' },
167
169
  oldOption: { type: String, default: '' },
168
170
  disabled: { type: Boolean, default: false },
169
- simpleTips: { type: Boolean, default: true },
170
- multiple: { type: Boolean, default: true }
171
+ simpleTips: { type: Boolean, default: true },
172
+ multiple: { type: Boolean, default: true },
173
+ selectorParams: { type: Object, default: () => {return {}} }
171
174
  },
172
175
  inheritAttrs: false,
173
176
  data() {
@@ -185,13 +188,13 @@ export default {
185
188
  opinion: ''
186
189
  },
187
190
  onlyName: '',
188
- unionSealData:[],
191
+ unionSealData: [],
189
192
  currentOrgTabs: [],
190
193
  foreignOrgTabs: [],
191
194
  foreignOrgTabsParam: {},
192
195
  currentOrgTabsParam: {},
193
196
  currentOrgProcessKey: '',
194
- otherOrgDisabledObjId:[],
197
+ otherOrgDisabledObjId: [],
195
198
  isSubFlow: true,
196
199
  choiceDeptId: '',
197
200
  choiceOrgId: '',
@@ -211,7 +214,8 @@ export default {
211
214
  mounted() {
212
215
  this.loading = true;
213
216
  this.newMultiple = this.multiple;
214
- this.opinion = this.oldOption
217
+ this.otherParams.roleid = this.params.roleid = this.selectorParams.roleid;
218
+ this.opinion = this.oldOption;
215
219
  this.getNodeType();
216
220
  if (this.type === 'taskReview') return this.getTaskReview();
217
221
  this.getInfo();
@@ -252,7 +256,7 @@ export default {
252
256
  const { message, status } = res;
253
257
  this.loading = false;
254
258
  if (status === 'success') {
255
- this.simpleTips && this.$message.success('提交成功');
259
+ this.simpleTips && this.$message.success('提交成功');
256
260
  this.quit(true);
257
261
  } else {
258
262
  this.$message.error(message || '系统错误,请联系管理员!');
@@ -279,7 +283,7 @@ export default {
279
283
  const {
280
284
  data: { initiatorUser, taskExamine }
281
285
  } = res;
282
- if(taskExamine.opinion){
286
+ if (taskExamine.opinion) {
283
287
  this.opinion = taskExamine.opinion;
284
288
  }
285
289
  this.infoList.nextOtherOrgObj.push(initiatorUser.userId);
@@ -341,8 +345,8 @@ export default {
341
345
  }
342
346
  }
343
347
  } = res;
344
- if(otherOrgDisabledObjId){
345
- this.otherOrgDisabledObjId = otherOrgDisabledObjId.split(',')
348
+ if (otherOrgDisabledObjId) {
349
+ this.otherOrgDisabledObjId = otherOrgDisabledObjId.split(',');
346
350
  }
347
351
  if (res.data.customizedConfig) {
348
352
  if (res.data.customizedConfig.currentOrgSelectorCustomized) {
@@ -362,7 +366,7 @@ export default {
362
366
  filid:
363
367
  param[i] == 'my'
364
368
  ? (this.params.filid = JSON.parse(
365
- util.getStorage('mainConfig')
369
+ util.getStorage('mainConfig')
366
370
  ).userModel.orgId)
367
371
  : param[i]
368
372
  };
@@ -370,11 +374,11 @@ export default {
370
374
  } else {
371
375
  if (this.type == 'takeAdvice') {
372
376
  this.params.filid = JSON.parse(
373
- util.getStorage('mainConfig')
377
+ util.getStorage('mainConfig')
374
378
  ).userModel.orgId;
375
379
  }
376
380
  }
377
-
381
+
378
382
  if (res.data.customizedConfig.foreignOrgSelectorCustomized) {
379
383
  this.otherMix =
380
384
  res.data.customizedConfig.foreignOrgSelectorSelectMix ==
@@ -397,7 +401,7 @@ export default {
397
401
  notificationMessageReadOnly == 'true';
398
402
  this.isSinglePage = taskExamine.isSinglePage;
399
403
  this.isSubFlow = taskExamine.isSubFlow;
400
- if(taskExamine.opinion){
404
+ if (taskExamine.opinion) {
401
405
  this.opinion = taskExamine.opinion;
402
406
  }
403
407
  this.choiceDeptId = choiceDeptId;
@@ -411,17 +415,16 @@ export default {
411
415
  }
412
416
  this.isOpinionRequired = isOpinionRequired;
413
417
  if (this.type == 'unionSeal') {
414
- let names = unionDispatchOrgName.split(',')
415
- let ids = unionDispatchOrgId.split(',')
416
- names.map((x,i) => {
417
- if(x){
418
+ let names = unionDispatchOrgName.split(',');
419
+ let ids = unionDispatchOrgId.split(',');
420
+ names.map((x, i) => {
421
+ if (x) {
418
422
  this.unionSealData.push({
419
423
  showname: x,
420
424
  showid: ids[i]
421
- })
422
-
425
+ });
423
426
  }
424
- })
427
+ });
425
428
  // this.onlyName = unionDispatchOrgName;
426
429
  // this.infoList.nextOtherOrgObj.push(unionDispatchOrgId);
427
430
  }
@@ -502,9 +505,12 @@ export default {
502
505
  data: {
503
506
  opinion,
504
507
  pendingId,
505
- nextOtherOrgObj:this.type == 'unionSeal'?this.unionSealData.map(x => x.showid).join(',') : Array.isArray(nextOtherOrgObj)
506
- ? nextOtherOrgObj.join(',')
507
- : nextOtherOrgObj,
508
+ nextOtherOrgObj:
509
+ this.type == 'unionSeal'
510
+ ? this.unionSealData.map((x) => x.showid).join(',')
511
+ : Array.isArray(nextOtherOrgObj)
512
+ ? nextOtherOrgObj.join(',')
513
+ : nextOtherOrgObj,
508
514
  nextCurrentOrgObj: Array.isArray(nextCurrentOrgObj)
509
515
  ? nextCurrentOrgObj.join(',')
510
516
  : nextCurrentOrgObj,
@@ -524,7 +530,7 @@ export default {
524
530
  const { message, status } = res;
525
531
  this.loading = false;
526
532
  if (status == 'success') {
527
- this.simpleTips && this.$message.success('提交成功');
533
+ this.simpleTips && this.$message.success('提交成功');
528
534
  this.quit(true);
529
535
  } else {
530
536
  this.$message.error(message || '系统错误,请联系管理员!');
@@ -570,7 +576,7 @@ export default {
570
576
  params: {
571
577
  ccCode: 'notification_type',
572
578
  userId: util.getStorage('userId'),
573
- pendingId:this.pendingId
579
+ pendingId: this.pendingId
574
580
  }
575
581
  })
576
582
  .then((res) => {
@@ -292,7 +292,7 @@
292
292
  :disableds="currentOrgDisabledObjId"
293
293
  @change="disposeAppUnit($event, 'nextCurrentOrgObjSelect')"
294
294
  :types="['department', 'employee']"
295
- :params="{ filid: userModel.orgId }"
295
+ :params="{ filid: userModel.orgId,roleid:selectorParams.roleid }"
296
296
  />
297
297
  </el-form-item>
298
298
  <el-form-item
@@ -304,11 +304,12 @@
304
304
  :nextUser="nextOtherOrgObjSelect"
305
305
  multiple
306
306
  mix
307
- :where="{ filid: 'other' }"
307
+ :where="{ filid: 'other',roleid:selectorParams.roleid }"
308
308
  :disableds="otherOrgDisabledObjId"
309
309
  @change="disposeAppUnit($event, 'nextOtherOrgObjSelect')"
310
310
  :types="['enterprise']"
311
- :params="{ filid: 'all' }"
311
+ :params="{ filid: 'all',roleid:selectorParams.roleid }"
312
+
312
313
  />
313
314
  </el-form-item>
314
315
  <el-form-item
@@ -835,6 +836,7 @@ export default {
835
836
  userSelectRange: {
836
837
  type: String
837
838
  },
839
+ selectorParams: { type: Object, default: () => {return {}} },
838
840
  defaultProcessShowStrategy: { type: String, default: '' },
839
841
  taskParams: {
840
842
  type: Object,
@@ -38,7 +38,7 @@
38
38
  </div>
39
39
  </div>
40
40
  <CommonOpinions
41
- v-if="showOpinion"
41
+ v-if="showOpinion"
42
42
  class="es-common-opinions"
43
43
  v-show="!shrink"
44
44
  ref="commonOpinions"
@@ -85,7 +85,7 @@
85
85
  :businessId="businessIds"
86
86
  :label-position="formLabelPosition"
87
87
  ref="circulate"
88
- :selectorParams="params"
88
+ :selectorParams="selectorParams"
89
89
  :pending-id="pendingId"
90
90
  :showBtn="false"
91
91
  :formTitle="formTitle"
@@ -129,6 +129,7 @@
129
129
  :appId="resetAppId"
130
130
  :params="param"
131
131
  :showOther="showOther"
132
+ :selectorParams="selectorParams"
132
133
  :formLabelPosition="formLabelPosition"
133
134
  :simpleTips="simpleTips"
134
135
  />
@@ -718,7 +719,7 @@
718
719
  :processDefinitionId="nodeInfo.nextNode"
719
720
  :simpleTips="simpleTips"
720
721
  :showBtn="false"
721
- :selectorParams="params"
722
+ :selectorParams="selectorParams"
722
723
  :oldOption="value"
723
724
  @cancel="closeProcess($event, 'circulateVisible')"
724
725
  />
@@ -813,7 +814,7 @@
813
814
  class="es-button-agree-save"
814
815
  v-if="!isHideTemporarySave"
815
816
  @click="saveInfo()"
816
- >暂存</el-button
817
+ >{{ saveButtonName }}</el-button
817
818
  >
818
819
  </div>
819
820
  <div
@@ -835,7 +836,7 @@
835
836
  :style="btnStyle"
836
837
  @click="item.event === 'sub' ? subProcess() : saveInfo(false, item)"
837
838
  >
838
- {{ item.text }}
839
+ {{ item.event == 'save' ? saveButtonName : item.text }}
839
840
  </el-button>
840
841
 
841
842
  <div
@@ -886,7 +887,7 @@
886
887
  item.event === 'sub' ? subProcess() : saveInfo(false, item)
887
888
  "
888
889
  >
889
- {{ item.text }}
890
+ {{ item.event == 'save' ? saveButtonName : item.text }}
890
891
  </el-button>
891
892
  <el-dropdown
892
893
  v-if="
@@ -961,7 +962,7 @@
961
962
  :businessId="businessId"
962
963
  :processDefinitionId="nodeInfo.nextNode"
963
964
  :simpleTips="simpleTips"
964
- :selectorParams="params"
965
+ :selectorParams="selectorParams"
965
966
  :oldOption="value"
966
967
  @cancel="closeProcess($event, 'circulateVisible')"
967
968
  />
@@ -1096,6 +1097,7 @@
1096
1097
  :pendingId="pendingId"
1097
1098
  :defaultOpinion="nodeDefaultSubmitOpinion"
1098
1099
  :oldOption="value"
1100
+ :selectorParams="selectorParams"
1099
1101
  :type="flowType"
1100
1102
  :multiple="flowMultiple"
1101
1103
  :disabled="flowDisabled"
@@ -1237,6 +1239,7 @@ export default {
1237
1239
  type: Object,
1238
1240
  default: () => {}
1239
1241
  },
1242
+ selectorParams: { type: Object, default: () => {return {}} },
1240
1243
  width: {
1241
1244
  type: String
1242
1245
  },
@@ -1248,7 +1251,7 @@ export default {
1248
1251
  type: [String, Number],
1249
1252
  default: 10
1250
1253
  },
1251
- showOther:{
1254
+ showOther: {
1252
1255
  type: Boolean,
1253
1256
  default: true
1254
1257
  },
@@ -1261,7 +1264,7 @@ export default {
1261
1264
  endMessage: '',
1262
1265
  isHideTemporarySave: false,
1263
1266
  oldNextOperate: '',
1264
- showOpinion:true,
1267
+ showOpinion: true,
1265
1268
  taskOperationShiftedNodeList: null,
1266
1269
  currentNodeEnableItemHandleDescription: false,
1267
1270
  startFlowPageEmbeddedIntoStartFlowIndex: false,
@@ -1445,6 +1448,7 @@ export default {
1445
1448
  otherOrgName: '', //外单位名称
1446
1449
  needRetrialAuth: false, //是否二次鉴权
1447
1450
  msgTypeCount: 0,
1451
+ saveButtonName: '暂存',
1448
1452
  nodeInfo: {
1449
1453
  nextNode: '',
1450
1454
  nextUser: '',
@@ -1463,6 +1467,8 @@ export default {
1463
1467
  this.currentOrgSelectorParams.filid = JSON.parse(
1464
1468
  util.getStorage('mainConfig')
1465
1469
  ).userModel.orgId;
1470
+ this.foreignOrgSelectorParams.roleid = this.currentOrgSelectorParams.roleid =
1471
+ this.selectorParams.roleid;
1466
1472
  this.nextNode.nextNodeId = this.nextNodeId;
1467
1473
  if (!this.isFlow) {
1468
1474
  this.getInfo();
@@ -1530,8 +1536,7 @@ export default {
1530
1536
  }
1531
1537
  }
1532
1538
  if (this.nodeInfo.nextNode) {
1533
-
1534
- this.handleChange(this.nodeInfo.nextNode,true);
1539
+ this.handleChange(this.nodeInfo.nextNode, true);
1535
1540
  }
1536
1541
  }
1537
1542
  },
@@ -1651,6 +1656,9 @@ export default {
1651
1656
  };
1652
1657
  util.ajax(params).then((res) => {
1653
1658
  if (res.status == 'success') {
1659
+ if (res.data.temporarySaveButtonName) {
1660
+ this.saveButtonName = res.data.temporarySaveButtonName;
1661
+ }
1654
1662
  this.isHideTemporarySave =
1655
1663
  res.data.nodeExtAttr.isHideTemporarySave == 1;
1656
1664
  this.isBanInputOpinion = res.data.nodeExtAttr.isBanInputOpinion;
@@ -1668,9 +1676,9 @@ export default {
1668
1676
  // }
1669
1677
  this.optionsKey++;
1670
1678
  this.isOpinionRequired = res.data.nodeExtAttr.isOpinionRequired == 1;
1671
- this.showOpinion = false
1679
+ this.showOpinion = false;
1672
1680
  setTimeout(() => {
1673
- this.showOpinion = true
1681
+ this.showOpinion = true;
1674
1682
  }, 0);
1675
1683
  }
1676
1684
  });
@@ -1715,8 +1723,8 @@ export default {
1715
1723
  this.flowSuccess(true);
1716
1724
  // this.$emit('success');
1717
1725
  },
1718
- handleChange(val,isForStartFlow) {
1719
- this.getNodeInfoForStartFlow(val,isForStartFlow);
1726
+ handleChange(val, isForStartFlow) {
1727
+ this.getNodeInfoForStartFlow(val, isForStartFlow);
1720
1728
  this.$parent.$emit('flowChange', val);
1721
1729
  },
1722
1730
  getsubProcessColumns() {
@@ -2895,6 +2903,7 @@ export default {
2895
2903
  //pc返回数据
2896
2904
 
2897
2905
  this.loading.close();
2906
+
2898
2907
  if (res.status === 'success') {
2899
2908
  const {
2900
2909
  data: {
@@ -2903,6 +2912,7 @@ export default {
2903
2912
  isCustomPreset,
2904
2913
  presetTaskNodeKeyStr,
2905
2914
  presetTaskNodeMap,
2915
+ temporarySaveButtonName,
2906
2916
  circularReadParamsMap,
2907
2917
  isPreset,
2908
2918
  choiceOrgId,
@@ -2934,6 +2944,9 @@ export default {
2934
2944
  isCanPreAddSign
2935
2945
  }
2936
2946
  } = res;
2947
+ if (temporarySaveButtonName) {
2948
+ this.saveButtonName = temporarySaveButtonName;
2949
+ }
2937
2950
  if (simpleTips != undefined) {
2938
2951
  this.simpleTips = simpleTips;
2939
2952
  }
@@ -3201,6 +3214,10 @@ export default {
3201
3214
  this.$message.error(res.message || '系统错误,请联系管理员!');
3202
3215
  }
3203
3216
  }
3217
+ this.showOpinion = false;
3218
+ setTimeout(() => {
3219
+ this.showOpinion = true;
3220
+ }, 0);
3204
3221
  })
3205
3222
  .catch((err) => {
3206
3223
  this.loading.close();
@@ -3314,7 +3331,7 @@ export default {
3314
3331
  }
3315
3332
  }
3316
3333
  if (this.nodeInfo.nextNode) {
3317
- this.handleChange(this.nodeInfo.nextNode,true);
3334
+ this.handleChange(this.nodeInfo.nextNode, true);
3318
3335
  }
3319
3336
  if (
3320
3337
  this.showCirculate != undefined &&
@@ -3552,7 +3569,8 @@ export default {
3552
3569
  this.$refs['nextNode'].validate(async (valid) => {
3553
3570
  if (valid) {
3554
3571
  if (this.isFlow) {
3555
- if(this.isOpinionRequired && !this.$refs.commonOpinions.validate()) return
3572
+ if (this.isOpinionRequired && !this.$refs.commonOpinions.validate())
3573
+ return;
3556
3574
  if (this.directCreateCircularReadWhenFlowStarted) {
3557
3575
  this.circulateVisible = true;
3558
3576
  } else {
@@ -154,6 +154,12 @@
154
154
  attrs: ['value']
155
155
  })
156
156
  "
157
+ v-on="
158
+ handleExclAttribute({
159
+ data: item.events,
160
+ attrs: 'change'
161
+ })
162
+ "
157
163
  v-model="models[item.name]"
158
164
  size="medium"
159
165
  :plain="item.plain || item.name === undefined"
@@ -167,6 +173,7 @@
167
173
  handleChange(item, val, items);
168
174
  }
169
175
  "
176
+ @optionSuccess="$emit('optionSuccess', $event)"
170
177
  ></es-select>
171
178
  <es-switch
172
179
  v-else-if="item.type == 'switch'"
@@ -373,6 +380,12 @@
373
380
  attrs: ['value']
374
381
  })
375
382
  "
383
+ v-on="
384
+ handleExclAttribute({
385
+ data: item.events,
386
+ attrs: ['change', 'blur', 'focus']
387
+ })
388
+ "
376
389
  v-model="models[item.name]"
377
390
  :plain="item.plain || item.name === undefined"
378
391
  :readonly="
@@ -395,6 +408,7 @@
395
408
  handleChange(item, val);
396
409
  }
397
410
  "
411
+ @optionSuccess="$emit('optionSuccess', $event)"
398
412
  ></es-select>
399
413
  <es-cascader
400
414
  v-else-if="item.type == 'cascader'"
@@ -848,6 +862,12 @@
848
862
  attrs: ['value']
849
863
  })
850
864
  "
865
+ v-on="
866
+ handleExclAttribute({
867
+ data: inline.events,
868
+ attrs: ['change', 'blur', 'focus']
869
+ })
870
+ "
851
871
  v-model="models[inline.name]"
852
872
  :plain="
853
873
  inline.plain ||
@@ -875,6 +895,9 @@
875
895
  handleChange(inline, val);
876
896
  }
877
897
  "
898
+ @optionSuccess="
899
+ $emit('optionSuccess', $event)
900
+ "
878
901
  ></es-select>
879
902
  <es-cascader
880
903
  v-else-if="inline.type == 'cascader'"
@@ -1131,6 +1154,12 @@
1131
1154
  attrs: ['value']
1132
1155
  })
1133
1156
  "
1157
+ v-on="
1158
+ handleExclAttribute({
1159
+ data: inline.events,
1160
+ attrs: ['change', 'blur', 'focus']
1161
+ })
1162
+ "
1134
1163
  v-model="models[item.inline.name]"
1135
1164
  :plain="
1136
1165
  item.inline.plain ||
@@ -1158,6 +1187,7 @@
1158
1187
  handleChange(item.inline, val);
1159
1188
  }
1160
1189
  "
1190
+ @optionSuccess="$emit('optionSuccess', $event)"
1161
1191
  ></es-select>
1162
1192
  <es-cascader
1163
1193
  v-else-if="item.inline.type == 'cascader'"
@@ -1517,6 +1547,12 @@
1517
1547
  v-bind="
1518
1548
  handleExclAttribute({ data: item, attrs: ['value'] })
1519
1549
  "
1550
+ v-on="
1551
+ handleExclAttribute({
1552
+ data: item.events,
1553
+ attrs: ['change', 'blur', 'focus']
1554
+ })
1555
+ "
1520
1556
  v-model="models[item.name]"
1521
1557
  :plain="item.plain || item.name === undefined"
1522
1558
  :readonly="
@@ -1537,6 +1573,7 @@
1537
1573
  handleChange(item, val);
1538
1574
  }
1539
1575
  "
1576
+ @optionSuccess="$emit('optionSuccess', $event)"
1540
1577
  ></es-select>
1541
1578
  <es-cascader
1542
1579
  v-else-if="item.type == 'cascader'"
@@ -1905,10 +1942,16 @@
1905
1942
  v-else-if="inline.type == 'select'"
1906
1943
  v-bind="
1907
1944
  handleExclAttribute({
1908
- data: inline,
1945
+ data: inline.events,
1909
1946
  attrs: ['value']
1910
1947
  })
1911
1948
  "
1949
+ v-on="
1950
+ handleExclAttribute({
1951
+ data: inline,
1952
+ attrs: ['change', 'blur', 'focus']
1953
+ })
1954
+ "
1912
1955
  v-model="models[inline.name]"
1913
1956
  :plain="
1914
1957
  inline.plain || inline.name === undefined
@@ -1935,6 +1978,7 @@
1935
1978
  handleChange(inline, val);
1936
1979
  }
1937
1980
  "
1981
+ @optionSuccess="$emit('optionSuccess', $event)"
1938
1982
  ></es-select>
1939
1983
  <es-cascader
1940
1984
  v-else-if="inline.type == 'cascader'"
@@ -2177,6 +2221,12 @@
2177
2221
  attrs: ['value']
2178
2222
  })
2179
2223
  "
2224
+ v-on="
2225
+ handleExclAttribute({
2226
+ data: item.inline.events,
2227
+ attrs: ['change', 'blur', 'focus']
2228
+ })
2229
+ "
2180
2230
  v-model="models[item.inline.name]"
2181
2231
  :plain="
2182
2232
  item.inline.plain || item.inline.name === undefined
@@ -2203,6 +2253,7 @@
2203
2253
  handleChange(item.inline, val);
2204
2254
  }
2205
2255
  "
2256
+ @optionSuccess="$emit('optionSuccess', $event)"
2206
2257
  ></es-select>
2207
2258
  <es-cascader
2208
2259
  v-else-if="item.inline.type == 'cascader'"
@@ -1417,13 +1417,17 @@ export default {
1417
1417
  let widths = [];
1418
1418
  let surplus = 0;
1419
1419
  let divisor = this.col;
1420
+ const parentWidth =
1421
+ this.$el.clientWidth -
1422
+ (parseFloat(this.$el.style.paddingLeft) || 0) -
1423
+ (parseFloat(this.$el.style.paddingRight) || 0);
1420
1424
  let getWidth = this.$refs.dataTable
1421
1425
  ? this.$refs.dataTable.$el
1422
1426
  ? this.$refs.dataTable.$el.offsetWidth
1423
1427
  : this.$refs.dataTable[0].$el.offsetWidth
1424
- : this.$parent.$el.offsetWidth;
1425
- if (getWidth < this.$parent.$el.offsetWidth) {
1426
- getWidth = this.$parent.$el.offsetWidth;
1428
+ : parentWidth;
1429
+ if (getWidth < parentWidth) {
1430
+ getWidth = parentWidth;
1427
1431
  }
1428
1432
  let allWidth = getWidth - parseInt(this.labelWidth, 10) * this.col;
1429
1433
  if (this.widths && this.widths.length === this.col) {