cloud-web-corejs 1.0.54-dev.100 → 1.0.54-dev.102
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
|
@@ -19,10 +19,14 @@ modules = {
|
|
|
19
19
|
falseValue: false,
|
|
20
20
|
vxeOption: {},
|
|
21
21
|
showContent: true,
|
|
22
|
-
attachmentDTO: {
|
|
22
|
+
attachmentDTO: {
|
|
23
|
+
fileAttachAttributeDTOs:[]
|
|
24
|
+
},
|
|
25
|
+
fileAttachObjDTOs:[],
|
|
23
26
|
// current_prefix: '',
|
|
24
27
|
filePrefix: '',
|
|
25
|
-
fileName: ''
|
|
28
|
+
fileName: '',
|
|
29
|
+
vxeOption2:{}
|
|
26
30
|
};
|
|
27
31
|
},
|
|
28
32
|
watch: {
|
|
@@ -48,6 +52,7 @@ modules = {
|
|
|
48
52
|
mounted() {
|
|
49
53
|
this.getData();
|
|
50
54
|
this.initTableM1();
|
|
55
|
+
this.initTableM2();
|
|
51
56
|
},
|
|
52
57
|
methods: {
|
|
53
58
|
initFilePrefix() {
|
|
@@ -92,6 +97,7 @@ modules = {
|
|
|
92
97
|
},
|
|
93
98
|
reloadContent() {
|
|
94
99
|
this.getAttributes();
|
|
100
|
+
this.getObjs();
|
|
95
101
|
},
|
|
96
102
|
getData() {
|
|
97
103
|
this.$http({
|
|
@@ -105,6 +111,7 @@ modules = {
|
|
|
105
111
|
success: res => {
|
|
106
112
|
this.attachmentDTO = res.objx || {};
|
|
107
113
|
this.getAttributes();
|
|
114
|
+
this.getObjs();
|
|
108
115
|
}
|
|
109
116
|
});
|
|
110
117
|
},
|
|
@@ -122,6 +129,21 @@ modules = {
|
|
|
122
129
|
}
|
|
123
130
|
});
|
|
124
131
|
},
|
|
132
|
+
getObjs() {
|
|
133
|
+
this.$http({
|
|
134
|
+
url: this.current_prefix + '/file_attach/obj/list',
|
|
135
|
+
method: 'post',
|
|
136
|
+
data: {
|
|
137
|
+
stringOne: this.attachmentDTO.fileSn
|
|
138
|
+
},
|
|
139
|
+
isLoading: true,
|
|
140
|
+
// modalStrictly: true,
|
|
141
|
+
success: res => {
|
|
142
|
+
// this.$set(this.attachmentDTO, 'fileAttachObjDTOs', res.objx || []);
|
|
143
|
+
this.fileAttachObjDTOs = res.objx || []
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
},
|
|
125
147
|
initTableM1() {
|
|
126
148
|
//明细
|
|
127
149
|
var that = this;
|
|
@@ -188,6 +210,43 @@ modules = {
|
|
|
188
210
|
temp = temp.toFixed(2);
|
|
189
211
|
return temp + 'GB';
|
|
190
212
|
}
|
|
213
|
+
},
|
|
214
|
+
initTableM2() {
|
|
215
|
+
//明细
|
|
216
|
+
var that = this;
|
|
217
|
+
const tableRef = 'table-m2';
|
|
218
|
+
const tableOption = {
|
|
219
|
+
vue: this,
|
|
220
|
+
tableRef: tableRef,
|
|
221
|
+
tableName: 'user_fileLibrary_propertiesDialog_list-m2',
|
|
222
|
+
columns: [
|
|
223
|
+
{
|
|
224
|
+
type: 'checkbox',
|
|
225
|
+
fixed: 'left',
|
|
226
|
+
width: 48,
|
|
227
|
+
resizable: false
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
title: this.$t1('关联对象编码'),
|
|
231
|
+
field: 'objSn',
|
|
232
|
+
width: 200
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
title: this.$t1('关联对象名称'),
|
|
236
|
+
field: 'objName',
|
|
237
|
+
width: 200
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
width: 50,
|
|
241
|
+
fixed: 'right',
|
|
242
|
+
title: '',
|
|
243
|
+
sortable: false
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
};
|
|
247
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
248
|
+
this.vxeOption2 = opts;
|
|
249
|
+
});
|
|
191
250
|
}
|
|
192
251
|
}
|
|
193
252
|
};
|
|
@@ -133,6 +133,20 @@
|
|
|
133
133
|
</vxe-grid>
|
|
134
134
|
</template>
|
|
135
135
|
</baseTabPane>
|
|
136
|
+
<baseTabPane :label="$t1('文件关联对象')">
|
|
137
|
+
<template #button></template>
|
|
138
|
+
<template #default>
|
|
139
|
+
<vxe-grid
|
|
140
|
+
ref="table-m2"
|
|
141
|
+
class="vxe-tableNo"
|
|
142
|
+
height="224px"
|
|
143
|
+
:data="fileAttachObjDTOs"
|
|
144
|
+
v-bind="vxeOption2"
|
|
145
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
146
|
+
@custom="$vxeTableUtil.customHandle"
|
|
147
|
+
></vxe-grid>
|
|
148
|
+
</template>
|
|
149
|
+
</baseTabPane>
|
|
136
150
|
</baseTabs>
|
|
137
151
|
</el-form>
|
|
138
152
|
</div>
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
<el-input type="text" v-model="formConfig.saveScriptCode" placeholder="默认saveUpdatge"></el-input>
|
|
12
12
|
</el-form-item>
|
|
13
13
|
<el-form-item :label="i18nt('启用流程')">
|
|
14
|
-
<el-switch v-model="formConfig.wfEnabled"
|
|
14
|
+
<el-switch v-model="formConfig.wfEnabled"
|
|
15
|
+
@change="changeWfEnabled"></el-switch>
|
|
15
16
|
</el-form-item>
|
|
16
17
|
<el-form-item :label="i18nt('默认流程单据类型名称')">
|
|
17
18
|
<el-input type="text" v-model="designer.vueInstance.reportTemplate.objTypeName"></el-input>
|
|
@@ -19,12 +20,12 @@
|
|
|
19
20
|
<el-form-item :label="i18nt('引用流程的表单编码')">
|
|
20
21
|
<el-input type="text" v-model="designer.vueInstance.reportTemplate.fromWfFormCode"></el-input>
|
|
21
22
|
</el-form-item>
|
|
22
|
-
<!-- <el-form-item label="流程单据定义">
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
<!-- <el-form-item label="流程单据定义">
|
|
24
|
+
<a href="javascript:void(0);" class="a-link link-oneLind" @click="openWfObjConfigDialog">
|
|
25
|
+
<span>{{ wfObjConfigs.length ? '已维护' : null}}</span>
|
|
26
|
+
<i class="el-icon-edit"></i>
|
|
27
|
+
</a>
|
|
28
|
+
</el-form-item>-->
|
|
28
29
|
<el-form-item :label="i18nt('加载详情数据')">
|
|
29
30
|
<el-switch v-model="formConfig.isLoadEntity"></el-switch>
|
|
30
31
|
</el-form-item>
|
|
@@ -69,25 +70,27 @@
|
|
|
69
70
|
<el-form-item :label="i18nt('designer.setting.labelWidth')">
|
|
70
71
|
<el-input-number v-model="formConfig.labelWidth" :min="0" style="width: 100%"></el-input-number>
|
|
71
72
|
</el-form-item>-->
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
73
|
+
<el-form-item :label="i18nt('designer.setting.formCss')">
|
|
74
|
+
<el-button type="info" icon="el-icon-edit" plain round @click="editFormCss">
|
|
75
|
+
{{ i18nt('designer.setting.addCss') }}
|
|
76
|
+
</el-button>
|
|
77
|
+
</el-form-item>
|
|
78
|
+
<!--
|
|
79
|
+
<el-form-item :label="i18nt('designer.setting.customClass')">
|
|
80
|
+
<el-select v-model="formConfig.customClass" multiple filterable allow-create default-first-option>
|
|
81
|
+
<el-option v-for="(item, idx) in cssClassList" :key="idx" :label="item" :value="item"></el-option>
|
|
82
|
+
</el-select>
|
|
83
|
+
</el-form-item>
|
|
84
|
+
<el-form-item :label="i18nt('designer.setting.globalFunctions')">
|
|
85
|
+
<el-button type="info" icon="el-icon-edit" plain round @click="editGlobalFunctions">{{ i18nt('designer.setting.addEventHandler') }}</el-button>
|
|
86
|
+
</el-form-item>
|
|
87
|
+
<el-form-item label-width="0">
|
|
88
|
+
<el-divider class="custom-divider">{{ i18nt('designer.setting.formSFCSetting') }}</el-divider>
|
|
89
|
+
</el-form-item>
|
|
90
|
+
<el-form-item :label="i18nt('designer.setting.formModelName')"><el-input type="text" v-model="formConfig.modelName"></el-input></el-form-item>
|
|
91
|
+
<el-form-item :label="i18nt('designer.setting.formRefName')"><el-input type="text" v-model="formConfig.refName"></el-input></el-form-item>
|
|
92
|
+
<el-form-item :label="i18nt('designer.setting.formRulesName')"><el-input type="text" v-model="formConfig.rulesName"></el-input></el-form-item>
|
|
93
|
+
-->
|
|
91
94
|
</el-collapse-item>
|
|
92
95
|
<el-collapse-item name="3" title="详情表单信息">
|
|
93
96
|
<el-form-item :label="i18nt('表单编码')">
|
|
@@ -362,12 +365,12 @@ export default {
|
|
|
362
365
|
vabsearchConfigType: 1,
|
|
363
366
|
showFormTemplateDialog: false,
|
|
364
367
|
|
|
365
|
-
formScriptParam:null,
|
|
368
|
+
formScriptParam: null,
|
|
366
369
|
showFormScriptParamDialog: false,
|
|
367
|
-
formScriptSuccess:null,
|
|
370
|
+
formScriptSuccess: null,
|
|
368
371
|
showFormScriptSuccessDialog: false,
|
|
369
|
-
wfObjConfigs:[],
|
|
370
|
-
showWfObjConfigDialog:false
|
|
372
|
+
wfObjConfigs: [],
|
|
373
|
+
showWfObjConfigDialog: false
|
|
371
374
|
};
|
|
372
375
|
},
|
|
373
376
|
created() {
|
|
@@ -460,7 +463,7 @@ export default {
|
|
|
460
463
|
this.functionsCode = this.designer.formConfig.functions;
|
|
461
464
|
this.showEditFunctionsDialogFlag = true;
|
|
462
465
|
},
|
|
463
|
-
editFormScriptParam(){
|
|
466
|
+
editFormScriptParam() {
|
|
464
467
|
this.formScriptParam = this.designer.formConfig.formScriptParam;
|
|
465
468
|
this.showFormScriptParamDialog = true;
|
|
466
469
|
},
|
|
@@ -542,7 +545,7 @@ export default {
|
|
|
542
545
|
this.designer.formConfig.formScriptParam = this.formScriptParam;
|
|
543
546
|
this.showFormScriptParamDialog = false;
|
|
544
547
|
},
|
|
545
|
-
editFormScriptSuccess(){
|
|
548
|
+
editFormScriptSuccess() {
|
|
546
549
|
this.formScriptSuccess = this.designer.formConfig.formScriptSuccess;
|
|
547
550
|
this.showFormScriptSuccessDialog = true;
|
|
548
551
|
},
|
|
@@ -565,19 +568,19 @@ export default {
|
|
|
565
568
|
this.designer.formConfig.formScriptSuccess = this.formScriptSuccess;
|
|
566
569
|
this.showFormScriptSuccessDialog = false;
|
|
567
570
|
},
|
|
568
|
-
openWfObjConfigDialog(){
|
|
571
|
+
openWfObjConfigDialog() {
|
|
569
572
|
this.showWfObjConfigDialog = true;
|
|
570
573
|
},
|
|
571
|
-
confirmWfObjConfigDialog(rows){
|
|
574
|
+
confirmWfObjConfigDialog(rows) {
|
|
572
575
|
this.wfObjConfigs = rows || [];
|
|
573
576
|
},
|
|
574
|
-
getListByObjTypeCode(){
|
|
577
|
+
getListByObjTypeCode() {
|
|
575
578
|
let reportTemplate = this.designer.vueInstance.reportTemplate
|
|
576
579
|
this.$http({
|
|
577
580
|
url: `/${reportTemplate.serviceName}/wf_obj_config/listByObjTypeCode`,
|
|
578
581
|
method: `post`,
|
|
579
|
-
data:{
|
|
580
|
-
stringOne:reportTemplate.objTypeCode
|
|
582
|
+
data: {
|
|
583
|
+
stringOne: reportTemplate.objTypeCode
|
|
581
584
|
},
|
|
582
585
|
isLoading: true,
|
|
583
586
|
success: res => {
|
|
@@ -585,6 +588,10 @@ export default {
|
|
|
585
588
|
}
|
|
586
589
|
});
|
|
587
590
|
},
|
|
591
|
+
changeWfEnabled(val) {
|
|
592
|
+
this.designer.vueInstance.reportTemplate.objTypeName = null;
|
|
593
|
+
this.designer.vueInstance.reportTemplate.fromWfFormCode = null;
|
|
594
|
+
}
|
|
588
595
|
}
|
|
589
596
|
};
|
|
590
597
|
</script>
|