cloud-web-corejs 1.0.54-dev.314 → 1.0.54-dev.316
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 +1 -1
- package/src/components/baseInputExport/mixins.js +388 -1
- package/src/components/wf/add0pinionButton.vue +102 -0
- package/src/components/wf/content.vue +18 -5
- package/src/components/wf/mixins/setCandidateButton.js +161 -0
- package/src/components/wf/mixins/setCandidateDialog.js +1 -1
- package/src/components/wf/mixins/setCandidateDialog2.js +6 -0
- package/src/components/wf/setCandidateButton.vue +40 -0
- package/src/components/wf/setCandidateDialog2.vue +3 -228
- package/src/components/wf/wf.js +2068 -1
- package/src/components/wf/wfTaskUserRangeDialog.vue +9 -1
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1547 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +108 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +3 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +8 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +91 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -1
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +43 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +2416 -1
- package/src/components/xform/lang/zh-CN.js +1 -0
- package/src/components/xform/mixins/scriptHttp.js +172 -1
- package/src/views/user/form/vform/render.vue +1 -1
- package/src/views/user/home/default2.vue +1035 -0
- package/src/views/user/home/taili/index.vue +1024 -0
- package/src/views/user/notify_message/dialog.vue +22 -7
- package/src/views/user/outLink/form_view.vue +211 -211
@@ -9,7 +9,7 @@
|
|
9
9
|
<span>{{ $t1('导出/打印') }}</span><span class="line"></span> <i class="el-icon-arrow-down el-icon--right"></i>
|
10
10
|
</el-button>
|
11
11
|
</el-dropdown>
|
12
|
-
<base-input-export :option="exportOption" :parent-target="
|
12
|
+
<base-input-export :option="exportOption" :parent-target="getFormRef()" :disabled="field.options.disabled" v-else/>
|
13
13
|
</static-content-wrapper>
|
14
14
|
|
15
15
|
</template>
|
package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue
ADDED
@@ -0,0 +1,108 @@
|
|
1
|
+
<template>
|
2
|
+
<static-content-wrapper
|
3
|
+
:designer="designer"
|
4
|
+
:field="field"
|
5
|
+
:design-state="designState"
|
6
|
+
:display-style="field.options.displayStyle"
|
7
|
+
:parent-widget="parentWidget"
|
8
|
+
:parent-list="parentList"
|
9
|
+
:index-of-parent-list="indexOfParentList"
|
10
|
+
>
|
11
|
+
<el-dropdown
|
12
|
+
trigger="hover"
|
13
|
+
v-if="designState"
|
14
|
+
:disabled="field.options.disabled"
|
15
|
+
>
|
16
|
+
<el-button type="primary" class="button-sty" size="mini">
|
17
|
+
<span>{{ $t1("导出/打印") }}</span
|
18
|
+
><span class="line"></span>
|
19
|
+
<i class="el-icon-arrow-down el-icon--right"></i>
|
20
|
+
</el-button>
|
21
|
+
</el-dropdown>
|
22
|
+
<base-input-export
|
23
|
+
:option="exportOption"
|
24
|
+
:parent-target="getFormRef()"
|
25
|
+
:disabled="field.options.disabled"
|
26
|
+
v-else
|
27
|
+
/>
|
28
|
+
</static-content-wrapper>
|
29
|
+
</template>
|
30
|
+
<script>
|
31
|
+
import emitter from "../../../../../components/xform/utils/emitter";
|
32
|
+
import i18n from "../../../../../components/xform/utils/i18n";
|
33
|
+
import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
|
34
|
+
import StaticContentWrapper from "../../../../../components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue";
|
35
|
+
|
36
|
+
export default {
|
37
|
+
name: "print-detail-button-widget",
|
38
|
+
components: { StaticContentWrapper },
|
39
|
+
componentName: "FieldWidget", //必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
40
|
+
mixins: [emitter, fieldMixin, i18n],
|
41
|
+
props: {
|
42
|
+
field: Object,
|
43
|
+
parentWidget: Object,
|
44
|
+
parentList: Array,
|
45
|
+
indexOfParentList: Number,
|
46
|
+
designer: Object,
|
47
|
+
designState: {
|
48
|
+
type: Boolean,
|
49
|
+
default: false,
|
50
|
+
},
|
51
|
+
},
|
52
|
+
data() {
|
53
|
+
return {
|
54
|
+
exportOption: {},
|
55
|
+
};
|
56
|
+
},
|
57
|
+
beforeCreate() {
|
58
|
+
/* 这里不能访问方法和属性!! */
|
59
|
+
},
|
60
|
+
created() {
|
61
|
+
this.init();
|
62
|
+
/* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
|
63
|
+
需要在父组件created中初始化!! */
|
64
|
+
this.registerToRefList();
|
65
|
+
this.initEventHandler();
|
66
|
+
|
67
|
+
this.handleOnCreated();
|
68
|
+
},
|
69
|
+
|
70
|
+
mounted() {
|
71
|
+
this.handleOnMounted();
|
72
|
+
},
|
73
|
+
|
74
|
+
beforeDestroy() {
|
75
|
+
this.unregisterFromRefList();
|
76
|
+
},
|
77
|
+
|
78
|
+
methods: {
|
79
|
+
init() {
|
80
|
+
if (this.designState) return;
|
81
|
+
let prefix = "/" + this.getFormRef().reportTemplate.serviceName;
|
82
|
+
// let printOption = this.handleCustomEvent(this.field.options.printOption);
|
83
|
+
let codes = this.field.options.printItems
|
84
|
+
.filter((item) => !!item.code)
|
85
|
+
.map((item) => item.code);
|
86
|
+
let option = {
|
87
|
+
prefix: prefix,
|
88
|
+
codes,
|
89
|
+
customCondition:(exportTemplate)=>{
|
90
|
+
let param = {
|
91
|
+
formData: [this.formModel]
|
92
|
+
};
|
93
|
+
if (this.field.options.printCustomCondition) {
|
94
|
+
let param1 = this.handleCustomEvent(this.field.options.printCustomCondition,['exportTemplate'],[exportTemplate]);
|
95
|
+
if(param1)param = param1;
|
96
|
+
}
|
97
|
+
return param;
|
98
|
+
}
|
99
|
+
};
|
100
|
+
this.exportOption = option;
|
101
|
+
},
|
102
|
+
},
|
103
|
+
};
|
104
|
+
</script>
|
105
|
+
|
106
|
+
<style lang="scss" scoped>
|
107
|
+
@import "~@/styles/global.scss"; //* static-content-wrapper已引入,还需要重复引入吗? *//
|
108
|
+
</style>
|
@@ -31,7 +31,9 @@
|
|
31
31
|
<el-form-item :label="i18nt('是否隐藏复选框')">
|
32
32
|
<el-switch v-model="optionModel.hideGridCheckBox"></el-switch>
|
33
33
|
</el-form-item>
|
34
|
-
|
34
|
+
<el-form-item label="是否查询总页数">
|
35
|
+
<el-switch v-model="!optionModel.isNotQueryAllPage"></el-switch>
|
36
|
+
</el-form-item>
|
35
37
|
<el-form-item label="默认每页查询数">
|
36
38
|
<base-input-number v-model="optionModel.gridPageSize" size="mini" :min="1" :max="10000"/>
|
37
39
|
</el-form-item>
|
@@ -6,6 +6,13 @@
|
|
6
6
|
<el-form-item label="表格唯一名称">
|
7
7
|
<el-input v-model="optionModel.printTableRef"></el-input>
|
8
8
|
</el-form-item>
|
9
|
+
<el-form-item label="打印自定义条件参数">
|
10
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
11
|
+
@click="editEventHandler('printCustomCondition', printConditionParams)">
|
12
|
+
<span>{{ optionModel.printCustomCondition }}</span>
|
13
|
+
<i class="el-icon-edit"></i>
|
14
|
+
</a>
|
15
|
+
</el-form-item>
|
9
16
|
<el-form-item label="输出模板编码"></el-form-item>
|
10
17
|
<el-form-item label-width="0">
|
11
18
|
<draggable tag="ul" class="draggable-box" :list="optionModel.printItems"
|
@@ -47,6 +54,7 @@ export default {
|
|
47
54
|
data() {
|
48
55
|
return {
|
49
56
|
eventParams: [],
|
57
|
+
printConditionParams: ["dataId", "formCode", exportTemplate]
|
50
58
|
};
|
51
59
|
},
|
52
60
|
methods: {
|
@@ -0,0 +1,91 @@
|
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<el-form-item label-width="0">
|
4
|
+
<el-divider class="custom-divider">详情打印设置</el-divider>
|
5
|
+
</el-form-item>
|
6
|
+
<el-form-item label="打印自定义条件参数">
|
7
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
8
|
+
@click="editEventHandler('printCustomCondition', printConditionParams)">
|
9
|
+
<span>{{ optionModel.printCustomCondition }}</span>
|
10
|
+
<i class="el-icon-edit"></i>
|
11
|
+
</a>
|
12
|
+
</el-form-item>
|
13
|
+
<el-form-item label="输出模板编码"></el-form-item>
|
14
|
+
<el-form-item label-width="0">
|
15
|
+
<draggable tag="ul" class="draggable-box" :list="optionModel.printItems"
|
16
|
+
v-bind="{ group: 'optionsGroup', ghostClass: 'ghost', handle: '.drag-option' }">
|
17
|
+
<li v-for="(item, index) in optionModel.printItems" :key="index" class="col-item">
|
18
|
+
<i class="el-icon-s-operation drag-option"></i>
|
19
|
+
<el-input v-model="item.code" class="cell-span-input" style="width: 160px !important;"></el-input>
|
20
|
+
<el-button circle plain size="mini" type="danger" @click="deleteItem(index)"
|
21
|
+
icon="el-icon-minus" class="col-delete-button" style="position: unset;"></el-button>
|
22
|
+
</li>
|
23
|
+
</draggable>
|
24
|
+
<div>
|
25
|
+
<el-button type="text" @click="addItem" icon="el-icon-circle-plus-outline"
|
26
|
+
class="add-option">
|
27
|
+
新增
|
28
|
+
</el-button>
|
29
|
+
</div>
|
30
|
+
</el-form-item>
|
31
|
+
</div>
|
32
|
+
</template>
|
33
|
+
|
34
|
+
<script>
|
35
|
+
import i18n from "../../../../../../components/xform/utils/i18n";
|
36
|
+
import eventMixin
|
37
|
+
from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
38
|
+
import Draggable from 'vuedraggable';
|
39
|
+
|
40
|
+
export default {
|
41
|
+
name: "print-detail-button-editor",
|
42
|
+
mixins: [i18n, eventMixin],
|
43
|
+
components: {
|
44
|
+
Draggable,
|
45
|
+
},
|
46
|
+
props: {
|
47
|
+
designer: Object,
|
48
|
+
selectedWidget: Object,
|
49
|
+
optionModel: Object,
|
50
|
+
},
|
51
|
+
data() {
|
52
|
+
return {
|
53
|
+
eventParams: [],
|
54
|
+
printConditionParams: ["dataId", "formCode", exportTemplate]
|
55
|
+
};
|
56
|
+
},
|
57
|
+
methods: {
|
58
|
+
deleteItem(index) {
|
59
|
+
this.optionModel.printItems.splice(index, 1)
|
60
|
+
},
|
61
|
+
addItem() {
|
62
|
+
this.optionModel.printItems.push({code: null});
|
63
|
+
}
|
64
|
+
}
|
65
|
+
};
|
66
|
+
</script>
|
67
|
+
|
68
|
+
<style lang="scss" scoped>
|
69
|
+
.option-items-pane ul {
|
70
|
+
padding-inline-start: 6px;
|
71
|
+
padding-left: 6px; /* 重置IE11默认样式 */
|
72
|
+
}
|
73
|
+
|
74
|
+
li.ghost {
|
75
|
+
background: #fff;
|
76
|
+
border: 2px dotted $--color-primary;
|
77
|
+
}
|
78
|
+
|
79
|
+
.drag-option {
|
80
|
+
cursor: move;
|
81
|
+
}
|
82
|
+
|
83
|
+
.small-padding-dialog ::v-deep .el-dialog__body {
|
84
|
+
padding: 10px 15px;
|
85
|
+
}
|
86
|
+
|
87
|
+
.dialog-footer .el-button {
|
88
|
+
width: 100px;
|
89
|
+
}
|
90
|
+
</style>
|
91
|
+
|
@@ -149,7 +149,8 @@ const COMMON_PROPERTIES = {
|
|
149
149
|
selectExportFlag: "select-export-button-editor",
|
150
150
|
importEntity: "import-button-editor",
|
151
151
|
frontImportFlag: "import2-button-editor",
|
152
|
-
|
152
|
+
printButtonFlag: "print-button-editor",
|
153
|
+
printDetailButtonFlag: "print-detail-button-editor",
|
153
154
|
statusParam: "field-status-editor",
|
154
155
|
// searchDialogEventEnabled: "search-dialog-event-editor"
|
155
156
|
clickBindEvent: "clickBindEvent-editor",
|
@@ -299,6 +299,7 @@ export const containers = [
|
|
299
299
|
showRuleEnabled: 1,
|
300
300
|
showRules: [],
|
301
301
|
hideGridCheckBox: false,
|
302
|
+
isNotQueryAllPage: false,
|
302
303
|
},
|
303
304
|
},
|
304
305
|
/*{
|
@@ -3132,8 +3133,50 @@ export const advancedFields = [
|
|
3132
3133
|
},
|
3133
3134
|
...defaultWfConfig,
|
3134
3135
|
...defaultWidgetShowRuleConfig,
|
3136
|
+
|
3137
|
+
printButtonFlag:1,
|
3135
3138
|
printTableRef: "",
|
3136
3139
|
printItems: [],
|
3140
|
+
// printCustomCondition: "",
|
3141
|
+
|
3142
|
+
showRuleFlag: 1,
|
3143
|
+
showRuleEnabled: 1,
|
3144
|
+
showRules: [],
|
3145
|
+
},
|
3146
|
+
},
|
3147
|
+
{
|
3148
|
+
type: "print-detail-button",
|
3149
|
+
icon: "button",
|
3150
|
+
commonFlag: !0,
|
3151
|
+
columnFlag: true,
|
3152
|
+
formItemFlag: !1,
|
3153
|
+
options: {
|
3154
|
+
name: "",
|
3155
|
+
label: "导出/打印",
|
3156
|
+
columnWidth: "200px",
|
3157
|
+
size: "",
|
3158
|
+
// displayStyle: "block",
|
3159
|
+
disabled: !1,
|
3160
|
+
hidden: !1,
|
3161
|
+
type: "primary",
|
3162
|
+
/*plain: !1,
|
3163
|
+
round: !1,
|
3164
|
+
circle: !1,
|
3165
|
+
icon: "el-icon-download",*/
|
3166
|
+
customClass: "",
|
3167
|
+
onCreated: "",
|
3168
|
+
onMounted: "",
|
3169
|
+
// clickBindEvent: null,
|
3170
|
+
onBeforeClickButton: null,
|
3171
|
+
searchDialogConfig: {
|
3172
|
+
...defaultSearchDialogConfig,
|
3173
|
+
},
|
3174
|
+
...defaultWfConfig,
|
3175
|
+
...defaultWidgetShowRuleConfig,
|
3176
|
+
|
3177
|
+
printDetailButtonFlag:1,
|
3178
|
+
printItems: [],
|
3179
|
+
printCustomCondition: "",
|
3137
3180
|
|
3138
3181
|
showRuleFlag: 1,
|
3139
3182
|
showRuleEnabled: 1,
|