cloud-web-corejs 1.0.163 → 1.0.165
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/vb-tabs/x-tabs.vue +30 -13
- package/src/components/xform/form-designer/designer.js +1 -1
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +419 -0
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +71 -50
- package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +799 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +102 -73
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +19 -1
- package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +41 -27
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +13 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +9 -2
- package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +133 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +962 -0
- package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +7 -2
- package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +7 -0
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +44 -27
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +19 -11
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +19 -1
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +11 -7
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +11 -8
- package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +106 -76
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +13 -263
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +47 -81
- package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -7
- 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/field-print-button/print-button-editor.vue +37 -16
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +42 -18
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +57 -34
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +84 -53
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +35 -44
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +68 -3
- package/src/components/xform/form-render/container-item/containerItemMixin.js +2 -2
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
- package/src/components/xform/form-render/container-item/tab-item.vue +64 -32
- package/src/components/xform/form-render/index.vue +69 -23
- package/src/components/xform/form-render/indexMixin.js +18 -17
- package/src/components/xform/lang/zh-CN.js +8 -2
- package/src/components/xform/utils/formula-util.js +306 -5
- package/src/components/xform/utils/util.js +1 -1
- package/src/components/xform/utils/vue2js-generator.js +2 -2
- package/src/utils/request.js +1 -1
- package/src/utils/vab.js +1 -1
- package/src/views/bd/setting/config_manage/list.vue +7 -0
- package/src/views/user/area/dialog.vue +223 -116
- package/src/views/user/area/list.vue +318 -0
- package/src/views/user/form/vform/render.vue +54 -36
- package/src/views/user/form/view/list.vue +103 -10
- package/src/views/user/menu/list.vue +24 -1
- 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
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-form-item label="onClick" label-width="150px">
|
|
3
|
-
<a
|
|
3
|
+
<a
|
|
4
|
+
href="javascript:void(0);"
|
|
5
|
+
class="a-link link-oneLind"
|
|
6
|
+
@click="editEventHandler('onClick', eventParams)"
|
|
7
|
+
>
|
|
4
8
|
<span>{{ optionModel.onClick }}</span>
|
|
5
9
|
<i class="el-icon-edit"></i>
|
|
6
10
|
</a>
|
|
@@ -24,15 +28,18 @@ export default {
|
|
|
24
28
|
// eventParams: ["id", "formCode"],
|
|
25
29
|
};
|
|
26
30
|
},
|
|
27
|
-
computed:{
|
|
28
|
-
eventParams(){
|
|
29
|
-
let eventParams = ["dataId", "formCode","event"];
|
|
31
|
+
computed: {
|
|
32
|
+
eventParams() {
|
|
33
|
+
let eventParams = ["dataId", "formCode", "event"];
|
|
30
34
|
if (this.optionModel.rowFlag) {
|
|
31
|
-
eventParams.push("row", "index","event");
|
|
35
|
+
eventParams.push("row", "index", "event");
|
|
36
|
+
}
|
|
37
|
+
if (this.selectedWidget.type == "census") {
|
|
38
|
+
eventParams.push("param");
|
|
32
39
|
}
|
|
33
40
|
return eventParams;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
41
|
+
},
|
|
42
|
+
},
|
|
36
43
|
};
|
|
37
44
|
</script>
|
|
38
45
|
|
|
@@ -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,6 +3,9 @@
|
|
|
3
3
|
<el-form-item label-width="0">
|
|
4
4
|
<el-divider class="custom-divider">打印设置</el-divider>
|
|
5
5
|
</el-form-item>
|
|
6
|
+
<!-- <el-form-item label="启用自定义按钮名称">
|
|
7
|
+
<el-switch v-model="optionModel.customLabelEnabled"></el-switch>
|
|
8
|
+
</el-form-item> -->
|
|
6
9
|
<el-form-item label="表格唯一名称">
|
|
7
10
|
<el-input v-model="optionModel.printTableRef"></el-input>
|
|
8
11
|
</el-form-item>
|
|
@@ -15,18 +18,38 @@
|
|
|
15
18
|
</el-form-item> -->
|
|
16
19
|
<el-form-item label="输出模板编码"></el-form-item>
|
|
17
20
|
<el-form-item label-width="0">
|
|
18
|
-
<draggable
|
|
19
|
-
|
|
21
|
+
<draggable
|
|
22
|
+
tag="ul"
|
|
23
|
+
class="draggable-box"
|
|
24
|
+
:list="optionModel.printItems"
|
|
25
|
+
v-bind="{ group: 'optionsGroup', ghostClass: 'ghost', handle: '.drag-option' }"
|
|
26
|
+
>
|
|
20
27
|
<li v-for="(item, index) in optionModel.printItems" :key="index" class="col-item">
|
|
21
28
|
<i class="el-icon-s-operation drag-option"></i>
|
|
22
|
-
<el-input
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
<el-input
|
|
30
|
+
v-model="item.code"
|
|
31
|
+
class="cell-span-input"
|
|
32
|
+
style="width: 160px !important"
|
|
33
|
+
></el-input>
|
|
34
|
+
<el-button
|
|
35
|
+
circle
|
|
36
|
+
plain
|
|
37
|
+
size="mini"
|
|
38
|
+
type="danger"
|
|
39
|
+
@click="deleteItem(index)"
|
|
40
|
+
icon="el-icon-minus"
|
|
41
|
+
class="col-delete-button"
|
|
42
|
+
style="position: unset"
|
|
43
|
+
></el-button>
|
|
25
44
|
</li>
|
|
26
45
|
</draggable>
|
|
27
46
|
<div>
|
|
28
|
-
<el-button
|
|
29
|
-
|
|
47
|
+
<el-button
|
|
48
|
+
type="text"
|
|
49
|
+
@click="addItem"
|
|
50
|
+
icon="el-icon-circle-plus-outline"
|
|
51
|
+
class="add-option"
|
|
52
|
+
>
|
|
30
53
|
新增
|
|
31
54
|
</el-button>
|
|
32
55
|
</div>
|
|
@@ -36,9 +59,8 @@
|
|
|
36
59
|
|
|
37
60
|
<script>
|
|
38
61
|
import i18n from "../../../../../../components/xform/utils/i18n";
|
|
39
|
-
import eventMixin
|
|
40
|
-
|
|
41
|
-
import Draggable from 'vuedraggable';
|
|
62
|
+
import eventMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
|
63
|
+
import Draggable from "vuedraggable";
|
|
42
64
|
|
|
43
65
|
export default {
|
|
44
66
|
name: "print-button-editor",
|
|
@@ -54,17 +76,17 @@ export default {
|
|
|
54
76
|
data() {
|
|
55
77
|
return {
|
|
56
78
|
eventParams: [],
|
|
57
|
-
printConditionParams: ["dataId", "formCode", "exportTemplate"]
|
|
79
|
+
printConditionParams: ["dataId", "formCode", "exportTemplate"],
|
|
58
80
|
};
|
|
59
81
|
},
|
|
60
82
|
methods: {
|
|
61
83
|
deleteItem(index) {
|
|
62
|
-
this.optionModel.printItems.splice(index, 1)
|
|
84
|
+
this.optionModel.printItems.splice(index, 1);
|
|
63
85
|
},
|
|
64
86
|
addItem() {
|
|
65
|
-
this.optionModel.printItems.push({code: null});
|
|
66
|
-
}
|
|
67
|
-
}
|
|
87
|
+
this.optionModel.printItems.push({ code: null });
|
|
88
|
+
},
|
|
89
|
+
},
|
|
68
90
|
};
|
|
69
91
|
</script>
|
|
70
92
|
|
|
@@ -91,4 +113,3 @@ li.ghost {
|
|
|
91
113
|
width: 100px;
|
|
92
114
|
}
|
|
93
115
|
</style>
|
|
94
|
-
|
|
@@ -3,27 +3,53 @@
|
|
|
3
3
|
<el-form-item label-width="0">
|
|
4
4
|
<el-divider class="custom-divider">详情打印设置</el-divider>
|
|
5
5
|
</el-form-item>
|
|
6
|
+
<!-- <el-form-item label="启用自定义按钮名称">
|
|
7
|
+
<el-switch v-model="optionModel.customLabelEnabled"></el-switch>
|
|
8
|
+
</el-form-item> -->
|
|
6
9
|
<el-form-item label="打印自定义条件参数">
|
|
7
|
-
<a
|
|
8
|
-
|
|
10
|
+
<a
|
|
11
|
+
href="javascript:void(0);"
|
|
12
|
+
class="a-link link-oneLind"
|
|
13
|
+
@click="editEventHandler('printCustomCondition', printConditionParams)"
|
|
14
|
+
>
|
|
9
15
|
<span>{{ optionModel.printCustomCondition }}</span>
|
|
10
16
|
<i class="el-icon-edit"></i>
|
|
11
17
|
</a>
|
|
12
18
|
</el-form-item>
|
|
13
19
|
<el-form-item label="输出模板编码"></el-form-item>
|
|
14
20
|
<el-form-item label-width="0">
|
|
15
|
-
<draggable
|
|
16
|
-
|
|
21
|
+
<draggable
|
|
22
|
+
tag="ul"
|
|
23
|
+
class="draggable-box"
|
|
24
|
+
:list="optionModel.printItems"
|
|
25
|
+
v-bind="{ group: 'optionsGroup', ghostClass: 'ghost', handle: '.drag-option' }"
|
|
26
|
+
>
|
|
17
27
|
<li v-for="(item, index) in optionModel.printItems" :key="index" class="col-item">
|
|
18
28
|
<i class="el-icon-s-operation drag-option"></i>
|
|
19
|
-
<el-input
|
|
20
|
-
|
|
21
|
-
|
|
29
|
+
<el-input
|
|
30
|
+
v-model="item.code"
|
|
31
|
+
class="cell-span-input"
|
|
32
|
+
style="width: 160px !important"
|
|
33
|
+
></el-input>
|
|
34
|
+
<el-button
|
|
35
|
+
circle
|
|
36
|
+
plain
|
|
37
|
+
size="mini"
|
|
38
|
+
type="danger"
|
|
39
|
+
@click="deleteItem(index)"
|
|
40
|
+
icon="el-icon-minus"
|
|
41
|
+
class="col-delete-button"
|
|
42
|
+
style="position: unset"
|
|
43
|
+
></el-button>
|
|
22
44
|
</li>
|
|
23
45
|
</draggable>
|
|
24
46
|
<div>
|
|
25
|
-
<el-button
|
|
26
|
-
|
|
47
|
+
<el-button
|
|
48
|
+
type="text"
|
|
49
|
+
@click="addItem"
|
|
50
|
+
icon="el-icon-circle-plus-outline"
|
|
51
|
+
class="add-option"
|
|
52
|
+
>
|
|
27
53
|
新增
|
|
28
54
|
</el-button>
|
|
29
55
|
</div>
|
|
@@ -33,9 +59,8 @@
|
|
|
33
59
|
|
|
34
60
|
<script>
|
|
35
61
|
import i18n from "../../../../../../components/xform/utils/i18n";
|
|
36
|
-
import eventMixin
|
|
37
|
-
|
|
38
|
-
import Draggable from 'vuedraggable';
|
|
62
|
+
import eventMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
|
63
|
+
import Draggable from "vuedraggable";
|
|
39
64
|
|
|
40
65
|
export default {
|
|
41
66
|
name: "print-detail-button-editor",
|
|
@@ -51,17 +76,17 @@ export default {
|
|
|
51
76
|
data() {
|
|
52
77
|
return {
|
|
53
78
|
eventParams: [],
|
|
54
|
-
printConditionParams: ["dataId", "formCode", "exportTemplate"]
|
|
79
|
+
printConditionParams: ["dataId", "formCode", "exportTemplate"],
|
|
55
80
|
};
|
|
56
81
|
},
|
|
57
82
|
methods: {
|
|
58
83
|
deleteItem(index) {
|
|
59
|
-
this.optionModel.printItems.splice(index, 1)
|
|
84
|
+
this.optionModel.printItems.splice(index, 1);
|
|
60
85
|
},
|
|
61
86
|
addItem() {
|
|
62
|
-
this.optionModel.printItems.push({code: null});
|
|
63
|
-
}
|
|
64
|
-
}
|
|
87
|
+
this.optionModel.printItems.push({ code: null });
|
|
88
|
+
},
|
|
89
|
+
},
|
|
65
90
|
};
|
|
66
91
|
</script>
|
|
67
92
|
|
|
@@ -88,4 +113,3 @@ li.ghost {
|
|
|
88
113
|
width: 100px;
|
|
89
114
|
}
|
|
90
115
|
</style>
|
|
91
|
-
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
<el-option :value="5" label="5"></el-option>
|
|
28
28
|
</el-select>
|
|
29
29
|
</el-form-item>
|
|
30
|
-
|
|
30
|
+
<el-form-item :label="i18nt('隐藏删除按钮')">
|
|
31
31
|
<el-switch v-model="optionModel.hideRemoveButton"></el-switch>
|
|
32
|
-
</el-form-item>
|
|
32
|
+
</el-form-item>
|
|
33
33
|
|
|
34
34
|
</div>
|
|
35
35
|
</template>
|
|
@@ -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>
|