cloud-web-corejs-haier 1.0.3 → 1.0.4
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/table/index.js +1 -1
- package/src/components/table/vxeFilter/mixin.js +1 -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/importDialogMixin.js +8 -10
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +102 -73
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
- 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 +40 -28
- 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/import-button-widget.vue +19 -10
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +15 -6
- 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/form-widget/field-widget/vabUpload-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +41 -13
- 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/container-tree/tree-customClass-editor.vue +31 -2
- 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-import-button/import-button-editor.vue +54 -23
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +8 -1
- 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 +3 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +5 -1
- 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 +77 -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/container-item/tree-item.vue +32 -11
- 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/mixins/scriptHttp.js +1 -1
- 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/mixins/selectDialog/index.js +1 -1
- package/src/store/getters.js +23 -23
- package/src/store/modules/user.js +30 -30
- package/src/utils/request.js +1 -1
- package/src/utils/vab.js +1 -1
- package/src/views/user/form/vform/render.vue +54 -36
- package/src/views/user/form/view/list.vue +126 -11
- package/src/views/user/outLink/form_view.vue +4 -4
|
@@ -6,17 +6,46 @@
|
|
|
6
6
|
<el-option v-for="(item, idx) in cssClassList" :key="idx" :label="item" :value="item"></el-option>
|
|
7
7
|
</el-select>
|
|
8
8
|
</el-form-item>
|
|
9
|
+
<el-form-item label="禁用本地筛选">
|
|
10
|
+
<el-switch v-model="optionModel.disLocalFilter"></el-switch>
|
|
11
|
+
</el-form-item>
|
|
12
|
+
<el-form-item label="筛选类型">
|
|
13
|
+
<el-select v-model="optionModel.treeFilterType">
|
|
14
|
+
<el-option :value="0" label="文本"></el-option>
|
|
15
|
+
<el-option :value="1" label="日期"></el-option>
|
|
16
|
+
</el-select>
|
|
17
|
+
</el-form-item>
|
|
18
|
+
<el-form-item label="筛选图标点击事件">
|
|
19
|
+
<a
|
|
20
|
+
href="javascript:void(0);"
|
|
21
|
+
class="a-link link-oneLind"
|
|
22
|
+
@click="editEventHandler('onFilterIconClick', ['dataId', 'formCode','keyword'])"
|
|
23
|
+
>
|
|
24
|
+
<span>{{ optionModel.onFilterIconClick }}</span>
|
|
25
|
+
<i class="el-icon-edit"></i>
|
|
26
|
+
</a>
|
|
27
|
+
</el-form-item>
|
|
28
|
+
<el-form-item label="筛选内容值变化事件">
|
|
29
|
+
<a
|
|
30
|
+
href="javascript:void(0);"
|
|
31
|
+
class="a-link link-oneLind"
|
|
32
|
+
@click="editEventHandler('onFilterTextChange', ['dataId', 'formCode','keyword'])"
|
|
33
|
+
>
|
|
34
|
+
<span>{{ optionModel.onFilterTextChange }}</span>
|
|
35
|
+
<i class="el-icon-edit"></i>
|
|
36
|
+
</a>
|
|
37
|
+
</el-form-item>
|
|
9
38
|
</div>
|
|
10
39
|
</template>
|
|
11
40
|
<script>
|
|
12
41
|
import i18n from "../../../../../../components/xform/utils/i18n"
|
|
13
42
|
import {deepClone} from "../../../../../../components/xform/utils/util";
|
|
14
|
-
|
|
43
|
+
import eventMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
|
15
44
|
|
|
16
45
|
export default {
|
|
17
46
|
name: "tree-customClass-editor",
|
|
18
47
|
componentName: "PropertyEditor",
|
|
19
|
-
mixins: [i18n],
|
|
48
|
+
mixins: [i18n,eventMixin],
|
|
20
49
|
props: {
|
|
21
50
|
designer: Object,
|
|
22
51
|
selectedWidget: Object,
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-form-item label-width="0">
|
|
4
|
+
<el-divider class="custom-divider-margin-top">下载设置</el-divider>
|
|
5
|
+
</el-form-item>
|
|
6
|
+
<el-form-item label="表格唯一名称">
|
|
7
|
+
<el-input v-model="optionModel.dataTableName" clearable></el-input>
|
|
8
|
+
</el-form-item>
|
|
9
|
+
<el-form-item label="类型">
|
|
10
|
+
<el-input v-model="optionModel.attachmentType" clearable></el-input>
|
|
11
|
+
</el-form-item>
|
|
12
|
+
<el-form-item label="文件名">
|
|
13
|
+
<el-input v-model="optionModel.fileName" clearable></el-input>
|
|
14
|
+
</el-form-item>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
import i18n from "../../../../../components/xform/utils/i18n";
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
name: "downloadButtonFlag-editor",
|
|
23
|
+
mixins: [i18n],
|
|
24
|
+
props: {
|
|
25
|
+
designer: Object,
|
|
26
|
+
selectedWidget: Object,
|
|
27
|
+
optionModel: Object,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<style scoped></style>
|
|
@@ -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>
|
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
<el-input v-model="optionModel.importEntity"></el-input>
|
|
8
8
|
</el-form-item>
|
|
9
9
|
<el-form-item label="文件大小限制(M)">
|
|
10
|
-
<base-input-number
|
|
10
|
+
<base-input-number
|
|
11
|
+
v-model="optionModel.importFileLimitSize"
|
|
12
|
+
:max="200"
|
|
13
|
+
></base-input-number>
|
|
11
14
|
</el-form-item>
|
|
12
15
|
<el-form-item label="导入模板文件编码">
|
|
13
16
|
<el-input
|
|
@@ -15,41 +18,66 @@
|
|
|
15
18
|
max="200"
|
|
16
19
|
:value="optionModel.importAttachCode"
|
|
17
20
|
clearable
|
|
18
|
-
@clear="
|
|
21
|
+
@clear="
|
|
22
|
+
optionModel.importAttachCode = null;
|
|
23
|
+
optionModel.importAttachName = null;
|
|
24
|
+
"
|
|
19
25
|
>
|
|
20
|
-
<i
|
|
26
|
+
<i
|
|
27
|
+
slot="suffix"
|
|
28
|
+
class="el-input__icon el-icon-search"
|
|
29
|
+
@click="showBdAttachSettingDialog = true"
|
|
30
|
+
></i>
|
|
21
31
|
</el-input>
|
|
22
32
|
</el-form-item>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
<el-form-item label="导入模板文件名称">
|
|
34
|
+
<span>{{ optionModel.importAttachName }}</span>
|
|
35
|
+
</el-form-item>
|
|
26
36
|
<el-form-item label="关联表格唯一名称">
|
|
27
37
|
<el-input v-model="optionModel.tableRef"></el-input>
|
|
28
38
|
</el-form-item>
|
|
29
39
|
<el-form-item label="执行后台脚本编码">
|
|
30
40
|
<el-input v-model="optionModel.importScriptCode"></el-input>
|
|
31
41
|
</el-form-item>
|
|
42
|
+
<el-form-item label="多sheet导入">
|
|
43
|
+
<el-switch v-model="optionModel.multipleSheet"></el-switch>
|
|
44
|
+
</el-form-item>
|
|
32
45
|
<el-form-item label="批量导入">
|
|
33
46
|
<el-switch v-model="optionModel.importMultiple"></el-switch>
|
|
34
47
|
</el-form-item>
|
|
35
48
|
<el-form-item label="批量导入大小">
|
|
36
|
-
<base-input-number
|
|
49
|
+
<base-input-number
|
|
50
|
+
v-model="optionModel.importMultiSize"
|
|
51
|
+
:max="200"
|
|
52
|
+
></base-input-number>
|
|
53
|
+
</el-form-item>
|
|
54
|
+
<el-form-item label="点击前置事件" label-width="150px">
|
|
55
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
56
|
+
@click="editEventHandler('onBeforeClickButton', eventParams)">
|
|
57
|
+
<span>{{ optionModel.onBeforeClickButton }}</span>
|
|
58
|
+
<i class="el-icon-edit"></i>
|
|
59
|
+
</a>
|
|
37
60
|
</el-form-item>
|
|
38
|
-
|
|
39
61
|
<el-form-item label="启用图片处理">
|
|
40
62
|
<el-switch v-model="optionModel.enabledImportPreHandle"></el-switch>
|
|
41
63
|
</el-form-item>
|
|
42
64
|
<el-form-item label="导入前数据处理" label-width="150px">
|
|
43
|
-
<a
|
|
44
|
-
|
|
65
|
+
<a
|
|
66
|
+
href="javascript:void(0);"
|
|
67
|
+
class="a-link link-oneLind"
|
|
68
|
+
@click="editEventHandler('onBeforeImport', onBeforeImportParams)"
|
|
69
|
+
>
|
|
45
70
|
<span>{{ optionModel.onBeforeImport }}</span>
|
|
46
71
|
<i class="el-icon-edit"></i>
|
|
47
72
|
</a>
|
|
48
73
|
</el-form-item>
|
|
49
74
|
|
|
50
75
|
<el-form-item label="导入完成回调" label-width="150px">
|
|
51
|
-
<a
|
|
52
|
-
|
|
76
|
+
<a
|
|
77
|
+
href="javascript:void(0);"
|
|
78
|
+
class="a-link link-oneLind"
|
|
79
|
+
@click="editEventHandler('onSuccessImport', onSuccessImportParams)"
|
|
80
|
+
>
|
|
53
81
|
<span>{{ optionModel.onSuccessImport }}</span>
|
|
54
82
|
<i class="el-icon-edit"></i>
|
|
55
83
|
</a>
|
|
@@ -58,20 +86,23 @@
|
|
|
58
86
|
<el-switch v-model="optionModel.hideCancelButton"></el-switch>
|
|
59
87
|
</el-form-item>
|
|
60
88
|
|
|
61
|
-
<bdAttachSettingDialog
|
|
62
|
-
|
|
89
|
+
<bdAttachSettingDialog
|
|
90
|
+
v-if="showBdAttachSettingDialog"
|
|
91
|
+
:visiable.sync="showBdAttachSettingDialog"
|
|
92
|
+
:multi="false"
|
|
93
|
+
@confirm="confirmBdAttachSettingDialog"
|
|
94
|
+
></bdAttachSettingDialog>
|
|
63
95
|
</div>
|
|
64
96
|
</template>
|
|
65
97
|
|
|
66
98
|
<script>
|
|
67
99
|
import i18n from "../../../../../../components/xform/utils/i18n";
|
|
68
|
-
import eventMixin
|
|
69
|
-
from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
|
100
|
+
import eventMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
|
70
101
|
import bdAttachSettingDialog from "../../../../../../views/bd/setting/bd_attach_setting/dialog.vue";
|
|
71
102
|
|
|
72
103
|
export default {
|
|
73
104
|
name: "import-button-editor",
|
|
74
|
-
components: {bdAttachSettingDialog},
|
|
105
|
+
components: { bdAttachSettingDialog },
|
|
75
106
|
mixins: [i18n, eventMixin],
|
|
76
107
|
props: {
|
|
77
108
|
designer: Object,
|
|
@@ -80,11 +111,11 @@ export default {
|
|
|
80
111
|
},
|
|
81
112
|
data() {
|
|
82
113
|
return {
|
|
83
|
-
eventParams: [],
|
|
114
|
+
eventParams: ["dataId", "formCode", "done"],
|
|
84
115
|
showBdAttachSettingDialog: false,
|
|
85
|
-
onBeforeImportParams: ["dataId", "formCode",
|
|
86
|
-
onConfirmImportParams: ["dataId", "formCode",
|
|
87
|
-
onSuccessImportParams: ["dataId", "formCode",
|
|
116
|
+
onBeforeImportParams: ["dataId", "formCode", "file", "resultData", "done"],
|
|
117
|
+
onConfirmImportParams: ["dataId", "formCode", "resultData", "file", "done"],
|
|
118
|
+
onSuccessImportParams: ["dataId", "formCode", "resultData", "file"],
|
|
88
119
|
};
|
|
89
120
|
},
|
|
90
121
|
methods: {
|
|
@@ -94,8 +125,8 @@ export default {
|
|
|
94
125
|
this.optionModel.importAttachName = row.name;
|
|
95
126
|
this.optionModel.importAttachCode = row.code;
|
|
96
127
|
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
128
|
+
},
|
|
129
|
+
},
|
|
99
130
|
};
|
|
100
131
|
</script>
|
|
101
132
|
|
|
@@ -24,6 +24,13 @@
|
|
|
24
24
|
<el-form-item label="关联表格唯一名称">
|
|
25
25
|
<el-input v-model="optionModel.tableRef"></el-input>
|
|
26
26
|
</el-form-item>
|
|
27
|
+
<el-form-item label="点击前置事件" label-width="150px">
|
|
28
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
29
|
+
@click="editEventHandler('onBeforeClickButton', eventParams)">
|
|
30
|
+
<span>{{ optionModel.onBeforeClickButton }}</span>
|
|
31
|
+
<i class="el-icon-edit"></i>
|
|
32
|
+
</a>
|
|
33
|
+
</el-form-item>
|
|
27
34
|
<el-form-item label="启用确认回调">
|
|
28
35
|
<el-switch v-model="optionModel.onConfirmImportEnabled"></el-switch>
|
|
29
36
|
</el-form-item>
|
|
@@ -67,7 +74,7 @@ export default {
|
|
|
67
74
|
},
|
|
68
75
|
data() {
|
|
69
76
|
return {
|
|
70
|
-
eventParams: [],
|
|
77
|
+
eventParams: ["dataId", "formCode", "done"],
|
|
71
78
|
showBdAttachSettingDialog: false,
|
|
72
79
|
onBeforeImportParams: ["dataId", "formCode", 'file', 'resultData', 'done'],
|
|
73
80
|
onConfirmImportParams: ["dataId", "formCode", 'resultData', 'file', 'done'],
|
|
@@ -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
|
-
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<a
|
|
22
22
|
href="javascript:void(0);"
|
|
23
23
|
class="a-link link-oneLind"
|
|
24
|
-
@click="editEventHandler('vabupload2_deleteParam',
|
|
24
|
+
@click="editEventHandler('vabupload2_deleteParam', deleteParam)"
|
|
25
25
|
>
|
|
26
26
|
<span>{{ optionModel.vabupload2_deleteParam }}</span>
|
|
27
27
|
<i class="el-icon-edit"></i>
|
|
@@ -37,6 +37,9 @@
|
|
|
37
37
|
<i class="el-icon-edit"></i>
|
|
38
38
|
</a>
|
|
39
39
|
</el-form-item>
|
|
40
|
+
<el-form-item :label="i18nt('隐藏删除按钮')">
|
|
41
|
+
<el-switch v-model="optionModel.hideRemoveButton"></el-switch>
|
|
42
|
+
</el-form-item>
|
|
40
43
|
</div>
|
|
41
44
|
</template>
|
|
42
45
|
|
|
@@ -54,6 +57,7 @@ export default {
|
|
|
54
57
|
data() {
|
|
55
58
|
return {
|
|
56
59
|
params: ["dataId", "formCode"],
|
|
60
|
+
deleteParam: ["dataId", "formCode", "param"],
|
|
57
61
|
};
|
|
58
62
|
},
|
|
59
63
|
};
|