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
@@ -5,7 +5,7 @@
|
|
5
5
|
<template v-for="(subWidget, swIdx) in widget.widgetList">
|
6
6
|
<template v-if="'container' === subWidget.category">
|
7
7
|
<component :is="subWidget.type + '-item'" :widget="subWidget" :key="swIdx" :parent-list="widget.widgetList"
|
8
|
-
:index-of-parent-list="swIdx" :parent-widget="widget">
|
8
|
+
:index-of-parent-list="swIdx" :parent-widget="widget" :tableParam="tableParam" :formItemProp="formItemProp">
|
9
9
|
<!-- 递归传递插槽!!! -->
|
10
10
|
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
11
11
|
<slot :name="slot" v-bind="scope"/>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
</template>
|
15
15
|
<template v-else>
|
16
16
|
<component :is="subWidget.type + '-widget'" :field="subWidget" :designer="null" :key="swIdx" :parent-list="widget.widgetList"
|
17
|
-
:index-of-parent-list="swIdx" :parent-widget="widget">
|
17
|
+
:index-of-parent-list="swIdx" :parent-widget="widget" :tableParam="tableParam" :formItemProp="formItemProp">
|
18
18
|
<!-- 递归传递插槽!!! -->
|
19
19
|
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
20
20
|
<slot :name="slot" v-bind="scope"/>
|
@@ -54,7 +54,14 @@
|
|
54
54
|
type: String,
|
55
55
|
default: null
|
56
56
|
},
|
57
|
-
|
57
|
+
tableParam: {
|
58
|
+
type: Object,
|
59
|
+
default: null,
|
60
|
+
},
|
61
|
+
formItemProp: {
|
62
|
+
type: String,
|
63
|
+
default: null,
|
64
|
+
},
|
58
65
|
},
|
59
66
|
inject: ['refList', 'globalModel', 'previewState'],
|
60
67
|
data() {
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<template v-for="(colWidget, colIdx) in widget.cols">
|
8
8
|
<grid-col-item :widget="colWidget" :key="colIdx" :parent-list="widget.cols"
|
9
9
|
:index-of-parent-list="colIdx" :parent-widget="widget"
|
10
|
-
:col-height="widget.options.colHeight">
|
10
|
+
:col-height="widget.options.colHeight" :tableParam="tableParam" :formItemProp="formItemProp">
|
11
11
|
<!-- 递归传递插槽!!! -->
|
12
12
|
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
13
13
|
<slot :name="slot" v-bind="scope"/>
|
@@ -1,22 +1,27 @@
|
|
1
1
|
<template>
|
2
2
|
<container-item-wrapper :widget="widget" :class="widget.options.isFullscreen ? 'full-height':''">
|
3
3
|
<div :key="widget.id" class="tab-container" v-show="!widget.options.hidden">
|
4
|
-
<el-tabs v-model="activeTabName" :type="widget.displayType" :ref="widget.id"
|
5
|
-
|
4
|
+
<el-tabs v-model="activeTabName" :type="widget.displayType" :ref="widget.id"
|
5
|
+
:class="[customClass,widget.options.tabClass]"
|
6
|
+
:style="{'height': widget.options.isFullscreen ? '' : widget.options.height}">
|
7
|
+
<el-tab-pane v-for="(tab, index) in visibleTabs" :key="index" :label="getI18nLabel(tab.options.label)"
|
8
|
+
:disabled="tab.options.disabled" :name="tab.options.name">
|
6
9
|
<template v-for="(subWidget, swIdx) in tab.widgetList">
|
7
10
|
<template v-if="'container' === subWidget.category">
|
8
|
-
<component :is="subWidget.type + '-item'" :widget="subWidget" :key="swIdx" :parent-list="tab.widgetList"
|
11
|
+
<component :is="subWidget.type + '-item'" :widget="subWidget" :key="swIdx" :parent-list="tab.widgetList"
|
12
|
+
:index-of-parent-list="swIdx" :parent-widget="widget" :tableParam="tableParam" :formItemProp="formItemProp">
|
9
13
|
<!-- 递归传递插槽!!! -->
|
10
14
|
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
11
|
-
<slot :name="slot" v-bind="scope"
|
15
|
+
<slot :name="slot" v-bind="scope"/>
|
12
16
|
</template>
|
13
17
|
</component>
|
14
18
|
</template>
|
15
19
|
<template v-else>
|
16
|
-
<component :is="subWidget.type + '-widget'" :field="subWidget" :key="swIdx" :parent-list="tab.widgetList"
|
20
|
+
<component :is="subWidget.type + '-widget'" :field="subWidget" :key="swIdx" :parent-list="tab.widgetList"
|
21
|
+
:index-of-parent-list="swIdx" :parent-widget="widget" :tableParam="tableParam" :formItemProp="formItemProp">
|
17
22
|
<!-- 递归传递插槽!!! -->
|
18
23
|
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
19
|
-
<slot :name="slot" v-bind="scope"
|
24
|
+
<slot :name="slot" v-bind="scope"/>
|
20
25
|
</template>
|
21
26
|
</component>
|
22
27
|
</template>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<template v-for="(subWidget, swIdx) in widget.widgetList">
|
6
6
|
<template v-if="'container' === subWidget.category">
|
7
7
|
<component :is="subWidget.type + '-item'" :widget="subWidget" :key="swIdx" :parent-list="widget.widgetList"
|
8
|
-
|
8
|
+
:index-of-parent-list="swIdx" :parent-widget="widget" :tableParam="tableParam" :formItemProp="formItemProp">
|
9
9
|
<!-- 递归传递插槽!!! -->
|
10
10
|
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
11
11
|
<slot :name="slot" v-bind="scope"/>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
</template>
|
15
15
|
<template v-else>
|
16
16
|
<component :is="subWidget.type + '-widget'" :field="subWidget" :key="swIdx" :parent-list="widget.widgetList"
|
17
|
-
|
17
|
+
:index-of-parent-list="swIdx" :parent-widget="widget" :tableParam="tableParam" :formItemProp="formItemProp">
|
18
18
|
<!-- 递归传递插槽!!! -->
|
19
19
|
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
20
20
|
<slot :name="slot" v-bind="scope"/>
|
@@ -26,42 +26,48 @@
|
|
26
26
|
</template>
|
27
27
|
|
28
28
|
<script>
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
import emitter from '../../../../components/xform/utils/emitter'
|
30
|
+
import i18n from "../../../../components/xform/utils/i18n"
|
31
|
+
import refMixin from "../../../../components/xform/form-render/refMixin"
|
32
|
+
import FieldComponents from '../../../../components/xform/form-designer/form-widget/field-widget/index'
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
34
|
+
export default {
|
35
|
+
name: "TableCellItem",
|
36
|
+
componentName: "ContainerItem",
|
37
|
+
mixins: [emitter, i18n, refMixin],
|
38
|
+
components: {
|
39
|
+
...FieldComponents,
|
40
|
+
},
|
41
|
+
props: {
|
42
|
+
widget: Object,
|
43
43
|
|
44
|
-
|
45
|
-
|
44
|
+
rowIndex: Number,
|
45
|
+
colIndex: Number,
|
46
|
+
tableParam: {
|
47
|
+
type: Object,
|
48
|
+
default: null,
|
46
49
|
},
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
50
|
+
formItemProp: {
|
51
|
+
type: String,
|
52
|
+
default: null,
|
53
|
+
},
|
54
|
+
},
|
55
|
+
inject: ['refList', 'globalModel'],
|
56
|
+
computed: {
|
57
|
+
customClass() {
|
58
|
+
return this.widget.options.customClass || ''
|
56
59
|
},
|
57
|
-
|
58
|
-
|
59
|
-
//this.initRefList()
|
60
|
+
tdClass() {
|
61
|
+
return (this.colIndex + 1) % 2 == 0 ? "" : "odd"
|
60
62
|
},
|
61
|
-
methods: {
|
62
63
|
|
63
|
-
|
64
|
-
|
64
|
+
},
|
65
|
+
created() {
|
66
|
+
/* tableCell不生成组件引用,故无须调用initRefList!! */
|
67
|
+
//this.initRefList()
|
68
|
+
},
|
69
|
+
methods: {}
|
70
|
+
}
|
65
71
|
</script>
|
66
72
|
|
67
73
|
<style lang="scss" scoped>
|
@@ -3,12 +3,14 @@
|
|
3
3
|
|
4
4
|
<div :key="widget.id" class="table-container"
|
5
5
|
v-show="!widget.options.hidden">
|
6
|
-
<table :ref="widget.id" class="table-layout table-d-box" :class="[customClass,widget.options.styleTableClass]"
|
6
|
+
<table :ref="widget.id" class="table-layout table-d-box" :class="[customClass,widget.options.styleTableClass]"
|
7
|
+
:style="tableStyle">
|
7
8
|
<tbody>
|
8
9
|
<tr v-for="(row, rowIdx) in widget.rows" :key="row.id">
|
9
10
|
<template v-for="(colWidget, colIdx) in row.cols">
|
10
11
|
<table-cell-item v-if="!colWidget.merged" :widget="colWidget" :key="colIdx" :parent-list="widget.cols"
|
11
|
-
:row-index="rowIdx" :col-index="colIdx" :parent-widget="widget"
|
12
|
+
:row-index="rowIdx" :col-index="colIdx" :parent-widget="widget" :tableParam="tableParam"
|
13
|
+
:formItemProp="formItemProp">
|
12
14
|
<!-- 递归传递插槽!!! -->
|
13
15
|
<template v-for="slot in Object.keys($scopedSlots)" v-slot:[slot]="scope">
|
14
16
|
<slot :name="slot" v-bind="scope"/>
|