MrShi
2025-04-16 090ea2c7d46a7082e978e6c0134d3fbeafaa34a0
admin/src/views/index.vue
@@ -1,5 +1,6 @@
<template>
  <div class="main_home">
    <!-- <div style="position: fixed;z-index: 99999"><video  style="height: 100px;width: 500px" src="rtsp://10.50.250.253:554/openUrl/K2y2vE4" controls></video></div> -->
    <div class="home_header">
      <div class="mb10 fs17">下午好,{{ userInfo.realname }}</div>
      <div class="fs13">
@@ -133,7 +134,7 @@
        <div class="task">
          <div class="header df_sb">
            <div class="home_title df">
              <span @click="getNoticeList">待办事项</span>
              <span >待办事项</span>
              <span class="num" v-if="taskTotal">{{ taskTotal }}</span>
            </div>
            <div class="df_ac more" @click="jumpPage('/task/index')">
@@ -239,7 +240,8 @@
        { name: '访客报备', path: '', url: require('@/assets/icons/home_func1.png'), path: '/business/reportRecord' },
        { name: '隐患随手拍', path: '', url: require('@/assets/icons/home_func2.png'), path: '/operation/danger/record' },
        { name: '预约会议室', path: '', url: require('@/assets/icons/home_func3.png'), path: '/meeting/bookings' },
        { name: '考勤工作台', path: '', url: require('@/assets/icons/home_func4.png') }
        { name: '考勤工作台', path: '', url: require('@/assets/icons/home_func4.png') },
        { name: '食堂消费入口', path: '', url: require('@/assets/icons/8.png') }
      ],
      isShowDetail: false,
      isShowReport: false,
@@ -272,7 +274,10 @@
        if (res == undefined || res == null) {
          return
        }
        const myWindow = window.open(res)
        console.log('单点登录地址------', res)
        const myWindow = top.window.open(res)
        console.log('myWindow---', myWindow)
        setTimeout(() => {
          const params = {
            componentId: 'dfe',
@@ -329,9 +334,11 @@
            },
            msgType: 'tlnc'
          }
          const argus = JSON.parse(row.param5)
          console.log('row.param5 Obj---', argus)
          // const argus = JSON.stringify(params)
          myWindow.postMessage('{"method":"goToApp","argument":' + row.param5 + '}', '*')
        }, 3000)
        }, 8000)
      })
    },
    SubSuccess (str) {
@@ -344,6 +351,11 @@
          window.open(res, '_blank')
        })
      }
      if (item.name == '食堂消费入口') {
        getAppHeaderNav(6).then(res => {
          window.open(res, '_blank')
        })
      }
      this.$router.push(item.path)
    },
    updateDate () {