vue2-client 1.12.75 → 1.12.77
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 +109 -109
- package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +708 -707
- package/src/base-client/components/common/XTimeline/XTimeline.vue +4 -33
- package/src/base-client/components/his/XRadio/XRadio.vue +50 -0
- package/src/base-client/components/his/XSidebar/XSidebar.vue +1 -1
- package/src/router/async/router.map.js +2 -1
|
@@ -62,7 +62,7 @@ export default {
|
|
|
62
62
|
// 配置参数名称,用于获取时间轴配置
|
|
63
63
|
queryParamsName: {
|
|
64
64
|
type: String,
|
|
65
|
-
default: '
|
|
65
|
+
default: ''
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
|
|
@@ -121,49 +121,20 @@ export default {
|
|
|
121
121
|
// 获取时间轴配置数据
|
|
122
122
|
async getData (data) {
|
|
123
123
|
getConfigByName(data, 'af-his', res => {
|
|
124
|
-
// var res = {
|
|
125
|
-
// // 基础配置
|
|
126
|
-
// range: 7, // 显示的天数范围,默认7天
|
|
127
|
-
// defaultValue: '', // 默认选中日期,不设置则默认今天
|
|
128
|
-
// // 日期格式化
|
|
129
|
-
// dateFormat: 'MM/DD', // 日期显示格式,如 03/21
|
|
130
|
-
// weekFormat: '周dd', // 星期显示格式,如 周四
|
|
131
|
-
// // 按钮文字配置
|
|
132
|
-
// prevWeekText: '前一周', // 上一周按钮文字
|
|
133
|
-
// nextWeekText: '后一周', // 下一周按钮文字
|
|
134
|
-
// prevDayText: '前一天', // 前一天按钮文字
|
|
135
|
-
// nextDayText: '后一天', // 后一天按钮文字
|
|
136
|
-
// // 日期范围限制
|
|
137
|
-
// minDate: '2024-01-01', // 最小可选日期
|
|
138
|
-
// maxDate: '2025-12-31', // 最大可选日期
|
|
139
|
-
// // 周末高亮配置
|
|
140
|
-
// highlightWeekend: true, // 是否高亮周末
|
|
141
|
-
// // 业务逻辑配置
|
|
142
|
-
// logicName: 'getDisabledDates', // 获取禁用日期的逻辑名称
|
|
143
|
-
// parameter: {
|
|
144
|
-
// userId: 'xxx',
|
|
145
|
-
// type: 'workday'
|
|
146
|
-
// }
|
|
147
|
-
// }
|
|
148
124
|
this.config = res
|
|
149
125
|
if (res.defaultValue) {
|
|
150
126
|
// 如果有默认值,则设置当前选中日期和基准日期
|
|
151
127
|
this.currentDate = res.defaultValue
|
|
152
128
|
this.baseDate = res.defaultValue
|
|
153
129
|
this.$emit('update:modelValue', res.defaultValue)
|
|
130
|
+
} else {
|
|
131
|
+
// 如果没有默认值,则设置当前选中日期为今天
|
|
132
|
+
this.currentDate = dayjs().format('YYYY-MM-DD')
|
|
154
133
|
}
|
|
155
134
|
|
|
156
135
|
// 执行配置中指定的业务逻辑
|
|
157
136
|
if (res.logicName) {
|
|
158
137
|
runLogic(res.logicName, res.parameter, 'af-his').then(result => {
|
|
159
|
-
// var result = {
|
|
160
|
-
// disabledDates: [ // 禁用的日期列表
|
|
161
|
-
// '2025-03-23', // 周六
|
|
162
|
-
// '2025-03-24', // 周日
|
|
163
|
-
// '2025-03-25' // 其他需要禁用的日期
|
|
164
|
-
// ],
|
|
165
|
-
// currentDate: '' // 指定当前选中日期(可选)
|
|
166
|
-
// }
|
|
167
138
|
if (result) {
|
|
168
139
|
this.handleLogicResult(result)
|
|
169
140
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<a-radio-group v-model="innerValue" @change="onChange">
|
|
4
|
+
<a-radio v-for="item in data" :key="item.value" :value="item.value">
|
|
5
|
+
{{ item.label }}
|
|
6
|
+
</a-radio>
|
|
7
|
+
</a-radio-group>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
import { getConfigByName } from '@vue2-client/services/api/common'
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
name: 'XRadio',
|
|
16
|
+
inject: ['getComponentByName'],
|
|
17
|
+
props: {
|
|
18
|
+
queryParamsName: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: null
|
|
21
|
+
},
|
|
22
|
+
value: [String, Number]
|
|
23
|
+
},
|
|
24
|
+
data () {
|
|
25
|
+
return {
|
|
26
|
+
data: [],
|
|
27
|
+
innerValue: null
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
created () {
|
|
31
|
+
this.getData(this.queryParamsName)
|
|
32
|
+
},
|
|
33
|
+
watch: {
|
|
34
|
+
value (val) {
|
|
35
|
+
this.innerValue = val
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
methods: {
|
|
39
|
+
async getData (data) {
|
|
40
|
+
getConfigByName(data, 'af-his', res => {
|
|
41
|
+
console.warn(res.radio)
|
|
42
|
+
this.data = res.radio
|
|
43
|
+
})
|
|
44
|
+
},
|
|
45
|
+
onChange (e) {
|
|
46
|
+
this.$emit('radio', e.target.value)
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
</script>
|
|
@@ -52,6 +52,7 @@ routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynami
|
|
|
52
52
|
routerResource.example = {
|
|
53
53
|
path: 'example',
|
|
54
54
|
name: '示例主页面',
|
|
55
|
+
component: () => import('@vue2-client/base-client/components/his/XRadio/XRadio.vue'),
|
|
55
56
|
// component: () => import('@vue2-client/base-client/components/his/XList/XList.vue'),
|
|
56
57
|
// component: () => import('@vue2-client/base-client/components/common/XCollapse/XCollapse.vue'),
|
|
57
58
|
// component: () => import('@vue2-client/base-client/components/common/XDataCard/XDataCard.vue'),
|
|
@@ -74,7 +75,7 @@ routerResource.example = {
|
|
|
74
75
|
// component: () => import('@vue2-client/components/g2Charts/demo.vue'),
|
|
75
76
|
// component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
|
|
76
77
|
// component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
|
|
77
|
-
|
|
78
|
+
// component: () => import('@vue2-client/pages/ReportGrid/index.vue')
|
|
78
79
|
}
|
|
79
80
|
// routerResource.example = () =>
|
|
80
81
|
// import('@vue2-client/pages/Example')
|