cloud-web-corejs 1.0.163 → 1.0.164
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 +2 -1
- package/src/components/vb-tabs/x-tabs.vue +30 -13
- package/src/components/xform/form-designer/designer.js +1 -1
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +419 -0
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +71 -50
- package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +799 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +102 -73
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +19 -1
- package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +41 -27
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +13 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +9 -2
- package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +133 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +962 -0
- package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +7 -2
- package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +7 -0
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +44 -27
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +19 -11
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +19 -1
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +11 -7
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +11 -8
- package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +106 -76
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +13 -263
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +47 -81
- package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-gantt/gantt-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +37 -16
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +42 -18
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +57 -34
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +84 -53
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +35 -44
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +68 -3
- package/src/components/xform/form-render/container-item/containerItemMixin.js +2 -2
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
- package/src/components/xform/form-render/container-item/tab-item.vue +64 -32
- package/src/components/xform/form-render/index.vue +69 -23
- package/src/components/xform/form-render/indexMixin.js +18 -17
- package/src/components/xform/lang/zh-CN.js +8 -2
- package/src/components/xform/utils/formula-util.js +306 -5
- package/src/components/xform/utils/util.js +1 -1
- package/src/components/xform/utils/vue2js-generator.js +2 -2
- package/src/utils/request.js +1 -1
- package/src/utils/vab.js +1 -1
- package/src/views/user/form/vform/render.vue +54 -36
- package/src/views/user/form/view/list.vue +103 -10
- package/src/views/user/menu/list.vue +24 -1
- package/src/views/user/role/authConfig.vue +89 -0
- package/src/views/user/role/dialog.vue +70 -48
- package/src/views/user/role/edit.vue +114 -4
|
@@ -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
|
-
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
|
}
|