|
@@ -9,9 +9,10 @@ import {
|
|
|
import XEUtils from "xe-utils";
|
|
|
import { useWebSocket } from "@vueuse/core";
|
|
|
import { useUserStore } from "@/pinia/user-store";
|
|
|
-import { ElNotification } from "element-plus";
|
|
|
import { useDialog } from "@/components/cy/CyDialog/index";
|
|
|
import ArchiveUpload from "./ArchiveUpload.vue";
|
|
|
+import { ElNotification } from "element-plus";
|
|
|
+import ArchiveAllLog from "@/views/archive/ArchiveAllLog.vue";
|
|
|
|
|
|
type PatInfo = {
|
|
|
inpatientNo: string;
|
|
@@ -74,11 +75,11 @@ export const useArchive = () => {
|
|
|
store.footerVisible = true;
|
|
|
mutation.logScroll(false);
|
|
|
},
|
|
|
- change: id => {
|
|
|
- if (useUserStore().userInfo.code !== id) {
|
|
|
+ change: data => {
|
|
|
+ if (useUserStore().userInfo.code !== data.code) {
|
|
|
ElNotification.success({
|
|
|
title: "文件有变化",
|
|
|
- message: "自动刷新目录",
|
|
|
+ message: data.message,
|
|
|
});
|
|
|
mutation.getData();
|
|
|
}
|
|
@@ -171,6 +172,15 @@ export const useArchive = () => {
|
|
|
times: store.patInfo.admissTimes,
|
|
|
};
|
|
|
},
|
|
|
+ getAllLog() {
|
|
|
+ useDialog(ArchiveAllLog, {
|
|
|
+ dialogProps: { title: "全部日志", fullscreen: true },
|
|
|
+ showCancel: false,
|
|
|
+ params: {
|
|
|
+ ...mutation.getPatNoAndTimes(),
|
|
|
+ },
|
|
|
+ }).catch(XEUtils.noop);
|
|
|
+ },
|
|
|
};
|
|
|
|
|
|
return { store, mutation };
|