深海科学与工程研究所安全巡检系统
祖安之光
2026-02-26 5cd656eab19d32c7892a3c7090253a278e226da0
提交
5 files modified
29 ■■■■ changed files
index.html 2 ●●● patch | view | raw | blame | history
src/assets/styles/sidebar.scss 10 ●●●● patch | view | raw | blame | history
src/views/index.vue 2 ●●● patch | view | raw | blame | history
src/views/login.vue 2 ●●● patch | view | raw | blame | history
src/views/saftyCheckMng/dailyCheck/index.vue 13 ●●●● patch | view | raw | blame | history
index.html
@@ -7,7 +7,7 @@
  <meta name="renderer" content="webkit">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <link rel="icon" href="/favicon.ico">
  <title>安全检查系统</title>
  <title>安全检查整改系统</title>
  <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
  <style>
    html,
src/assets/styles/sidebar.scss
@@ -68,6 +68,12 @@
      border: none;
      height: 100%;
      width: 100% !important;
      .el-sub-menu .el-menu-item.is-active{
        background: linear-gradient(#eee,#f5f5f5) !important;
        box-shadow: 0 -3px 8px rgba(0,0,0,.08) inset,0 3px 8px rgba(0,0,0,.08) inset;
        //background-color: #fff;
      }
    }
    .el-menu-item, .menu-title {
@@ -85,7 +91,7 @@
    .sub-menu-title-noDropdown,
    .el-sub-menu__title {
      overflow: hidden;
      border-radius: 2px 28px 28px 2px;
      border-radius: 4px;
      &:hover {
        background-color: rgba(0, 0, 0, 0.06) !important;
      }
@@ -217,7 +223,7 @@
  .nest-menu{
    overflow: hidden;
    border-radius: 2px 25px 25px 2px;
    border-radius: 4px;
  }
  .nest-menu .el-sub-menu>.el-sub-menu__title,
src/views/index.vue
@@ -3,7 +3,7 @@
    <div style="margin: 150px 100px;color: #3173ea" class="login-img">
      <div >
        <div style="font-size:50px">欢迎进入</div>
        <div style="font-size: 35px;margin-top: 20px">安全检查系统</div>
        <div style="font-size: 35px;margin-top: 20px">安全检查整改系统</div>
      </div>
    </div>
src/views/login.vue
@@ -4,7 +4,7 @@
      <div class="login-title">
        <span>中国科学院深海科学与工程研究所</span>
        <br/>
        安全检查系统
        安全检查整改系统
      </div>
    </el-col>
    <el-col :sm="24" :md="10" class="login-box">
src/views/saftyCheckMng/dailyCheck/index.vue
@@ -75,7 +75,7 @@
          <el-button link type="primary" @click="openDialog('view',scope.row)">查看</el-button>
          <el-button link type="primary" @click="openDialog('edit',scope.row)">编辑</el-button>
          <el-button link type="primary" @click="downloadFile(scope.row)">导出</el-button>
          <el-button link type="danger" @click="handleDelete(scope.row)">删除</el-button>
          <el-button v-if="isAuthority" link type="danger" @click="handleDelete(scope.row)">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
@@ -244,14 +244,21 @@
  },
  dataLoader: {},
  api: {},
  checkDate: []
  checkDate: [],
  isAuthority: false
});
const { queryParams, total, dataList,deptList, userList, formConfig, dataLoader, api, checkTypeList, checkDate } = toRefs(state);
const { queryParams, total, dataList,deptList, userList, formConfig, dataLoader, api, checkTypeList, checkDate, isAuthority } = toRefs(state);
const userStore = useUserStore()
onMounted(async ()=>{
  await getList()
  await getDeptList()
  await getUserList()
  if(userStore.roles.includes('admin') || userStore.roles.includes('sys_admin') || userStore.roles.includes('place_safety_officer')){
    state.isAuthority = true
  }else{
    state.isAuthority = false
  }
})
onUnmounted(()=>{