cloud-web-corejs 1.0.54-dev.743 → 1.0.54-dev.745

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.
@@ -1188,7 +1188,7 @@ export const basicFields = [
1188
1188
  },
1189
1189
  {
1190
1190
  type: "script-input",
1191
- icon: "code",
1191
+ icon: "component",
1192
1192
  commonFlag: !0,
1193
1193
  formItemFlag: !0,
1194
1194
  columnFlag: true,
@@ -3008,7 +3008,7 @@ export const advancedFields = [
3008
3008
  },
3009
3009
  {
3010
3010
  type: "autocomplete",
3011
- icon: "edit",
3011
+ icon: "message",
3012
3012
  commonFlag: !0,
3013
3013
  columnFlag: true,
3014
3014
  formItemFlag: !0,
@@ -3019,7 +3019,7 @@ export const advancedFields = [
3019
3019
  },
3020
3020
  {
3021
3021
  type: "search_button",
3022
- icon: "search",
3022
+ icon: "el-icon-search",
3023
3023
  commonFlag: !0,
3024
3024
  columnFlag: true,
3025
3025
  formItemFlag: !1,
@@ -3064,7 +3064,7 @@ export const advancedFields = [
3064
3064
  {
3065
3065
  type: "save_button",
3066
3066
  targetType: "button",
3067
- icon: "save",
3067
+ icon: "el-icon-check",
3068
3068
  commonFlag: !0,
3069
3069
  columnFlag: true,
3070
3070
  formItemFlag: !1,
@@ -3105,7 +3105,7 @@ export const advancedFields = [
3105
3105
  {
3106
3106
  type: "reset_button",
3107
3107
  targetType: "button",
3108
- icon: "redo",
3108
+ icon: "el-icon-refresh-right",
3109
3109
  commonFlag: !0,
3110
3110
  columnFlag: true,
3111
3111
  formItemFlag: !1,
@@ -3141,7 +3141,7 @@ export const advancedFields = [
3141
3141
  },
3142
3142
  {
3143
3143
  type: "table-export-button",
3144
- icon: "list-export",
3144
+ icon: "el-icon-upload",
3145
3145
  formItemFlag: !1,
3146
3146
  commonFlag: !0,
3147
3147
  columnFlag: true,
@@ -3170,7 +3170,7 @@ export const advancedFields = [
3170
3170
  },
3171
3171
  {
3172
3172
  type: "select-export-button",
3173
- icon: "export",
3173
+ icon: "el-icon-upload",
3174
3174
  formItemFlag: !1,
3175
3175
  commonFlag: !0,
3176
3176
  columnFlag: true,
@@ -3201,7 +3201,7 @@ export const advancedFields = [
3201
3201
  },
3202
3202
  {
3203
3203
  type: "select-export-item-button",
3204
- icon: "document",
3204
+ icon: "el-icon-upload",
3205
3205
  formItemFlag: !1,
3206
3206
  commonFlag: !0,
3207
3207
  columnFlag: true,
@@ -3233,7 +3233,7 @@ export const advancedFields = [
3233
3233
  {
3234
3234
  type: "add_button",
3235
3235
  targetType: "button",
3236
- icon: "add",
3236
+ icon: "el-icon-plus",
3237
3237
  commonFlag: !0,
3238
3238
  columnFlag: true,
3239
3239
  formItemFlag: !1,
@@ -3269,7 +3269,7 @@ export const advancedFields = [
3269
3269
  },
3270
3270
  {
3271
3271
  type: "import-button",
3272
- icon: "import",
3272
+ icon: "el-icon-download",
3273
3273
  commonFlag: !0,
3274
3274
  columnFlag: true,
3275
3275
  formItemFlag: !1,
@@ -3321,7 +3321,7 @@ export const advancedFields = [
3321
3321
  },
3322
3322
  {
3323
3323
  type: "import2-button",
3324
- icon: "excel",
3324
+ icon: "el-icon-download",
3325
3325
  commonFlag: !0,
3326
3326
  columnFlag: true,
3327
3327
  formItemFlag: !1,
@@ -3369,7 +3369,7 @@ export const advancedFields = [
3369
3369
  },
3370
3370
  {
3371
3371
  type: "print-button",
3372
- icon: "print",
3372
+ icon: "el-icon-printer",
3373
3373
  commonFlag: !0,
3374
3374
  columnFlag: true,
3375
3375
  formItemFlag: !1,
@@ -3410,7 +3410,7 @@ export const advancedFields = [
3410
3410
  },
3411
3411
  {
3412
3412
  type: "print-detail-button",
3413
- icon: "pdf",
3413
+ icon: "el-icon-printer",
3414
3414
  commonFlag: !0,
3415
3415
  columnFlag: false,
3416
3416
  formItemFlag: !1,
@@ -3573,7 +3573,7 @@ export const advancedFields = [
3573
3573
 
3574
3574
  {
3575
3575
  type: "project-tag",
3576
- icon: "tag",
3576
+ icon: "star",
3577
3577
  commonFlag: !0,
3578
3578
  columnFlag: true,
3579
3579
  formItemFlag: !0,
@@ -3612,7 +3612,7 @@ export const advancedFields = [
3612
3612
  },
3613
3613
  {
3614
3614
  type: "dropdown",
3615
- icon: "ico-more",
3615
+ icon: "el-icon-arrow-down",
3616
3616
  commonFlag: !0,
3617
3617
  // columnFlag: true,
3618
3618
  widgetList: [],
@@ -3684,7 +3684,7 @@ export const advancedFields = [
3684
3684
 
3685
3685
  {
3686
3686
  type: "download-button",
3687
- icon: "download",
3687
+ icon: "el-icon-download",
3688
3688
  commonFlag: !0,
3689
3689
  columnFlag: true,
3690
3690
  formItemFlag: !1,
@@ -3990,7 +3990,7 @@ export const businessFields = [
3990
3990
  {
3991
3991
  type: "saleOrg-vabsearch",
3992
3992
  targetType: "singerSearch",
3993
- icon: "org",
3993
+ icon: "tree",
3994
3994
  commonFlag: !0,
3995
3995
  columnFlag: true,
3996
3996
  formItemFlag: !0,
@@ -4035,7 +4035,7 @@ export const businessFields = [
4035
4035
  {
4036
4036
  type: "saleOrg-project-tag",
4037
4037
  targetType: "project-tag",
4038
- icon: "org",
4038
+ icon: "tree",
4039
4039
  commonFlag: !0,
4040
4040
  columnFlag: true,
4041
4041
  formItemFlag: !0,
@@ -4056,7 +4056,7 @@ export const businessFields = [
4056
4056
  {
4057
4057
  type: "save_submit_wf_button",
4058
4058
  targetType: "button",
4059
- icon: "node-tree",
4059
+ icon: "el-icon-video-play",
4060
4060
  commonFlag: !0,
4061
4061
  columnFlag: true,
4062
4062
  formItemFlag: !1,
@@ -4094,7 +4094,7 @@ export const businessFields = [
4094
4094
  },
4095
4095
  {
4096
4096
  type: "copy_button",
4097
- icon: "clipboard",
4097
+ icon: "el-icon-document-copy",
4098
4098
  commonFlag: !0,
4099
4099
  columnFlag: true,
4100
4100
  formItemFlag: !1,
@@ -4277,7 +4277,7 @@ export const compareFields = [
4277
4277
  {
4278
4278
  type: "compare-button",
4279
4279
  targetType: "button",
4280
- icon: "compare",
4280
+ icon: "fullscreen",
4281
4281
  commonFlag: !0,
4282
4282
  formItemFlag: !1,
4283
4283
  columnFlag: true,
@@ -0,0 +1,162 @@
1
+ // import {initWf} from '../../../components/wf/wfUtil'
2
+ // import {getReportGlobalMap} from "../../../components/xform/utils/util";
3
+ import {decrypt} from "@base/utils/aes";
4
+
5
+
6
+ let modules = {};
7
+ modules = {
8
+ methods: {
9
+ /*formScriptHttp(opts){
10
+ return this.formHttp({
11
+ ...opts
12
+ });
13
+ },*/
14
+ handleDecryptData(data) {
15
+ if (data) {
16
+ if (Array.isArray(data)) {
17
+ data.forEach(item => {
18
+ this.handleDecryptData(item)
19
+ })
20
+ } else if (Object.prototype.toString.call(data) === "[object Object]") {
21
+ Object.keys(data).forEach(key => {
22
+
23
+ let value = data[key];
24
+ if (value !== null && value !== undefined) {
25
+ if (Object.prototype.toString.call(data[key]) === "[object String]") {
26
+ let str = "ATEN*-";
27
+ if (value.startsWith(str)) {
28
+ data[key] = decrypt(value.slice(str.length));
29
+ }
30
+ } else {
31
+ this.handleDecryptData(data[key])
32
+ }
33
+ }
34
+ })
35
+ } else if (Object.prototype.toString.call(data) === "[object String]") {
36
+ let str = "ATEN*-";
37
+ if (data.startsWith(str)) {
38
+ data = decrypt(data.slice(str.length));
39
+ }
40
+ }
41
+ }
42
+ return data;
43
+ },
44
+ getHttpTarget() {
45
+ return this.getFormRef ? this.getFormRef() : this;
46
+ },
47
+ formHttp(opts) {
48
+ let data = opts.data;
49
+ let scriptCode = opts.scriptCode ? opts.scriptCode.trim() : null;
50
+ let formCode = opts.formCode ? opts.formCode.trim() : null;
51
+ let isLoading = opts.isLoading ?? true;
52
+ let success = opts.success;
53
+ let fail = opts.fail;
54
+ let error = opts.error;
55
+
56
+ let that = this;
57
+ // let reportTemplate = that.getFormRef ? that.getFormRef().reportTemplate : that.reportTemplate;
58
+ if (scriptCode && !formCode) {
59
+ let arr = scriptCode.split("/").filter(item => item)
60
+ if (arr.length > 1) {
61
+ formCode = arr[0];
62
+ scriptCode = arr[1];
63
+ }
64
+ }
65
+
66
+
67
+ delete opts.data
68
+ delete opts.scriptCode
69
+ delete opts.formCode
70
+ delete opts.isLoading
71
+ delete opts.success
72
+ delete opts.fail
73
+ delete opts.error
74
+
75
+
76
+ let getReqUrl = (callback) => {
77
+
78
+ if (!opts.url) {
79
+ this.getHttpTarget().$http({
80
+ aes: true,
81
+ url: USER_PREFIX + `/formScript/getServiceName`,
82
+ method: `post`,
83
+ data: {
84
+ formCode,
85
+ scriptCode
86
+ },
87
+ isLoading,
88
+ // loadingTarget: this.getLoadingTarget(),
89
+ // modalStrictly: true,
90
+ success: res => {
91
+ let serviceName = res.objx;
92
+ if (serviceName) {
93
+ let url = `/${searviceName}/bd_api/${formCode}/${scriptCode}`;
94
+ callback(url)
95
+ } else {
96
+ this.$baseAlert("服务名不存在")
97
+ }
98
+ }
99
+ });
100
+ } else {
101
+ callback(opts.url)
102
+ }
103
+
104
+ }
105
+ let toDo = () => {
106
+ return new Promise((resolve, reject) => {
107
+ getReqUrl(url => {
108
+ let reqData;
109
+ reqData = data;
110
+
111
+ let reportGlobalMap = {};
112
+ // let url = `/${searviceName}/bd_api/${formCode}/${scriptCode}`;
113
+ // let opts.vue
114
+ return opts.vue.$http({
115
+ // aes: true,
116
+ url: url,
117
+ method: `post`,
118
+ // loadingTarget: this.getLoadingTarget(),
119
+ isLoading,
120
+ ...opts,
121
+ data: {
122
+ // scriptCode: scriptCode,
123
+ fixeData: reportGlobalMap,
124
+ ...reqData
125
+ },
126
+ success: res => {
127
+ if (res.objx) {
128
+ res.objx = this.handleDecryptData(res.objx);
129
+ }
130
+ if (opts.successMsg) {
131
+ this.$message({
132
+ message: res.content,
133
+ type: 'success',
134
+ duration: 1000
135
+ });
136
+ }
137
+ success && success(res);
138
+ resolve(res);
139
+ },
140
+ fail: res => {
141
+ fail && fail(res);
142
+ resolve(res);
143
+ },
144
+ error: e => {
145
+ error && error(e);
146
+ reject(e);
147
+ }
148
+ });
149
+ })
150
+ })
151
+ }
152
+ if (opts.isConfirm) {
153
+ this.$baseConfirm(opts.confirmText).then(() => {
154
+ return toDo();
155
+ });
156
+ } else {
157
+ return toDo();
158
+ }
159
+ }
160
+ }
161
+ }
162
+ export default modules;
@@ -89,11 +89,14 @@ export default {
89
89
  <style lang="scss" scoped>
90
90
  .app-main {
91
91
  /* 45= navbar 45 */
92
- min-height: calc(100vh - 45px);
93
- //height:calc(100vh - 10px);
92
+ //min-height: calc(100vh - 45px);
93
+ height:calc(100vh - 10px);
94
94
  width: 100%;
95
95
  position: relative;
96
96
  overflow: hidden;
97
+ > div{
98
+ height:100%;
99
+ }
97
100
  }
98
101
 
99
102
  .fixed-header + .app-main {
@@ -179,7 +179,7 @@ export default {
179
179
  right: 130px;
180
180
  top: 0;
181
181
  }
182
-
182
+ /*
183
183
  ::v-deep .tab-boxOnly > .el-tabs__content .el-tab-pane .el-tab-pane {
184
184
  .detail-wrap .d-cont {
185
185
  height: calc(100vh - 158px) !important;
@@ -203,5 +203,5 @@ export default {
203
203
  .grid-height {
204
204
  height: calc(100vh - 84px) !important;
205
205
  }
206
- }
206
+ } */
207
207
  </style>
@@ -479,13 +479,5 @@ export default {
479
479
  };
480
480
  </script>
481
481
  <style scoped lang="scss">
482
- .grid-height {
483
- height: calc(100vh - 106px) !important;
484
- }
485
- ::v-deep .detail-wrap{
486
- margin:-8px -10px 0;
487
- .d-cont {
488
- height: calc(100vh - 148px) !important;
489
- }
490
- }
482
+
491
483
  </style>
@@ -144,28 +144,28 @@ export default {
144
144
  top: 0;
145
145
  }
146
146
 
147
- ::v-deep .tab-boxOnly > .el-tabs__content .el-tab-pane .el-tab-pane {
148
- .detail-wrap .d-cont {
149
- height: calc(100vh - 158px) !important;
150
- }
147
+ // ::v-deep .tab-boxOnly > .el-tabs__content .el-tab-pane .el-tab-pane {
148
+ // .detail-wrap .d-cont {
149
+ // height: calc(100vh - 158px) !important;
150
+ // }
151
151
 
152
- .grid-height {
153
- height: calc(100vh - 126px) !important;
154
- }
155
- }
152
+ // .grid-height {
153
+ // height: calc(100vh - 126px) !important;
154
+ // }
155
+ // }
156
156
 
157
- ::v-deep
158
- .designer-drawer.is-fullscreen
159
- .tab-boxOnly
160
- > .el-tabs__content
161
- .el-tab-pane
162
- .el-tab-pane {
163
- .detail-wrap .d-cont {
164
- height: calc(100vh - 116px) !important;
165
- }
157
+ // ::v-deep
158
+ // .designer-drawer.is-fullscreen
159
+ // .tab-boxOnly
160
+ // > .el-tabs__content
161
+ // .el-tab-pane
162
+ // .el-tab-pane {
163
+ // .detail-wrap .d-cont {
164
+ // height: calc(100vh - 116px) !important;
165
+ // }
166
166
 
167
- .grid-height {
168
- height: calc(100vh - 84px) !important;
169
- }
170
- }
167
+ // .grid-height {
168
+ // height: calc(100vh - 84px) !important;
169
+ // }
170
+ // }
171
171
  </style>
@@ -12,52 +12,51 @@
12
12
  v-el-drag-dialog
13
13
  v-el-dialog-center
14
14
  >
15
- <div class="cont">
16
- <div id="containt">
17
- <el-form ref="editForm" :model="formData">
18
- <div class="grid-height" style="height: 500px">
19
- <vxe-grid
20
- class="is-pointer"
21
- ref="table-m1"
22
- :data="formData.wfObjConfigDTOs"
23
- v-bind="vxeOption"
24
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
25
- @custom="$vxeTableUtil.customHandle"
26
- >
27
- <template #form>
28
- <div class="clearfix screen-btns">
29
- <div class="fl">
30
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus"
31
- @click="openCompanyDialog">
32
- 新增
33
- </vxe-button>
34
- <span class="button-sty tips">{{ $t1('选择表单所在的组织,填写组织对应的流程单据类型数据。') }}</span>
35
- </div>
15
+ <div id="containt">
16
+ <el-form ref="editForm" :model="formData">
17
+ <div class="grid-height" style="height: 500px">
18
+ <vxe-grid
19
+ class="is-pointer"
20
+ ref="table-m1"
21
+ :data="formData.wfObjConfigDTOs"
22
+ v-bind="vxeOption"
23
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
24
+ @custom="$vxeTableUtil.customHandle"
25
+ >
26
+ <template #form>
27
+ <div class="clearfix screen-btns">
28
+ <div class="fl">
29
+ <vxe-button status="primary" class="button-sty" icon="el-icon-plus"
30
+ @click="openCompanyDialog">
31
+ 新增
32
+ </vxe-button>
33
+ <span class="button-sty tips">{{ $t1('选择表单所在的组织,填写组织对应的流程单据类型数据。') }}</span>
36
34
  </div>
37
- </template>
38
- <template #objTypeName="{row,rowIndex}">
39
- <el-form-item :prop="'wfObjConfigDTOs.'+rowIndex+'.objTypeName'"
40
- :rules="[{ required: true, trigger: 'blur' }]">
41
- <el-input v-model="row.objTypeName" clearable></el-input>
42
- </el-form-item>
43
- </template>
44
- <template #operate="{row}">
45
- <a
46
- href="javascript:void(0);"
47
- class="a-link"
48
- @click="openEditDialog(row.id)"
49
- >
50
- <el-tooltip :enterable="false" effect="dark" :content="$t2('查看','common.view')" placement="top"
51
- popper-class="tooltip-skin">
52
- <i class="el-icon-edit"/>
53
- </el-tooltip>
54
- </a>
55
- </template>
56
- </vxe-grid>
57
- </div>
58
- </el-form>
59
- </div>
35
+ </div>
36
+ </template>
37
+ <template #objTypeName="{row,rowIndex}">
38
+ <el-form-item :prop="'wfObjConfigDTOs.'+rowIndex+'.objTypeName'"
39
+ :rules="[{ required: true, trigger: 'blur' }]">
40
+ <el-input v-model="row.objTypeName" clearable></el-input>
41
+ </el-form-item>
42
+ </template>
43
+ <template #operate="{row}">
44
+ <a
45
+ href="javascript:void(0);"
46
+ class="a-link"
47
+ @click="openEditDialog(row.id)"
48
+ >
49
+ <el-tooltip :enterable="false" effect="dark" :content="$t2('查看','common.view')" placement="top"
50
+ popper-class="tooltip-skin">
51
+ <i class="el-icon-edit"/>
52
+ </el-tooltip>
53
+ </a>
54
+ </template>
55
+ </vxe-grid>
56
+ </div>
57
+ </el-form>
60
58
  </div>
59
+
61
60
  <span slot="footer" class="dialog-footer">
62
61
  <el-button type="primary" plain class="button-sty" @click="closeDialog">
63
62
  <i class="el-icon-close el-icon"></i>
@@ -520,6 +520,10 @@ export default {
520
520
  background: none;
521
521
  padding: 10px 0 0;
522
522
  box-shadow: none;
523
+ display:flex;flex-direction: column;
524
+ > .el-row{flex:1;
525
+ > .el-col{height:100%;}
526
+ }
523
527
  }
524
528
  .filter-btns {
525
529
  .f-btn {
@@ -580,12 +584,13 @@ export default {
580
584
  }
581
585
  }
582
586
  ::v-deep .box-style1 {
583
- margin: 10px 5px 0;
587
+ margin: 10px 5px 0;height:calc(100% - 10px);display:flex;flex-direction:column;
584
588
  .el-card__body {
585
- height: calc(100vh - 254px);
589
+ flex:1;
586
590
  }
587
591
  }
588
592
  .node-box {
593
+ height:100%;overflow:auto;display:flex;flex-direction: column;
589
594
  .info {
590
595
  border: solid 1px #e6ebf5;
591
596
  background: #f6faff;
@@ -602,18 +607,19 @@ export default {
602
607
  position: absolute;
603
608
  right: 12px;
604
609
  top: 50%;
605
- margin-top: -14px;
610
+ margin-top: -14px !important;
606
611
  }
607
612
  .tit {
608
613
  font-size: 13px;
609
614
  color: #212121;
610
615
  margin-bottom: 5px;
616
+ margin-top:0;
611
617
  }
612
618
  }
613
619
  .el-steps {
614
- height: calc(100vh - 326px);
615
620
  overflow: auto;
616
621
  padding-right: 10px;
622
+ flex:1;
617
623
  }
618
624
  }
619
625
  </style>