|
|
@@ -4,11 +4,10 @@ import moment from "moment/moment";
|
|
|
import {useEventListener} from "@vueuse/core";
|
|
|
import {documentVisibilityEnum} from "@/utils/cy-use/useChangeToken";
|
|
|
import {getServerDate} from "@/utils/moment-utils";
|
|
|
-import {selectInpatientBriefs, selectInpatientBriefsV2} from "@/api/dashboard";
|
|
|
+import {selectInpatientBriefsV2} from "@/api/dashboard";
|
|
|
import router from "@/router";
|
|
|
import {getAllWards} from "@/api/login";
|
|
|
import sleep from "@/utils/sleep";
|
|
|
-import {isDev} from "@/utils/public";
|
|
|
|
|
|
|
|
|
function getWeek(date: any): string { // 参数时间戳
|
|
|
@@ -135,6 +134,7 @@ export function useInpatientBoard() {
|
|
|
config: {
|
|
|
align: 'left',
|
|
|
columnWidth: [200],
|
|
|
+ rowNum: 8,
|
|
|
header: ['名称', '数量'],
|
|
|
data: [],
|
|
|
},
|
|
|
@@ -143,7 +143,7 @@ export function useInpatientBoard() {
|
|
|
|
|
|
function setDvTableData(res: any) {
|
|
|
dvTableData.operation.config.data = []
|
|
|
- dvTableData.huli.config.data = []
|
|
|
+ dvTableData.huli.config.data = res.huli || []
|
|
|
|
|
|
data.value.forEach(item => {
|
|
|
if (item.surgery) {
|
|
|
@@ -153,11 +153,11 @@ export function useInpatientBoard() {
|
|
|
|
|
|
})
|
|
|
|
|
|
- for (let key in res.huli) {
|
|
|
- // @ts-ignore
|
|
|
- dvTableData.huli.config.data.push([key, res.huli[key]])
|
|
|
- }
|
|
|
-
|
|
|
+ console.log(res.huli)
|
|
|
+ // for (let key in res.huli) {
|
|
|
+ // // @ts-ignore
|
|
|
+ // dvTableData.huli.config.data.push([key, res.huli[key]])
|
|
|
+ // }
|
|
|
|
|
|
}
|
|
|
|