Bläddra i källkod

冗杂文件删除

ming 1 år sedan
förälder
incheckning
b9aa5e4808

+ 2 - 247
src/assets/styles/index.scss

@@ -340,35 +340,6 @@ aside {
     }
 }
 
-.onOffBox .content {
-    margin-top: 1.8rem;
-    background: url('@/assets/images/business/iot/onOffBg.png');
-    background-size: 100% 100%;
-    background-repeat: no-repeat;
-    position: relative;
-    height: 11.4rem;
-    color: #fff;
-
-    .numStastic {
-        font-size: 1.4rem;
-
-        div {
-            margin: 0px 0 .5rem;
-            padding: 0.5rem .5rem 0.5rem 1rem;
-        }
-    }
-
-    span:first-child {
-        min-width: 7rem;
-        display: inline-block
-    }
-
-    span:last-child {
-        font-size: 1.8rem;
-        color: #2AD7F0;
-        font-weight: 500;
-    }
-}
 
 .timeSelectSec {
     position: absolute;
@@ -500,39 +471,8 @@ aside {
         background-size: cover;
     }
 
-    .facilityItem {
-        display: inline-block;
-        color: #fff;
-        text-align: center;
-        width: 8rem;
-        height: 8rem;
-        background-image: url(@/assets/images/business/iot/facilityBg2.png);
-        background-size: 100% 100%;
-        display: flex;
-        justify-content: center;
-        align-items: center;
-        cursor: pointer;
-
-        span {
-            width: 20px;
-            height: 20px
-        }
-
-        >div {
-            div:first-child {
-                font-size: 1.8rem
-            }
 
-            div:last-child {
-                font-size: 1.4rem
-            }
-        }
-    }
 
-    .facilityItem:hover,
-    .swiper-slide.active .facilityItem {
-        background-image: url(@/assets/images/business/iot/facilityBg2Active.png);
-    }
 
     .swiper-button-next,
     .swiper-rtl .swiper-button-prev {
@@ -565,28 +505,7 @@ aside {
 .alarmInfoContent {
     display: flex;
 
-    .contentOne {
-        margin-right: 2rem;
-        text-align: center;
-        background: url(@/assets/images/business/ITONew3/alarmInfoBg1.png);
-        background-size: 100% 100%;
-        width: calc(100%/3 - 4rem/3);
-        display: inline-block;
-        height: calc(100% - 1.8rem);
-        padding: 1rem 0;
-        font-size: 1.4rem;
-
-        .num {
-            font-size: 2.4rem;
-            color: #2AD7F0;
-        }
-
-        .title {
-            margin-top: 1.6rem;
-            margin-bottom: 2rem;
-            font-size: 1.4rem;
-        }
-    }
+  
 
     .contentOne:last-child {
         // height:calc(100%/2 - 3.5rem/2);
@@ -598,16 +517,6 @@ aside {
             color: #53EA8C
         }
 
-        .short {
-            padding: 1rem 0;
-            background: url(@/assets/images/business/ITONew3/alarmInfoBg1.png);
-            background-size: 100% 100%;
-
-            .title {
-                margin-bottom: .5rem
-            }
-        }
-
         .short:first-child {
             margin-bottom: 2rem;
         }
@@ -705,42 +614,12 @@ aside {
     text-align: center;
     font-size: 1.2rem;
 
-    header {
-        height: 5.4rem;
-        line-height: 5.4rem;
-        width: 100%;
-        font-size: 2.8rem;
-        text-align: center;
-        background: url(@/assets/images/business/deviceManage/tvWall/headerBg.png);
-        background-size: 100% 100%;
-        background-repeat: no-repeat;
-        position: relative
-    }
-
     .statisticBox {
         text-align: center;
         margin-top: 2rem;
         font-size: 1.6rem;
 
         // margin-bottom:2rem;
-        >div {
-            display: inline-block;
-            width: 10.9rem;
-            height: 4rem;
-            line-height: 4rem;
-            text-align: center;
-            margin-right: 2rem;
-            background-size: 100% 100%;
-            background-image: url(@/assets/images/business/deviceManage/tvWall/warning.png)
-        }
-
-        div:nth-child(2) {
-            background-image: url(@/assets/images/business/deviceManage/tvWall/default.png)
-        }
-
-        div:last-child {
-            background-image: url(@/assets/images/business/deviceManage/tvWall/offline.png)
-        }
     }
 
     .main-inner {
@@ -763,18 +642,6 @@ aside {
             // display:block;
             float: left;
             margin-right: 1.5rem;
-
-            .title {
-                width: 100%;
-                height: 2.6rem;
-                line-height: 2.6rem;
-                position: absolute;
-                top: 0;
-                text-align: center;
-                background: url(@/assets/images/business/deviceManage/tvWall/titleBg.png);
-                background-size: 100% 100%;
-            }
-
             .warningInfo {
                 position: absolute;
                 top: 3.5rem;
@@ -879,27 +746,6 @@ aside {
                 height: calc(100% - 10rem);
             }
 
-            .batteryImg {
-                width: 3.2rem;
-                position: absolute;
-                top: 3.8rem;
-                right: 1.2rem;
-                background-image: url(@/assets/images/business/deviceManage/tvWall/battery.png);
-                background-size: 100% 100%;
-                padding-right: 0.3rem;
-            }
-
-            .switchControl {
-                width: 15rem;
-                height: 15rem;
-                text-align: center;
-                line-height: 15rem;
-                font-size: 2.6rem;
-                color: #0390FF;
-                background-image: url(@/assets/images/business/deviceManage/tvWall/switchBg.png);
-                background-size: 100% 100%;
-            }
-
             .footerText {
                 position: absolute;
                 bottom: 1rem;
@@ -909,30 +755,6 @@ aside {
                 color: #C9C9C9
             }
         }
-
-        .warningBg {
-            background-image: url(@/assets/images/business/deviceManage/tvWall/warningBg.png);
-        }
-
-        .faultBg {
-            background-image: url(@/assets/images/business/deviceManage/tvWall/faultBg.png);
-        }
-
-        .offlineBg {
-            background-image: url(@/assets/images/business/deviceManage/tvWall/offlineBg.png);
-        }
-
-        .normalBg {
-            background-image: url(@/assets/images/business/deviceManage/tvWall/blockOneBg.png);
-        }
-
-        block:nth-child(6n+6) .blockOne {
-            margin-right: 0;
-        }
-
-        // .blockOne:first-child{
-        //     background-image:url(@/assets/images/business/deviceManage/tvWall/warningBg.png);
-        // }
     }
 
     footer {
@@ -960,62 +782,7 @@ aside {
             // overflow-x: auto;
             position: relative;
 
-            div.swiper-slide {
-                display: inline-block;
-                width: 13rem !important;
-                // padding:0 2rem;
-                height: 4rem;
-                line-height: 4rem;
-                font-size: 1.6rem;
-                text-align: center;
-                background-size: 100% 100%;
-                background-image: url(@/assets/images/business/deviceManage/tvWall/footerBg.png);
-                cursor: pointer;
-
-                span {
-                    width: 7.95rem;
-                    display: inline-block;
-                    white-space: nowrap;
-                    /* 不换行 */
-                    overflow: hidden;
-                    /* 超出部分隐藏 */
-                }
-            }
-
-            .swiper-slide.active,
-            .swiper-slide:hover {
-                background-image: url(@/assets/images/business/deviceManage/tvWall/footerBgActive.png);
-            }
-
-            .swiper-button-next,
-            .swiper-rtl .swiper-button-prev {
-                width: 1.6rem;
-                height: 4rem;
-                background-size: 100% 100%;
-                background-image: url(@/assets/images/business/deviceManage/tvWall/arrowRight.png);
-                right: var(--swiper-navigation-sides-offset, -4rem);
-                left: auto;
-            }
-
-            .swiper-button-prev,
-            .swiper-rtl .swiper-button-next {
-                width: 1.6rem;
-                height: 4rem;
-                background-size: 100% 100%;
-                background-image: url(@/assets/images/business/deviceManage/tvWall/arrowLeft.png);
-                left: var(--swiper-navigation-sides-offset, -4rem);
-                right: auto;
-            }
-
-            .swiper-button-next:hover,
-            .swiper-rtl .swiper-button-prev:hover {
-                background-image: url(@/assets/images/business/deviceManage/tvWall/arrowRightActive.png);
-            }
-
-            .swiper-button-prev:hover,
-            .swiper-rtl .swiper-button-next:hover {
-                background-image: url(@/assets/images/business/deviceManage/tvWall/arrowLeftActive.png);
-            }
+            
 
             .swiper-button-prev:after,
             .swiper-rtl .swiper-button-next:after,
@@ -1051,18 +818,6 @@ aside {
             display: none
         }
 
-        .btn-prev {
-            position: absolute;
-            left: .7rem;
-            background: url(@/assets/images/business/deviceManage/tvWall/leftArrowBig.png);
-        }
-
-        .btn-next {
-            position: absolute;
-            right: .7rem;
-            background: url(@/assets/images/business/deviceManage/tvWall/rightArrowBig.png);
-        }
-
         .btn-prev,
         .btn-next {
             background-size: 100% 100%;

+ 0 - 82
src/plugins/img.js

@@ -1,82 +0,0 @@
-/*
- * @Descripttion: 
- * @version: 
- * @Author: wt
- * @Date: 2023-04-25 10:59:14
- * @LastEditors: wt
- * @LastEditTime: 2023-05-04 15:48:05
- */
-import projectInfoTitle from "@/assets/images/business/YtIoT/company/project_info_title.png" //项目信息
-import realtimeStatus from "@/assets/images/business/YtIoT/company/realtime_status_title.png"; //当前实时告警
-
-import ui_icon from "@/assets/images/business/YtIoT/ui_icon.png" //用户传输装置icon
-import fc_icon from "@/assets/images/business/YtIoT/fc_icon.png" //消防控制柜icon
-import ef_icon from "@/assets/images/business/YtIoT/ef_icon.png" //电气火灾icon
-import wp0_icon from "@/assets/images/business/YtIoT/wp0_icon.png" //水压icon
-import ll_icon from "@/assets/images/business/YtIoT/ll_icon.png" //液位icon
-import ci_icon from "@/assets/images/business/YtIoT/ci_icon.png" //环境监测icon
-import va_icon from "@/assets/images/business/YtIoT/va_icon.png" //视频监控icon
-import wc_icon from "@/assets/images/business/YtIoT/wc_icon.png" //风机控制柜icon
-import sm_icon from "@/assets/images/business/YtIoT/sm_icon.png" //烟感icon
-
-import ui_large from "@/assets/images/business/YtIoT/status_ui_large.gif" //用户传输装置gif
-import fc_large from "@/assets/images/business/YtIoT/status_fc_large.gif" //消防控制柜gif
-import ef_large from "@/assets/images/business/YtIoT/status_ef_large.gif" //电气火灾gif
-import wp_large from "@/assets/images/business/YtIoT/status_wp_large.gif" //水压gif
-import ll_large from "@/assets/images/business/YtIoT/status_ll_large.gif" //液位gif
-import ci_large from "@/assets/images/business/YtIoT/status_ci_large.gif" //环境监测gif
-import va_large from "@/assets/images/business/YtIoT/status_va_large.gif" //视频监控gif
-import wc_large from "@/assets/images/business/YtIoT/status_wc_large.gif" //风机控制柜gif
-import sm_large from "@/assets/images/business/YtIoT/status_sm_large.gif" //烟感gif
-
-
-import gj1 from "@/assets/images/business/iot/1.png" //火系统
-import gj2 from "@/assets/images/business/iot/2.png" //水系统
-import gj3 from "@/assets/images/business/iot/3.png" //烟感系统
-import gj4 from "@/assets/images/business/iot/4.png" //消防栓
-import gj5 from "@/assets/images/business/iot/5.png" //液位
-import gj6 from "@/assets/images/business/iot/6.png" //rtu
-import gj7 from "@/assets/images/business/iot/7.png" //电气火灾
-import gj8 from "@/assets/images/business/iot/8.png" //防火门
-import gj9 from "@/assets/images/business/iot/9.png" //气体灭火
-import gj10 from "@/assets/images/business/iot/10.png" //人脸识别
-import gj16 from "@/assets/images/business/iot/16.png" //视频监控
-import gj128 from "@/assets/images/business/iot/128.png" //井盖
-
-export default {
-    projectInfoTitle: projectInfoTitle,
-    realtimeStatus: realtimeStatus,
-
-    ui_icon: ui_icon,
-    fc_icon: fc_icon,
-    ef_icon: ef_icon,
-    wp0_icon: wp0_icon,
-    ll_icon: ll_icon,
-    ci_icon: ci_icon,
-    va_icon: va_icon,
-    sm_icon: sm_icon,
-    wc_icon: wc_icon,
-
-    ui_large: ui_large,
-    fc_large: fc_large,
-    ef_large: ef_large,
-    wp_large: wp_large,
-    ll_large: ll_large,
-    ci_large: ci_large,
-    va_large: va_large,
-    wc_large: wc_large,
-    sm_large: sm_large,
-
-    gj1: gj1,
-    gj2: gj2,
-    gj3: gj3,
-    gj4: gj4,
-    gj5: gj5,
-    gj6: gj6,
-    gj7: gj7,
-    gj8: gj8,
-    gj9: gj9,
-    gj10: gj10,
-    gj16: gj16,
-    gj128: gj128,
-}

+ 0 - 3
src/plugins/index.js

@@ -3,7 +3,6 @@ import auth from './auth'
 import cache from './cache'
 import modal from './modal'
 import download from './download'
-import img from './img'
 import common from './common'
 
 
@@ -18,8 +17,6 @@ export default function installPlugins(app) {
   app.config.globalProperties.$modal = modal
   // 下载文件
   app.config.globalProperties.$download = download
-  // 公共获取图片
-  app.config.globalProperties.$img = img
   // 公共方法
   app.config.globalProperties.$common = common
 }

+ 6 - 0
src/router/index.js

@@ -60,6 +60,12 @@ export const constantRoutes = [
         component: () =>
             import ('@/views/common/error/401'),
         hidden: true
+    },
+    {
+        path: '/404',
+        component: () =>
+            import ('@/views/common/error/404'),
+        hidden: true
     }
 
 ]

+ 0 - 1
src/store/modules/user.js

@@ -1,7 +1,6 @@
 // import { login, logout, getInfo } from "@/api/login";
 
 import { getToken, setToken, removeToken } from "@/utils/auth";
-import defAva from "@/assets/images/profile2.png";
 
 const useUserStore = defineStore("user", {
     state: () => ({

+ 2 - 3
src/views/common/error/404.vue

@@ -27,14 +27,13 @@
 </template>
 
 <script setup>
-import useUserStore from '@/store/modules/user'
-const userStore = useUserStore()
+import { useRouter } from "vue-router";
 const router = useRouter();
 let message = computed(() => {
   return '找不到网页!'
 })
 function home(){
-  router.push({ path: userStore.middlePageData.defaultHomePage})
+  router.push({ path: "/"})
 }
 </script>
 

+ 8 - 9
src/views/fillIn.vue

@@ -148,12 +148,13 @@ import { ElMessage } from "element-plus";
 /*----------------------------------依赖引入-----------------------------------*/
 import axios from "axios";
 import { ref, reactive } from "vue";
+import { useRouter } from "vue-router";
 /*----------------------------------组件引入-----------------------------------*/
 import layout from "@/components/layout/index.vue";
 /*----------------------------------接口引入-----------------------------------*/
 import { getOrganization, getCustomer, addVisitor } from "@/api/index";
 /*----------------------------------公共变量-----------------------------------*/
-
+const router = useRouter();
 const { proxy } = getCurrentInstance();
 
 /*----------------------------------变量声明-----------------------------------*/
@@ -162,9 +163,10 @@ const departData = ref(); //组织列表
 const phoneArray = ref([]); //人员电话号码合集
 const data = reactive({
   form: {
-    idType: 0,
-    visitorRegisterType: 0,
-    reservedField1: 1,
+    idType: 0,//证件类型(身份证)
+    visitorRegisterType: 0,//访客登记类型(现场登记)
+    reservedField1: 1,//登记来源(访客机)
+    registrationPlace:"共进大厦一楼",//登记地点
     visitorStartTime: "",
     vistorEndTime: "",
     mobilePhone: "",
@@ -254,16 +256,15 @@ function submitForm() {
       addVisitor(form.value).then((requset) => {
         if (requset.success == true) {
           ElMessage({
-            message: "添加成功",
+            message: "访客预约申请成功,请稍后查看微信小程序推送信息",
             type: "success",
           });
-
           setTimeout(function () {
             formRef.value.resetFields(); //重置from校验
             dateRange.value = [];
+            router.push({ path: "/" });
           }, 5000);
         } else {
-          alert("失败");
           ElMessage.error(requset.msg);
         }
       });
@@ -277,14 +278,12 @@ function getDepartData() {
     pageIndex: 1,
     maxResultCount: 10,
   }).then((request) => {
-    console.log(request);
     if (request.success == true) {
       departData.value = JSON.parse(
         JSON.stringify(request.result.item)
           .replace(/name/g, "label")
           .replace(/id/g, "value")
       );
-      console.log(departData.value);
     } else {
       ElMessage.error(request.msg);
     }

+ 0 - 1
src/views/index.vue

@@ -18,7 +18,6 @@
 </template>
 <script setup name="Index">
 /*----------------------------------依赖引入-----------------------------------*/
-import md5 from 'js-md5';
 /*----------------------------------接口引入-----------------------------------*/
 /*----------------------------------组件引入-----------------------------------*/
 import layout from "@/components/layout/index.vue";

+ 1 - 15
vite.config.js

@@ -54,21 +54,7 @@ export default defineConfig(({ mode, command }) => {
             open: true, // 自动打开浏览器
             proxy: {
                 '/dev-api': {
-                    //     target: 'http://gateWay.usky.cn',
-                    target: 'http://172.16.120.165:13200',
-                    //     target: 'http://172.16.120.233:9886',
-                    // target: 'http://park.usky.cn/dev-api/',
-                    ws: true,
-                    changeOrigin: true,
-                    pathRewrite: {
-                        '^/api': ''
-                    },
-                    //rewrite: (p) => p.replace(/^\/dev-api/, '')
-                },
-                '/prod-api': {
-                    // target: 'http://gateWay.usky.cn',
-                    target: 'http://gateway.usky.cn',
-                    // target: 'http://172.17.35.51:13200/',
+                    target: '',
                     ws: true,
                     changeOrigin: true,
                     pathRewrite: {