cloud-web-corejs 1.0.54-dev.276 → 1.0.54-dev.278

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.276",
4
+ "version": "1.0.54-dev.278",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -98,7 +98,7 @@ function getGrid(that, tableRef) {
98
98
 
99
99
  },
100
100
  mounted() {
101
- this.exc();
101
+ // this.exc();
102
102
  },
103
103
  beforeDestroy() {
104
104
  this.clearExportTimer()
@@ -13,12 +13,12 @@
13
13
  :index-of-parent-list="indexOfParentList" :class="widget.options.isFullscreen ? 'full-height':''">
14
14
  <div class="detail-wrap grid-container" :key="widget.id"
15
15
  :class="{'selected': selected}" @click.stop="selectWidget(widget)">
16
- <div class="d-header clearfix">
17
- <div class="fl">
16
+ <div class="d-header clearfix" style="height: auto;">
17
+ <div class="fl" style="width: 20%;overflow: hidden;height: 40px;">
18
18
  <i class="el-icon-info"/>
19
19
  {{ widget.options.label }}
20
20
  </div>
21
- <div class="fr">
21
+ <div class="fr" style="overflow: auto;">
22
22
  <div class="grid-cell">
23
23
  <draggable
24
24
  :list="widget.widgetList"
@@ -74,7 +74,10 @@
74
74
  methods: {
75
75
  clickHandle(){
76
76
  if(this.designState || this.field.options.disabled)return
77
- this.getFormRef().openCopyEditTab();
77
+ let copyData = this.$baseLodash.cloneDeep(this.formModel);
78
+
79
+ this.handleCustomEvent(this.field.options.copyDataHandle, ["copyData"], [copyData])
80
+ this.getFormRef().openCopyEditTab(copyData);
78
81
  }
79
82
  }
80
83
 
@@ -0,0 +1,36 @@
1
+ <template>
2
+ <div>
3
+ <el-form-item label="复制数据处理" label-width="150px">
4
+ <a href="javascript:void(0);" class="a-link link-oneLind"
5
+ @click="editEventHandler('copyDataHandle', copyDataHandleParams)">
6
+ <span>{{ optionModel.copyDataHandle }}</span>
7
+ <i class="el-icon-edit"></i>
8
+ </a>
9
+ </el-form-item>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+ import i18n from "../../../../../components/xform/utils/i18n"
15
+ import eventMixin
16
+ from "../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
17
+
18
+ export default {
19
+ name: "copyButton-editor",
20
+ mixins: [i18n,eventMixin],
21
+ props: {
22
+ designer: Object,
23
+ selectedWidget: Object,
24
+ optionModel: Object,
25
+ },
26
+ data(){
27
+ return {
28
+ copyDataHandleParams: ["dataId", "formCode", "copyData"]
29
+ }
30
+ },
31
+ }
32
+ </script>
33
+
34
+ <style scoped>
35
+
36
+ </style>
@@ -80,6 +80,7 @@ const COMMON_PROPERTIES = {
80
80
  'echarBarOption': 'echart-bar-editor', //柱状图
81
81
  'echarCategoryOption': 'echart-category-editor', //折线图
82
82
  'vabSearchName': 'vabSearchName-editor',
83
+ 'copyButton': 'copyButton-editor',
83
84
 
84
85
  //容器
85
86
  'showBlankRow': 'showBlankRow-editor',
@@ -3595,6 +3595,7 @@ export const businessFields = [
3595
3595
  onCreated: "",
3596
3596
  onMounted: "",
3597
3597
  copyButton: true,
3598
+ copyDataHandle: "",
3598
3599
  ...defaultWfConfig,
3599
3600
  ...defaultWidgetShowRuleConfig,
3600
3601
  hiddenByWf: true,
@@ -2495,6 +2495,9 @@ modules = {
2495
2495
  getFormRef(){
2496
2496
  return this;
2497
2497
  },
2498
+ isObject(value) {
2499
+ return Object.prototype.toString.call(value) === "[object Object]";
2500
+ },
2498
2501
  openCopyEditTab(copyData){
2499
2502
  let formData = this.$baseLodash.cloneDeep(copyData || this.formDataModel);
2500
2503
 
@@ -2505,24 +2508,25 @@ modules = {
2505
2508
  handleData(item)
2506
2509
  })
2507
2510
  return
2511
+ }else if(this.isObject(data)){
2512
+ data.id = null;
2513
+ data.create_by = null;
2514
+ data.create_date = null;
2515
+ data.modify_by = null;
2516
+ data.modify_date = null;
2517
+ delete data.head_table_id;
2518
+ delete data.objectForeignId
2519
+ if(data.createBy)data.createBy
2520
+ if(data.createDate)data.createDate
2521
+ if(data.modifyBy)data.modifyBy
2522
+ if(data.modifyDate)data.modifyDate
2523
+ Object.keys(data).forEach((key)=>{
2524
+ let value = data[key]
2525
+ if(value && Array.isArray(value)){
2526
+ handleData(value);
2527
+ }
2528
+ })
2508
2529
  }
2509
- data.id = null;
2510
- data.create_by = null;
2511
- data.create_date = null;
2512
- data.modify_by = null;
2513
- data.modify_date = null;
2514
- delete data.head_table_id;
2515
- delete data.objectForeignId
2516
- if(data.createBy)data.createBy
2517
- if(data.createDate)data.createDate
2518
- if(data.modifyBy)data.modifyBy
2519
- if(data.modifyDate)data.modifyDate
2520
- Object.keys(data).forEach((key)=>{
2521
- let value = data[key]
2522
- if(value && Array.isArray(value)){
2523
- handleData(value);
2524
- }
2525
- })
2526
2530
  }
2527
2531
  if(formData){
2528
2532
  handleData(formData)
@@ -22,14 +22,22 @@
22
22
  <td>{{ pushData.id }}</td>
23
23
  <th>{{ $t1('任务编码') }}</th>
24
24
  <td>{{ pushData.taskCode }}</td>
25
+ <th>{{ $t1('业务方产生时间点') }}</th>
26
+ <td>{{ pushData.generateDate }}</td>
27
+ </tr>
28
+ <tr>
29
+ <th>{{ $t1('组织编码') }}</th>
30
+ <td>{{ pushData.callbackCompanyCode }}</td>
25
31
  <th>{{ $t1('数据唯一标识') }}</th>
26
32
  <td colspan="3">{{ pushData.sid }}</td>
27
33
  </tr>
28
34
  <tr>
29
- <th>{{ $t1('业务方产生时间点') }}</th>
30
- <td>{{ pushData.generateDate }}</td>
31
35
  <th>{{ $t1('业务数据标识') }}</th>
32
- <td>{{ pushData.transfer }}</td>
36
+ <td colspan="7">{{ pushData.transfer }}</td>
37
+ </tr>
38
+ <tr>
39
+ <th>{{ $t1('推送数据') }}</th>
40
+ <td colspan="7">{{ pushData.data }}</td>
33
41
  </tr>
34
42
  <tr>
35
43
  <th>{{ $t1('冗余字段1') }}</th>
@@ -49,18 +57,6 @@
49
57
  <th>{{ $t1('备注') }}</th>
50
58
  <td colspan="7">{{ pushData.remark }}</td>
51
59
  </tr>
52
- <tr>
53
- <th>{{ $t1('推送数据') }}</th>
54
- <td colspan="7">{{ pushData.data }}</td>
55
- </tr>
56
- <tr>
57
- <th>{{ $t1('回传的数据类型') }}</th>
58
- <td>{{ pushData.callbackDataType }}</td>
59
- <th>{{ $t1('回传的单据数据编码或ID') }}</th>
60
- <td>{{ pushData.callbackCode }}</td>
61
- <th>{{ $t1('回传的组织编码') }}</th>
62
- <td>{{ pushData.callbackCompanyCode }}</td>
63
- </tr>
64
60
  <tr>
65
61
  <th>{{ $t1('服务名') }}</th>
66
62
  <td colspan="7">{{ pushData.serverName }}</td>
@@ -70,6 +66,10 @@
70
66
  <td>{{ pushData.createBy }}</td>
71
67
  <th>{{ $t1('创建时间') }}</th>
72
68
  <td>{{ pushData.createDate }}</td>
69
+ <th class="no"></th>
70
+ <td></td>
71
+ <th class="no"></th>
72
+ <td></td>
73
73
  </tr>
74
74
  </tbody>
75
75
  </table>
@@ -23,7 +23,7 @@
23
23
  <template v-slot>
24
24
  <el-select v-model="serverName">
25
25
  <el-option v-for="(serviceId,index) in serviceIds" :key="index" :value="serviceId"
26
- :label="serviceId"></el-option>
26
+ :label="serviceId" @change="searchEvent"></el-option>
27
27
  </el-select>
28
28
  </template>
29
29
  </vxe-form-item>
@@ -211,25 +211,15 @@ export default {
211
211
  width: 150
212
212
  },
213
213
  {
214
- title: '备注',
215
- field: 'remark',
216
- width: 200
217
- },
218
- {
219
- title: '回传的数据类型',
220
- field: 'callbackDataType',
214
+ title: '组织编码',
215
+ field: 'callbackCompanyCode',
221
216
  width: 150
222
217
  },
223
218
  {
224
- title: '回传的单据数据编码或ID',
225
- field: 'callbackCode',
219
+ title: '备注',
220
+ field: 'remark',
226
221
  width: 200
227
222
  },
228
- {
229
- title: '回传的组织编码',
230
- field: 'callbackCompanyCode',
231
- width: 150
232
- },
233
223
  {
234
224
  field: 'createBy',
235
225
  title: this.$t1('创建人'),
@@ -22,14 +22,22 @@
22
22
  <td>{{ pushDataH.id }}</td>
23
23
  <th>{{ $t1('任务编码') }}</th>
24
24
  <td>{{ pushDataH.taskCode }}</td>
25
+ <th>{{ $t1('业务方产生时间点') }}</th>
26
+ <td>{{ pushDataH.generateDate }}</td>
27
+ </tr>
28
+ <tr>
29
+ <th>{{ $t1('组织编码') }}</th>
30
+ <td>{{ pushDataH.callbackCompanyCode }}</td>
25
31
  <th>{{ $t1('数据唯一标识') }}</th>
26
32
  <td colspan="3">{{ pushDataH.sid }}</td>
27
33
  </tr>
28
34
  <tr>
29
- <th>{{ $t1('业务方产生时间点') }}</th>
30
- <td>{{ pushDataH.generateDate }}</td>
31
35
  <th>{{ $t1('业务数据标识') }}</th>
32
- <td>{{ pushDataH.transfer }}</td>
36
+ <td colspan="7">{{ pushDataH.transfer }}</td>
37
+ </tr>
38
+ <tr>
39
+ <th>{{ $t1('推送数据') }}</th>
40
+ <td colspan="7">{{ pushDataH.data }}</td>
33
41
  </tr>
34
42
  <tr>
35
43
  <th>{{ $t1('冗余字段1') }}</th>
@@ -49,18 +57,6 @@
49
57
  <th>{{ $t1('备注') }}</th>
50
58
  <td colspan="7">{{ pushDataH.remark }}</td>
51
59
  </tr>
52
- <tr>
53
- <th>{{ $t1('推送数据') }}</th>
54
- <td colspan="7">{{ pushDataH.data }}</td>
55
- </tr>
56
- <tr>
57
- <th>{{ $t1('回传的数据类型') }}</th>
58
- <td>{{ pushDataH.callbackDataType }}</td>
59
- <th>{{ $t1('回传的单据数据编码或ID') }}</th>
60
- <td>{{ pushDataH.callbackCode }}</td>
61
- <th>{{ $t1('回传的组织编码') }}</th>
62
- <td>{{ pushDataH.callbackCompanyCode }}</td>
63
- </tr>
64
60
  <tr>
65
61
  <th>{{ $t1('服务名') }}</th>
66
62
  <td colspan="7">{{ pushDataH.serverName }}</td>
@@ -70,6 +66,10 @@
70
66
  <td>{{ pushDataH.createBy }}</td>
71
67
  <th>{{ $t1('创建时间') }}</th>
72
68
  <td>{{ pushDataH.createDate }}</td>
69
+ <th class="no"></th>
70
+ <td></td>
71
+ <th class="no"></th>
72
+ <td></td>
73
73
  </tr>
74
74
  </tbody>
75
75
  </table>
@@ -21,7 +21,7 @@
21
21
  @submit="searchEvent" @reset="searchEvent">
22
22
  <vxe-form-item :title="$t1('服务名')+':'">
23
23
  <template v-slot>
24
- <el-select v-model="serverName">
24
+ <el-select v-model="serverName" @change="searchEvent">
25
25
  <el-option v-for="(serviceId,index) in serviceIds" :key="index" :value="serviceId"
26
26
  :label="serviceId"></el-option>
27
27
  </el-select>
@@ -221,29 +221,15 @@ export default {
221
221
  width: 150
222
222
  },
223
223
  {
224
- title: '备注',
225
- field: 'remark',
226
- width: 200
227
- },
228
- {
229
- title: '回传的数据类型',
230
- field: 'callbackDataType',
224
+ title: '组织编码',
225
+ field: 'callbackCompanyCode',
231
226
  width: 150
232
227
  },
233
228
  {
234
- title: '回传的单据数据编码或ID',
235
- field: 'callbackCode',
229
+ title: '备注',
230
+ field: 'remark',
236
231
  width: 200
237
232
  },
238
- {
239
- title: '回传的组织编码',
240
- field: 'callbackCompanyCode',
241
- width: 150
242
- },
243
-
244
-
245
-
246
-
247
233
  {
248
234
  field: 'createBy',
249
235
  title: this.$t1('创建人'),