cloud-web-corejs 1.0.54-dev.461 → 1.0.54-dev.463
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/vb-tabs/x-tabs.vue +1 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +71 -50
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +4 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +2 -2
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +2 -2
- package/src/views/user/form/view/list.vue +1 -1
package/package.json
CHANGED
|
@@ -7,22 +7,38 @@
|
|
|
7
7
|
@close="close"
|
|
8
8
|
>
|
|
9
9
|
<div class="cont designer-view" v-bind="bodyConfig" id="containt">
|
|
10
|
-
<v-form-render
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
<v-form-render
|
|
11
|
+
:form-json.sync="formJson"
|
|
12
|
+
:form-data="formData"
|
|
13
|
+
:option-data="optionData"
|
|
14
|
+
ref="vFormRef"
|
|
15
|
+
:reportTemplate.sync="formTemplate"
|
|
16
|
+
:conditionParam.sync="conditionParam"
|
|
17
|
+
:formInsData.sync="formInsData"
|
|
18
|
+
v-if="showRender"
|
|
19
|
+
visible-key="showRender"
|
|
20
|
+
:parent-target="_self"
|
|
21
|
+
@reload="reload"
|
|
22
|
+
v-bind="formConfig"
|
|
23
|
+
:param="dialogParam"
|
|
24
|
+
class="data-table_height"
|
|
25
|
+
/>
|
|
15
26
|
</div>
|
|
16
|
-
<span
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
<span
|
|
28
|
+
slot="footer"
|
|
29
|
+
class="dialog-footer"
|
|
30
|
+
v-if="option.showFooter !== false"
|
|
31
|
+
v-bind="option.footerConfig"
|
|
32
|
+
>
|
|
33
|
+
<el-button type="primary" plain class="button-sty" @click="close">
|
|
34
|
+
<i class="el-icon-close el-icon"></i>
|
|
35
|
+
{{ $t2("取 消", "system.button.cancel2") }}
|
|
36
|
+
</el-button>
|
|
37
|
+
<el-button type="primary" @click="dialogSubmit" class="button-sty">
|
|
38
|
+
<i class="el-icon-check el-icon"></i>
|
|
39
|
+
{{ $t2("确 定", "system.button.confirm2") }}
|
|
40
|
+
</el-button>
|
|
41
|
+
</span>
|
|
26
42
|
</el-dialog>
|
|
27
43
|
</template>
|
|
28
44
|
|
|
@@ -31,17 +47,15 @@ import VFormRender from "../../../../../components/xform/form-render/index.vue";
|
|
|
31
47
|
|
|
32
48
|
export default {
|
|
33
49
|
// name: "vabSearchDialog",
|
|
34
|
-
components: {VFormRender},
|
|
50
|
+
components: { VFormRender },
|
|
35
51
|
props: {
|
|
36
52
|
visiable: Boolean,
|
|
37
|
-
option: Object
|
|
53
|
+
option: Object,
|
|
38
54
|
},
|
|
39
55
|
mixins: [],
|
|
40
56
|
inject: ["getFormConfig"],
|
|
41
57
|
|
|
42
|
-
mounted() {
|
|
43
|
-
|
|
44
|
-
},
|
|
58
|
+
mounted() {},
|
|
45
59
|
data() {
|
|
46
60
|
var that = this;
|
|
47
61
|
return {
|
|
@@ -61,7 +75,8 @@ export default {
|
|
|
61
75
|
formInsData: null,
|
|
62
76
|
$grid: null,
|
|
63
77
|
currentLayoutType: null,
|
|
64
|
-
dataId:null
|
|
78
|
+
dataId: null,
|
|
79
|
+
formConfig: {},
|
|
65
80
|
};
|
|
66
81
|
},
|
|
67
82
|
computed: {
|
|
@@ -71,13 +86,13 @@ export default {
|
|
|
71
86
|
dialogParam() {
|
|
72
87
|
return this.option?.param;
|
|
73
88
|
},
|
|
74
|
-
formConfig() {
|
|
89
|
+
/* formConfig() {
|
|
75
90
|
return this.option?.formConfig;
|
|
76
|
-
},
|
|
91
|
+
}, */
|
|
77
92
|
dialogConfig() {
|
|
78
93
|
let customClass = "dialog-style list-dialog dialog-checkbox pd_0";
|
|
79
94
|
if (this.option.dialogConfig?.customClass) {
|
|
80
|
-
customClass = customClass + " " + this.option.dialogConfig.customClass
|
|
95
|
+
customClass = customClass + " " + this.option.dialogConfig.customClass;
|
|
81
96
|
}
|
|
82
97
|
let config = {
|
|
83
98
|
title: this.formTemplate.formName,
|
|
@@ -88,38 +103,40 @@ export default {
|
|
|
88
103
|
width: "1200px",
|
|
89
104
|
fullscreen: this.option.fullscreen,
|
|
90
105
|
};
|
|
91
|
-
config = Object.assign({}, config, this.option.dialogConfig, {customClass});
|
|
106
|
+
config = Object.assign({}, config, this.option.dialogConfig, { customClass });
|
|
92
107
|
config.title = this.$t1(config.title);
|
|
93
108
|
return config;
|
|
94
109
|
},
|
|
95
110
|
bodyConfig() {
|
|
96
111
|
let config = {};
|
|
97
|
-
let classStr = this.currentLayoutType
|
|
112
|
+
let classStr = this.currentLayoutType;
|
|
98
113
|
if (this.option.bodyConfig?.class) {
|
|
99
114
|
classStr = classStr + " " + this.option.bodyConfig.class;
|
|
100
115
|
}
|
|
101
116
|
if (this.option.showFooter == false) {
|
|
102
117
|
classStr = classStr + " nfootBtn";
|
|
103
118
|
}
|
|
104
|
-
config = Object.assign({}, config, this.option.bodyConfig, {class: classStr});
|
|
119
|
+
config = Object.assign({}, config, this.option.bodyConfig, { class: classStr });
|
|
105
120
|
return config;
|
|
106
|
-
}
|
|
121
|
+
},
|
|
107
122
|
},
|
|
108
123
|
created() {
|
|
109
124
|
/*let dataId = this.option?.formConfig?.dataId??null
|
|
110
125
|
delete this.option?.formConfig?.dataId
|
|
111
126
|
this.dataId = dataId;*/
|
|
112
127
|
|
|
128
|
+
this.formConfig = this.option?.formConfig || {};
|
|
129
|
+
|
|
113
130
|
let currentFormConfig = this.getFormConfig();
|
|
114
|
-
this.currentLayoutType = currentFormConfig.layoutType
|
|
131
|
+
this.currentLayoutType = currentFormConfig.layoutType;
|
|
115
132
|
|
|
116
133
|
this.selectMulti = this.option.multiple ?? true;
|
|
117
134
|
this.getReportTemplate();
|
|
118
135
|
},
|
|
119
136
|
methods: {
|
|
120
|
-
reload(e,option){
|
|
137
|
+
reload(e, option) {
|
|
121
138
|
let updateParam = option?.updateParam || {};
|
|
122
|
-
if(this.formConfig)Object.assign(this.formConfig,updateParam)
|
|
139
|
+
if (this.formConfig) Object.assign(this.formConfig, updateParam);
|
|
123
140
|
this.showRender = false;
|
|
124
141
|
this.getReportTemplate();
|
|
125
142
|
},
|
|
@@ -127,12 +144,12 @@ export default {
|
|
|
127
144
|
let param = {
|
|
128
145
|
objTypeCode: this.$attrs.objTypeCode,
|
|
129
146
|
objId: this.$attrs.objId,
|
|
130
|
-
taskId: this.$attrs.taskId
|
|
147
|
+
taskId: this.$attrs.taskId,
|
|
131
148
|
};
|
|
132
149
|
this.conditionParam = param;
|
|
133
150
|
let url, data;
|
|
134
151
|
url = USER_PREFIX + `/formTemplate/getByFormCode`;
|
|
135
|
-
data = {stringOne: this.formCode}
|
|
152
|
+
data = { stringOne: this.formCode };
|
|
136
153
|
|
|
137
154
|
let that = this;
|
|
138
155
|
this.$http({
|
|
@@ -142,26 +159,26 @@ export default {
|
|
|
142
159
|
isLoading: true,
|
|
143
160
|
loadingTarget: document.body,
|
|
144
161
|
modalStrictly: true,
|
|
145
|
-
success: res => {
|
|
162
|
+
success: (res) => {
|
|
146
163
|
let formTemplate = res.objx || {};
|
|
147
164
|
this.formTemplate = formTemplate;
|
|
148
|
-
this.formJson = formTemplate.formViewContent
|
|
149
|
-
|
|
165
|
+
this.formJson = formTemplate.formViewContent
|
|
166
|
+
? JSON.parse(formTemplate.formViewContent)
|
|
167
|
+
: {};
|
|
168
|
+
this.layoutType = this.formJson.formConfig.layoutType;
|
|
150
169
|
let formConfig = this.formJson.formConfig;
|
|
151
170
|
if (formConfig.searchDialogUniqueField) {
|
|
152
171
|
this.fieldKey = formConfig.searchDialogUniqueField;
|
|
153
172
|
}
|
|
154
173
|
|
|
155
174
|
this.showRender = true;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
175
|
+
},
|
|
159
176
|
});
|
|
160
177
|
},
|
|
161
178
|
close() {
|
|
162
179
|
let formRef = this.$refs.vFormRef;
|
|
163
180
|
this.showDialog = false;
|
|
164
|
-
this.$emit(
|
|
181
|
+
this.$emit("update:visiable", false);
|
|
165
182
|
this.option.close && this.option.close(formRef, this);
|
|
166
183
|
},
|
|
167
184
|
dialogSubmit() {
|
|
@@ -173,9 +190,9 @@ export default {
|
|
|
173
190
|
} else {
|
|
174
191
|
this.close();
|
|
175
192
|
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
};
|
|
179
196
|
</script>
|
|
180
197
|
|
|
181
198
|
<style lang="scss" scoped>
|
|
@@ -190,13 +207,17 @@ export default {
|
|
|
190
207
|
height: calc(100vh - 210px);
|
|
191
208
|
|
|
192
209
|
&.nfootBtn {
|
|
193
|
-
height: calc(100vh - 158px)
|
|
210
|
+
height: calc(100vh - 158px);
|
|
194
211
|
}
|
|
195
|
-
&#containt{
|
|
196
|
-
padding:0;
|
|
197
|
-
::v-deep .grid-container{
|
|
198
|
-
|
|
199
|
-
|
|
212
|
+
&#containt {
|
|
213
|
+
padding: 0;
|
|
214
|
+
::v-deep .grid-container {
|
|
215
|
+
outline: none;
|
|
216
|
+
&.detail-wrap .d-cont {
|
|
217
|
+
height: calc(100vh - 150px);
|
|
218
|
+
.title .field-wrapper {
|
|
219
|
+
display: inline-block !important;
|
|
220
|
+
}
|
|
200
221
|
}
|
|
201
222
|
}
|
|
202
223
|
}
|
|
@@ -208,7 +229,7 @@ export default {
|
|
|
208
229
|
height: calc(100vh - 110px);
|
|
209
230
|
|
|
210
231
|
&.nfootBtn {
|
|
211
|
-
height: calc(100vh - 58px)
|
|
232
|
+
height: calc(100vh - 58px);
|
|
212
233
|
}
|
|
213
234
|
}
|
|
214
235
|
}
|
|
@@ -80,7 +80,10 @@ export default {
|
|
|
80
80
|
.filter((item) => !!item.code)
|
|
81
81
|
.map((item) => item.code);
|
|
82
82
|
let label = null;
|
|
83
|
-
if (this.field.options.customLabelEnabled && this.field.options.label) {
|
|
83
|
+
/* if (this.field.options.customLabelEnabled && this.field.options.label) {
|
|
84
|
+
label = this.$t1(this.field.options.label);
|
|
85
|
+
} */
|
|
86
|
+
if (this.field.options.label) {
|
|
84
87
|
label = this.$t1(this.field.options.label);
|
|
85
88
|
}
|
|
86
89
|
let option = {
|
package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue
CHANGED
|
@@ -80,7 +80,10 @@ export default {
|
|
|
80
80
|
.filter((item) => !!item.code)
|
|
81
81
|
.map((item) => item.code);
|
|
82
82
|
let label = null;
|
|
83
|
-
if (this.field.options.customLabelEnabled && this.field.options.label) {
|
|
83
|
+
/* if (this.field.options.customLabelEnabled && this.field.options.label) {
|
|
84
|
+
label = this.$t1(this.field.options.label);
|
|
85
|
+
} */
|
|
86
|
+
if (this.field.options.label) {
|
|
84
87
|
label = this.$t1(this.field.options.label);
|
|
85
88
|
}
|
|
86
89
|
let option = {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
<el-form-item label-width="0">
|
|
4
4
|
<el-divider class="custom-divider">打印设置</el-divider>
|
|
5
5
|
</el-form-item>
|
|
6
|
-
<el-form-item label="启用自定义按钮名称">
|
|
6
|
+
<!-- <el-form-item label="启用自定义按钮名称">
|
|
7
7
|
<el-switch v-model="optionModel.customLabelEnabled"></el-switch>
|
|
8
|
-
</el-form-item>
|
|
8
|
+
</el-form-item> -->
|
|
9
9
|
<el-form-item label="表格唯一名称">
|
|
10
10
|
<el-input v-model="optionModel.printTableRef"></el-input>
|
|
11
11
|
</el-form-item>
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
<el-form-item label-width="0">
|
|
4
4
|
<el-divider class="custom-divider">详情打印设置</el-divider>
|
|
5
5
|
</el-form-item>
|
|
6
|
-
<el-form-item label="启用自定义按钮名称">
|
|
6
|
+
<!-- <el-form-item label="启用自定义按钮名称">
|
|
7
7
|
<el-switch v-model="optionModel.customLabelEnabled"></el-switch>
|
|
8
|
-
</el-form-item>
|
|
8
|
+
</el-form-item> -->
|
|
9
9
|
<el-form-item label="打印自定义条件参数">
|
|
10
10
|
<a
|
|
11
11
|
href="javascript:void(0);"
|
|
@@ -3147,7 +3147,7 @@ export const advancedFields = [
|
|
|
3147
3147
|
...defaultWfConfig,
|
|
3148
3148
|
...defaultWidgetShowRuleConfig,
|
|
3149
3149
|
|
|
3150
|
-
customLabelEnabled: false,
|
|
3150
|
+
// customLabelEnabled: false,
|
|
3151
3151
|
printButtonFlag:1,
|
|
3152
3152
|
printTableRef: "",
|
|
3153
3153
|
printItems: [],
|
|
@@ -3189,7 +3189,7 @@ export const advancedFields = [
|
|
|
3189
3189
|
...defaultWidgetShowRuleConfig,
|
|
3190
3190
|
|
|
3191
3191
|
printDetailButtonFlag:1,
|
|
3192
|
-
customLabelEnabled: false,
|
|
3192
|
+
// customLabelEnabled: false,
|
|
3193
3193
|
printItems: [],
|
|
3194
3194
|
printCustomCondition: "return {\n id:[dataId]\n}",
|
|
3195
3195
|
|