cloud-web-corejs 1.0.54-dev.264 → 1.0.54-dev.266

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.
@@ -4,9 +4,9 @@
4
4
  <template #form>
5
5
  <div class="clearfix screen-btns">
6
6
  <div class="fl">
7
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
7
+ <!-- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
8
8
  {{ $t1('新增') }}
9
- </vxe-button>
9
+ </vxe-button>-->
10
10
  </div>
11
11
  <div class="fr">
12
12
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
@@ -19,22 +19,45 @@
19
19
  </div>
20
20
  <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
21
21
  @submit="searchEvent" @reset="searchEvent">
22
- <vxe-form-item title="推送编码:" field="reqCode">
22
+ <vxe-form-item :title="$t1('服务名')+':'">
23
23
  <template v-slot>
24
- <el-input v-model="formData.reqCode" size="small" clearable/>
24
+ <el-select v-model="serverName">
25
+ <el-option v-for="(serviceId,index) in serviceIds" :key="index" :value="serviceId"
26
+ :label="serviceId"></el-option>
27
+ </el-select>
25
28
  </template>
26
29
  </vxe-form-item>
27
- <vxe-form-item title="推送名称:" field="reqName">
30
+ <vxe-form-item :title="$t1('任务编码')+':'">
28
31
  <template v-slot>
29
- <el-input v-model="formData.reqName" size="small" clearable/>
32
+ <el-input v-model="formData.taskCode" size="small" clearable/>
30
33
  </template>
31
34
  </vxe-form-item>
32
- <vxe-form-item title="是否启用:" field="enabled">
35
+ <vxe-form-item :title="$t1('备注')+':'">
33
36
  <template v-slot>
34
- <el-select v-model="formData.enabled" clearable>
35
- <el-option :value="true" label="启用"></el-option>
36
- <el-option :value="false" label="禁用"></el-option>
37
- </el-select>
37
+ <el-input v-model="formData.remark" size="small" clearable/>
38
+ </template>
39
+ </vxe-form-item>
40
+ <vxe-form-item title="查询时间:">
41
+ <template v-slot>
42
+ <el-date-picker
43
+ v-model="formData.startTime"
44
+ type="datetime"
45
+ placeholder=""
46
+ size="small"
47
+ clearable
48
+ value-format="yyyy-MM-dd HH:mm:ss"
49
+ :picker-options="$baseStartPickerOptions(formData.endTime)"
50
+ ></el-date-picker>
51
+ <span>-</span>
52
+ <el-date-picker
53
+ v-model="formData.endTime"
54
+ type="datetime"
55
+ placeholder=""
56
+ size="small"
57
+ clearable
58
+ value-format="yyyy-MM-dd HH:mm:ss"
59
+ :picker-options="$baseEndPickerOptions(formData.startTime)"
60
+ ></el-date-picker>
38
61
  </template>
39
62
  </vxe-form-item>
40
63
  </vxe-form>
@@ -46,7 +69,7 @@
46
69
  import editView from './edit.vue';
47
70
 
48
71
  export default {
49
- name: 'request_async_setting:list',
72
+ name: 'push_data_h:list',
50
73
  components: {editView},
51
74
  data() {
52
75
  return {
@@ -58,151 +81,146 @@ export default {
58
81
  vxeOption: {},
59
82
  formData: {},
60
83
  advancedFormData: {},
84
+ serviceIds: [],
85
+ serverName: null
61
86
  };
62
87
  },
88
+ computed: {
89
+ current_prefix() {
90
+ return this.serverName ? `/${this.serverName}` : "";
91
+ }
92
+ },
63
93
  mounted() {
64
- this.initTableList();
94
+ this.getServiceIds(() => {
95
+ this.initTableList();
96
+ })
65
97
  },
66
98
  methods: {
67
99
  searchEvent() {
100
+ if (!this.serverName) {
101
+ this.$baseAlert(this.$t1("请选择服务名"));
102
+ return
103
+ }
68
104
  this.$refs['table-m1'].commitProxy('reload');
69
105
  },
70
106
  resetEvent() {
107
+ if (!this.serverName) {
108
+ this.$baseAlert(this.$t1("请选择服务名"));
109
+ return
110
+ }
71
111
  this.formData = {};
72
- this.advancedFormData = {};
73
112
  this.$refs['table-m1'].commitProxy('reload');
74
113
  },
75
114
  openEditDialog(id) {
76
- this.copyId = 0;
77
115
  this.dataId = !id || typeof id == 'object' ? 0 : id;
78
- this.activeName = 'first';
79
- this.$openEditView('showEdit');
116
+ this.$emit('openEditDialog', this.dataId);
80
117
  },
81
118
  initTableList() {
82
119
  let that = this;
83
- let pushTypeMap = {0: '异步推送', 1: '同步调用'};
120
+ let autoLoad = false;
121
+ let serviceIds = this.serviceIds || [];
122
+ if (serviceIds.length) {
123
+ this.serverName = serviceIds[0];
124
+ autoLoad = true;
125
+ }
84
126
  let tableOption = {
85
127
  vue: this,
86
128
  tableRef: 'table-m1',
87
- tableName: 'bd_request_async_setting_list-m1',
88
- path: USER_PREFIX + '/request_async_setting/listPage',
129
+ tableName: 'bd_push_data_h_list-m1',
130
+ path: this.current_prefix + '/push_data_h/listPage',
89
131
  param: () => {
90
132
  return {
91
133
  ...this.formData,
92
- ...this.advancedFormData
134
+ serverName: this.serverName
93
135
  }
94
136
  },
95
137
  columns: [
96
138
  {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
97
139
  {
98
- title: '推送名称',
99
- field: 'reqName',
140
+ title: '任务编码',
141
+ field: 'taskCode',
100
142
  width: 150,
101
143
  fixed: 'left'
102
144
  },
103
145
  {
104
- title: '推送编码',
105
- field: 'reqCode',
146
+ title: '产生业务数据时间',
147
+ field: 'generateDate',
148
+ width: 200,
149
+ },
150
+ {
151
+ title: '插入历史表时间',
152
+ field: 'hCreateDate',
153
+ width: 200,
154
+ },
155
+ {
156
+ title: '处理结果描述',
157
+ field: 'resultDesc',
106
158
  width: 150,
107
- fixed: 'left'
108
159
  },
160
+
109
161
  {
110
- title: '请求Url',
111
- field: 'url',
162
+ title: '回传的数据类型',
163
+ field: 'callbackDataType',
112
164
  width: 150
113
165
  },
114
166
  {
115
- title: '请求头',
116
- field: 'header',
117
- width: 150
167
+ title: '回传的单据数据编码或ID',
168
+ field: 'callbackCode',
169
+ width: 200
118
170
  },
119
- /*{
120
- title: '连接超时',
121
- field: 'connectTimeout',
171
+ {
172
+ title: '回传的组织编码',
173
+ field: 'callbackCompanyCode',
122
174
  width: 150
123
175
  },
124
176
  {
125
- title: '读取超时',
126
- field: 'readTimeout',
127
- width: 150
128
- },*/
177
+ title: '别的服务传输数据过来的数据标识',
178
+ field: 'transfer',
179
+ width: 250
180
+ },
129
181
  {
130
- field: 'enabled',
131
- title: this.$t1('是否启用'),
132
- width: 150,
133
- slots: {
134
- default: ({row}) => {
135
- if (row.enabled) {
136
- return [
137
- <div class="txt-status">
138
- <span>启用</span>
139
- </div>
140
- ];
141
- } else {
142
- return [
143
- <div class="txt-status disable">
144
- <span>禁用</span>
145
- </div>
146
- ];
147
- }
148
- }
149
- }
182
+ title: '数据唯一标识',
183
+ field: 'sid',
184
+ width: 150
150
185
  },
151
186
  {
152
- title: '调度任务编码',
153
- field: 'taskCode',
187
+ title: '冗余字段1',
188
+ field: 'field1',
154
189
  width: 150
155
190
  },
156
191
  {
157
- title: '备注',
158
- field: 'remark',
192
+ title: '冗余字段2',
193
+ field: 'field2',
159
194
  width: 150
160
195
  },
161
196
  {
162
- title: '执行组织编码',
163
- field: 'exeCompanyCode',
197
+ title: '冗余字段3',
198
+ field: 'field3',
164
199
  width: 150
165
200
  },
166
201
  {
167
- field: 'enabled',
168
- title: this.$t1('是否启用'),
169
- width: 150,
170
- slots: {
171
- default: ({row}) => {
172
- if (row.enabled) {
173
- return [
174
- <div class="txt-status">
175
- <span>启用</span>
176
- </div>
177
- ];
178
- } else {
179
- return [
180
- <div class="txt-status disable">
181
- <span>禁用</span>
182
- </div>
183
- ];
184
- }
185
- }
186
- }
202
+ title: '冗余字段4',
203
+ field: 'field4',
204
+ width: 150
187
205
  },
188
206
  {
189
- field: 'createBy',
190
- title: this.$t1('创建人'),
207
+ title: '冗余字段5',
208
+ field: 'field5',
191
209
  width: 150
192
210
  },
193
211
  {
194
- field: 'createDate',
195
- title: this.$t1('创建时间'),
212
+ title: '服务名',
213
+ field: 'serverName',
196
214
  width: 150
197
215
  },
198
216
  {
199
- field: 'modifyBy',
200
- title: this.$t1('更新人'),
217
+ field: 'createBy',
218
+ title: this.$t1('创建人'),
201
219
  width: 150
202
220
  },
203
221
  {
204
- field: 'modifyDate',
205
- title: this.$t1('更新时间'),
222
+ field: 'createDate',
223
+ title: this.$t1('创建时间'),
206
224
  width: 150
207
225
  },
208
226
  {
@@ -232,15 +250,26 @@ export default {
232
250
  }
233
251
  }
234
252
  ],
235
- config:{
253
+ config: {
236
254
  proxyConfig: {
237
- autoLoad: false
255
+ autoLoad: autoLoad
238
256
  }
239
257
  }
240
258
  };
241
259
  this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
242
260
  this.vxeOption = opts;
243
261
  });
262
+ },
263
+ getServiceIds(callback) {
264
+ this.$http({
265
+ url: USER_PREFIX + `/wf_obj_config/wfServiceIds`,
266
+ method: `post`,
267
+ data: {},
268
+ success: res => {
269
+ this.serviceIds = res.objx || [];
270
+ callback && callback()
271
+ }
272
+ });
244
273
  }
245
274
  }
246
275
  };
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <div id="containt">
3
- <el-tabs v-model="activeName" class="tab-box">
3
+ <el-tabs v-model="activeName" class="tab-box" @tab-click="changeActiveName">
4
4
  <el-tab-pane :label="$t1('常规')" name="first">
5
- <editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :copyId.sync="copyId"
6
- :parent-target="_self" @reload="$reloadHandle"></editView>
5
+ <component v-if="showEdit" visible-key="showEdit" :is="editComponentName" :_dataId.sync="dataId"
6
+ :parent-target="_self" @reload="$reloadHandle"></component>
7
7
  </el-tab-pane>
8
8
  <el-tab-pane :label="$t1('列表')" name="second">
9
9
  <div class="grid-height">
@@ -50,14 +50,14 @@
50
50
  </vxe-grid>
51
51
  </div>
52
52
  </el-tab-pane>
53
- <el-tab-pane :label="$t1('在途推送数据')" name="third">
53
+ <el-tab-pane :label="$t1('在途推送数据')" name="pushData">
54
54
  <div class="grid-height">
55
- <push_data_list></push_data_list>
55
+ <push_data_list @openEditDialog="openPushDataEditView" v-if="showPushDataList"></push_data_list>
56
56
  </div>
57
57
  </el-tab-pane>
58
- <el-tab-pane :label="$t1('历史推送数据')" name="fourth">
58
+ <el-tab-pane :label="$t1('历史推送数据')" name="pushDataH">
59
59
  <div class="grid-height">
60
- <push_data_h_list></push_data_h_list>
60
+ <push_data_h_list @openEditDialog="openPushDataHEditView" v-if="showPushDataHList"></push_data_h_list>
61
61
  </div>
62
62
  </el-tab-pane>
63
63
  </el-tabs>
@@ -66,13 +66,15 @@
66
66
 
67
67
  <script>
68
68
  import editView from './edit.vue';
69
+ import push_data_edit from "../push_data/edit.vue";
70
+ import push_data_h_edit from "../push_data_h/edit.vue";
69
71
  import push_data_list from "../push_data/list.vue";
70
72
  import push_data_h_list from "../push_data_h/list.vue";
71
73
 
72
74
 
73
75
  export default {
74
76
  name: 'request_async_setting:list',
75
- components: {editView,push_data_list,push_data_h_list},
77
+ components: {editView, push_data_list, push_data_edit, push_data_h_list, push_data_h_edit},
76
78
  data() {
77
79
  return {
78
80
  activeName: 'second',
@@ -83,6 +85,9 @@ export default {
83
85
  vxeOption: {},
84
86
  formData: {},
85
87
  advancedFormData: {},
88
+ editComponentName: null,
89
+ showPushDataList: false,
90
+ showPushDataHList: false,
86
91
  };
87
92
  },
88
93
  mounted() {
@@ -100,6 +105,19 @@ export default {
100
105
  openEditDialog(id) {
101
106
  this.copyId = 0;
102
107
  this.dataId = !id || typeof id == 'object' ? 0 : id;
108
+ this.editComponentName = "editView"
109
+ this.activeName = 'first';
110
+ this.$openEditView('showEdit');
111
+ },
112
+ openPushDataEditView(id) {
113
+ this.dataId = !id || typeof id == 'object' ? 0 : id;
114
+ this.editComponentName = "push_data_edit"
115
+ this.activeName = 'first';
116
+ this.$openEditView('showEdit');
117
+ },
118
+ openPushDataHEditView(id) {
119
+ this.dataId = !id || typeof id == 'object' ? 0 : id;
120
+ this.editComponentName = "push_data_h_edit"
103
121
  this.activeName = 'first';
104
122
  this.$openEditView('showEdit');
105
123
  },
@@ -261,6 +279,14 @@ export default {
261
279
  this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
262
280
  this.vxeOption = opts;
263
281
  });
282
+ },
283
+ changeActiveName() {
284
+ if (this.activeName == "pushData") {
285
+ this.showPushDataList = true;
286
+ }
287
+ if (this.activeName == "pushDataH") {
288
+ this.showPushDataHList = true;
289
+ }
264
290
  }
265
291
  }
266
292
  };
@@ -93,6 +93,34 @@
93
93
  </el-select>
94
94
  </template>
95
95
  </vxe-form-item>
96
+ <vxe-form-item :title="$t1('启动人')+':'" field="starterName">
97
+ <template v-slot>
98
+ <el-input v-model="formData.starterName" size="small" clearable/>
99
+ </template>
100
+ </vxe-form-item>
101
+ <vxe-form-item title="启动时间:">
102
+ <template v-slot>
103
+ <el-date-picker
104
+ v-model="formData.startTime"
105
+ type="datetime"
106
+ placeholder=""
107
+ size="small"
108
+ clearable
109
+ value-format="yyyy-MM-dd HH:mm:ss"
110
+ :picker-options="$baseStartPickerOptions(formData.endTime)"
111
+ ></el-date-picker>
112
+ <span>-</span>
113
+ <el-date-picker
114
+ v-model="formData.endTime"
115
+ type="datetime"
116
+ placeholder=""
117
+ size="small"
118
+ clearable
119
+ value-format="yyyy-MM-dd HH:mm:ss"
120
+ :picker-options="$baseEndPickerOptions(formData.startTime)"
121
+ ></el-date-picker>
122
+ </template>
123
+ </vxe-form-item>
96
124
  </vxe-form>
97
125
  </template>
98
126
  </vxe-grid>
@@ -120,6 +120,19 @@
120
120
  </el-form-item>
121
121
  </td>
122
122
  </tr>
123
+ <tr>
124
+ <th>
125
+ {{ $t1('流程启动不允许更改候选人') }}
126
+ </th>
127
+ <td>
128
+ <el-form-item prop="startNoSetCandidate" :rules="[{ required: false, trigger: 'blur' }]">
129
+ <el-radio-group v-model="wfObjConfigItem.startNoSetCandidate">
130
+ <el-radio :label="true">{{ $t1('是') }}</el-radio>
131
+ <el-radio :label="false">{{ $t1('否') }}</el-radio>
132
+ </el-radio-group>
133
+ </el-form-item>
134
+ </td>
135
+ </tr>
123
136
  <tr>
124
137
  <th>
125
138
  {{ $t1('任务action脚本') }}<br/>
@@ -204,7 +217,8 @@ export default {
204
217
  skipSameUserTask: false,
205
218
  toNextNode: null,
206
219
  enabled: true,
207
- orders:undefined
220
+ orders: undefined,
221
+ startNoSetCandidate: false
208
222
  },
209
223
  showWfObjConfigDialog: false,
210
224
  configServiceId: null,
@@ -242,7 +256,7 @@ export default {
242
256
  modalStrictly: true,
243
257
  success: res => {
244
258
  let wfObjConfigItem = res.objx || {};
245
- if(wfObjConfigItem.orders===null)wfObjConfigItem.orders = undefined
259
+ if (wfObjConfigItem.orders === null) wfObjConfigItem.orders = undefined
246
260
  if (wfObjConfigItem.toNextNode === 1) {
247
261
  wfObjConfigItem.toRejectNode = null
248
262
  }
@@ -473,6 +473,20 @@ export default {
473
473
  }
474
474
  }
475
475
  },
476
+ {
477
+ title: this.$t1('流程启动不允许更改候选人'),
478
+ field: 'startNoSetCandidate',
479
+ width: 150,
480
+ slots: {
481
+ default: ({row}) => {
482
+ if (row.startNoSetCandidate) {
483
+ return [<div class="txt-status">{this.$t1('是')}</div>];
484
+ } else {
485
+ return [<div class="txt-status s-3">{this.$t1('否')}</div>];
486
+ }
487
+ }
488
+ }
489
+ },
476
490
  {
477
491
  field: 'createDate',
478
492
  title: this.$t1('创建时间'),