xiaochan il y a 1 an
Parent
commit
aab0af2d2b

+ 15 - 3
src/main.js

@@ -1,5 +1,5 @@
 import {createApp} from 'vue'
-import ElementPlus from 'element-plus'
+import ElementPlus, {useZIndex} from 'element-plus'
 import 'element-plus/dist/index.css'
 import 'element-plus/theme-chalk/dark/css-vars.css'
 import 'normalize.css' // css初始化
@@ -26,14 +26,26 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
     app.component(key, component)
 }
 
-VXETable.setup({
+const vxeTableSetUp = {
     version: 0,
-    zIndex: 99999, // 想多高就设置多高
+    zIndex: 0, // 想多高就设置多高
     table: {
         autoResize: true
     }
+}
+
+const objProxy = new Proxy(vxeTableSetUp, {
+    get: function (target, key) {
+        if (key === 'zIndex') {
+            return useZIndex().nextZIndex()
+        }
+        return target[key];
+    },
 })
 
+
+VXETable.setup(objProxy)
+
 app.use(ElementPlus, {locale: zhCn, size: store.state.app.elementSize})
 app.use(store)
 app.use(router)

+ 0 - 1
src/router/index.js

@@ -48,7 +48,6 @@ function text() {
 }
 
 export function addRoutes() {
-    text()
     let modules = [...Dashboard]
     System.forEach((item) => {
         modules.push(item)

+ 0 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/EmrMain.vue

@@ -876,7 +876,6 @@ const clickSaveData = async () => {
   }, (err) => {
     console.log(err)
   })
-
 }
 
 async function saveSuccessFunc(saveData: saveType) {

+ 0 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/components/EmrRecycleBin.vue

@@ -97,7 +97,6 @@ const opened = async () => {
 onMounted(() => {
   queryData()
 })
-
 </script>
 
 <template>