vue2-client 1.18.28 → 1.18.29
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/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/HIS/HButtons/HButtons.vue +1 -0
- package/src/base-client/components/common/HIS/HTab/HTab.vue +6 -4
- package/src/base-client/components/common/XReport/XReportHospitalizationDemo.vue +45 -0
- 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/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/pages/userInfoDetailManage/uploadFilesHistory/index.vue +159 -159
- package/src-base-client/components/his/XCharge/README.md +0 -0
- package/src-base-client/components/his/XCharge/XCharge.vue +0 -0
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -154,7 +154,8 @@ defineExpose({
|
|
|
154
154
|
border-radius: 6px 6px 0 0;
|
|
155
155
|
color: #5D5C5C;
|
|
156
156
|
font-weight: bold;
|
|
157
|
-
width: 134px;
|
|
157
|
+
min-width: 134px;
|
|
158
|
+
width: auto;
|
|
158
159
|
font-size: 18px;
|
|
159
160
|
line-height: 26px;
|
|
160
161
|
font-family: "Source Han Sans";
|
|
@@ -162,17 +163,18 @@ defineExpose({
|
|
|
162
163
|
height: 32px;
|
|
163
164
|
text-align: center;
|
|
164
165
|
margin: 0 !important;
|
|
165
|
-
padding: 0 !important;
|
|
166
|
+
padding: 0 12px !important;
|
|
166
167
|
}
|
|
167
168
|
.ant-tabs-tab-active {
|
|
168
169
|
background-color: #0057FE;
|
|
169
170
|
color: #ffffff;
|
|
170
|
-
width: 134px;
|
|
171
|
+
min-width: 134px;
|
|
172
|
+
width: auto;
|
|
171
173
|
line-height: 26px;
|
|
172
174
|
height: 32px;
|
|
173
175
|
text-align: center;
|
|
174
176
|
margin: 0 !important;
|
|
175
|
-
padding: 0 !important;
|
|
177
|
+
padding: 0 12px !important;
|
|
176
178
|
}
|
|
177
179
|
}
|
|
178
180
|
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="xreport-hosp-demo">
|
|
3
|
+
<a-space style="margin-bottom: 12px;">
|
|
4
|
+
<a-button type="primary" @click="doInit">手动初始化</a-button>
|
|
5
|
+
</a-space>
|
|
6
|
+
<XReport
|
|
7
|
+
ref="reportRef"
|
|
8
|
+
:edit-mode="true"
|
|
9
|
+
:show-save-button="true"
|
|
10
|
+
:show-img-in-cell="false"
|
|
11
|
+
:use-oss-for-img="false"
|
|
12
|
+
server-name="af-his"
|
|
13
|
+
@updateImg="onUpdateImg"/>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script setup>
|
|
18
|
+
import { ref } from 'vue'
|
|
19
|
+
import XReport from '@vue2-client/base-client/components/common/XReport'
|
|
20
|
+
|
|
21
|
+
const reportRef = ref(null)
|
|
22
|
+
|
|
23
|
+
const payload = {
|
|
24
|
+
arr: [
|
|
25
|
+
{ BQ: '病房区', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 },
|
|
26
|
+
{ BQ: '感染科', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 },
|
|
27
|
+
{ BQ: '骨科病区', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 },
|
|
28
|
+
{ BQ: '呼吸科病区', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 },
|
|
29
|
+
{ BQ: '急症科病区', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 },
|
|
30
|
+
{ BQ: '内科二病区', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 }
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const doInit = async () => {
|
|
35
|
+
if (!reportRef.value || !reportRef.value.init) return
|
|
36
|
+
await reportRef.value.init({
|
|
37
|
+
configName: 'hospitalizationStatsReport',
|
|
38
|
+
configData: payload
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const onUpdateImg = data => {
|
|
43
|
+
console.warn('updateImg:', data)
|
|
44
|
+
}
|
|
45
|
+
</script>
|
|
@@ -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>
|