cloud-web-corejs-haier 1.0.5 → 1.0.6
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 +7 -4
- package/src/App.vue +30 -34
- package/src/api/user.js +8 -0
- package/src/components/Tinymce/index.vue +112 -71
- package/src/components/VabUpload/image-viewer.vue +2 -2
- package/src/components/VabUpload/index.js +1 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/privateProfileDialogMixins.js +1 -1063
- package/src/components/VabUpload/view.vue +6 -2
- package/src/components/base-textarea/index.vue +104 -0
- 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/fileLibrary/fileObjAuthDialog.vue +179 -89
- package/src/components/fileLibrary/filterDialog.vue +45 -21
- package/src/components/fileLibrary/index.vue +579 -238
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +4 -1
- package/src/components/fileLibrary/mixins/indexMixins.js +3 -0
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/scriptTest/mixins.js +1 -1
- package/src/components/table/index.js +12 -12
- package/src/components/tempStorage/index.vue +1 -1
- package/src/components/vb-tabs/x-tabs.vue +0 -1
- package/src/components/wf/content.vue +32 -36
- package/src/components/wf/mixins/setCandidateDialog2.js +1 -1
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +131 -3
- package/src/components/wf/setCandidateDialog2.vue +76 -66
- package/src/components/wf/wf.js +2176 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +5 -1
- package/src/components/wf/wfStartDialog.vue +6 -10
- package/src/components/wf/wfUtil.js +279 -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 +132 -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/index.vue +8 -0
- package/src/components/xform/form-render/indexMixin copy.js +3462 -0
- package/src/components/xform/form-render/indexMixin.js +3496 -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/index.js +215 -190
- package/src/lang/index.js +56 -51
- package/src/lang/locale/en/login.js +20 -0
- package/src/lang/locale/zh/login.js +20 -0
- package/src/layout/components/Sidebar/default.vue +1423 -1266
- package/src/layout/components/TagsView/index.vue +37 -11
- package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
- package/src/layout/components/extractedCode/viewDialog.vue +1 -0
- package/src/layout/defaultLayout.vue +1 -1
- package/src/layout/index.vue +3 -5
- package/src/mixins/table/index.js +151 -0
- package/src/permission.js +1 -18
- package/src/router/modules/customer.js +3 -8
- package/src/store/getters.js +24 -23
- package/src/store/modules/user.js +1 -30
- package/src/utils/vab.js +1 -1
- package/src/views/bd/setting/config_manage/list.vue +36 -19
- package/src/views/bd/setting/form_script/edit.vue +9 -0
- package/src/views/bd/setting/form_script/edit1.vue +29 -3
- package/src/views/bd/setting/form_script/form_list.vue +99 -37
- package/src/views/bd/setting/form_script/list1.vue +181 -118
- package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +199 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
- package/src/views/bd/setting/form_script/mixins/list.js +236 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +410 -1
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
- package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/edit.vue +13 -0
- package/src/views/bd/setting/form_template/list.vue +326 -214
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +279 -1
- package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
- package/src/views/bd/setting/form_template/mixins/list.js +667 -3
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/logic_param/mixins/edit.js +1 -91
- package/src/views/bd/setting/logic_param/mixins/list.js +2 -362
- package/src/views/bd/setting/menu_kind/list.vue +172 -87
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -7
- package/src/views/bd/setting/table_model/edit.vue +345 -304
- package/src/views/bd/setting/table_model/list.vue +190 -128
- package/src/views/bd/setting/table_model/mixins/edit.js +1191 -1
- package/src/views/bd/setting/table_model/mixins/list.js +428 -2
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/user/access_log/list.vue +418 -349
- package/src/views/user/area/dialog.vue +223 -116
- package/src/views/user/area/list.vue +318 -0
- package/src/views/user/common_attribute/list.vue +4 -1
- package/src/views/user/extend_datasource/dialog.vue +3 -0
- package/src/views/user/extend_datasource/edit.vue +2 -1
- package/src/views/user/extend_datasource/list.vue +3 -0
- package/src/views/user/form/vform/designer.vue +2 -1
- package/src/views/user/home/bears/index.vue +1032 -0
- package/src/views/user/home/default.vue +6 -5
- package/src/views/user/home/taili/index.vue +1034 -0
- package/src/views/user/ledger_library/list.vue +10 -12
- package/src/views/user/login/default.vue +165 -36
- package/src/views/user/login/index.vue +4 -6
- package/src/views/user/login/indexMixin.js +184 -8
- package/src/views/user/menu/list.vue +24 -1
- package/src/views/user/notify_message/dialog.vue +2 -6
- package/src/views/user/outLink/index.vue +57 -18
- package/src/views/user/role/authConfig.vue +89 -0
- package/src/views/user/role/dialog.vue +70 -48
- package/src/views/user/role/edit.vue +114 -4
- package/src/views/user/user/form_dialog.vue +158 -0
- package/src/views/user/user/list.vue +652 -582
- package/src/views/user/user/modifyPasswordDialog.vue +64 -53
- package/src/views/user/wf/wfReport/index.vue +137 -28
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +15 -116
- package/src/views/user/wf/wf_obj_config/itemOperateDialog.vue +414 -0
- package/src/views/user/wf/wf_obj_config/list.vue +84 -78
- package/src/views/user/wf/wf_transfer_setting/edit.vue +52 -0
- package/src/views/user/wf/wf_transfer_setting/list.vue +10 -0
- package/src/components/xform/form-render/container-item/data-table-mixin2.js +0 -2169
- package/src/views/bd/setting/table_model/mixins/edit copy.js +0 -903
- package/src/views/user/login/index2.vue +0 -131
|
@@ -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,123 @@
|
|
|
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
|
+
formConfig.addFormName = null
|
|
110
|
+
$forceUpdate();
|
|
111
|
+
"
|
|
112
|
+
v-el-readonly
|
|
113
|
+
clearable
|
|
114
|
+
placeholder="默认使用查看表单编码"
|
|
115
|
+
>
|
|
116
|
+
<i
|
|
117
|
+
slot="suffix"
|
|
118
|
+
class="el-input__icon el-icon-search"
|
|
119
|
+
@click="openFormTemplate(1)"
|
|
120
|
+
></i>
|
|
121
|
+
</el-input>
|
|
122
|
+
</el-form-item>
|
|
123
|
+
<el-form-item :label="i18nt('新增页面表单名称')">
|
|
124
|
+
{{ formConfig.addFormName }}
|
|
125
|
+
</el-form-item>
|
|
126
|
+
</el-collapse-item>
|
|
127
|
+
<el-collapse-item name="3" title="流程信息">
|
|
23
128
|
<el-form-item :label="i18nt('启用流程')">
|
|
24
129
|
<el-switch
|
|
25
130
|
v-model="formConfig.wfEnabled"
|
|
26
131
|
@change="changeWfEnabled"
|
|
27
132
|
></el-switch>
|
|
28
133
|
</el-form-item>
|
|
134
|
+
<el-form-item :label="i18nt('默认流程单据类型名称')">
|
|
135
|
+
<el-input
|
|
136
|
+
type="text"
|
|
137
|
+
v-model="designer.vueInstance.reportTemplate.objTypeName"
|
|
138
|
+
></el-input>
|
|
139
|
+
</el-form-item>
|
|
29
140
|
<el-form-item>
|
|
30
141
|
<span slot="label"
|
|
31
142
|
>流程主题
|
|
@@ -33,13 +144,6 @@
|
|
|
33
144
|
title="流程主题说明"
|
|
34
145
|
path="static/readme/WfSubject.txt"
|
|
35
146
|
></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
147
|
</span>
|
|
44
148
|
</el-form-item>
|
|
45
149
|
<div>
|
|
@@ -87,13 +191,6 @@
|
|
|
87
191
|
<i class="el-icon-edit"></i>
|
|
88
192
|
</a>
|
|
89
193
|
</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
194
|
<el-form-item :label="i18nt('引用流程的表单编码')">
|
|
98
195
|
<el-input
|
|
99
196
|
type="text"
|
|
@@ -110,59 +207,8 @@
|
|
|
110
207
|
<i class="el-icon-edit"></i>
|
|
111
208
|
</a>
|
|
112
209
|
</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
210
|
</el-collapse-item>
|
|
165
|
-
<el-collapse-item name="
|
|
211
|
+
<el-collapse-item name="4" title="列表标签页信息">
|
|
166
212
|
<el-form-item :label="i18nt('列表启用详情多标签')">
|
|
167
213
|
<el-switch v-model="formConfig.multiTabEnabled"></el-switch>
|
|
168
214
|
</el-form-item>
|
|
@@ -170,7 +216,7 @@
|
|
|
170
216
|
<el-input type="text" v-model="formConfig.multiTabLabelField"></el-input>
|
|
171
217
|
</el-form-item>
|
|
172
218
|
</el-collapse-item>
|
|
173
|
-
<el-collapse-item name="
|
|
219
|
+
<el-collapse-item name="5" title="其他标签页信息">
|
|
174
220
|
<el-form-item :label="i18nt('自定义列表标签名称')">
|
|
175
221
|
<el-input
|
|
176
222
|
type="text"
|
|
@@ -225,55 +271,7 @@
|
|
|
225
271
|
</div>
|
|
226
272
|
</el-form-item>
|
|
227
273
|
</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="查询弹框展示信息">
|
|
274
|
+
<el-collapse-item name="6" title="查询弹框展示信息">
|
|
277
275
|
<el-form-item :label="i18nt('展示字段')">
|
|
278
276
|
<el-input
|
|
279
277
|
class="search-input"
|
|
@@ -296,7 +294,7 @@
|
|
|
296
294
|
|
|
297
295
|
<el-collapse-item
|
|
298
296
|
v-if="showEventCollapse()"
|
|
299
|
-
name="
|
|
297
|
+
name="7"
|
|
300
298
|
:title="i18nt('designer.setting.eventSetting')"
|
|
301
299
|
>
|
|
302
300
|
<!-- <el-form-item label="onBeforeCreated" label-width="150px">
|
|
@@ -316,6 +314,16 @@
|
|
|
316
314
|
<i class="el-icon-edit"></i>
|
|
317
315
|
</a>
|
|
318
316
|
</el-form-item>
|
|
317
|
+
<el-form-item label="onFormBeforeMounted" label-width="150px">
|
|
318
|
+
<a
|
|
319
|
+
href="javascript:void(0);"
|
|
320
|
+
class="a-link link-oneLind"
|
|
321
|
+
@click="editFormEventHandler('onFormBeforeMounted')"
|
|
322
|
+
>
|
|
323
|
+
<span>{{ formConfig.onFormBeforeMounted }}</span>
|
|
324
|
+
<i class="el-icon-edit"></i>
|
|
325
|
+
</a>
|
|
326
|
+
</el-form-item>
|
|
319
327
|
<el-form-item label="onFormMounted" label-width="150px">
|
|
320
328
|
<a
|
|
321
329
|
href="javascript:void(0);"
|
|
@@ -876,6 +884,7 @@ import {
|
|
|
876
884
|
import formTemplateDialog from "../../../../views/bd/setting/form_template/dialog.vue";
|
|
877
885
|
import wfObjConfigDialog from "./wfObjConfigDialog.vue";
|
|
878
886
|
import bdCompanyEnvDialog from "@base/views/bd/setting/bd_company_env/dialog";
|
|
887
|
+
import Draggable from "vuedraggable";
|
|
879
888
|
|
|
880
889
|
export default {
|
|
881
890
|
name: "form-setting",
|
|
@@ -884,6 +893,7 @@ export default {
|
|
|
884
893
|
formTemplateDialog,
|
|
885
894
|
wfObjConfigDialog,
|
|
886
895
|
bdCompanyEnvDialog,
|
|
896
|
+
Draggable,
|
|
887
897
|
},
|
|
888
898
|
props: {
|
|
889
899
|
designer: Object,
|
|
@@ -894,7 +904,7 @@ export default {
|
|
|
894
904
|
return {
|
|
895
905
|
designerConfig: this.getDesignerConfig(),
|
|
896
906
|
|
|
897
|
-
formActiveCollapseNames: ["1", "2"],
|
|
907
|
+
formActiveCollapseNames: ["1", "2", "7"],
|
|
898
908
|
|
|
899
909
|
formSizes: [
|
|
900
910
|
{ label: "default", value: "" },
|
|
@@ -918,10 +928,12 @@ export default {
|
|
|
918
928
|
eventParamsMap: {
|
|
919
929
|
onBeforeCreated: "onBeforeCreated(dataId,formCode,done) {",
|
|
920
930
|
onFormCreated: "onFormCreated(dataId,formCode) {",
|
|
931
|
+
onFormBeforeMounted: "onFormBeforeMounted(dataId,formCode, done) {",
|
|
921
932
|
onFormMounted: "onFormMounted(dataId,formCode) {",
|
|
922
933
|
onFormDataChange:
|
|
923
934
|
"onFormDataChange(fieldName, newValue, oldValue, formModel, subFormName, subFormRowIndex) {",
|
|
924
935
|
wfConfig: "wfConfig(dataId, formCode, formData) {",
|
|
936
|
+
globalConfig: "globalConfig(dataId, formCode) {",
|
|
925
937
|
//'onFormValidate': 'onFormValidate() {',
|
|
926
938
|
},
|
|
927
939
|
showVabsearchConfigDialog: false,
|
|
@@ -944,6 +956,8 @@ export default {
|
|
|
944
956
|
showBdCompanyEnvDialog1: false,
|
|
945
957
|
showBdCompanyEnvDialog2: false,
|
|
946
958
|
|
|
959
|
+
globalConfigParams: ["dataId", "formCode"],
|
|
960
|
+
|
|
947
961
|
tip1: `流程主题表达式设置说明。
|
|
948
962
|
|
|
949
963
|
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>
|