Przeglądaj źródła

给部分message添加showClose属性

lighter 5 miesięcy temu
rodzic
commit
78965b3bf1

+ 15 - 0
demo-_app.config.js

@@ -0,0 +1,15 @@
+window.__PRODUCTION____APP__CONF__ = {
+  "VITE_BASE_URL": "http://demo.hnthyy.cn:8706",
+  "VITE_SOCKET_V2": "ws://demo.hnthyy.cn:20922/websocket",
+  "VITE_DATA_BASE": "http://172.16.32.167:9205",
+  "VITE_MAGIC_API_IFRAME": "http://172.16.32.170:9207",
+  "VITE_UPLOAD_TEMPLATE_THUMB": "",
+  "VITE_EMR_CONTROL_URL": "172.16.32.160:9227",
+  "VITE_CA_SCRIPT_ID": "2154eae0167611ef8717efceee160e36",
+  "VITE_EMR_OUT_PATIENT_DAY": "7",
+  "VITE_HOSPITAL_NAME": "长沙泰和",
+  "VITE_SYSTEM_NAME": "工作集成平台",
+  "VITE_HOSPITAL_CODE": "H43010500370"
+};
+Object.freeze(window.__PRODUCTION____APP__CONF__);
+Object.defineProperty(window, "__PRODUCTION____APP__CONF__", {configurable: false, writable: false,});

+ 0 - 2
src/api/ca/ca-api.ts

@@ -1,6 +1,4 @@
 import requestV2 from "@/utils/request-v2";
-import { ElMessageBox } from "element-plus";
-import { CyMessageBox } from "@/utils/cy-message-box";
 
 export type CaSendParams = {
   id: string;

+ 2 - 1
src/utils/ExportCVS.js

@@ -5,7 +5,8 @@ export function exportCSV(data, field, fileName, separator,encoding) {
     if (!data || data.length === 0) {
         ElMessage({
             message: '没有可以导出的数据!',
-            type: 'warning'
+            type: 'warning',
+            showClose: true,
         })
         return
     }

+ 4 - 1
src/utils/ExportExcel.js

@@ -41,7 +41,10 @@ export function Export(json, fields, filename) {
 
 export function ExcelName(json, fields) {
     if (listIsBlank(json)) {
-        return ElMessage.error("没有可以导出的数据。")
+        return ElMessage.error({
+            message: "没有可以导出的数据。",
+            showClose: true
+        })
     }
 
     ElMessageBox.prompt('请输入导出的文件名称。', '提示', {

+ 4 - 0
src/utils/request.js

@@ -63,6 +63,7 @@ service.interceptors.response.use(
         duration: 3500,
         dangerouslyUseHTMLString: true,
         message: response.data.message,
+        showClose: true
       });
       return response.data.data;
     }
@@ -90,6 +91,7 @@ service.interceptors.response.use(
         message: response.data.message,
         duration: 3500,
         grouping: true,
+        showClose: true
       });
     } else if (response.data.code > 2000 && response.data.code < 3000) {
       if (response.data.code === 2003) {
@@ -135,6 +137,7 @@ service.interceptors.response.use(
         type: "error",
         duration: 2500,
         grouping: true,
+        showClose: true
       });
       return {
         error: true,
@@ -180,6 +183,7 @@ service.interceptors.response.use(
       type: "error",
       duration: 3500,
       grouping: true,
+      showClose: true
     });
     useProgressBarStore().initialize({
       title: "",

+ 1 - 0
src/utils/xiaochan-element-plus.ts

@@ -10,6 +10,7 @@ function message(msg: string, type: string, isHtml: boolean) {
     message: msg,
     showClose: true,
     grouping: true,
+    closable: true,
   });
 }
 

+ 4 - 0
src/views/hospitalization/zfsf/ForceInAndOut.vue

@@ -73,6 +73,10 @@ const userInput = ref('')
 const patList = ref([])
 
 function searchPatient() {
+  if (!userInput.value) {
+    xcMessage.warning('请输入住院号或姓名!')
+    return
+  }
   const params = {
     patStatus: patStatus.value,
     userInput: userInput.value,