cloud-web-corejs 1.0.54-dev.380 → 1.0.54-dev.381
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 -2
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +419 -0
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +963 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-gantt/gantt-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +57 -34
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +23 -1
- package/src/components/xform/lang/zh-CN.js +1 -0
- package/src/router/modules/customer.js +9 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-form-item label="自定义甘特图配置" label-width="150px">
|
|
4
|
+
<a
|
|
5
|
+
href="javascript:void(0);"
|
|
6
|
+
class="a-link link-oneLind"
|
|
7
|
+
@click="editEventHandler('ganttConfig', ganttConfigParams)"
|
|
8
|
+
>
|
|
9
|
+
<span>{{ optionModel.ganttConfig }}</span>
|
|
10
|
+
<i class="el-icon-edit"></i>
|
|
11
|
+
</a>
|
|
12
|
+
</el-form-item>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
import i18n from "../../../../../../components/xform/utils/i18n";
|
|
18
|
+
import eventMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
|
19
|
+
|
|
20
|
+
export default {
|
|
21
|
+
name: "gantt-editor",
|
|
22
|
+
mixins: [i18n, eventMixin],
|
|
23
|
+
props: {
|
|
24
|
+
designer: Object,
|
|
25
|
+
selectedWidget: Object,
|
|
26
|
+
optionModel: Object,
|
|
27
|
+
},
|
|
28
|
+
data() {
|
|
29
|
+
return {
|
|
30
|
+
ganttConfigParams: ["dataId", "formCode"],
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<style scoped></style>
|
|
@@ -3,28 +3,42 @@
|
|
|
3
3
|
<el-form-item label-width="0">
|
|
4
4
|
<el-divider class="custom-divider-margin-top">请求访问设置</el-divider>
|
|
5
5
|
</el-form-item>
|
|
6
|
-
<el-form-item
|
|
7
|
-
|
|
6
|
+
<el-form-item
|
|
7
|
+
label="启用请求后台脚本"
|
|
8
|
+
v-if="formScriptEnabledTypes.includes(selectedWidget.type)"
|
|
9
|
+
>
|
|
10
|
+
<el-switch
|
|
11
|
+
v-model="optionModel.formScriptEnabled"
|
|
12
|
+
@change="changeFormScriptEnabled"
|
|
13
|
+
></el-switch>
|
|
8
14
|
</el-form-item>
|
|
9
15
|
<template>
|
|
10
|
-
|
|
11
|
-
<!-- <el-form-item label="请求表单编码" v-if="optionModel.formScriptEnabled">
|
|
16
|
+
<!-- <el-form-item label="请求表单编码" v-if="optionModel.formScriptEnabled">
|
|
12
17
|
<el-input v-model="optionModel.httpFormCode" clearable></el-input>
|
|
13
18
|
</el-form-item>-->
|
|
14
19
|
<el-form-item label="表单脚本编码" v-if="optionModel.formScriptEnabled">
|
|
15
20
|
<el-input v-model="optionModel.formScriptCode" clearable></el-input>
|
|
16
21
|
</el-form-item>
|
|
17
|
-
<el-form-item
|
|
18
|
-
|
|
19
|
-
|
|
22
|
+
<el-form-item
|
|
23
|
+
label="查询参数"
|
|
24
|
+
v-if="optionModel.formScriptEnabled || optionModel.commonAttributeEnabled"
|
|
25
|
+
>
|
|
26
|
+
<a
|
|
27
|
+
href="javascript:void(0);"
|
|
28
|
+
class="a-link link-oneLind"
|
|
29
|
+
@click="editEventHandler('formScriptParam', ['dataId', 'formCode'])"
|
|
30
|
+
>
|
|
20
31
|
<span>{{ optionModel.formScriptParam }}</span>
|
|
21
32
|
<i class="el-icon-edit"></i>
|
|
22
33
|
</a>
|
|
23
34
|
</el-form-item>
|
|
24
35
|
</template>
|
|
25
|
-
<template
|
|
36
|
+
<template v-if="formScriptEnabledTypes.includes(selectedWidget.type)">
|
|
26
37
|
<el-form-item :label="i18nt('启用系统词汇')">
|
|
27
|
-
<el-switch
|
|
38
|
+
<el-switch
|
|
39
|
+
v-model="optionModel.commonAttributeEnabled"
|
|
40
|
+
@change="changeCommonAttributeEnabled"
|
|
41
|
+
></el-switch>
|
|
28
42
|
</el-form-item>
|
|
29
43
|
<el-form-item :label="i18nt('词汇编码')" v-if="optionModel.commonAttributeEnabled">
|
|
30
44
|
<el-input type="text" v-model="optionModel.commonAttributeCode"></el-input>
|
|
@@ -36,9 +50,15 @@
|
|
|
36
50
|
<el-input type="text" v-model="optionModel.valueKey" :disabled="optionModel.commonAttributeEnabled"></el-input>
|
|
37
51
|
</el-form-item> -->
|
|
38
52
|
</template>
|
|
39
|
-
<el-form-item
|
|
40
|
-
|
|
41
|
-
|
|
53
|
+
<el-form-item
|
|
54
|
+
label="查询回调"
|
|
55
|
+
v-if="optionModel.formScriptEnabled || optionModel.commonAttributeEnabled"
|
|
56
|
+
>
|
|
57
|
+
<a
|
|
58
|
+
href="javascript:void(0);"
|
|
59
|
+
class="a-link link-oneLind"
|
|
60
|
+
@click="editEventHandler('formScriptSuccess', ['dataId', 'formCode', 'res'])"
|
|
61
|
+
>
|
|
42
62
|
<span>{{ optionModel.formScriptSuccess }}</span>
|
|
43
63
|
<i class="el-icon-edit"></i>
|
|
44
64
|
</a>
|
|
@@ -47,9 +67,8 @@
|
|
|
47
67
|
</template>
|
|
48
68
|
|
|
49
69
|
<script>
|
|
50
|
-
import i18n from "../../../../../components/xform/utils/i18n"
|
|
51
|
-
import eventMixin
|
|
52
|
-
from "../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin"
|
|
70
|
+
import i18n from "../../../../../components/xform/utils/i18n";
|
|
71
|
+
import eventMixin from "../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
|
53
72
|
|
|
54
73
|
export default {
|
|
55
74
|
name: "formScriptEnabled-editor",
|
|
@@ -57,43 +76,47 @@ export default {
|
|
|
57
76
|
props: {
|
|
58
77
|
designer: Object,
|
|
59
78
|
selectedWidget: Object,
|
|
60
|
-
optionModel: Object
|
|
79
|
+
optionModel: Object,
|
|
61
80
|
},
|
|
62
81
|
data() {
|
|
63
82
|
return {
|
|
64
|
-
formScriptEnabledTypes: [
|
|
65
|
-
|
|
83
|
+
formScriptEnabledTypes: [
|
|
84
|
+
"select",
|
|
85
|
+
"checkbox",
|
|
86
|
+
"radio",
|
|
87
|
+
"census",
|
|
88
|
+
"status",
|
|
89
|
+
"gantt",
|
|
90
|
+
],
|
|
91
|
+
};
|
|
66
92
|
},
|
|
67
93
|
methods: {
|
|
68
94
|
getIsShow() {
|
|
69
|
-
return this.selectedWidget.type !==
|
|
95
|
+
return this.selectedWidget.type !== "data-table";
|
|
70
96
|
},
|
|
71
|
-
changeFormScriptEnabled(val){
|
|
72
|
-
if(val){
|
|
73
|
-
this.optionModel.commonAttributeEnabled = false
|
|
97
|
+
changeFormScriptEnabled(val) {
|
|
98
|
+
if (val) {
|
|
99
|
+
this.optionModel.commonAttributeEnabled = false;
|
|
74
100
|
}
|
|
75
101
|
this.handleLabelAndValueKey();
|
|
76
102
|
},
|
|
77
|
-
changeCommonAttributeEnabled(val){
|
|
78
|
-
if(val){
|
|
103
|
+
changeCommonAttributeEnabled(val) {
|
|
104
|
+
if (val) {
|
|
79
105
|
this.optionModel.formScriptEnabled = false;
|
|
80
106
|
}
|
|
81
107
|
this.handleLabelAndValueKey();
|
|
82
108
|
},
|
|
83
|
-
handleLabelAndValueKey(){
|
|
84
|
-
if(this.optionModel.commonAttributeEnabled){
|
|
109
|
+
handleLabelAndValueKey() {
|
|
110
|
+
if (this.optionModel.commonAttributeEnabled) {
|
|
85
111
|
this.optionModel.labelKey = "value";
|
|
86
112
|
this.optionModel.valueKey = "sn";
|
|
87
|
-
}else {
|
|
113
|
+
} else {
|
|
88
114
|
this.optionModel.labelKey = "label";
|
|
89
115
|
this.optionModel.valueKey = "value";
|
|
90
116
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
};
|
|
95
120
|
</script>
|
|
96
121
|
|
|
97
|
-
<style scoped>
|
|
98
|
-
|
|
99
|
-
</style>
|
|
122
|
+
<style scoped></style>
|
|
@@ -3399,7 +3399,29 @@ export const advancedFields = [
|
|
|
3399
3399
|
tableData: {},
|
|
3400
3400
|
},
|
|
3401
3401
|
},
|
|
3402
|
-
}
|
|
3402
|
+
},
|
|
3403
|
+
{
|
|
3404
|
+
type: "gantt",
|
|
3405
|
+
icon: "uploadbox",
|
|
3406
|
+
commonFlag: !0,
|
|
3407
|
+
formItemFlag: !1,
|
|
3408
|
+
options: {
|
|
3409
|
+
name: "",
|
|
3410
|
+
// label: "操作日志",
|
|
3411
|
+
// disabled: !1,
|
|
3412
|
+
hidden: !1,
|
|
3413
|
+
|
|
3414
|
+
...httpConfig,
|
|
3415
|
+
formScriptEnabled: true,
|
|
3416
|
+
formScriptCode: null,
|
|
3417
|
+
ganttConfig: "",
|
|
3418
|
+
|
|
3419
|
+
customClass: "",
|
|
3420
|
+
onCreated: "",
|
|
3421
|
+
onMounted: "",
|
|
3422
|
+
|
|
3423
|
+
},
|
|
3424
|
+
},
|
|
3403
3425
|
];
|
|
3404
3426
|
|
|
3405
3427
|
export const businessFields = [
|