cloud-web-corejs 1.0.54-dev.152 → 1.0.54-dev.153
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 +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +11 -3
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +4 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +14 -1
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +3 -0
- package/src/components/xform/mixins/scriptHttp.js +17 -1
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
<v-form-render :form-json.sync="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef"
|
11
11
|
:reportTemplate.sync="formTemplate" :conditionParam.sync="conditionParam"
|
12
12
|
:formInsData.sync="formInsData" v-if="showRender" visible-key="showRender" :parent-target="_self"
|
13
|
-
@reload="reload"
|
13
|
+
@reload="reload" v-bind="formConfig" :param="dialogParam"
|
14
14
|
class="data-table_height"/>
|
15
15
|
</div>
|
16
16
|
<span slot="footer" class="dialog-footer" v-if="option.showFooter!==false" v-bind="option.footerConfig">
|
@@ -38,6 +38,7 @@ export default {
|
|
38
38
|
},
|
39
39
|
mixins: [],
|
40
40
|
inject: ["getFormConfig"],
|
41
|
+
|
41
42
|
mounted() {
|
42
43
|
|
43
44
|
},
|
@@ -59,7 +60,8 @@ export default {
|
|
59
60
|
conditionParam: null,
|
60
61
|
formInsData: null,
|
61
62
|
$grid: null,
|
62
|
-
currentLayoutType: null
|
63
|
+
currentLayoutType: null,
|
64
|
+
dataId:null
|
63
65
|
};
|
64
66
|
},
|
65
67
|
computed: {
|
@@ -104,6 +106,10 @@ export default {
|
|
104
106
|
}
|
105
107
|
},
|
106
108
|
created() {
|
109
|
+
/*let dataId = this.option?.formConfig?.dataId??null
|
110
|
+
delete this.option?.formConfig?.dataId
|
111
|
+
this.dataId = dataId;*/
|
112
|
+
|
107
113
|
let currentFormConfig = this.getFormConfig();
|
108
114
|
this.currentLayoutType = currentFormConfig.layoutType
|
109
115
|
|
@@ -111,7 +117,9 @@ export default {
|
|
111
117
|
this.getReportTemplate();
|
112
118
|
},
|
113
119
|
methods: {
|
114
|
-
reload(){
|
120
|
+
reload(e,option){
|
121
|
+
let updateParam = option?.updateParam || {};
|
122
|
+
Object.assign(this.formConfig,updateParam)
|
115
123
|
this.showRender = false;
|
116
124
|
this.getReportTemplate();
|
117
125
|
},
|
package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
:parent-widget="parentWidget" :parent-list="parentList"
|
6
6
|
:index-of-parent-list="indexOfParentList">
|
7
7
|
<el-button type="primary" class="button-sty" size="mini" icon="el-icon-download" @click="importHandle"
|
8
|
-
:disabled="field.options.disabled">{{$t1('导入')}}
|
8
|
+
:disabled="field.options.disabled">{{ $t1('导入') }}
|
9
9
|
</el-button>
|
10
10
|
</static-content-wrapper>
|
11
11
|
|
@@ -67,8 +67,10 @@ export default {
|
|
67
67
|
// let importCodes = this.field.options.importCodes;
|
68
68
|
this.getFormRef().openImportDialog({
|
69
69
|
importOption: this.field.options,
|
70
|
-
|
70
|
+
importSaveDisabled: !!this.field.options.importSaveDisabled,
|
71
|
+
callback: (resultData, file, done) => {
|
71
72
|
// this.getWidgetRef(tableTarget).searchEvent();
|
73
|
+
this.handleCustomEvent(this.field.options.onConfirmImport, ['resultData', 'file', 'done'], [resultData, file, done])
|
72
74
|
}
|
73
75
|
});
|
74
76
|
}
|
@@ -38,6 +38,18 @@
|
|
38
38
|
<i class="el-icon-edit"></i>
|
39
39
|
</a>
|
40
40
|
</el-form-item>
|
41
|
+
|
42
|
+
<!-- <el-form-item label="不执行导入后台保存">
|
43
|
+
<el-switch v-model="optionModel.importSaveDisabled"></el-switch>
|
44
|
+
</el-form-item>
|
45
|
+
<el-form-item label="确认回调" label-width="150px">
|
46
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
47
|
+
@click="editEventHandler('onConfirmImport', onConfirmImportParams)">
|
48
|
+
<span>{{ optionModel.onConfirmImport }}</span>
|
49
|
+
<i class="el-icon-edit"></i>
|
50
|
+
</a>
|
51
|
+
</el-form-item>-->
|
52
|
+
|
41
53
|
<bdAttachSettingDialog v-if="showBdAttachSettingDialog" :visiable.sync="showBdAttachSettingDialog" :multi="false"
|
42
54
|
@confirm="confirmBdAttachSettingDialog"></bdAttachSettingDialog>
|
43
55
|
</div>
|
@@ -62,7 +74,8 @@ export default {
|
|
62
74
|
return {
|
63
75
|
eventParams: [],
|
64
76
|
showBdAttachSettingDialog: false,
|
65
|
-
onBeforeImportParams: ["dataId", "formCode", 'file', 'resultData', 'done']
|
77
|
+
onBeforeImportParams: ["dataId", "formCode", 'file', 'resultData', 'done'],
|
78
|
+
onConfirmImportParams: ["dataId", "formCode", 'resultData', 'file', 'done']
|
66
79
|
};
|
67
80
|
},
|
68
81
|
methods: {
|
@@ -9,6 +9,16 @@ modules = {
|
|
9
9
|
...opts
|
10
10
|
});
|
11
11
|
},*/
|
12
|
+
handleDecryptData(obj){
|
13
|
+
let toDo = (data)=>{
|
14
|
+
if(Array.isArray(data)){
|
15
|
+
data.forEach(item=>{
|
16
|
+
item = toDo(item)
|
17
|
+
})
|
18
|
+
}
|
19
|
+
}
|
20
|
+
toDo(obj);
|
21
|
+
},
|
12
22
|
formHttp(opts) {
|
13
23
|
let data = opts.data;
|
14
24
|
let scriptCode = opts.scriptCode;
|
@@ -16,7 +26,7 @@ modules = {
|
|
16
26
|
let isLoading = opts.isLoading ?? false;
|
17
27
|
let success = opts.success;
|
18
28
|
let fail = opts.fail;
|
19
|
-
let error = opts.
|
29
|
+
let error = opts.error;
|
20
30
|
delete opts.data
|
21
31
|
delete opts.scriptCode
|
22
32
|
delete opts.formCode
|
@@ -81,6 +91,12 @@ modules = {
|
|
81
91
|
...reqData
|
82
92
|
},
|
83
93
|
success: res => {
|
94
|
+
if(res.objx){
|
95
|
+
if(res.objx){
|
96
|
+
let objx = res.objx;
|
97
|
+
|
98
|
+
}
|
99
|
+
}
|
84
100
|
if (opts.successMsg) {
|
85
101
|
this.$message({
|
86
102
|
message: res.content,
|