cloud-web-corejs 1.0.79 → 1.0.81
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/baseAttachment/index.vue +22 -13
- package/src/components/baseAttachment/mixins.js +1 -1
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -0
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +328 -203
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +27 -23
- package/src/components/table/CellSlot.vue +1 -0
- package/src/components/table/vxeFilter/mixin.js +1 -1
- package/src/components/vb-tabs/x-tabs.vue +3 -2
- package/src/components/xform/form-designer/designer.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +15 -3
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +2 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +17 -6
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +28 -3
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +5 -2
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +138 -6
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +4 -7
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +80 -0
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +5 -2
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +6 -0
- package/src/components/xform/form-designer/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +8 -0
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +125 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +3 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +415 -354
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +7 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +16 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +80 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +170 -20
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +0 -4
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +133 -108
- package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
- package/src/components/xform/form-render/container-item/data-table-item.vue +43 -21
- package/src/components/xform/form-render/container-item/data-table-mixin.js +3 -3
- package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
- package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
- package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
- package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
- package/src/components/xform/form-render/container-item/table-item.vue +4 -2
- package/src/components/xform/form-render/indexMixin.js +1 -1
- package/src/components/xform/lang/zh-CN.js +1 -0
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +3 -1
- package/src/components/xform/utils/util.js +1 -1
- package/src/store/modules/permission.js +1 -1
- package/src/views/bd/setting/table_model/edit.vue +835 -484
- package/src/views/bd/setting/table_model/mixins/edit.js +3 -3
- package/src/views/user/form/vform/designer.vue +772 -753
- package/src/views/user/form/view/list.vue +27 -9
@@ -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="
|
13
|
+
@reload="reload" :dataTableOption="dataTableOption" v-bind="formConfig" :param="dialogParam"
|
14
14
|
class="data-table_height"/>
|
15
15
|
</div>
|
16
16
|
<label id="labBtn" class="transverse">
|
@@ -160,6 +160,10 @@ export default {
|
|
160
160
|
this.getReportTemplate();
|
161
161
|
},
|
162
162
|
methods: {
|
163
|
+
reload(){
|
164
|
+
this.showRender = false;
|
165
|
+
this.getReportTemplate();
|
166
|
+
},
|
163
167
|
async getReportTemplate() {
|
164
168
|
let param = {
|
165
169
|
objTypeCode: this.$attrs.objTypeCode,
|
@@ -188,12 +192,12 @@ export default {
|
|
188
192
|
if (formConfig.searchDialogUniqueField) {
|
189
193
|
this.fieldKey = formConfig.searchDialogUniqueField;
|
190
194
|
}
|
191
|
-
this.$nextTick(() => {
|
195
|
+
/*this.$nextTick(() => {
|
192
196
|
let widgetList = this.formJson.widgetList;
|
193
197
|
setTimeout(()=>{
|
194
198
|
this.$grid = this.$refs.vFormRef.getWidgetRef(widgetList[0].options.name).getGridTable();
|
195
199
|
},200)
|
196
|
-
})
|
200
|
+
})*/
|
197
201
|
this.initShowFormField();
|
198
202
|
this.showRender = true;
|
199
203
|
|
@@ -201,6 +205,13 @@ export default {
|
|
201
205
|
}
|
202
206
|
});
|
203
207
|
},
|
208
|
+
getGrid(){
|
209
|
+
if(!this.$grid){
|
210
|
+
let widgetList = this.formJson.widgetList;
|
211
|
+
this.$grid = this.$refs.vFormRef.getWidgetRef(widgetList[0].options.name).getGridTable();
|
212
|
+
}
|
213
|
+
return this.$grid;
|
214
|
+
},
|
204
215
|
initShowFormField() {
|
205
216
|
let showFormField = this.formJson.formConfig.searchDialogNameField || null;
|
206
217
|
if (!showFormField) {
|
@@ -319,7 +330,7 @@ export default {
|
|
319
330
|
let selectMulti = this.selectMulti;
|
320
331
|
let row = this.checkRows[index];
|
321
332
|
var rowid = row[fieldKey];
|
322
|
-
let $grid1 = this
|
333
|
+
let $grid1 = this.getGrid();
|
323
334
|
|
324
335
|
let rows = $grid1.getTableData().fullData;
|
325
336
|
let row2 = this.findTreeRowById(rows, rowid);
|
@@ -371,14 +382,14 @@ export default {
|
|
371
382
|
},
|
372
383
|
clearChecked() {
|
373
384
|
if (this.currentLayoutType !== "H5") {
|
374
|
-
let $grid1 = this
|
385
|
+
let $grid1 = this.getGrid();
|
375
386
|
$grid1.clearCheckboxRow();
|
376
387
|
}
|
377
388
|
this.checkRows = [];
|
378
389
|
},
|
379
390
|
checkWithSubmit(obj) {
|
380
391
|
if (!this.selectMulti) {
|
381
|
-
let $grid1 = this
|
392
|
+
let $grid1 = this.getGrid();
|
382
393
|
var rows = $grid1.getCheckboxRecords(true);
|
383
394
|
if (rows && rows.length) {
|
384
395
|
this.dialogSubmit();
|
package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue
CHANGED
@@ -55,19 +55,23 @@ export default {
|
|
55
55
|
oldFieldValue: [], //field组件change之前的值
|
56
56
|
fieldModel: [],
|
57
57
|
rules: [],
|
58
|
-
isH5: false
|
58
|
+
isH5: false,
|
59
|
+
option:{}
|
59
60
|
}
|
60
61
|
},
|
61
62
|
watch: {
|
62
63
|
fieldModel(val) {
|
63
64
|
this.handleChangeEvent(val);
|
65
|
+
},
|
66
|
+
'option':function(){
|
67
|
+
|
64
68
|
}
|
65
69
|
},
|
66
70
|
computed: {
|
67
71
|
formDataId() {
|
68
72
|
let formRef = this.getFormRef();
|
69
73
|
return formRef.dataId;
|
70
|
-
}
|
74
|
+
}/*,
|
71
75
|
option() {
|
72
76
|
return {
|
73
77
|
title: '附件',
|
@@ -87,7 +91,7 @@ export default {
|
|
87
91
|
this.handleCustomEvent(this.field.options.onAfterConfirmFile, eventParamNames, eventParamValues)
|
88
92
|
}
|
89
93
|
};
|
90
|
-
}
|
94
|
+
}*/
|
91
95
|
},
|
92
96
|
beforeCreate() {
|
93
97
|
/* 这里不能访问方法和属性!! */
|
@@ -116,6 +120,7 @@ export default {
|
|
116
120
|
this.buildFieldRules()
|
117
121
|
|
118
122
|
this.handleOnCreated()
|
123
|
+
this.initOption();
|
119
124
|
},
|
120
125
|
|
121
126
|
mounted() {
|
@@ -126,6 +131,26 @@ export default {
|
|
126
131
|
this.unregisterFromRefList()
|
127
132
|
},
|
128
133
|
methods: {
|
134
|
+
initOption(){
|
135
|
+
this.option = {
|
136
|
+
title: '附件',
|
137
|
+
edit: !this.field.options.disabled,
|
138
|
+
uploadConfig: {
|
139
|
+
limit: this.field.options.limit,
|
140
|
+
resultType: "Array"
|
141
|
+
},
|
142
|
+
rows: (done) => {
|
143
|
+
done(this.fieldModel);
|
144
|
+
},
|
145
|
+
confirm: (rows, fileInfos) => {
|
146
|
+
this.fieldModel = rows;
|
147
|
+
// this.field.options.onAfterConfirmFile && this.field.options.onAfterConfirmFile(rows, fileInfos);
|
148
|
+
let eventParamNames = ['attachments', 'fileInfos'];
|
149
|
+
let eventParamValues = [rows, fileInfos];
|
150
|
+
this.handleCustomEvent(this.field.options.onAfterConfirmFile, eventParamNames, eventParamValues)
|
151
|
+
}
|
152
|
+
}
|
153
|
+
},
|
129
154
|
setValue(val) {
|
130
155
|
let data = val || []
|
131
156
|
this.fieldModel = data;
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<el-button ref="fieldEditor" :type="field.options.type" :size="field.options.size" class="button-sty"
|
6
6
|
:plain="field.options.plain" :round="field.options.round"
|
7
7
|
:circle="field.options.circle" :icon="field.options.icon"
|
8
|
-
:disabled="field.options.disabled"
|
8
|
+
:disabled="!designState &&field.options.disabled"
|
9
9
|
@click.native="handleButtonWidgetClick">
|
10
10
|
{{ getI18nLabel(field.options.label)}}</el-button>
|
11
11
|
</static-content-wrapper>
|
@@ -6,12 +6,12 @@
|
|
6
6
|
:disabled="field.options.disabled" :size="field.options.size"
|
7
7
|
@change="handleChangeEvent">
|
8
8
|
<template v-if="!!field.options.buttonStyle">
|
9
|
-
<el-checkbox-button v-for="(item, index) in
|
9
|
+
<el-checkbox-button v-for="(item, index) in optionItems" :key="index" :label="item.value"
|
10
10
|
:disabled="item.disabled" :border="field.options.border"
|
11
11
|
:style="{display: field.options.displayStyle}">{{ getI18nLabel(item.label) }}</el-checkbox-button>
|
12
12
|
</template>
|
13
13
|
<template v-else>
|
14
|
-
<el-checkbox v-for="(item, index) in
|
14
|
+
<el-checkbox v-for="(item, index) in optionItems" :key="index" :label="item[valueField]"
|
15
15
|
:disabled="item.disabled" :border="field.options.border"
|
16
16
|
:style="{display: field.options.displayStyle}">{{ getI18nLabel(item[labelField]) }}</el-checkbox>
|
17
17
|
</template>
|
@@ -73,6 +73,9 @@
|
|
73
73
|
valueField(){
|
74
74
|
return this.field.options.valueKey || "value";
|
75
75
|
},
|
76
|
+
optionItems(){
|
77
|
+
return this.getOptionItems();
|
78
|
+
}
|
76
79
|
},
|
77
80
|
beforeCreate() {
|
78
81
|
/* 这里不能访问方法和属性!! */
|