ZaiZai преди 6 месеца
родител
ревизия
f37570b923
променени са 5 файла, в които са добавени 10 реда и са изтрити 83 реда
  1. 2 2
      package.json
  2. 0 33
      src/layout/modules/Notification.vue
  3. 0 25
      src/styles/app/element.scss
  4. 0 15
      src/utils/tools.js
  5. 8 8
      yarn.lock

+ 2 - 2
package.json

@@ -25,7 +25,7 @@
         "dayjs": "^1.11.13",
         "echarts": "^5.5.1",
         "element-plus": "^2.8.1",
-        "hc-vue3-ui": "^4.2.5",
+        "hc-vue3-ui": "^4.2.6",
         "js-base64": "^3.7.7",
         "js-fast-way": "^0.5.6",
         "js-md5": "^0.8.3",
@@ -39,7 +39,7 @@
     },
     "devDependencies": {
         "@unocss/eslint-config": "^0.58.9",
-        "@vitejs/plugin-vue": "^5.1.2",
+        "@vitejs/plugin-vue": "^5.1.3",
         "@vue/compiler-sfc": "^3.4.38",
         "archiver": "^7.0.1",
         "autoprefixer": "^10.4.20",

+ 0 - 33
src/layout/modules/Notification.vue

@@ -1,33 +0,0 @@
-<template>
-    <div class="hc-system-notification hc-flex">
-        <div class="icon-box hc-flex-center mr-14px h-50px w-50px">
-            <div class="icon relative text-center text-40px">
-                <hc-icon name="megaphone" />
-            </div>
-        </div>
-        <div class="content-box relative h-full flex-1">
-            <div class="content relative">{{ data }}</div>
-            <div v-if="time" class="time relative mt-12px">
-                <span v-if="type === 'update'">更新时间:</span>
-                <span v-if="type === 'system'">发布时间:</span>
-                <span>{{ time }}</span>
-            </div>
-        </div>
-    </div>
-</template>
-
-<script setup>
-defineProps({
-    type: String,
-    data: [String, Number],
-    time: [String, Number],
-})
-</script>
-
-<style lang="scss" scoped>
-.hc-system-notification {
-    .content-box .time {
-        opacity: .8;
-    }
-}
-</style>

+ 0 - 25
src/styles/app/element.scss

@@ -43,28 +43,3 @@
 .el-table .cell{
     white-space: pre-wrap;
 }
-
-//系统公告
-.el-notification.hc-system-notification-msg {
-    --el-notification-padding: 8px 14px;
-    .el-notification__group {
-        flex: 1;
-        margin: 0;
-        .el-notification__content {
-            color: inherit;
-            line-height: unset;
-        }
-    }
-    //更新公告
-    &.update {
-        --el-notification-border-color: #fde2e2;
-        background-color: #fef0f0;
-        color: #f56c6c;
-    }
-    //普通公告
-    &.system {
-        --el-notification-border-color: #faecd8;
-        background-color: #fdf6ec;
-        color: #e6a23c;
-    }
-}

+ 0 - 15
src/utils/tools.js

@@ -1,20 +1,5 @@
-import { h } from 'vue'
-import { ElNotification } from 'element-plus'
 import { arrIndex, getArrValue } from 'js-fast-way'
 import { getDictionary, getDictionaryBiz } from '~api/other'
-import HcNotification from '~src/layout/modules/Notification.vue'
-
-//通知公告
-export const setNotification = (param = {}) => {
-    ElNotification({
-        title: '',
-        duration: 0,
-        showClose: false,
-        dangerouslyUseHTMLString: true,
-        customClass: `hc-system-notification-msg ${param.type}`,
-        message: h(HcNotification, { ...param }),
-    })
-}
 
 //获取字典数据
 export const getDictionaryData = async (code, biz = false) => {

+ 8 - 8
yarn.lock

@@ -965,10 +965,10 @@
     fast-glob "^3.3.2"
     magic-string "^0.30.8"
 
-"@vitejs/plugin-vue@^5.1.2":
-  version "5.1.2"
-  resolved "http://39.108.216.210:9000/@vitejs/plugin-vue/-/plugin-vue-5.1.2.tgz#f11091e0130eca6c1ca8cfb85ee71ea53b255d31"
-  integrity sha512-nY9IwH12qeiJqumTCLJLE7IiNx7HZ39cbHaysEUd+Myvbz9KAqd2yq+U01Kab1R/H1BmiyM2ShTYlNH32Fzo3A==
+"@vitejs/plugin-vue@^5.1.3":
+  version "5.1.3"
+  resolved "http://39.108.216.210:9000/@vitejs/plugin-vue/-/plugin-vue-5.1.3.tgz#42b55c1a4d6f329aea25c5a24db51a31db31c693"
+  integrity sha512-3xbWsKEKXYlmX82aOHufFQVnkbMC/v8fLpWwh6hWOUrK5fbbtBh9Q/WWse27BFgSy2/e2c0fz5Scgya9h2GLhw==
 
 "@vue/compiler-core@3.4.38":
   version "3.4.38"
@@ -1987,10 +1987,10 @@ has-flag@^4.0.0:
   resolved "http://39.108.216.210:9000/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
   integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
 
-hc-vue3-ui@^4.2.5:
-  version "4.2.5"
-  resolved "http://39.108.216.210:9000/hc-vue3-ui/-/hc-vue3-ui-4.2.5.tgz#54ccf63fb1bc35a803baa6183c65524907b81df0"
-  integrity sha512-DgsPg1NvLkb374zgdASKV/2JXG7xq1URgn/+ks8ArVzC86Vw/hT1FbYmf3XwFKbDtV1yIXsICWf2hBbjjSVPXg==
+hc-vue3-ui@^4.2.6:
+  version "4.2.6"
+  resolved "http://39.108.216.210:9000/hc-vue3-ui/-/hc-vue3-ui-4.2.6.tgz#4c60c35838f5fa94c362ec1b4d4767bd60ce88e5"
+  integrity sha512-TeXfWRki6PbLeK7LahPPpHDdTWCFm4y8Z3HCirNqS1eweWOHnIfPu0wP0lKbXp9puJzuh8a/G57Yp9T9pevUIw==
   dependencies:
     axios "^1.7.5"
     dayjs "^1.11.13"