cloud-web-corejs 1.0.80 → 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/form-widget/dialog/formDialog.vue +11 -3
- 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 +12 -5
- 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/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/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 +1 -0
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +132 -110
- package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
- package/src/components/xform/form-render/container-item/data-table-item.vue +42 -20
- 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
@@ -0,0 +1,125 @@
|
|
1
|
+
<template>
|
2
|
+
<el-drawer :title="$t1('表单设计({formName})',{formName})" :visible.sync="showDesingerDialog" :modal="false"
|
3
|
+
:destroy-on-close="true"
|
4
|
+
size="90%" direction="rtl"
|
5
|
+
class="designer-drawer1" :class="[isFullscreen ? 'is-fullscreen' : '']" @close="handleFormDesignClose">
|
6
|
+
<el-tabs v-model="formDesTabs" type="card" class="tab-boxOnly" :stretch="true">
|
7
|
+
<el-tab-pane :label="$t1('设计器')" name="first">
|
8
|
+
<designer ref="designer" :formTemplate="formTemplate" @customConfirm="customConfirm" :columnFlag="true"
|
9
|
+
:widgetList="widgetList"></designer>
|
10
|
+
</el-tab-pane>
|
11
|
+
</el-tabs>
|
12
|
+
<el-button class="isFullIcon" v-if="!isFullscreen" @click="handleFullscreen">
|
13
|
+
<el-tooltip effect="dark" :content="$t1('全屏')" placement="top">
|
14
|
+
<i class="iconfont icon-quanping"></i>
|
15
|
+
</el-tooltip>
|
16
|
+
|
17
|
+
</el-button>
|
18
|
+
<el-button class="isFullIcon" v-else @click="handleFullscreen">
|
19
|
+
<el-tooltip effect="dark" :content="$t1('缩小')" placement="top">
|
20
|
+
<i class="iconfont icon-suoxiao"></i>
|
21
|
+
</el-tooltip>
|
22
|
+
</el-button>
|
23
|
+
</el-drawer>
|
24
|
+
</template>
|
25
|
+
<script>
|
26
|
+
// import designer from "@base/views/user/form/vform/designer.vue";
|
27
|
+
import PopupManager from 'element-ui/src/utils/popup/popup-manager.js'
|
28
|
+
export default {
|
29
|
+
props: {
|
30
|
+
column: Object
|
31
|
+
},
|
32
|
+
components: {
|
33
|
+
designer: () => import("@base/views/user/form/vform/designer.vue"),
|
34
|
+
},
|
35
|
+
inject: ['getReportTemplate'],
|
36
|
+
data() {
|
37
|
+
return {
|
38
|
+
showDesingerDialog: true,
|
39
|
+
formDesTabs: 'first',
|
40
|
+
showFormScriptList: false,
|
41
|
+
isFullscreen: false,
|
42
|
+
formCode: '',
|
43
|
+
formName: '',
|
44
|
+
widgetList: [],
|
45
|
+
formTemplate: null,
|
46
|
+
zIndex:null
|
47
|
+
}
|
48
|
+
},
|
49
|
+
created() {
|
50
|
+
let zIndex = PopupManager.nextZIndex();
|
51
|
+
this.zIndex = zIndex;
|
52
|
+
|
53
|
+
let formTemplate = this.getReportTemplate();
|
54
|
+
this.formTemplate = formTemplate;
|
55
|
+
this.formCode = formTemplate.formCode
|
56
|
+
this.formName = formTemplate.formName
|
57
|
+
|
58
|
+
this.widgetList = this.$baseLodash.cloneDeep(this.column.widgetList || [])
|
59
|
+
this.showDesingerDialog = true
|
60
|
+
|
61
|
+
},
|
62
|
+
mounted() {
|
63
|
+
/* this.$nextTick(() => {
|
64
|
+
this.$refs.designer.initDesigner(this.formCode)
|
65
|
+
}) */
|
66
|
+
},
|
67
|
+
methods: {
|
68
|
+
handleFormDesignClose() {
|
69
|
+
// debugger
|
70
|
+
// this.$emit('closeFormDesignwinEvent')
|
71
|
+
this.showDesingerDialog = false
|
72
|
+
this.$emit('update:visiable',false)
|
73
|
+
},
|
74
|
+
handleFullscreen() {
|
75
|
+
this.isFullscreen = !this.isFullscreen
|
76
|
+
},
|
77
|
+
closeFormDesignwinEvent() {
|
78
|
+
this.$emit('closeFormDesignwinEvent')
|
79
|
+
},
|
80
|
+
reflushTemplateList() {
|
81
|
+
this.$emit('reflushTemplateList')
|
82
|
+
},
|
83
|
+
customConfirm(formJson) {
|
84
|
+
let widgetList = formJson.widgetList;
|
85
|
+
this.handleFormDesignClose();
|
86
|
+
this.$emit('confirm', widgetList)
|
87
|
+
}
|
88
|
+
|
89
|
+
}
|
90
|
+
}
|
91
|
+
</script>
|
92
|
+
<style>
|
93
|
+
<style>
|
94
|
+
.designer-drawer1{
|
95
|
+
left: 150px;
|
96
|
+
right: 10px;
|
97
|
+
bottom: 10px;
|
98
|
+
top: 32px;
|
99
|
+
}
|
100
|
+
::v-deep .tab-boxOnly > .el-tabs__header {
|
101
|
+
position: absolute;
|
102
|
+
right: 130px;
|
103
|
+
top: 0;
|
104
|
+
}
|
105
|
+
|
106
|
+
::v-deep .tab-boxOnly > .el-tabs__content .el-tab-pane .el-tab-pane {
|
107
|
+
.detail-wrap .d-cont {
|
108
|
+
height: calc(100vh - 158px) !important
|
109
|
+
}
|
110
|
+
|
111
|
+
.grid-height {
|
112
|
+
height: calc(100vh - 126px) !important
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
::v-deep .designer-drawer1.is-fullscreen .tab-boxOnly > .el-tabs__content .el-tab-pane .el-tab-pane {
|
117
|
+
.detail-wrap .d-cont {
|
118
|
+
height: calc(100vh - 116px) !important
|
119
|
+
}
|
120
|
+
|
121
|
+
.grid-height {
|
122
|
+
height: calc(100vh - 84px) !important
|
123
|
+
}
|
124
|
+
}
|
125
|
+
</style>
|
@@ -28,6 +28,9 @@
|
|
28
28
|
<el-form-item :label="i18nt('是否显示表尾统计行')">
|
29
29
|
<el-switch v-model="optionModel.showGridFooter"></el-switch>
|
30
30
|
</el-form-item>
|
31
|
+
<el-form-item :label="i18nt('是否隐藏复选框')">
|
32
|
+
<el-switch v-model="optionModel.hideGridCheckBox"></el-switch>
|
33
|
+
</el-form-item>
|
31
34
|
<!-- <el-form-item :label="i18nt('显示导出')">
|
32
35
|
<el-switch v-model="optionModel.showExportBtn"></el-switch>
|
33
36
|
</el-form-item>-->
|