cloud-web-corejs 1.0.173 → 1.0.175
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 +2 -1
- package/src/components/Tinymce/index.vue +112 -71
- package/src/components/VabUpload/image-viewer.vue +2 -2
- package/src/components/VabUpload/index.js +2 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/privateProfileDialogMixins.js +1 -1063
- package/src/components/VabUpload/view.vue +4 -2
- package/src/components/baseAlert/mixins.js +1 -1
- package/src/components/baseAttachment/mixins.js +2 -1
- package/src/components/baseInputExport/index.vue +19 -12
- package/src/components/baseInputExport/mixins.js +1 -1
- package/src/components/baseTabs/mixins.js +1 -1
- package/src/components/code-editor/index.vue +102 -63
- package/src/components/confirmDialog/index.vue +24 -17
- package/src/components/confirmDialog/mixins.js +1 -1
- package/src/components/errorMsg/index.vue +42 -34
- package/src/components/errorMsg/mixins.js +1 -1
- package/src/components/excelExport/index.js +1 -2
- package/src/components/excelExport/mixins.js +1 -1
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/scriptTest/mixins.js +1 -1
- package/src/components/table/index.js +1 -1
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js +11028 -0
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css +200 -0
- package/src/components/vb-tabs/x-tabs.vue +0 -1
- package/src/components/xform/form-designer/designer.js +1 -1
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +16 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +17 -4
- 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 +247 -187
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +2 -0
- package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +6 -2
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +10 -0
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +65 -4
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +131 -118
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +137 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +124 -50
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +5 -1
- package/src/components/xform/form-render/indexMixin copy.js +3462 -0
- package/src/components/xform/form-render/indexMixin.js +1 -1
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/utils/format.js +14 -4
- package/src/components/xform/utils/formula-util.js +0 -4
- package/src/components/xform/utils/util.js +1 -1
- package/src/layout/components/Sidebar/default.vue +1421 -1266
- package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
- package/src/utils/index.js +1 -6
- package/src/utils/vab.js +1 -1
- package/src/views/user/form/vform/designer.vue +2 -1
- package/src/views/user/outLink/index.vue +57 -18
|
@@ -746,6 +746,7 @@ export default {
|
|
|
746
746
|
gantt.parse(this.tasks);
|
|
747
747
|
},
|
|
748
748
|
initGantt() {
|
|
749
|
+
gantt.config.tooltip = true;
|
|
749
750
|
// 配置国内日期格式(示例 1:YYYY-MM-DD)
|
|
750
751
|
gantt.config.date_format = "%Y-%m-%d";
|
|
751
752
|
|
|
@@ -777,6 +778,7 @@ export default {
|
|
|
777
778
|
this.initConfig();
|
|
778
779
|
// 初始化
|
|
779
780
|
gantt.init(this.$refs.gantt);
|
|
781
|
+
|
|
780
782
|
/* *******重点******* */
|
|
781
783
|
/*
|
|
782
784
|
// 数据解析
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<static-content-wrapper :designer="designer" :field="field" :design-state="designState"
|
|
3
3
|
:parent-widget="parentWidget" :parent-list="parentList" :index-of-parent-list="indexOfParentList"
|
|
4
4
|
:sub-form-row-index="subFormRowIndex" :sub-form-col-index="subFormColIndex" :sub-form-row-id="subFormRowId">
|
|
5
|
-
<div ref="fieldEditor" v-html="field.options.htmlContent"></div>
|
|
5
|
+
<div :class="{'designer-html-container':designState}" ref="fieldEditor" v-html="field.options.htmlContent"></div>
|
|
6
6
|
</static-content-wrapper>
|
|
7
7
|
</template>
|
|
8
8
|
|
|
@@ -78,5 +78,9 @@
|
|
|
78
78
|
|
|
79
79
|
<style lang="scss" scoped>
|
|
80
80
|
@import "~@/styles/global.scss"; //* static-content-wrapper已引入,还需要重复引入吗? *//
|
|
81
|
-
|
|
81
|
+
.designer-html-container{
|
|
82
|
+
outline: 1px dashed #336699;
|
|
83
|
+
padding: 10px;
|
|
84
|
+
margin: 5px;
|
|
85
|
+
}
|
|
82
86
|
</style>
|
package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue
CHANGED
|
@@ -77,6 +77,7 @@ export default {
|
|
|
77
77
|
},
|
|
78
78
|
computedStyle() {
|
|
79
79
|
let displayStyle = !this.designState && this.field.options.hidden ? "none !important":this.displayStyle
|
|
80
|
+
if(!this.designState && !this.isShow)displayStyle = "none !important";
|
|
80
81
|
return {display: displayStyle, height: this.heightStyle};
|
|
81
82
|
},
|
|
82
83
|
isShow() {
|
|
@@ -85,6 +86,15 @@ export default {
|
|
|
85
86
|
let hasWf = this.getHasWf() || false;
|
|
86
87
|
result = result && !hasWf;
|
|
87
88
|
}*/
|
|
89
|
+
if(!this.designState){
|
|
90
|
+
let authCode = this.$parent.getAuthCode ? this.$parent.getAuthCode() : null
|
|
91
|
+
if(authCode){
|
|
92
|
+
let dispermissions = this.$store.getters.dispermissions;
|
|
93
|
+
if (dispermissions.includes(authCode)) {
|
|
94
|
+
result = false
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
88
98
|
return result;
|
|
89
99
|
}
|
|
90
100
|
|
|
@@ -20,6 +20,7 @@ import FormItemWrapper from "./form-item-wrapper";
|
|
|
20
20
|
import emitter from "../../../../../components/xform/utils/emitter";
|
|
21
21
|
import i18n from "../../../../../components/xform/utils/i18n";
|
|
22
22
|
import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
|
|
23
|
+
import * as formatUtil from "../../../../../components/xform/utils/format.js";
|
|
23
24
|
|
|
24
25
|
export default {
|
|
25
26
|
name: "text-widget",
|
|
@@ -63,9 +64,10 @@ export default {
|
|
|
63
64
|
},
|
|
64
65
|
computed: {
|
|
65
66
|
showVaule() {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
if (this.designState) {
|
|
68
|
+
return this.field.options.defaultValue ?? "";
|
|
69
|
+
}
|
|
70
|
+
let value = this.formatterValue();
|
|
69
71
|
return value;
|
|
70
72
|
},
|
|
71
73
|
},
|
|
@@ -92,7 +94,66 @@ export default {
|
|
|
92
94
|
this.unregisterFromRefList();
|
|
93
95
|
},
|
|
94
96
|
|
|
95
|
-
methods: {
|
|
97
|
+
methods: {
|
|
98
|
+
formatterValue() {
|
|
99
|
+
let formatType = this.field.options.formatType;
|
|
100
|
+
let cellValue = this.fieldModel;
|
|
101
|
+
if (formatType === null || formatType === undefined) return cellValue;
|
|
102
|
+
if (formatType)
|
|
103
|
+
switch (formatType) {
|
|
104
|
+
case "render":
|
|
105
|
+
return this.handleCustomEvent(this.field.options.renderHandle);
|
|
106
|
+
break;
|
|
107
|
+
case "money":
|
|
108
|
+
return cellValue !== null && cellValue !== undefined
|
|
109
|
+
? cellValue.toFixed(2)
|
|
110
|
+
: "";
|
|
111
|
+
break;
|
|
112
|
+
case "d1":
|
|
113
|
+
return formatUtil.formatDate1(cellValue);
|
|
114
|
+
break;
|
|
115
|
+
case "d2":
|
|
116
|
+
return formatUtil.formatDate2(cellValue);
|
|
117
|
+
break;
|
|
118
|
+
case "d3":
|
|
119
|
+
return formatUtil.formatDate3(cellValue);
|
|
120
|
+
break;
|
|
121
|
+
case "d4":
|
|
122
|
+
return formatUtil.formatDate4(cellValue);
|
|
123
|
+
break;
|
|
124
|
+
case "d5":
|
|
125
|
+
return formatUtil.formatDate4(cellValue);
|
|
126
|
+
break;
|
|
127
|
+
case "n0":
|
|
128
|
+
return cellValue !== null && cellValue !== undefined
|
|
129
|
+
? cellValue.toFixed(this.field.options.formatDecimal || 0)
|
|
130
|
+
: "";
|
|
131
|
+
break;
|
|
132
|
+
case "n1":
|
|
133
|
+
return formatUtil.formatNumber1(cellValue);
|
|
134
|
+
break;
|
|
135
|
+
case "n2":
|
|
136
|
+
return formatUtil.formatNumber2(cellValue);
|
|
137
|
+
break;
|
|
138
|
+
case "n3":
|
|
139
|
+
return formatUtil.formatNumber3(cellValue);
|
|
140
|
+
break;
|
|
141
|
+
case "n4":
|
|
142
|
+
return formatUtil.formatNumber4(cellValue);
|
|
143
|
+
break;
|
|
144
|
+
case "n5":
|
|
145
|
+
return formatUtil.formatNumber5(cellValue);
|
|
146
|
+
break;
|
|
147
|
+
case "n6":
|
|
148
|
+
return formatUtil.formatNumber6(cellValue);
|
|
149
|
+
break;
|
|
150
|
+
case "n7":
|
|
151
|
+
return formatUtil.formatNumber7(cellValue);
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
return cellValue;
|
|
155
|
+
},
|
|
156
|
+
},
|
|
96
157
|
};
|
|
97
158
|
</script>
|
|
98
159
|
|
|
@@ -20,12 +20,122 @@
|
|
|
20
20
|
placeholder="默认saveUpdatge"
|
|
21
21
|
></el-input>
|
|
22
22
|
</el-form-item>
|
|
23
|
+
<el-form-item label="全局参数配置">
|
|
24
|
+
<a
|
|
25
|
+
href="javascript:void(0);"
|
|
26
|
+
class="a-link link-oneLind"
|
|
27
|
+
@click="editFormEventHandler('globalConfig')"
|
|
28
|
+
>
|
|
29
|
+
<span>{{ formConfig.globalConfig }}</span>
|
|
30
|
+
<i class="el-icon-edit"></i>
|
|
31
|
+
</a>
|
|
32
|
+
</el-form-item>
|
|
33
|
+
<el-form-item :label="i18nt('designer.setting.globalFunctions')">
|
|
34
|
+
<a
|
|
35
|
+
href="javascript:void(0);"
|
|
36
|
+
class="a-link link-oneLind"
|
|
37
|
+
@click="editGlobalFunctions"
|
|
38
|
+
>
|
|
39
|
+
<span>{{ formConfig.functions }}</span>
|
|
40
|
+
<i class="el-icon-edit"></i>
|
|
41
|
+
</a>
|
|
42
|
+
</el-form-item>
|
|
43
|
+
<el-form-item :label="i18nt('designer.setting.formCss')">
|
|
44
|
+
<el-button type="info" icon="el-icon-edit" plain round @click="editFormCss">
|
|
45
|
+
{{ i18nt("designer.setting.addCss") }}
|
|
46
|
+
</el-button>
|
|
47
|
+
</el-form-item>
|
|
48
|
+
</el-collapse-item>
|
|
49
|
+
<el-collapse-item name="2" title="详情表单信息">
|
|
50
|
+
<el-form-item :label="i18nt('加载详情数据')">
|
|
51
|
+
<el-switch v-model="formConfig.isLoadEntity"></el-switch>
|
|
52
|
+
</el-form-item>
|
|
53
|
+
<el-form-item :label="i18nt('详情数据脚本编码')">
|
|
54
|
+
<el-input
|
|
55
|
+
type="text"
|
|
56
|
+
v-model="formConfig.formScriptCode"
|
|
57
|
+
placeholder="默认getOne"
|
|
58
|
+
></el-input>
|
|
59
|
+
</el-form-item>
|
|
60
|
+
<el-form-item :label="i18nt('详情数据脚本参数')">
|
|
61
|
+
<a
|
|
62
|
+
href="javascript:void(0);"
|
|
63
|
+
class="a-link link-oneLind"
|
|
64
|
+
@click="editFormScriptParam"
|
|
65
|
+
>
|
|
66
|
+
<span>{{ formConfig.formScriptParam }}</span>
|
|
67
|
+
<i class="el-icon-edit"></i>
|
|
68
|
+
</a>
|
|
69
|
+
</el-form-item>
|
|
70
|
+
<el-form-item :label="i18nt('详情数据脚本回调')">
|
|
71
|
+
<a
|
|
72
|
+
href="javascript:void(0);"
|
|
73
|
+
class="a-link link-oneLind"
|
|
74
|
+
@click="editFormScriptSuccess"
|
|
75
|
+
>
|
|
76
|
+
<span>{{ formConfig.formScriptSuccess }}</span>
|
|
77
|
+
<i class="el-icon-edit"></i>
|
|
78
|
+
</a>
|
|
79
|
+
</el-form-item>
|
|
80
|
+
<el-form-item :label="i18nt('查看页面表单编码')">
|
|
81
|
+
<el-input
|
|
82
|
+
class="search-input"
|
|
83
|
+
max="200"
|
|
84
|
+
v-model="formConfig.editFormCode"
|
|
85
|
+
@clear="
|
|
86
|
+
formConfig.editFormName = null;
|
|
87
|
+
$forceUpdate();
|
|
88
|
+
"
|
|
89
|
+
v-el-readonly
|
|
90
|
+
clearable
|
|
91
|
+
>
|
|
92
|
+
<i
|
|
93
|
+
slot="suffix"
|
|
94
|
+
class="el-input__icon el-icon-search"
|
|
95
|
+
@click="openFormTemplate(2)"
|
|
96
|
+
></i>
|
|
97
|
+
</el-input>
|
|
98
|
+
</el-form-item>
|
|
99
|
+
<el-form-item :label="i18nt('查看页面表单名称')">
|
|
100
|
+
{{ formConfig.editFormName }}
|
|
101
|
+
</el-form-item>
|
|
102
|
+
<el-form-item :label="i18nt('新增页面表单编码')">
|
|
103
|
+
<el-input
|
|
104
|
+
class="search-input"
|
|
105
|
+
max="200"
|
|
106
|
+
v-model="formConfig.addFormCode"
|
|
107
|
+
@clear="
|
|
108
|
+
formConfig.addFormCode = null;
|
|
109
|
+
$forceUpdate();
|
|
110
|
+
"
|
|
111
|
+
v-el-readonly
|
|
112
|
+
clearable
|
|
113
|
+
placeholder="默认使用查看表单编码"
|
|
114
|
+
>
|
|
115
|
+
<i
|
|
116
|
+
slot="suffix"
|
|
117
|
+
class="el-input__icon el-icon-search"
|
|
118
|
+
@click="openFormTemplate(1)"
|
|
119
|
+
></i>
|
|
120
|
+
</el-input>
|
|
121
|
+
</el-form-item>
|
|
122
|
+
<el-form-item :label="i18nt('新增页面表单名称')">
|
|
123
|
+
{{ formConfig.addFormName }}
|
|
124
|
+
</el-form-item>
|
|
125
|
+
</el-collapse-item>
|
|
126
|
+
<el-collapse-item name="3" title="流程信息">
|
|
23
127
|
<el-form-item :label="i18nt('启用流程')">
|
|
24
128
|
<el-switch
|
|
25
129
|
v-model="formConfig.wfEnabled"
|
|
26
130
|
@change="changeWfEnabled"
|
|
27
131
|
></el-switch>
|
|
28
132
|
</el-form-item>
|
|
133
|
+
<el-form-item :label="i18nt('默认流程单据类型名称')">
|
|
134
|
+
<el-input
|
|
135
|
+
type="text"
|
|
136
|
+
v-model="designer.vueInstance.reportTemplate.objTypeName"
|
|
137
|
+
></el-input>
|
|
138
|
+
</el-form-item>
|
|
29
139
|
<el-form-item>
|
|
30
140
|
<span slot="label"
|
|
31
141
|
>流程主题
|
|
@@ -33,13 +143,6 @@
|
|
|
33
143
|
title="流程主题说明"
|
|
34
144
|
path="static/readme/WfSubject.txt"
|
|
35
145
|
></scriptDescriptionButton>
|
|
36
|
-
<!-- <el-tooltip effect="light">
|
|
37
|
-
<i class="el-icon-info"></i>
|
|
38
|
-
<div slot="content" style="white-space: pre-wrap;">
|
|
39
|
-
{{tip1}}
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
</el-tooltip> -->
|
|
43
146
|
</span>
|
|
44
147
|
</el-form-item>
|
|
45
148
|
<div>
|
|
@@ -87,13 +190,6 @@
|
|
|
87
190
|
<i class="el-icon-edit"></i>
|
|
88
191
|
</a>
|
|
89
192
|
</el-form-item>
|
|
90
|
-
|
|
91
|
-
<el-form-item :label="i18nt('默认流程单据类型名称')">
|
|
92
|
-
<el-input
|
|
93
|
-
type="text"
|
|
94
|
-
v-model="designer.vueInstance.reportTemplate.objTypeName"
|
|
95
|
-
></el-input>
|
|
96
|
-
</el-form-item>
|
|
97
193
|
<el-form-item :label="i18nt('引用流程的表单编码')">
|
|
98
194
|
<el-input
|
|
99
195
|
type="text"
|
|
@@ -110,59 +206,8 @@
|
|
|
110
206
|
<i class="el-icon-edit"></i>
|
|
111
207
|
</a>
|
|
112
208
|
</el-form-item>
|
|
113
|
-
<!-- <el-form-item label="流程单据定义">
|
|
114
|
-
<a href="javascript:void(0);" class="a-link link-oneLind" @click="openWfObjConfigDialog">
|
|
115
|
-
<span>{{ wfObjConfigs.length ? '已维护' : null}}</span>
|
|
116
|
-
<i class="el-icon-edit"></i>
|
|
117
|
-
</a>
|
|
118
|
-
</el-form-item>-->
|
|
119
|
-
<el-form-item :label="i18nt('加载详情数据')">
|
|
120
|
-
<el-switch v-model="formConfig.isLoadEntity"></el-switch>
|
|
121
|
-
</el-form-item>
|
|
122
|
-
<el-form-item :label="i18nt('详情数据脚本编码')">
|
|
123
|
-
<el-input
|
|
124
|
-
type="text"
|
|
125
|
-
v-model="formConfig.formScriptCode"
|
|
126
|
-
placeholder="默认getOne"
|
|
127
|
-
></el-input>
|
|
128
|
-
</el-form-item>
|
|
129
|
-
<el-form-item :label="i18nt('详情数据脚本参数')">
|
|
130
|
-
<a
|
|
131
|
-
href="javascript:void(0);"
|
|
132
|
-
class="a-link link-oneLind"
|
|
133
|
-
@click="editFormScriptParam"
|
|
134
|
-
>
|
|
135
|
-
<span>{{ formConfig.formScriptParam }}</span>
|
|
136
|
-
<i class="el-icon-edit"></i>
|
|
137
|
-
</a>
|
|
138
|
-
</el-form-item>
|
|
139
|
-
<el-form-item :label="i18nt('详情数据脚本回调')">
|
|
140
|
-
<a
|
|
141
|
-
href="javascript:void(0);"
|
|
142
|
-
class="a-link link-oneLind"
|
|
143
|
-
@click="editFormScriptSuccess"
|
|
144
|
-
>
|
|
145
|
-
<span>{{ formConfig.formScriptSuccess }}</span>
|
|
146
|
-
<i class="el-icon-edit"></i>
|
|
147
|
-
</a>
|
|
148
|
-
</el-form-item>
|
|
149
|
-
<el-form-item :label="i18nt('designer.setting.globalFunctions')">
|
|
150
|
-
<a
|
|
151
|
-
href="javascript:void(0);"
|
|
152
|
-
class="a-link link-oneLind"
|
|
153
|
-
@click="editGlobalFunctions"
|
|
154
|
-
>
|
|
155
|
-
<span>{{ formConfig.functions }}</span>
|
|
156
|
-
<i class="el-icon-edit"></i>
|
|
157
|
-
</a>
|
|
158
|
-
</el-form-item>
|
|
159
|
-
<el-form-item :label="i18nt('designer.setting.formCss')">
|
|
160
|
-
<el-button type="info" icon="el-icon-edit" plain round @click="editFormCss">
|
|
161
|
-
{{ i18nt("designer.setting.addCss") }}
|
|
162
|
-
</el-button>
|
|
163
|
-
</el-form-item>
|
|
164
209
|
</el-collapse-item>
|
|
165
|
-
<el-collapse-item name="
|
|
210
|
+
<el-collapse-item name="4" title="列表标签页信息">
|
|
166
211
|
<el-form-item :label="i18nt('列表启用详情多标签')">
|
|
167
212
|
<el-switch v-model="formConfig.multiTabEnabled"></el-switch>
|
|
168
213
|
</el-form-item>
|
|
@@ -170,7 +215,7 @@
|
|
|
170
215
|
<el-input type="text" v-model="formConfig.multiTabLabelField"></el-input>
|
|
171
216
|
</el-form-item>
|
|
172
217
|
</el-collapse-item>
|
|
173
|
-
<el-collapse-item name="
|
|
218
|
+
<el-collapse-item name="5" title="其他标签页信息">
|
|
174
219
|
<el-form-item :label="i18nt('自定义列表标签名称')">
|
|
175
220
|
<el-input
|
|
176
221
|
type="text"
|
|
@@ -225,55 +270,7 @@
|
|
|
225
270
|
</div>
|
|
226
271
|
</el-form-item>
|
|
227
272
|
</el-collapse-item>
|
|
228
|
-
|
|
229
|
-
<el-collapse-item name="3" title="详情表单信息">
|
|
230
|
-
<el-form-item :label="i18nt('查看页面表单编码')">
|
|
231
|
-
<el-input
|
|
232
|
-
class="search-input"
|
|
233
|
-
max="200"
|
|
234
|
-
v-model="formConfig.editFormCode"
|
|
235
|
-
@clear="
|
|
236
|
-
formConfig.editFormName = null;
|
|
237
|
-
$forceUpdate();
|
|
238
|
-
"
|
|
239
|
-
v-el-readonly
|
|
240
|
-
clearable
|
|
241
|
-
>
|
|
242
|
-
<i
|
|
243
|
-
slot="suffix"
|
|
244
|
-
class="el-input__icon el-icon-search"
|
|
245
|
-
@click="openFormTemplate(2)"
|
|
246
|
-
></i>
|
|
247
|
-
</el-input>
|
|
248
|
-
</el-form-item>
|
|
249
|
-
<el-form-item :label="i18nt('查看页面表单名称')">
|
|
250
|
-
{{ formConfig.editFormName }}
|
|
251
|
-
</el-form-item>
|
|
252
|
-
<el-form-item :label="i18nt('新增页面表单编码')">
|
|
253
|
-
<el-input
|
|
254
|
-
class="search-input"
|
|
255
|
-
max="200"
|
|
256
|
-
v-model="formConfig.addFormCode"
|
|
257
|
-
@clear="
|
|
258
|
-
formConfig.addFormCode = null;
|
|
259
|
-
$forceUpdate();
|
|
260
|
-
"
|
|
261
|
-
v-el-readonly
|
|
262
|
-
clearable
|
|
263
|
-
placeholder="默认使用查看表单编码"
|
|
264
|
-
>
|
|
265
|
-
<i
|
|
266
|
-
slot="suffix"
|
|
267
|
-
class="el-input__icon el-icon-search"
|
|
268
|
-
@click="openFormTemplate(1)"
|
|
269
|
-
></i>
|
|
270
|
-
</el-input>
|
|
271
|
-
</el-form-item>
|
|
272
|
-
<el-form-item :label="i18nt('新增页面表单名称')">
|
|
273
|
-
{{ formConfig.addFormName }}
|
|
274
|
-
</el-form-item>
|
|
275
|
-
</el-collapse-item>
|
|
276
|
-
<el-collapse-item name="4" title="查询弹框展示信息">
|
|
273
|
+
<el-collapse-item name="6" title="查询弹框展示信息">
|
|
277
274
|
<el-form-item :label="i18nt('展示字段')">
|
|
278
275
|
<el-input
|
|
279
276
|
class="search-input"
|
|
@@ -296,7 +293,7 @@
|
|
|
296
293
|
|
|
297
294
|
<el-collapse-item
|
|
298
295
|
v-if="showEventCollapse()"
|
|
299
|
-
name="
|
|
296
|
+
name="7"
|
|
300
297
|
:title="i18nt('designer.setting.eventSetting')"
|
|
301
298
|
>
|
|
302
299
|
<!-- <el-form-item label="onBeforeCreated" label-width="150px">
|
|
@@ -316,6 +313,16 @@
|
|
|
316
313
|
<i class="el-icon-edit"></i>
|
|
317
314
|
</a>
|
|
318
315
|
</el-form-item>
|
|
316
|
+
<el-form-item label="onFormBeforeMounted" label-width="150px">
|
|
317
|
+
<a
|
|
318
|
+
href="javascript:void(0);"
|
|
319
|
+
class="a-link link-oneLind"
|
|
320
|
+
@click="editFormEventHandler('onFormBeforeMounted')"
|
|
321
|
+
>
|
|
322
|
+
<span>{{ formConfig.onFormBeforeMounted }}</span>
|
|
323
|
+
<i class="el-icon-edit"></i>
|
|
324
|
+
</a>
|
|
325
|
+
</el-form-item>
|
|
319
326
|
<el-form-item label="onFormMounted" label-width="150px">
|
|
320
327
|
<a
|
|
321
328
|
href="javascript:void(0);"
|
|
@@ -876,6 +883,7 @@ import {
|
|
|
876
883
|
import formTemplateDialog from "../../../../views/bd/setting/form_template/dialog.vue";
|
|
877
884
|
import wfObjConfigDialog from "./wfObjConfigDialog.vue";
|
|
878
885
|
import bdCompanyEnvDialog from "@base/views/bd/setting/bd_company_env/dialog";
|
|
886
|
+
import Draggable from "vuedraggable";
|
|
879
887
|
|
|
880
888
|
export default {
|
|
881
889
|
name: "form-setting",
|
|
@@ -884,6 +892,7 @@ export default {
|
|
|
884
892
|
formTemplateDialog,
|
|
885
893
|
wfObjConfigDialog,
|
|
886
894
|
bdCompanyEnvDialog,
|
|
895
|
+
Draggable,
|
|
887
896
|
},
|
|
888
897
|
props: {
|
|
889
898
|
designer: Object,
|
|
@@ -894,7 +903,7 @@ export default {
|
|
|
894
903
|
return {
|
|
895
904
|
designerConfig: this.getDesignerConfig(),
|
|
896
905
|
|
|
897
|
-
formActiveCollapseNames: ["1", "2"],
|
|
906
|
+
formActiveCollapseNames: ["1", "2", "7"],
|
|
898
907
|
|
|
899
908
|
formSizes: [
|
|
900
909
|
{ label: "default", value: "" },
|
|
@@ -918,10 +927,12 @@ export default {
|
|
|
918
927
|
eventParamsMap: {
|
|
919
928
|
onBeforeCreated: "onBeforeCreated(dataId,formCode,done) {",
|
|
920
929
|
onFormCreated: "onFormCreated(dataId,formCode) {",
|
|
930
|
+
onFormBeforeMounted: "onFormBeforeMounted(dataId,formCode, done) {",
|
|
921
931
|
onFormMounted: "onFormMounted(dataId,formCode) {",
|
|
922
932
|
onFormDataChange:
|
|
923
933
|
"onFormDataChange(fieldName, newValue, oldValue, formModel, subFormName, subFormRowIndex) {",
|
|
924
934
|
wfConfig: "wfConfig(dataId, formCode, formData) {",
|
|
935
|
+
globalConfig: "globalConfig(dataId, formCode) {",
|
|
925
936
|
//'onFormValidate': 'onFormValidate() {',
|
|
926
937
|
},
|
|
927
938
|
showVabsearchConfigDialog: false,
|
|
@@ -944,6 +955,8 @@ export default {
|
|
|
944
955
|
showBdCompanyEnvDialog1: false,
|
|
945
956
|
showBdCompanyEnvDialog2: false,
|
|
946
957
|
|
|
958
|
+
globalConfigParams: ["dataId", "formCode"],
|
|
959
|
+
|
|
947
960
|
tip1: `流程主题表达式设置说明。
|
|
948
961
|
|
|
949
962
|
1、可使用参数:
|
package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-form-item label="格式化"> </el-form-item>
|
|
4
|
+
<el-form-item label-width="0">
|
|
5
|
+
<el-select v-model="optionModel.formatType" clearable style="width: 100%">
|
|
6
|
+
<el-option-group v-for="t in op" :key="t.label" :label="t.label">
|
|
7
|
+
<el-option
|
|
8
|
+
v-for="e in t.options"
|
|
9
|
+
:key="e.value"
|
|
10
|
+
:value="e.value"
|
|
11
|
+
:label="e.label"
|
|
12
|
+
></el-option>
|
|
13
|
+
</el-option-group>
|
|
14
|
+
</el-select>
|
|
15
|
+
</el-form-item>
|
|
16
|
+
|
|
17
|
+
<el-form-item
|
|
18
|
+
:label="i18nt('自定义渲染处理')"
|
|
19
|
+
v-if="optionModel.formatType === 'render'"
|
|
20
|
+
>
|
|
21
|
+
<a
|
|
22
|
+
href="javascript:void(0);"
|
|
23
|
+
class="a-link link-oneLind"
|
|
24
|
+
@click="editEventHandler('renderHandle', funConfigParams)"
|
|
25
|
+
>
|
|
26
|
+
<span>{{ optionModel.renderHandle }}</span>
|
|
27
|
+
<i class="el-icon-edit"></i>
|
|
28
|
+
</a>
|
|
29
|
+
</el-form-item>
|
|
30
|
+
<el-form-item :label="i18nt('格式化小数位')" v-if="optionModel.formatType === 'n0'">
|
|
31
|
+
<el-input-number v-model="optionModel.formatDecimal" />
|
|
32
|
+
</el-form-item>
|
|
33
|
+
</div>
|
|
34
|
+
</template>
|
|
35
|
+
|
|
36
|
+
<script>
|
|
37
|
+
import i18n from "../../../../../components/xform/utils/i18n";
|
|
38
|
+
import eventMixin from "./event-handler/eventMixin";
|
|
39
|
+
export default {
|
|
40
|
+
name: "formatType-editor",
|
|
41
|
+
mixins: [i18n, eventMixin],
|
|
42
|
+
props: {
|
|
43
|
+
designer: Object,
|
|
44
|
+
selectedWidget: Object,
|
|
45
|
+
optionModel: Object,
|
|
46
|
+
},
|
|
47
|
+
data() {
|
|
48
|
+
return {
|
|
49
|
+
funConfigParams: ["dataId", "formCode"],
|
|
50
|
+
op: [
|
|
51
|
+
{
|
|
52
|
+
label: "自定义",
|
|
53
|
+
options: [
|
|
54
|
+
{
|
|
55
|
+
value: "render",
|
|
56
|
+
label: "自定义渲染",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: "业务",
|
|
62
|
+
options: [
|
|
63
|
+
{
|
|
64
|
+
value: "money",
|
|
65
|
+
label: "金额",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: "日期",
|
|
71
|
+
options: [
|
|
72
|
+
{
|
|
73
|
+
value: "d1",
|
|
74
|
+
label: "yyyy-MM-dd",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
value: "d2",
|
|
78
|
+
label: "yyyy/MM/dd",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
value: "d3",
|
|
82
|
+
label: "yyyy年MM月dd日",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
value: "d4",
|
|
86
|
+
label: "yyyy-MM-dd HH:mm:ss",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
value: "d5",
|
|
90
|
+
label: "yyyy-MM-dd hh:mm:ss",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: "数值",
|
|
96
|
+
options: [
|
|
97
|
+
{
|
|
98
|
+
value: "n0",
|
|
99
|
+
label: "自定义小数位",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
value: "n1",
|
|
103
|
+
label: "###,###,###,##0.######",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
value: "n2",
|
|
107
|
+
label: "###,###,###,##0.00####",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
value: "n3",
|
|
111
|
+
label: "###,###,###,##0.000000",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
value: "n4",
|
|
115
|
+
label: "###,###,###,##0.000",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
value: "n5",
|
|
119
|
+
label: "###,###,###,##0.00",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
value: "n6",
|
|
123
|
+
label: "###,###,###,##0",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
value: "n7",
|
|
127
|
+
label: "###,##0.00##%",
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
};
|
|
133
|
+
},
|
|
134
|
+
};
|
|
135
|
+
</script>
|
|
136
|
+
|
|
137
|
+
<style scoped></style>
|