<template>
  <yhtopbar applyStatus="yinhuan"></yhtopbar>
  <!-- 标签栏--以后可扩展 -->
  <div class="listDiv">
    <van-cell title="隐患登记" is-link @click="toList(7101)" />
    <van-cell title="隐患分析确认" is-link @click="toList(7102)" />
    <van-cell title="隐患整改" is-link @click="toList(7103)" />
    <van-cell title="隐患验收" is-link @click="toList(7104)" />
    <van-cell title="隐患销号" is-link @click="toList(7106)" />
    <van-cell title="隐患查询" is-link @click="toList('all')" />
  </div>
</template>

<script>
export default {
  name: "Yinhuan",
};
</script>

<script setup>
console.log("11111111111111111111111111111");
import yhtopbar from "./top.vue";
// import yhtopbar from "@/components/yinhuanTopbar";
import { ref } from "vue";
import { useRouter } from "vue-router";
import "@/assets/custom.less";
const router = useRouter();

const toList = (link) => {
  router.push("/yinhuanList/" + link);
};
// let userArr = ["S56077", "S56084", "S56230"];
// console.log(userArr.indexOf(localStorage.getItem("userCode")));
// const showYh =
//   userArr.indexOf(localStorage.getItem("userCode")) != -1 ? true : false;
</script>

<style></style>
