cloud-web-corejs 1.0.54-dev.797 → 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 -1141
- 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
package/src/components/xform/form-designer/setting-panel/property-editor/urlValueEnabled-editor.vue
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-form-item :label="i18nt('值存为URL')">
|
|
4
|
+
<el-tooltip
|
|
5
|
+
effect="dark"
|
|
6
|
+
placement="top"
|
|
7
|
+
content="开启后字段值以完整 URL 字符串保存:限制数量为 1 时存单个字符串,否则存字符串数组。关闭时字段值为附件对象数组,但外部传入的 URL 值同样能正常显示。"
|
|
8
|
+
>
|
|
9
|
+
<el-switch
|
|
10
|
+
v-model="optionModel.urlValueEnabled"
|
|
11
|
+
@change="handleEnabledChange"
|
|
12
|
+
></el-switch>
|
|
13
|
+
</el-tooltip>
|
|
14
|
+
</el-form-item>
|
|
15
|
+
<template v-if="optionModel.urlValueEnabled">
|
|
16
|
+
<el-form-item :label="i18nt('URL取值字段')" class="form-item-label-top">
|
|
17
|
+
<el-select v-model="optionModel.urlValueField">
|
|
18
|
+
<el-option value="url" :label="i18nt('原文件')"></el-option>
|
|
19
|
+
<el-option value="large" :label="i18nt('大图')"></el-option>
|
|
20
|
+
<el-option value="medium" :label="i18nt('中图')"></el-option>
|
|
21
|
+
<el-option value="thumbnail" :label="i18nt('小图')"></el-option>
|
|
22
|
+
</el-select>
|
|
23
|
+
</el-form-item>
|
|
24
|
+
<el-form-item label-width="0" v-if="showKeyNameHint">
|
|
25
|
+
<div class="url-value-hint">
|
|
26
|
+
该字段的值现在存在主表的普通列上,「数据属性名称」需改成后端表字段名。
|
|
27
|
+
</div>
|
|
28
|
+
</el-form-item>
|
|
29
|
+
</template>
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<script>
|
|
34
|
+
import i18n from "../../../../../components/xform/utils/i18n";
|
|
35
|
+
|
|
36
|
+
export default {
|
|
37
|
+
name: "urlValueEnabled-editor",
|
|
38
|
+
mixins: [i18n],
|
|
39
|
+
props: {
|
|
40
|
+
designer: Object,
|
|
41
|
+
selectedWidget: Object,
|
|
42
|
+
optionModel: Object,
|
|
43
|
+
},
|
|
44
|
+
computed: {
|
|
45
|
+
/* 明细列的 keyName 被强制设成列 prop(见 table-column-dialog.getColumnWidgetConfig),
|
|
46
|
+
不走 attachments_ 自动前缀,无需提示改名 */
|
|
47
|
+
showKeyNameHint() {
|
|
48
|
+
return this.optionModel.hasOwnProperty("keyNameSuffix");
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
methods: {
|
|
52
|
+
/* 附件字段默认走 attachments_ 独立附件通道,keyName 形如 attachments_<uuid>;
|
|
53
|
+
开启 URL 模式后它变成主表普通列,必须去掉前缀,否则保存时会被当附件包发走 */
|
|
54
|
+
handleEnabledChange(enabled) {
|
|
55
|
+
if (enabled && !this.optionModel.urlValueField) {
|
|
56
|
+
/* 旧表单升级时缺失的属性会被填成 null,开关打开时补默认取值字段 */
|
|
57
|
+
this.$set(this.optionModel, "urlValueField", "url");
|
|
58
|
+
}
|
|
59
|
+
if (!this.optionModel.hasOwnProperty("keyNameSuffix")) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
let type = this.selectedWidget.type;
|
|
63
|
+
if (enabled) {
|
|
64
|
+
let prefix = this.designer.getKeyNamePrefix(type);
|
|
65
|
+
let keyName = this.optionModel.keyName || "";
|
|
66
|
+
if (prefix && keyName.startsWith(prefix)) {
|
|
67
|
+
/* 保留原 uuid 作占位,避免 keyName 为空静默回落到 name(widget id) */
|
|
68
|
+
this.$set(this.optionModel, "keyName", keyName.substring(prefix.length));
|
|
69
|
+
}
|
|
70
|
+
this.$set(this.optionModel, "keyNameSuffix", "");
|
|
71
|
+
} else {
|
|
72
|
+
let suffix = this.designer.createKeyNameSuffix(type);
|
|
73
|
+
this.$set(this.optionModel, "keyNameSuffix", suffix);
|
|
74
|
+
this.$set(
|
|
75
|
+
this.optionModel,
|
|
76
|
+
"keyName",
|
|
77
|
+
this.designer.createKeyName(type, suffix, this.optionModel)
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
<style scoped>
|
|
86
|
+
.url-value-hint {
|
|
87
|
+
line-height: 1.5;
|
|
88
|
+
color: #e6a23c;
|
|
89
|
+
word-break: break-all;
|
|
90
|
+
}
|
|
91
|
+
</style>
|
package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-form-item :label="i18nt('designer.setting.validationHint')">
|
|
2
|
+
<el-form-item :label="i18nt('designer.setting.validationHint')" class="form-item-label-top">
|
|
3
3
|
<el-input type="text" v-model="optionModel.validationHint"></el-input>
|
|
4
4
|
</el-form-item>
|
|
5
5
|
</template>
|
package/src/components/xform/form-designer/setting-panel/property-editor/widgetWidth-editor.vue
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<el-form-item :label="i18nt('designer.setting.widgetWidth')">
|
|
3
|
+
<el-form-item :label="i18nt('designer.setting.widgetWidth')" class="form-item-label-top">
|
|
4
4
|
<el-input type="text" v-model="optionModel.widgetWidth"></el-input>
|
|
5
5
|
</el-form-item>
|
|
6
6
|
</div>
|
|
@@ -183,6 +183,7 @@ const COMMON_PROPERTIES = {
|
|
|
183
183
|
colorClass: "colorClass-editor",
|
|
184
184
|
downloadButtonFlag: "downloadButtonFlag-editor",
|
|
185
185
|
showViewButton: "showViewButton-editor",
|
|
186
|
+
urlValueEnabled: "urlValueEnabled-editor",
|
|
186
187
|
};
|
|
187
188
|
|
|
188
189
|
const ADVANCED_PROPERTIES = {
|
|
@@ -311,7 +311,9 @@ export default {
|
|
|
311
311
|
background: #f1f2f3;
|
|
312
312
|
font-size: 12px;
|
|
313
313
|
padding-left: 12px;
|
|
314
|
-
|
|
314
|
+
> span{
|
|
315
|
+
display: flex;align-items: center;white-space: normal;line-height: 1.2;height: 35px;
|
|
316
|
+
}
|
|
315
317
|
svg {
|
|
316
318
|
display: inline-block;
|
|
317
319
|
//margin: 10px auto 0;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
// 注意:httpConfig 需在 containers / autocompleteConfig 等使用处之前声明,
|
|
2
|
-
// 否则经 Babel 转译(const→var 提升,丢失 TDZ)后 ...
|
|
1
|
+
// 注意:httpConfig / defaultWfConfig 需在 containers / autocompleteConfig 等使用处之前声明,
|
|
2
|
+
// 否则经 Babel 转译(const→var 提升,丢失 TDZ)后 ...xxx 会展开 undefined(为空),
|
|
3
3
|
// 导致相关组件丢失 formScriptEnabled 等「请求访问设置」字段。
|
|
4
|
+
// defaultWfConfig 原先声明在文件中部(containers 之后),grid/table/tab/data-table 四个容器
|
|
5
|
+
// 展开它的位置都在声明之前,等于一直没展开进去——同一个坑,2026-08-11 一并挪上来。
|
|
6
|
+
// 其余 defaultTextFlagConfig / defaultSearchDialogConfig 等的使用点都在各自声明之后,无此问题。
|
|
4
7
|
const httpConfig = {
|
|
5
8
|
httpFormCode: null,
|
|
6
9
|
formScriptEnabled: true,
|
|
@@ -13,6 +16,16 @@ const httpConfig = {
|
|
|
13
16
|
removeDataLevel: false,
|
|
14
17
|
};
|
|
15
18
|
|
|
19
|
+
export const defaultWfConfig = {
|
|
20
|
+
wfFlag: 1,
|
|
21
|
+
wfEdit: false,
|
|
22
|
+
enabledByWf: false,
|
|
23
|
+
hiddenByWf: false,
|
|
24
|
+
wfConfigData: [],
|
|
25
|
+
wfModifyDataEnabled: false,
|
|
26
|
+
wfModifyDataConfig: [],
|
|
27
|
+
};
|
|
28
|
+
|
|
16
29
|
export const containers = [
|
|
17
30
|
{
|
|
18
31
|
type: "grid",
|
|
@@ -475,10 +488,36 @@ export const containers = [
|
|
|
475
488
|
},
|
|
476
489
|
},
|
|
477
490
|
{
|
|
491
|
+
/* 详情模块(标签):不是新容器类型,靠 targetType 落地成 detail,
|
|
492
|
+
* 区别只在拖入瞬间预置一个 tab 容器(见 designer.js copyNewContainerWidget) */
|
|
493
|
+
type: "detail-tabs",
|
|
494
|
+
targetType: "detail",
|
|
495
|
+
category: "container",
|
|
496
|
+
icon: "form",
|
|
497
|
+
commonFlag: !0,
|
|
498
|
+
layoutType: "PC",
|
|
499
|
+
panes: [],
|
|
500
|
+
widgetList: [],
|
|
501
|
+
options: {
|
|
502
|
+
name: "",
|
|
503
|
+
hidden: !1,
|
|
504
|
+
label: "单据详情",
|
|
505
|
+
detailContainer: true,
|
|
506
|
+
hideNav: false,
|
|
507
|
+
hideHeader: false,
|
|
508
|
+
// colHeight: null,
|
|
509
|
+
customClass: "",
|
|
510
|
+
wfEnabled: false,
|
|
511
|
+
onCreated: "",
|
|
512
|
+
onMounted: "",
|
|
513
|
+
},
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
/* 内容模块:detail/detail-plain 的子模块。不再是 internal——标签方案里需要能从组件面板
|
|
517
|
+
* 直接拖进 tab-pane(见 docs/详情模块标签承载方案.md) */
|
|
478
518
|
type: "detail-pane",
|
|
479
519
|
category: "container",
|
|
480
520
|
icon: "grid-col",
|
|
481
|
-
internal: !0,
|
|
482
521
|
buttonWidgetList: [],
|
|
483
522
|
widgetList: [],
|
|
484
523
|
options: {
|
|
@@ -836,16 +875,6 @@ export const defaultSearchDialogConfig = {
|
|
|
836
875
|
dialogCustomParam: null,
|
|
837
876
|
};
|
|
838
877
|
|
|
839
|
-
export const defaultWfConfig = {
|
|
840
|
-
wfFlag: 1,
|
|
841
|
-
wfEdit: false,
|
|
842
|
-
enabledByWf: false,
|
|
843
|
-
hiddenByWf: false,
|
|
844
|
-
wfConfigData: [],
|
|
845
|
-
wfModifyDataEnabled: false,
|
|
846
|
-
wfModifyDataConfig: [],
|
|
847
|
-
};
|
|
848
|
-
|
|
849
878
|
export const defaultTextFlagConfig = {
|
|
850
879
|
widgetTextFlag: null,
|
|
851
880
|
textFlag: 1,
|
|
@@ -2998,6 +3027,11 @@ export const advancedFields = [
|
|
|
2998
3027
|
showFileCreateDate: false,
|
|
2999
3028
|
fileShowImageSize: 2,
|
|
3000
3029
|
|
|
3030
|
+
/* 字段值以完整 URL 字符串保存(而非附件对象数组);限制数量为 1 时存单个
|
|
3031
|
+
字符串,否则存字符串数组。关闭时仍兼容外部传入的 URL 值。 */
|
|
3032
|
+
urlValueEnabled: false,
|
|
3033
|
+
urlValueField: "url",
|
|
3034
|
+
|
|
3001
3035
|
customUploadEnabled: false,
|
|
3002
3036
|
uploadUrl: null,
|
|
3003
3037
|
uploadHeaders: {},
|
|
@@ -3251,6 +3285,7 @@ export const advancedFields = [
|
|
|
3251
3285
|
tableExportParam: "",
|
|
3252
3286
|
showImageAtTable: false,
|
|
3253
3287
|
selectExportItemFlag: 1,
|
|
3288
|
+
exportItemConditionEnabled: !1,
|
|
3254
3289
|
|
|
3255
3290
|
onCreated: "",
|
|
3256
3291
|
onMounted: "",
|
|
@@ -3507,6 +3542,12 @@ export const advancedFields = [
|
|
|
3507
3542
|
onCreated: "",
|
|
3508
3543
|
onMounted: "",
|
|
3509
3544
|
onAfterConfirmFile: "",
|
|
3545
|
+
|
|
3546
|
+
/* 字段值以完整 URL 字符串保存(而非附件对象数组);限制数量为 1 时存单个
|
|
3547
|
+
字符串,否则存字符串数组。关闭时仍兼容外部传入的 URL 值。 */
|
|
3548
|
+
urlValueEnabled: false,
|
|
3549
|
+
urlValueField: "url",
|
|
3550
|
+
|
|
3510
3551
|
...defaultWfConfig,
|
|
3511
3552
|
|
|
3512
3553
|
showRuleFlag: 1,
|
|
@@ -4467,6 +4508,7 @@ export const widgetPanelOrder = {
|
|
|
4467
4508
|
"data-table",
|
|
4468
4509
|
"table-column",
|
|
4469
4510
|
"detail",
|
|
4511
|
+
"detail-tabs",
|
|
4470
4512
|
"detail-plain",
|
|
4471
4513
|
"detail-pane",
|
|
4472
4514
|
"tree-pane",
|