cloud-web-corejs 1.0.54-dev.798 → 1.0.54-dev.799
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 +3 -1
- package/src/components/baseTabs/mixins.js +11 -12
- package/src/components/bizTab/BizBillActions.vue +129 -0
- package/src/components/bizTab/BizTabListPage.vue +391 -0
- package/src/components/bizTab/README.md +378 -0
- package/src/components/bizTab/billTableUtil.js +48 -0
- package/src/components/bizTab/billValidators.js +136 -0
- package/src/components/bizTab/bizBillDetailMixin.js +687 -0
- package/src/components/bizTab/index.js +24 -0
- package/src/components/excelExport/exportFieldDialog.vue +373 -367
- package/src/components/excelExport/exportType.js +49 -0
- package/src/components/excelExport/mixins.js +1153 -1144
- package/src/components/vb-tabs/x-tabs.vue +167 -143
- package/src/components/wf/wfUtil.js +327 -292
- package/src/components/xform/form-designer/designer.js +56 -8
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +59 -5
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +60 -8
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +8 -2
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +120 -92
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +63 -94
- package/src/components/xform/form-designer/index.vue +0 -1
- package/src/components/xform/form-designer/setting-panel/dataSource-setting.vue +397 -397
- package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +602 -602
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +13 -13
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +585 -585
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/alignType-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1154 -1154
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +96 -80
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-plain/detail-plain-editor.vue +75 -75
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/colHeight-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-height-editor.vue +1 -1
- 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/container-grid-col/grid-col-span-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/container-h5-card/h5-card-editor.vue +124 -124
- package/src/components/xform/form-designer/setting-panel/property-editor/container-panel/height-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-panel/width-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tab-customClass-editor.vue +119 -119
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tabClass-editor.vue +45 -45
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +344 -344
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table-cell/cellHeight-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table-cell/cellWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree-pane/tree-pane-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/cancelButtonLabel-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/okButtonLabel-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/title-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/width-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/containerClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/customClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/descriptionsItems-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/dsName-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/echartHeight-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/endPlaceholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-accessUrl/accessUrl-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaDataType-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaMinLevel-editor.vue +50 -50
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaName-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-autocomplete/autocomplete-vabSearchName-editor.vue +7 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/addTableData-event-editor.vue +84 -84
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/button-type-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +97 -97
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/form-host-event-editor.vue +188 -188
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +237 -237
- package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyName-editor.vue +74 -67
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-dateLimit-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-type-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-valueFormat-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-type-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-valueFormat-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-divider/contentPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -59
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +11 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +10 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +12 -12
- package/src/components/xform/form-designer/setting-panel/property-editor/field-file-upload/file-upload-fileTypes-editor.vue +44 -44
- package/src/components/xform/form-designer/setting-panel/property-editor/field-html-text/htmlContent-editor.vue +29 -29
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-number/controlsPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-picture-upload/picture-upload-fileTypes-editor.vue +44 -44
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +115 -115
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +115 -115
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/highThreshold-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/lowThreshold-editor.vue +1 -1
- 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-rate/rate-max-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script/script-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script-input/script-input-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/fontSize-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/activeText-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/inactiveText-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/switchWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +74 -71
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-timeLimit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchField-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/fileMaxSize-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesSelect.vue +176 -176
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +2 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +972 -972
- package/src/components/xform/form-designer/setting-panel/property-editor/iconClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/label-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelAlign-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelWidth-editor.vue +1 -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/max-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/maxLength-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/min-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/minLength-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/name-editor.vue +178 -178
- package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-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/project-tag-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/rows-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/space-editor-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/startPlaceholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/step-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTableClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTitClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/type-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/uploadTip-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/uploadURL-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/urlValueEnabled-editor.vue +91 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/index.vue +3 -1
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +55 -13
- package/src/components/xform/form-render/container-item/data-table-mixin copy.js +5910 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +59 -13
- package/src/components/xform/form-render/container-item/detail-item.vue +52 -11
- package/src/components/xform/form-render/container-item/tab-item.vue +6 -2
- package/src/components/xform/form-render/indexMixin.js +56 -16
- package/src/components/xform/lang/zh-CN.js +2 -1
- package/src/components/xform/utils/attachmentValueUtil.js +239 -0
- package/src/components/xform/utils/util.js +27 -0
- package/src/mixins/wf/index.js +40 -38
- package/src/router/modules/customer.js +50 -0
- package/src/store/config/index.js +46 -0
- package/src/utils/scrollUtil.js +25 -0
- package/src/views/demo/bizTab/bill/billConfig.js +41 -0
- package/src/views/demo/bizTab/bill/detail.vue +436 -0
- package/src/views/demo/bizTab/bill/list.vue +288 -0
- package/src/views/demo/bizTab/bill/productDialog.vue +176 -0
- package/src/views/demo/bizTab/simple/billApi.js +123 -0
- package/src/views/demo/bizTab/simple/detail.vue +407 -0
- package/src/views/demo/bizTab/simple/list.vue +217 -0
- package/src/views/demo/bizTab/standalone/index.vue +121 -0
- package/src/views/demo/bizTab/wf/billConfig.js +44 -0
- package/src/views/demo/bizTab/wf/detail.vue +661 -0
- package/src/views/demo/bizTab/wf/list.vue +242 -0
- package/src/views/user/outLink/cc_form_view.vue +185 -0
|
@@ -1,237 +1,237 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<el-form-item label-width="0">
|
|
4
|
-
<el-divider class="custom-divider">选择弹框配置</el-divider>
|
|
5
|
-
</el-form-item>
|
|
6
|
-
<!-- 搜索类控件的多选是结构性的(决定字段值是数组还是标量),由控件自身的「是否多选」决定,
|
|
7
|
-
这里只做展示,避免两个开关各说各话 -->
|
|
8
|
-
<el-form-item label="是否多选">
|
|
9
|
-
<el-switch v-model="eventConfig.multipleChoices" v-if="!vabsearchFlag"></el-switch>
|
|
10
|
-
<template v-else>
|
|
11
|
-
<span>{{ optionModel.multipleChoices ? '是' : '否' }}</span>
|
|
12
|
-
<span class="tips">由控件自身的「是否多选」决定</span>
|
|
13
|
-
</template>
|
|
14
|
-
</el-form-item>
|
|
15
|
-
<el-form-item label="弹框表单编码">
|
|
16
|
-
<el-input type="text" v-model="eventConfig.formCode"></el-input>
|
|
17
|
-
</el-form-item>
|
|
18
|
-
<el-form-item label="弹框查询参数">
|
|
19
|
-
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
20
|
-
@click="editEventHandler('confirmCallback', ['dataId', 'formCode','rows'], option2)">
|
|
21
|
-
<span>{{ eventConfig.dialogQueryParam }}</span>
|
|
22
|
-
<i class="el-icon-edit"></i>
|
|
23
|
-
</a>
|
|
24
|
-
<span class="tips">按业务字段过滤写
|
|
25
|
-
<code>return {'{'} condition: {'{'} status: 1 {'}'} {'}'}</code>(追加进查询区条件,同字段以脚本为准)</span>
|
|
26
|
-
</el-form-item>
|
|
27
|
-
<el-form-item label="弹框自定义参数">
|
|
28
|
-
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
29
|
-
@click="editEventHandler('dialogCustomParam', ['dataId', 'formCode','rows'], option3)">
|
|
30
|
-
<span>{{ eventConfig.dialogCustomParam }}</span>
|
|
31
|
-
<i class="el-icon-edit"></i>
|
|
32
|
-
</a>
|
|
33
|
-
</el-form-item>
|
|
34
|
-
<template v-if="hasConfig('vabsearchFlag')">
|
|
35
|
-
<el-form-item label="关联来源字段">
|
|
36
|
-
<el-input type="text" v-model="eventConfig.valueSourceField"></el-input>
|
|
37
|
-
</el-form-item>
|
|
38
|
-
|
|
39
|
-
<el-form-item label="展示来源字段">
|
|
40
|
-
<el-input type="text" v-model="eventConfig.labelSourceField"></el-input>
|
|
41
|
-
</el-form-item>
|
|
42
|
-
</template>
|
|
43
|
-
<!-- <el-form-item label="多选">
|
|
44
|
-
<el-switch v-model="optionModel.multiple"></el-switch>
|
|
45
|
-
</el-form-item>-->
|
|
46
|
-
<template v-if="!hasConfig('vabsearchFlag')">
|
|
47
|
-
<el-form-item label="关联表格">
|
|
48
|
-
<el-switch v-model="eventConfig.tableEnabled"></el-switch>
|
|
49
|
-
</el-form-item>
|
|
50
|
-
<template v-if="eventConfig.tableEnabled">
|
|
51
|
-
<el-form-item label="关联表格ID">
|
|
52
|
-
<el-input type="text" v-model="eventConfig.tableRef"></el-input>
|
|
53
|
-
</el-form-item>
|
|
54
|
-
<el-form-item label="关联表格唯一字段">
|
|
55
|
-
<el-input type="text" v-model="eventConfig.tableUniqueKey"></el-input>
|
|
56
|
-
</el-form-item>
|
|
57
|
-
</template>
|
|
58
|
-
</template>
|
|
59
|
-
<el-form-item label="数据回填">
|
|
60
|
-
<el-button type="primary" plain="" round="" @click="openDialog">{{
|
|
61
|
-
i18nt('designer.setting.editAction')
|
|
62
|
-
}}
|
|
63
|
-
</el-button>
|
|
64
|
-
</el-form-item>
|
|
65
|
-
<el-form-item label="确认回调">
|
|
66
|
-
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
67
|
-
@click="editEventHandler('confirmCallback', ['dataId', 'formCode','rows'], option1)">
|
|
68
|
-
<span>{{ eventConfig.confirmCallback }}</span>
|
|
69
|
-
<i class="el-icon-edit"></i>
|
|
70
|
-
</a>
|
|
71
|
-
</el-form-item>
|
|
72
|
-
|
|
73
|
-
<el-dialog
|
|
74
|
-
custom-class="dialog-style list-dialog"
|
|
75
|
-
title="数据回填"
|
|
76
|
-
:visible.sync="showDialog"
|
|
77
|
-
:modal="false"
|
|
78
|
-
:show-close="!0"
|
|
79
|
-
:close-on-click-modal="!1"
|
|
80
|
-
:close-on-press-escape="!1"
|
|
81
|
-
:destroy-on-close="!0"
|
|
82
|
-
top="5vh"
|
|
83
|
-
width="600px"
|
|
84
|
-
v-dialog-drag
|
|
85
|
-
>
|
|
86
|
-
<div class="cont">
|
|
87
|
-
<el-table
|
|
88
|
-
ref="singleTable"
|
|
89
|
-
width="100%"
|
|
90
|
-
height="500"
|
|
91
|
-
:data="tableData"
|
|
92
|
-
border=""
|
|
93
|
-
stripe=""
|
|
94
|
-
default-expand-all
|
|
95
|
-
>
|
|
96
|
-
<el-table-column label="目标字段" width="150" prop="targetField">
|
|
97
|
-
<template slot-scope="scope">
|
|
98
|
-
<el-input v-model="scope.row.targetField"></el-input>
|
|
99
|
-
</template>
|
|
100
|
-
</el-table-column>
|
|
101
|
-
<el-table-column label="目标数据属性名称" width="150" prop="targetField">
|
|
102
|
-
<template slot-scope="scope">
|
|
103
|
-
<el-input v-model="scope.row.targetFormField"></el-input>
|
|
104
|
-
</template>
|
|
105
|
-
</el-table-column>
|
|
106
|
-
<el-table-column label="来源字段" width="150" prop="sourceField">
|
|
107
|
-
<template slot-scope="scope">
|
|
108
|
-
<el-input v-model="scope.row.sourceField"></el-input>
|
|
109
|
-
</template>
|
|
110
|
-
</el-table-column>
|
|
111
|
-
<el-table-column label="操作" min-width="50" fixed="right">
|
|
112
|
-
<template #header="{ row, $index }">
|
|
113
|
-
<el-tooltip
|
|
114
|
-
:hide-after="500"
|
|
115
|
-
class="item"
|
|
116
|
-
effect="dark"
|
|
117
|
-
content="添加"
|
|
118
|
-
placement="top"
|
|
119
|
-
>
|
|
120
|
-
<el-button
|
|
121
|
-
size="mini" type="" circle=""
|
|
122
|
-
icon="el-icon-plus"
|
|
123
|
-
@click="tableData.push({})"
|
|
124
|
-
/>
|
|
125
|
-
</el-tooltip>
|
|
126
|
-
</template>
|
|
127
|
-
<template #default="{ row, $index }">
|
|
128
|
-
<el-tooltip
|
|
129
|
-
effect="dark"
|
|
130
|
-
content="删除"
|
|
131
|
-
placement="top"
|
|
132
|
-
>
|
|
133
|
-
<el-button
|
|
134
|
-
size="mini" type="" circle=""
|
|
135
|
-
icon="el-icon-delete"
|
|
136
|
-
@click="tableData.splice($index,1)"
|
|
137
|
-
/>
|
|
138
|
-
</el-tooltip>
|
|
139
|
-
</template>
|
|
140
|
-
</el-table-column>
|
|
141
|
-
</el-table>
|
|
142
|
-
</div>
|
|
143
|
-
<div class="dialog-footer" slot="footer">
|
|
144
|
-
<span class="fl tips">注:'目标字段'与'目标数据属性名称'只需要维护一个即可。</span>
|
|
145
|
-
<el-button @click="showDialog=false" class="button-sty" icon="el-icon-close">
|
|
146
|
-
{{ i18nt('designer.hint.cancel') }}
|
|
147
|
-
</el-button>
|
|
148
|
-
<el-button type="primary" @click="confirmDialog" class="button-sty" icon="el-icon-check">
|
|
149
|
-
{{ i18nt('designer.hint.confirm') }}
|
|
150
|
-
</el-button>
|
|
151
|
-
</div>
|
|
152
|
-
</el-dialog>
|
|
153
|
-
</div>
|
|
154
|
-
</template>
|
|
155
|
-
|
|
156
|
-
<script>
|
|
157
|
-
import i18n from "../../../../../../components/xform/utils/i18n"
|
|
158
|
-
import eventMixin
|
|
159
|
-
from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin"
|
|
160
|
-
import propertyMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/propertyMixin"
|
|
161
|
-
|
|
162
|
-
export default {
|
|
163
|
-
mixins: [i18n, eventMixin, propertyMixin],
|
|
164
|
-
props: {
|
|
165
|
-
designer: Object,
|
|
166
|
-
selectedWidget: Object,
|
|
167
|
-
optionModel: Object,
|
|
168
|
-
},
|
|
169
|
-
data() {
|
|
170
|
-
return {
|
|
171
|
-
showDialog: false,
|
|
172
|
-
tableData: [],
|
|
173
|
-
option1: {
|
|
174
|
-
customCode: () => {
|
|
175
|
-
return this.eventConfig.confirmCallback;
|
|
176
|
-
},
|
|
177
|
-
callback: (code) => {
|
|
178
|
-
this.eventConfig.confirmCallback = code;
|
|
179
|
-
this.$forceUpdate()
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
option2: {
|
|
183
|
-
customCode: () => {
|
|
184
|
-
return this.eventConfig.dialogQueryParam;
|
|
185
|
-
},
|
|
186
|
-
callback: (code) => {
|
|
187
|
-
this.eventConfig.dialogQueryParam = code;
|
|
188
|
-
this.$forceUpdate()
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
option3: {
|
|
192
|
-
customCode: () => {
|
|
193
|
-
return this.eventConfig.dialogCustomParam;
|
|
194
|
-
},
|
|
195
|
-
callback: (code) => {
|
|
196
|
-
this.eventConfig.dialogCustomParam = code;
|
|
197
|
-
this.$forceUpdate()
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
computed: {
|
|
203
|
-
eventConfig() {
|
|
204
|
-
return this.optionModel.searchDialogConfig || {};
|
|
205
|
-
},
|
|
206
|
-
vabsearchFlag() {
|
|
207
|
-
let type = this.selectedWidget.type;
|
|
208
|
-
return (
|
|
209
|
-
type === "vabsearch"
|
|
210
|
-
|| type === "singerSearch"
|
|
211
|
-
|| type === "multiSearch"
|
|
212
|
-
);
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
created() {
|
|
216
|
-
|
|
217
|
-
},
|
|
218
|
-
methods: {
|
|
219
|
-
openDialog() {
|
|
220
|
-
this.tableData = this.$baseLodash.cloneDeep(this.eventConfig.tableData);
|
|
221
|
-
this.showDialog = true;
|
|
222
|
-
},
|
|
223
|
-
confirmDialog() {
|
|
224
|
-
this.eventConfig.tableData = this.$baseLodash.cloneDeep(this.tableData);
|
|
225
|
-
this.showDialog = false;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
</script>
|
|
230
|
-
|
|
231
|
-
<style scoped>
|
|
232
|
-
.tips {
|
|
233
|
-
margin-left: 8px;
|
|
234
|
-
color: #909399;
|
|
235
|
-
font-size: 12px;
|
|
236
|
-
}
|
|
237
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-form-item label-width="0">
|
|
4
|
+
<el-divider class="custom-divider">选择弹框配置</el-divider>
|
|
5
|
+
</el-form-item>
|
|
6
|
+
<!-- 搜索类控件的多选是结构性的(决定字段值是数组还是标量),由控件自身的「是否多选」决定,
|
|
7
|
+
这里只做展示,避免两个开关各说各话 -->
|
|
8
|
+
<el-form-item label="是否多选">
|
|
9
|
+
<el-switch v-model="eventConfig.multipleChoices" v-if="!vabsearchFlag"></el-switch>
|
|
10
|
+
<template v-else>
|
|
11
|
+
<span>{{ optionModel.multipleChoices ? '是' : '否' }}</span>
|
|
12
|
+
<span class="tips">由控件自身的「是否多选」决定</span>
|
|
13
|
+
</template>
|
|
14
|
+
</el-form-item>
|
|
15
|
+
<el-form-item class="form-item-label-top" label="弹框表单编码">
|
|
16
|
+
<el-input type="text" v-model="eventConfig.formCode"></el-input>
|
|
17
|
+
</el-form-item>
|
|
18
|
+
<el-form-item label="弹框查询参数">
|
|
19
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
20
|
+
@click="editEventHandler('confirmCallback', ['dataId', 'formCode','rows'], option2)">
|
|
21
|
+
<span>{{ eventConfig.dialogQueryParam }}</span>
|
|
22
|
+
<i class="el-icon-edit"></i>
|
|
23
|
+
</a>
|
|
24
|
+
<span class="tips">按业务字段过滤写
|
|
25
|
+
<code>return {'{'} condition: {'{'} status: 1 {'}'} {'}'}</code>(追加进查询区条件,同字段以脚本为准)</span>
|
|
26
|
+
</el-form-item>
|
|
27
|
+
<el-form-item label="弹框自定义参数">
|
|
28
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
29
|
+
@click="editEventHandler('dialogCustomParam', ['dataId', 'formCode','rows'], option3)">
|
|
30
|
+
<span>{{ eventConfig.dialogCustomParam }}</span>
|
|
31
|
+
<i class="el-icon-edit"></i>
|
|
32
|
+
</a>
|
|
33
|
+
</el-form-item>
|
|
34
|
+
<template v-if="hasConfig('vabsearchFlag')">
|
|
35
|
+
<el-form-item class="form-item-label-top" label="关联来源字段">
|
|
36
|
+
<el-input type="text" v-model="eventConfig.valueSourceField"></el-input>
|
|
37
|
+
</el-form-item>
|
|
38
|
+
|
|
39
|
+
<el-form-item class="form-item-label-top" label="展示来源字段">
|
|
40
|
+
<el-input type="text" v-model="eventConfig.labelSourceField"></el-input>
|
|
41
|
+
</el-form-item>
|
|
42
|
+
</template>
|
|
43
|
+
<!-- <el-form-item label="多选">
|
|
44
|
+
<el-switch v-model="optionModel.multiple"></el-switch>
|
|
45
|
+
</el-form-item>-->
|
|
46
|
+
<template v-if="!hasConfig('vabsearchFlag')">
|
|
47
|
+
<el-form-item label="关联表格">
|
|
48
|
+
<el-switch v-model="eventConfig.tableEnabled"></el-switch>
|
|
49
|
+
</el-form-item>
|
|
50
|
+
<template v-if="eventConfig.tableEnabled">
|
|
51
|
+
<el-form-item class="form-item-label-top" label="关联表格ID">
|
|
52
|
+
<el-input type="text" v-model="eventConfig.tableRef"></el-input>
|
|
53
|
+
</el-form-item>
|
|
54
|
+
<el-form-item class="form-item-label-top" label="关联表格唯一字段">
|
|
55
|
+
<el-input type="text" v-model="eventConfig.tableUniqueKey"></el-input>
|
|
56
|
+
</el-form-item>
|
|
57
|
+
</template>
|
|
58
|
+
</template>
|
|
59
|
+
<el-form-item label="数据回填">
|
|
60
|
+
<el-button type="primary" plain="" round="" @click="openDialog">{{
|
|
61
|
+
i18nt('designer.setting.editAction')
|
|
62
|
+
}}
|
|
63
|
+
</el-button>
|
|
64
|
+
</el-form-item>
|
|
65
|
+
<el-form-item label="确认回调">
|
|
66
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
67
|
+
@click="editEventHandler('confirmCallback', ['dataId', 'formCode','rows'], option1)">
|
|
68
|
+
<span>{{ eventConfig.confirmCallback }}</span>
|
|
69
|
+
<i class="el-icon-edit"></i>
|
|
70
|
+
</a>
|
|
71
|
+
</el-form-item>
|
|
72
|
+
|
|
73
|
+
<el-dialog
|
|
74
|
+
custom-class="dialog-style list-dialog"
|
|
75
|
+
title="数据回填"
|
|
76
|
+
:visible.sync="showDialog"
|
|
77
|
+
:modal="false"
|
|
78
|
+
:show-close="!0"
|
|
79
|
+
:close-on-click-modal="!1"
|
|
80
|
+
:close-on-press-escape="!1"
|
|
81
|
+
:destroy-on-close="!0"
|
|
82
|
+
top="5vh"
|
|
83
|
+
width="600px"
|
|
84
|
+
v-dialog-drag
|
|
85
|
+
>
|
|
86
|
+
<div class="cont">
|
|
87
|
+
<el-table
|
|
88
|
+
ref="singleTable"
|
|
89
|
+
width="100%"
|
|
90
|
+
height="500"
|
|
91
|
+
:data="tableData"
|
|
92
|
+
border=""
|
|
93
|
+
stripe=""
|
|
94
|
+
default-expand-all
|
|
95
|
+
>
|
|
96
|
+
<el-table-column label="目标字段" width="150" prop="targetField">
|
|
97
|
+
<template slot-scope="scope">
|
|
98
|
+
<el-input v-model="scope.row.targetField"></el-input>
|
|
99
|
+
</template>
|
|
100
|
+
</el-table-column>
|
|
101
|
+
<el-table-column label="目标数据属性名称" width="150" prop="targetField">
|
|
102
|
+
<template slot-scope="scope">
|
|
103
|
+
<el-input v-model="scope.row.targetFormField"></el-input>
|
|
104
|
+
</template>
|
|
105
|
+
</el-table-column>
|
|
106
|
+
<el-table-column label="来源字段" width="150" prop="sourceField">
|
|
107
|
+
<template slot-scope="scope">
|
|
108
|
+
<el-input v-model="scope.row.sourceField"></el-input>
|
|
109
|
+
</template>
|
|
110
|
+
</el-table-column>
|
|
111
|
+
<el-table-column label="操作" min-width="50" fixed="right">
|
|
112
|
+
<template #header="{ row, $index }">
|
|
113
|
+
<el-tooltip
|
|
114
|
+
:hide-after="500"
|
|
115
|
+
class="item"
|
|
116
|
+
effect="dark"
|
|
117
|
+
content="添加"
|
|
118
|
+
placement="top"
|
|
119
|
+
>
|
|
120
|
+
<el-button
|
|
121
|
+
size="mini" type="" circle=""
|
|
122
|
+
icon="el-icon-plus"
|
|
123
|
+
@click="tableData.push({})"
|
|
124
|
+
/>
|
|
125
|
+
</el-tooltip>
|
|
126
|
+
</template>
|
|
127
|
+
<template #default="{ row, $index }">
|
|
128
|
+
<el-tooltip
|
|
129
|
+
effect="dark"
|
|
130
|
+
content="删除"
|
|
131
|
+
placement="top"
|
|
132
|
+
>
|
|
133
|
+
<el-button
|
|
134
|
+
size="mini" type="" circle=""
|
|
135
|
+
icon="el-icon-delete"
|
|
136
|
+
@click="tableData.splice($index,1)"
|
|
137
|
+
/>
|
|
138
|
+
</el-tooltip>
|
|
139
|
+
</template>
|
|
140
|
+
</el-table-column>
|
|
141
|
+
</el-table>
|
|
142
|
+
</div>
|
|
143
|
+
<div class="dialog-footer" slot="footer">
|
|
144
|
+
<span class="fl tips">注:'目标字段'与'目标数据属性名称'只需要维护一个即可。</span>
|
|
145
|
+
<el-button @click="showDialog=false" class="button-sty" icon="el-icon-close">
|
|
146
|
+
{{ i18nt('designer.hint.cancel') }}
|
|
147
|
+
</el-button>
|
|
148
|
+
<el-button type="primary" @click="confirmDialog" class="button-sty" icon="el-icon-check">
|
|
149
|
+
{{ i18nt('designer.hint.confirm') }}
|
|
150
|
+
</el-button>
|
|
151
|
+
</div>
|
|
152
|
+
</el-dialog>
|
|
153
|
+
</div>
|
|
154
|
+
</template>
|
|
155
|
+
|
|
156
|
+
<script>
|
|
157
|
+
import i18n from "../../../../../../components/xform/utils/i18n"
|
|
158
|
+
import eventMixin
|
|
159
|
+
from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin"
|
|
160
|
+
import propertyMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/propertyMixin"
|
|
161
|
+
|
|
162
|
+
export default {
|
|
163
|
+
mixins: [i18n, eventMixin, propertyMixin],
|
|
164
|
+
props: {
|
|
165
|
+
designer: Object,
|
|
166
|
+
selectedWidget: Object,
|
|
167
|
+
optionModel: Object,
|
|
168
|
+
},
|
|
169
|
+
data() {
|
|
170
|
+
return {
|
|
171
|
+
showDialog: false,
|
|
172
|
+
tableData: [],
|
|
173
|
+
option1: {
|
|
174
|
+
customCode: () => {
|
|
175
|
+
return this.eventConfig.confirmCallback;
|
|
176
|
+
},
|
|
177
|
+
callback: (code) => {
|
|
178
|
+
this.eventConfig.confirmCallback = code;
|
|
179
|
+
this.$forceUpdate()
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
option2: {
|
|
183
|
+
customCode: () => {
|
|
184
|
+
return this.eventConfig.dialogQueryParam;
|
|
185
|
+
},
|
|
186
|
+
callback: (code) => {
|
|
187
|
+
this.eventConfig.dialogQueryParam = code;
|
|
188
|
+
this.$forceUpdate()
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
option3: {
|
|
192
|
+
customCode: () => {
|
|
193
|
+
return this.eventConfig.dialogCustomParam;
|
|
194
|
+
},
|
|
195
|
+
callback: (code) => {
|
|
196
|
+
this.eventConfig.dialogCustomParam = code;
|
|
197
|
+
this.$forceUpdate()
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
computed: {
|
|
203
|
+
eventConfig() {
|
|
204
|
+
return this.optionModel.searchDialogConfig || {};
|
|
205
|
+
},
|
|
206
|
+
vabsearchFlag() {
|
|
207
|
+
let type = this.selectedWidget.type;
|
|
208
|
+
return (
|
|
209
|
+
type === "vabsearch"
|
|
210
|
+
|| type === "singerSearch"
|
|
211
|
+
|| type === "multiSearch"
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
created() {
|
|
216
|
+
|
|
217
|
+
},
|
|
218
|
+
methods: {
|
|
219
|
+
openDialog() {
|
|
220
|
+
this.tableData = this.$baseLodash.cloneDeep(this.eventConfig.tableData);
|
|
221
|
+
this.showDialog = true;
|
|
222
|
+
},
|
|
223
|
+
confirmDialog() {
|
|
224
|
+
this.eventConfig.tableData = this.$baseLodash.cloneDeep(this.tableData);
|
|
225
|
+
this.showDialog = false;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
</script>
|
|
230
|
+
|
|
231
|
+
<style scoped>
|
|
232
|
+
.tips {
|
|
233
|
+
margin-left: 8px;
|
|
234
|
+
color: #909399;
|
|
235
|
+
font-size: 12px;
|
|
236
|
+
}
|
|
237
|
+
</style>
|
|
@@ -1,67 +1,74 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<el-form-item prop="keyName" v-if="optionModel.keyNameEnabled">
|
|
4
|
-
<span slot="label">数据属性名称
|
|
5
|
-
<el-tooltip effect="light" content="数据属性名称是指form-data对象中字段组件所对应的属性名称">
|
|
6
|
-
<i class="el-icon-info"></i></el-tooltip>
|
|
7
|
-
</span>
|
|
8
|
-
<el-input type="text" v-model="optionModel.keyName" :disabled="
|
|
9
|
-
</el-form-item>
|
|
10
|
-
<el-form-item prop="keyName" label="属性名称前缀" v-if="optionModel.keyNameEnabled &&
|
|
11
|
-
<span>{{ keyNamePrefixMap[selectedWidget.type] }}</span>
|
|
12
|
-
</el-form-item>
|
|
13
|
-
<el-form-item prop="keyName" label="属性名称后缀" v-if="optionModel.keyNameEnabled &&
|
|
14
|
-
<el-input
|
|
15
|
-
class="search-input"
|
|
16
|
-
max="200"
|
|
17
|
-
v-model="optionModel.keyNameSuffix"
|
|
18
|
-
@change="changeKeyNameSuffix"
|
|
19
|
-
>
|
|
20
|
-
<el-tooltip slot="suffix" :enterable="false" effect="dark" content="随机生成" placement="top">
|
|
21
|
-
<i class="el-input__icon el-icon-refresh-right" @click="createRandomName"></i>
|
|
22
|
-
</el-tooltip>
|
|
23
|
-
</el-input>
|
|
24
|
-
</el-form-item>
|
|
25
|
-
</div>
|
|
26
|
-
</template>
|
|
27
|
-
|
|
28
|
-
<script>
|
|
29
|
-
import i18n from "../../../../../../components/xform/utils/i18n"
|
|
30
|
-
import propertyMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/propertyMixin"
|
|
31
|
-
import {keyNamePrefixMap} from "../../../../../../components/xform/form-designer/widget-panel/widgetsConfig";
|
|
32
|
-
|
|
33
|
-
export default {
|
|
34
|
-
name: "keyName-editor",
|
|
35
|
-
mixins: [i18n, propertyMixin],
|
|
36
|
-
props: {
|
|
37
|
-
designer: Object,
|
|
38
|
-
selectedWidget: Object,
|
|
39
|
-
optionModel: Object,
|
|
40
|
-
},
|
|
41
|
-
data() {
|
|
42
|
-
return {
|
|
43
|
-
keyNamePrefixMap
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-form-item class="form-item-label-top" prop="keyName" v-if="optionModel.keyNameEnabled">
|
|
4
|
+
<span slot="label">数据属性名称
|
|
5
|
+
<el-tooltip effect="light" content="数据属性名称是指form-data对象中字段组件所对应的属性名称">
|
|
6
|
+
<i class="el-icon-info"></i></el-tooltip>
|
|
7
|
+
</span>
|
|
8
|
+
<el-input type="text" v-model="optionModel.keyName" :disabled="prefixMode"></el-input>
|
|
9
|
+
</el-form-item>
|
|
10
|
+
<el-form-item prop="keyName" label="属性名称前缀" v-if="optionModel.keyNameEnabled && prefixMode">
|
|
11
|
+
<span>{{ keyNamePrefixMap[selectedWidget.type] }}</span>
|
|
12
|
+
</el-form-item>
|
|
13
|
+
<el-form-item prop="keyName" label="属性名称后缀" v-if="optionModel.keyNameEnabled && prefixMode" class="form-item-label-top">
|
|
14
|
+
<el-input
|
|
15
|
+
class="search-input"
|
|
16
|
+
max="200"
|
|
17
|
+
v-model="optionModel.keyNameSuffix"
|
|
18
|
+
@change="changeKeyNameSuffix"
|
|
19
|
+
>
|
|
20
|
+
<el-tooltip slot="suffix" :enterable="false" effect="dark" content="随机生成" placement="top">
|
|
21
|
+
<i class="el-input__icon el-icon-refresh-right" @click="createRandomName"></i>
|
|
22
|
+
</el-tooltip>
|
|
23
|
+
</el-input>
|
|
24
|
+
</el-form-item>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
import i18n from "../../../../../../components/xform/utils/i18n"
|
|
30
|
+
import propertyMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/propertyMixin"
|
|
31
|
+
import {keyNamePrefixMap} from "../../../../../../components/xform/form-designer/widget-panel/widgetsConfig";
|
|
32
|
+
|
|
33
|
+
export default {
|
|
34
|
+
name: "keyName-editor",
|
|
35
|
+
mixins: [i18n, propertyMixin],
|
|
36
|
+
props: {
|
|
37
|
+
designer: Object,
|
|
38
|
+
selectedWidget: Object,
|
|
39
|
+
optionModel: Object,
|
|
40
|
+
},
|
|
41
|
+
data() {
|
|
42
|
+
return {
|
|
43
|
+
keyNamePrefixMap
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
computed: {
|
|
47
|
+
/* 附件字段默认按「前缀 + 随机后缀」生成 keyName,输入框锁死;
|
|
48
|
+
开了「值存为URL」后它是主表普通列,要让实施改成后端表字段名 */
|
|
49
|
+
prefixMode() {
|
|
50
|
+
return this.hasConfig('keyNameSuffix') && !this.optionModel.urlValueEnabled;
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
methods: {
|
|
54
|
+
changeKeyNameSuffix(val) {
|
|
55
|
+
this.optionModel.keyName = this.designer.createKeyName(this.selectedWidget.type, val, this.optionModel);//生成属性名称
|
|
56
|
+
},
|
|
57
|
+
createRandomName() {
|
|
58
|
+
this.$baseConfirm('您确定要生成属性名称后缀吗?').then(() => {
|
|
59
|
+
this.optionModel.keyNameSuffix = this.designer.createKeyNameSuffix(this.selectedWidget.type);//生成后缀
|
|
60
|
+
this.changeKeyNameSuffix(this.optionModel.keyNameSuffix)
|
|
61
|
+
this.$message({
|
|
62
|
+
type: "success",
|
|
63
|
+
message: "success",
|
|
64
|
+
duration: 1000
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
</script>
|
|
71
|
+
|
|
72
|
+
<style lang="scss" scoped>
|
|
73
|
+
|
|
74
|
+
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<el-form-item label="关联开始字段">
|
|
3
|
+
<el-form-item label="关联开始字段" class="form-item-label-top">
|
|
4
4
|
<el-select
|
|
5
5
|
v-if="dateFieldOptions.length"
|
|
6
6
|
v-model="optionModel.limitStartField"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
clearable
|
|
23
23
|
></el-input>
|
|
24
24
|
</el-form-item>
|
|
25
|
-
<el-form-item label="关联结束字段">
|
|
25
|
+
<el-form-item label="关联结束字段" class="form-item-label-top">
|
|
26
26
|
<el-select
|
|
27
27
|
v-if="dateFieldOptions.length"
|
|
28
28
|
v-model="optionModel.limitEndField"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
clearable
|
|
45
45
|
></el-input>
|
|
46
46
|
</el-form-item>
|
|
47
|
-
<el-form-item label="最小日期">
|
|
47
|
+
<el-form-item label="最小日期" class="form-item-label-top">
|
|
48
48
|
<el-checkbox v-model="nowMinDate">当前日期</el-checkbox>
|
|
49
49
|
<el-date-picker
|
|
50
50
|
v-if="!nowMinDate"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
placeholder="留空则不限制"
|
|
58
58
|
></el-date-picker>
|
|
59
59
|
</el-form-item>
|
|
60
|
-
<el-form-item label="最大日期">
|
|
60
|
+
<el-form-item label="最大日期" class="form-item-label-top">
|
|
61
61
|
<el-date-picker
|
|
62
62
|
v-model="optionModel.maxDate"
|
|
63
63
|
:type="pickerType"
|