vue2-client 1.10.32 → 1.10.35
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/App.vue +196 -196
- package/src/base-client/components/common/XAddNativeForm/demo.vue +43 -43
- package/src/base-client/components/common/XAddReport/XAddReport.vue +1 -1
- package/src/base-client/components/common/XConversation/XConversation.vue +12 -0
- package/src/base-client/components/common/XDataCard/XDataCard.vue +17 -16
- package/src/base-client/components/common/XForm/XFormItem.vue +1248 -1286
- package/src/base-client/components/common/XFormCol/XFormCol.vue +157 -157
- package/src/base-client/components/common/XFormGroup/XFormGroup.vue +301 -301
- package/src/base-client/components/common/XFormTable/XFormTable.vue +12 -0
- package/src/base-client/components/common/XFormTable/demo.vue +2 -2
- package/src/base-client/components/common/XIntervalPicker/XIntervalPicker.vue +121 -0
- package/src/base-client/components/common/XReportDrawer/XReportDrawer.vue +1 -1
- package/src/base-client/components/common/XReportGrid/XReport.vue +1079 -1070
- package/src/base-client/components/common/XReportGrid/XReportDemo.vue +46 -47
- package/src/base-client/components/common/XReportGrid/XReportDesign.vue +628 -628
- package/src/base-client/components/common/XReportGrid/XReportJsonRender.vue +380 -380
- package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +1104 -1104
- package/src/base-client/components/common/XReportGrid/print.js +184 -184
- package/src/base-client/components/common/XTab/XTab.vue +57 -25
- package/src/components/cache/AKeepAlive.js +11 -4
- package/src/layouts/BlankView.vue +59 -3
- package/src/pages/ReportGrid/index.vue +76 -76
- package/src/router/async/router.map.js +95 -148
- package/src/router/guards.js +260 -263
- package/src/utils/microAppUtils.js +49 -40
- package/src/utils/routerUtil.js +526 -450
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<!-- 新增/修改模式 -->
|
|
4
|
+
<a-input
|
|
5
|
+
v-if="mode === '新增/修改'"
|
|
6
|
+
v-model="singleValue"
|
|
7
|
+
:read-only="readOnly"
|
|
8
|
+
:disabled="disabled"
|
|
9
|
+
style="width:100%"
|
|
10
|
+
:placeholder="placeholder"
|
|
11
|
+
@blur="handleBlur"
|
|
12
|
+
@change="handleSingleChange"/>
|
|
13
|
+
<!-- 查询模式 -->
|
|
14
|
+
<a-input-group v-else compact>
|
|
15
|
+
<a-input
|
|
16
|
+
v-model="localValue[0]"
|
|
17
|
+
class="intervalPicker-begin"
|
|
18
|
+
:placeholder="startPlaceholder"
|
|
19
|
+
@change="handleChange"/>
|
|
20
|
+
<a-input
|
|
21
|
+
class="intervalPicker-center"
|
|
22
|
+
style="backgroundColor: #fff"
|
|
23
|
+
placeholder="~"
|
|
24
|
+
disabled
|
|
25
|
+
/>
|
|
26
|
+
<a-input
|
|
27
|
+
v-model="localValue[1]"
|
|
28
|
+
class="intervalPicker-end"
|
|
29
|
+
:placeholder="endPlaceholder"
|
|
30
|
+
@change="handleChange"/>
|
|
31
|
+
</a-input-group>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<script>
|
|
36
|
+
export default {
|
|
37
|
+
name: 'XIntervalPicker',
|
|
38
|
+
props: {
|
|
39
|
+
value: {
|
|
40
|
+
type: [Array, String, Number],
|
|
41
|
+
default: () => undefined
|
|
42
|
+
},
|
|
43
|
+
mode: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: '查询'
|
|
46
|
+
},
|
|
47
|
+
readOnly: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false
|
|
50
|
+
},
|
|
51
|
+
disabled: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: false
|
|
54
|
+
},
|
|
55
|
+
placeholder: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: '请输入'
|
|
58
|
+
},
|
|
59
|
+
startPlaceholder: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: '起始值'
|
|
62
|
+
},
|
|
63
|
+
endPlaceholder: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: '结束值'
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
data () {
|
|
69
|
+
return {
|
|
70
|
+
localValue: ['', ''],
|
|
71
|
+
singleValue: ''
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
watch: {
|
|
75
|
+
value: {
|
|
76
|
+
handler (newVal) {
|
|
77
|
+
if (this.mode === '新增/修改') {
|
|
78
|
+
this.singleValue = newVal || ''
|
|
79
|
+
} else {
|
|
80
|
+
this.localValue = Array.isArray(newVal) ? [...newVal] : ['', '']
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
immediate: true
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
methods: {
|
|
87
|
+
handleChange () {
|
|
88
|
+
// 如果两个输入框都为空或undefined,则发出undefined
|
|
89
|
+
if (!this.localValue[0] && !this.localValue[1]) {
|
|
90
|
+
this.$emit('input', undefined)
|
|
91
|
+
return
|
|
92
|
+
}
|
|
93
|
+
// 否则发出当前数组值
|
|
94
|
+
this.$emit('input', this.localValue)
|
|
95
|
+
},
|
|
96
|
+
handleSingleChange () {
|
|
97
|
+
this.$emit('input', this.singleValue || undefined)
|
|
98
|
+
},
|
|
99
|
+
handleBlur (e) {
|
|
100
|
+
this.$emit('blur', e)
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
</script>
|
|
105
|
+
|
|
106
|
+
<style lang="less" scoped>
|
|
107
|
+
.intervalPicker-begin {
|
|
108
|
+
width: calc(50% - 14px);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.intervalPicker-center {
|
|
112
|
+
width: 30px;
|
|
113
|
+
border-left: 0;
|
|
114
|
+
pointer-events: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.intervalPicker-end {
|
|
118
|
+
width: calc(50% - 14px);
|
|
119
|
+
border-left: 0;
|
|
120
|
+
}
|
|
121
|
+
</style>
|