vue2-client 1.17.45 → 1.17.46
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/assets/svg/female.svg +1 -1
- package/src/assets/svg/male.svg +1 -1
- package/src/base-client/components/common/HIS/HButtons/HButtons.vue +491 -491
- package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
- package/src/base-client/components/common/HIS/HTab/HTab.vue +443 -443
- package/src/base-client/components/common/XCollapse/XCollapse.vue +830 -830
- package/src/base-client/components/common/XTimeline/XTimeline.vue +477 -477
- package/src/base-client/components/his/HChart/HChart.vue +493 -493
- package/src/base-client/components/his/HChart/demo.vue +88 -88
- package/src/base-client/components/his/HChart/index.md +798 -798
- package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
- package/src/base-client/components/his/XIcon/XIcon.vue +73 -73
- package/src/base-client/components/his/XIcon/index.js +3 -3
- package/src/base-client/components/his/XIcon/index.md +177 -177
- package/src/base-client/components/his/XList/XList.vue +938 -938
- package/src/base-client/components/his/XSidebar/XSidebar.vue +1 -1
- package/src/base-client/components/his/XTimeSelect/XTimeSelect.vue +354 -354
- package/src/base-client/components/his/XTitle/XTitle.vue +314 -314
- package/src/base-client/components/his/XTreeRows/XTreeRows.vue +341 -341
- package/src/base-client/components/his/threeTestOrders/editor.vue +113 -113
- package/src/pages/userInfoDetailManage/ExceptionRecordQuery/index.vue +45 -45
- package/src-base-client/components/common/HIS/HForm/HForm.vue +347 -0
- package/src/assets/img/paymentMethod/icon1.png +0 -0
- package/src/assets/img/paymentMethod/icon2.png +0 -0
- package/src/assets/img/paymentMethod/icon3.png +0 -0
- package/src/assets/img/paymentMethod/icon4.png +0 -0
- package/src/assets/img/paymentMethod/icon5.png +0 -0
- package/src/assets/img/paymentMethod/icon6.png +0 -0
- package/src/base-client/components/common/XReport/XReportHospitalizationDemo.vue +0 -45
- package/src-base-client/components/his/XCharge/XCharge.vue +0 -0
- /package/src-base-client/components/{his/XCharge/README.md → common/XCollapse/XCollapse.vue} +0 -0
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="h-chart-test-container">
|
|
3
|
-
<h2>HChart 组件测试案例</h2>
|
|
4
|
-
|
|
5
|
-
<section class="test-section">
|
|
6
|
-
<h3>测试1: 通过 queryParamsName 查询配置(从后端获取配置和数据)</h3>
|
|
7
|
-
<div class="chart-wrapper">
|
|
8
|
-
<HChart
|
|
9
|
-
ref="chart1"
|
|
10
|
-
query-params-name="accountsReceivableChart"
|
|
11
|
-
:fixed-query-form="{ condition: '1=1', dateRange: '2024-01' }"
|
|
12
|
-
service-name="af-his"
|
|
13
|
-
@init="handleChartInit"
|
|
14
|
-
@dataLoaded="handleDataLoaded"
|
|
15
|
-
@error="handleError"
|
|
16
|
-
/>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="test-actions">
|
|
19
|
-
<a-button @click="refreshChart1">刷新图表</a-button>
|
|
20
|
-
<a-button @click="reloadChart1">重新加载(更新查询条件)</a-button>
|
|
21
|
-
</div>
|
|
22
|
-
</section>
|
|
23
|
-
|
|
24
|
-
<section class="test-section">
|
|
25
|
-
<h3>测试日志</h3>
|
|
26
|
-
<div class="log-container">
|
|
27
|
-
<div v-for="(log, index) in logs" :key="index" class="log-item">
|
|
28
|
-
<span class="log-time">{{ log.time }}</span>
|
|
29
|
-
<span class="log-type" :class="log.type">{{ log.type }}</span>
|
|
30
|
-
<span class="log-message">{{ log.message }}</span>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
<a-button @click="clearLogs">清空日志</a-button>
|
|
34
|
-
</section>
|
|
35
|
-
</div>
|
|
36
|
-
</template>
|
|
37
|
-
|
|
38
|
-
<script setup>
|
|
39
|
-
import { ref } from 'vue'
|
|
40
|
-
import { message } from 'ant-design-vue'
|
|
41
|
-
import HChart from './HChart.vue'
|
|
42
|
-
|
|
43
|
-
const chart1 = ref(null)
|
|
44
|
-
|
|
45
|
-
const logs = ref([])
|
|
46
|
-
|
|
47
|
-
const addLog = (type, messageText) => {
|
|
48
|
-
logs.value.unshift({
|
|
49
|
-
time: new Date().toLocaleTimeString(),
|
|
50
|
-
type,
|
|
51
|
-
message: typeof messageText === 'object' ? JSON.stringify(messageText, null, 2) : messageText
|
|
52
|
-
})
|
|
53
|
-
if (logs.value.length > 50) logs.value.pop()
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const clearLogs = () => {
|
|
57
|
-
logs.value = []
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const handleChartInit = (config) => {
|
|
61
|
-
addLog('init', `图表初始化: ${config?.title || '未知'}`)
|
|
62
|
-
message.success(`图表初始化成功: ${config?.title || '未知'}`)
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
const handleDataLoaded = (data) => {
|
|
66
|
-
addLog('dataLoaded', `数据加载完成,共 ${data?.length || 0} 条`)
|
|
67
|
-
console.log('数据加载完成:', data)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
const handleError = (error) => {
|
|
71
|
-
addLog('error', `错误: ${error?.message || String(error)}`)
|
|
72
|
-
message.error(`图表加载错误: ${error?.message || String(error)}`)
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const refreshChart1 = () => {
|
|
76
|
-
if (!chart1.value) return
|
|
77
|
-
chart1.value.refresh()
|
|
78
|
-
addLog('action', '刷新图表')
|
|
79
|
-
message.info('正在刷新图表...')
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
const reloadChart1 = () => {
|
|
83
|
-
if (!chart1.value) return
|
|
84
|
-
chart1.value.reload({ condition: '1=1', dateRange: '2024-02' })
|
|
85
|
-
addLog('action', '重新加载图表,更新查询条件')
|
|
86
|
-
message.info('正在重新加载图表...')
|
|
87
|
-
}
|
|
88
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="h-chart-test-container">
|
|
3
|
+
<h2>HChart 组件测试案例</h2>
|
|
4
|
+
|
|
5
|
+
<section class="test-section">
|
|
6
|
+
<h3>测试1: 通过 queryParamsName 查询配置(从后端获取配置和数据)</h3>
|
|
7
|
+
<div class="chart-wrapper">
|
|
8
|
+
<HChart
|
|
9
|
+
ref="chart1"
|
|
10
|
+
query-params-name="accountsReceivableChart"
|
|
11
|
+
:fixed-query-form="{ condition: '1=1', dateRange: '2024-01' }"
|
|
12
|
+
service-name="af-his"
|
|
13
|
+
@init="handleChartInit"
|
|
14
|
+
@dataLoaded="handleDataLoaded"
|
|
15
|
+
@error="handleError"
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="test-actions">
|
|
19
|
+
<a-button @click="refreshChart1">刷新图表</a-button>
|
|
20
|
+
<a-button @click="reloadChart1">重新加载(更新查询条件)</a-button>
|
|
21
|
+
</div>
|
|
22
|
+
</section>
|
|
23
|
+
|
|
24
|
+
<section class="test-section">
|
|
25
|
+
<h3>测试日志</h3>
|
|
26
|
+
<div class="log-container">
|
|
27
|
+
<div v-for="(log, index) in logs" :key="index" class="log-item">
|
|
28
|
+
<span class="log-time">{{ log.time }}</span>
|
|
29
|
+
<span class="log-type" :class="log.type">{{ log.type }}</span>
|
|
30
|
+
<span class="log-message">{{ log.message }}</span>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<a-button @click="clearLogs">清空日志</a-button>
|
|
34
|
+
</section>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script setup>
|
|
39
|
+
import { ref } from 'vue'
|
|
40
|
+
import { message } from 'ant-design-vue'
|
|
41
|
+
import HChart from './HChart.vue'
|
|
42
|
+
|
|
43
|
+
const chart1 = ref(null)
|
|
44
|
+
|
|
45
|
+
const logs = ref([])
|
|
46
|
+
|
|
47
|
+
const addLog = (type, messageText) => {
|
|
48
|
+
logs.value.unshift({
|
|
49
|
+
time: new Date().toLocaleTimeString(),
|
|
50
|
+
type,
|
|
51
|
+
message: typeof messageText === 'object' ? JSON.stringify(messageText, null, 2) : messageText
|
|
52
|
+
})
|
|
53
|
+
if (logs.value.length > 50) logs.value.pop()
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const clearLogs = () => {
|
|
57
|
+
logs.value = []
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const handleChartInit = (config) => {
|
|
61
|
+
addLog('init', `图表初始化: ${config?.title || '未知'}`)
|
|
62
|
+
message.success(`图表初始化成功: ${config?.title || '未知'}`)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const handleDataLoaded = (data) => {
|
|
66
|
+
addLog('dataLoaded', `数据加载完成,共 ${data?.length || 0} 条`)
|
|
67
|
+
console.log('数据加载完成:', data)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const handleError = (error) => {
|
|
71
|
+
addLog('error', `错误: ${error?.message || String(error)}`)
|
|
72
|
+
message.error(`图表加载错误: ${error?.message || String(error)}`)
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const refreshChart1 = () => {
|
|
76
|
+
if (!chart1.value) return
|
|
77
|
+
chart1.value.refresh()
|
|
78
|
+
addLog('action', '刷新图表')
|
|
79
|
+
message.info('正在刷新图表...')
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const reloadChart1 = () => {
|
|
83
|
+
if (!chart1.value) return
|
|
84
|
+
chart1.value.reload({ condition: '1=1', dateRange: '2024-02' })
|
|
85
|
+
addLog('action', '重新加载图表,更新查询条件')
|
|
86
|
+
message.info('正在重新加载图表...')
|
|
87
|
+
}
|
|
88
|
+
</script>
|