cloud-web-corejs 1.0.54-dev.401 → 1.0.54-dev.403

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.401",
4
+ "version": "1.0.54-dev.403",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -1228,6 +1228,10 @@ tViewMixins = {
1228
1228
  }
1229
1229
  this.$emit('update:file', result);
1230
1230
  }
1231
+ this.handleChange()
1232
+ },
1233
+ handleChange(){
1234
+ this.$emit('change', this.attachments);
1231
1235
  },
1232
1236
  getRealPictureList(index) {
1233
1237
  let pictureIndex = -1;
@@ -62,6 +62,7 @@
62
62
  class="button-sty"
63
63
  :placeholder="$t2('序号', 'components.VabUpload.orders')"
64
64
  :scale="0"
65
+ @change="handleChange"
65
66
  />
66
67
  </div>
67
68
  <div class="el-upload-input" v-if="$attrs.showNameInput">
@@ -70,6 +71,7 @@
70
71
  class="button-sty"
71
72
  :placeholder="$t2('请输入名称', 'components.VabUpload.name')"
72
73
  :scale="0"
74
+ @change="handleChange"
73
75
  />
74
76
  </div>
75
77
  <div class="el-upload-list__item-status-label">
@@ -57,12 +57,18 @@ modules = {
57
57
  $table,
58
58
  column,
59
59
  });
60
+ let sortValue = cellValue
61
+ let sortField = column.params?.sortField;
62
+ if(sortField){
63
+ sortValue = row[sortField]??null;
64
+ }
60
65
  if (lsm[cellValue]) {
61
66
  lsm[cellValue].count = lsm[cellValue].count + 1;
62
67
  } else {
63
68
  lsm[cellValue] = {
64
69
  checked: !option.data.hasFilter || vals.includes(cellValue),
65
70
  value: cellValue,
71
+ sortValue: sortValue,
66
72
  count: 1,
67
73
  };
68
74
  }
@@ -70,7 +76,7 @@ modules = {
70
76
  for (let key in lsm) {
71
77
  colValList.push(lsm[key]);
72
78
  }
73
- colValList = this.sortByField(colValList, "value");
79
+ colValList = this.sortByField(colValList, "sortValue");
74
80
 
75
81
  const columnsArr = [];
76
82
 
@@ -194,43 +200,17 @@ modules = {
194
200
  this.resetFilterEvent();
195
201
  return;
196
202
  }
197
-
198
203
  data.vals = vals;
199
204
  option.data.hasFilter = true;
200
205
  $panel.changeOption(evnt, true, option);
201
206
  $panel.confirmFilter();
202
-
203
- let checkStrictly =
204
- $table.$options.propsData?.checkboxConfig?.checkStrictly;
205
- // $table.setAllCheckboxRow(false);
206
- this.clearTableCheckboxRow($table);
207
- },
208
- clearTableCheckboxRow($table) {
209
- let originOption = $table.$xegrid?.originOption;
210
- if (originOption) {
211
- let target = originOption.vue;
212
- if (
213
- target.defaultTableRefName === originOption.tableRef &&
214
- target._clearChecked
215
- ) {
216
- target._clearChecked();
217
- } else {
218
- $table.clearCheckboxRow();
219
- }
220
- originOption.onFilter && originOption.onFilter();
221
- } else {
222
- $table.clearCheckboxRow();
223
- }
207
+ $table.setAllCheckboxRow(false);
224
208
  },
225
209
  resetFilterEvent() {
226
210
  const { $panel, $table } = this.params;
227
- let checkStrictly =
228
- $table.$options.propsData?.checkboxConfig?.checkStrictly;
229
211
  this.option.data.hasFilter = false;
230
212
  $panel.resetFilter();
231
- // $table.setAllCheckboxRow(false);
232
-
233
- this.clearTableCheckboxRow($table);
213
+ $table.setAllCheckboxRow(false);
234
214
  },
235
215
  },
236
216
  },
@@ -6,6 +6,7 @@
6
6
  v-model="formData.dateRange"
7
7
  @change="handleSelectChange"
8
8
  clearable
9
+ style="width: 146px !important"
9
10
  >
10
11
  <el-option :label="$t1('本日')" :value="1"></el-option>
11
12
  <el-option :label="$t1('本周')" :value="2"></el-option>
@@ -19,6 +20,7 @@
19
20
  clearable
20
21
  @clear="formData.stat = null"
21
22
  @change="handleSelectChange"
23
+ style="width: 146px !important"
22
24
  >
23
25
  <el-option
24
26
  :label="$t2('审核中', 'components.wf.wfStatus1')"
@@ -33,7 +35,27 @@
33
35
  :value="3"
34
36
  ></el-option>
35
37
  </el-select>
36
- <el-input v-model="formData.objTypeName" placeholder="流程类型"></el-input>
38
+ <!-- <el-input v-model="formData.objTypeName" placeholder="流程类型"></el-input> -->
39
+ <el-select
40
+ class="f-btn"
41
+ v-model="formData.objTypeCode"
42
+ :placeholder="$t1('流程类型')"
43
+ clearable
44
+ @change="handleSelectChange"
45
+ style="width: 146px !important"
46
+ >
47
+ <el-option
48
+ v-for="(item, index) in objTypeList"
49
+ :key="index"
50
+ :label="item.objTypeName"
51
+ :value="item.objTypeCode"
52
+ ></el-option>
53
+ </el-select>
54
+ <el-input
55
+ v-model="formData.name"
56
+ placeholder="流程主题"
57
+ style="width: 146px !important"
58
+ ></el-input>
37
59
  <span class="button-sty">
38
60
  <el-date-picker
39
61
  v-model="formData.startStartTime"
@@ -43,6 +65,7 @@
43
65
  clearable
44
66
  value-format="yyyy-MM-dd"
45
67
  :picker-options="$baseStartPickerOptions(formData.endStartTime)"
68
+ style="width: 146px !important"
46
69
  ></el-date-picker>
47
70
  <span>-</span>
48
71
  <el-date-picker
@@ -53,6 +76,7 @@
53
76
  clearable
54
77
  value-format="yyyy-MM-dd"
55
78
  :picker-options="$baseEndPickerOptions(formData.startStartTime)"
79
+ style="width: 146px !important"
56
80
  ></el-date-picker>
57
81
  </span>
58
82
  <span class="button-sty">
@@ -64,6 +88,7 @@
64
88
  clearable
65
89
  value-format="yyyy-MM-dd"
66
90
  :picker-options="$baseStartPickerOptions(formData.endEndTime)"
91
+ style="width: 146px !important"
67
92
  ></el-date-picker>
68
93
  <span>-</span>
69
94
  <el-date-picker
@@ -74,6 +99,7 @@
74
99
  clearable
75
100
  value-format="yyyy-MM-dd"
76
101
  :picker-options="$baseEndPickerOptions(formData.startEndTime)"
102
+ style="width: 146px !important"
77
103
  ></el-date-picker>
78
104
  </span>
79
105
  <el-button
@@ -224,9 +250,11 @@ export default {
224
250
  dateRange: 3,
225
251
  stat: null,
226
252
  },
253
+ objTypeList: [],
227
254
  };
228
255
  },
229
256
  mounted() {
257
+ this.initObjTypeList();
230
258
  this.initTableList();
231
259
  this.loadWfSummaryCount();
232
260
  },
@@ -327,6 +355,8 @@ export default {
327
355
  },
328
356
  },
329
357
  },
358
+ { field: "approver_num", title: "审批总人数", width: 180 },
359
+ { field: "node_num", title: "审批节点数量", width: 180 },
330
360
  {
331
361
  width: 47,
332
362
  fixed: "right",
@@ -402,6 +432,18 @@ export default {
402
432
  this.searchEvent();
403
433
  this.clearWfSummaryNode();
404
434
  },
435
+ initObjTypeList() {
436
+ this.$http({
437
+ url: `/${this.serviceName}/wf_info/listGroupPage`,
438
+ method: "post",
439
+ data: {
440
+ type: 0,
441
+ },
442
+ success: (res) => {
443
+ this.objTypeList = res?.objx?.records || [];
444
+ },
445
+ });
446
+ },
405
447
  },
406
448
  };
407
449
  </script>