Merge branch 'master' of http://192.168.0.105:10010/r/jfpt-Vue
5 files modified
9 files added
| | |
| | | :key="item.path" |
| | | > |
| | | <div class="aaa" v-show="breadListLast.length != index + 1"> |
| | | <a href="javascript:;" @click="$router.push({ path: item.path})">{{ item.name }}</a> /  |
| | | <a href="javascript:;" @click="$router.push({ path: item.path })" |
| | | >{{ item.name }} </a |
| | | > /  |
| | | </div> |
| | | <div class="bbb" v-show="breadListLast.length == index + 1"> |
| | | <div>{{ item.name }}</div> |
| | |
| | | p = path.split("/").pop(), |
| | | n = this.$route.name, |
| | | s = this.$store.state.common.liuState; |
| | | var showDataL = |
| | | n == "首页" |
| | | ? false |
| | | : n == "健康码管理" |
| | | ? false |
| | | : n == "包裹管理" |
| | | ? false |
| | | : n == "体温管理" |
| | | ? false |
| | | : n == "研判洞察" |
| | | ? false |
| | | : true; |
| | | this.$store.commit("SET_SHOWDATAL", showDataL); |
| | | |
| | | // console.log("path:" + p); |
| | | // console.log("name:" + n); |
| | | // console.log("showDataL:" + showDataL); |
| | | // console.log("state: ", s); |
| | | // console.log(this.sOld,s); |
| | | if (this.sOld != s) { |
| | | //一级菜单 |
| | | this.breadListLast = []; |
| | | this.breadListLast.push({ |
| | | name: n == "首页" ? "数据模式" : n, |
| | | // name: n == "首页" ? "数据模式" : n, |
| | | name: n, |
| | | path: path, |
| | | }); |
| | | // console.log(p, n, "写入一级面包屑"); |
| | |
| | | //判断是否有重复项,有则删除其后路由↓ |
| | | var ourP = this.breadListLast; |
| | | for (var os in ourP) { |
| | | if (n == "首页") { |
| | | n = "数据模式"; |
| | | } |
| | | // if (n == "首页") { |
| | | // n = "数据模式"; |
| | | // } |
| | | if (ourP[os].name == n && os != ourP.length - 1) { |
| | | this.breadListLast.splice( |
| | | +os + 1, |
| | |
| | | this.sOld = s; |
| | | // window.localStorage.crumbsl = this.breadListLast; |
| | | localStorage.setItem("crumbsl", JSON.stringify(this.breadListLast)); |
| | | |
| | | } |
| | | }, |
| | | loadChange2(states) { |
| | |
| | | this.isrf = false; |
| | | console.log("页面被刷新,但后台没有数据"); |
| | | } |
| | | |
| | | } |
| | | this.loadChange("moun"); |
| | | }, |
| | |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .breadEval { |
| | | color: rgba($color: #000000, $alpha: .7); |
| | | color: rgba($color: #000000, $alpha: 0.7); |
| | | position: relative; |
| | | top: -10px; |
| | | font-size: 14px; |
| | |
| | | </div> |
| | | </div> |
| | | <div class="top-bar__title"> |
| | | <div class="top-bar__item top-bar__item--show" v-if="showMenu"> |
| | | <top-menu ref="topMenu"></top-menu> |
| | | <div class="top-bar__item top-bar__item--show"> |
| | | <top-menu ref="topMenu" v-if="showMenu"></top-menu> |
| | | </div> |
| | | <!--去除顶部搜索栏--> |
| | | <!-- <span class="top-bar__item"--> |
| | |
| | | import topLang from "./top-lang"; |
| | | |
| | | //面包屑 |
| | | import crumbsL from '../../crumbsL/crumbsL' |
| | | import crumbsL from "../../crumbsL/crumbsL"; |
| | | |
| | | export default { |
| | | components: { |
| | |
| | | topNotice, |
| | | topLang, |
| | | //面包屑 |
| | | crumbsL |
| | | crumbsL, |
| | | }, |
| | | name: "top", |
| | | data() { |
| | |
| | | showFullScren: (state) => state.common.showFullScren, |
| | | showCollapse: (state) => state.common.showCollapse, |
| | | showSearch: (state) => state.common.showSearch, |
| | | showMenu: (state) => state.common.showMenu, |
| | | showMenu: (state) => state.dataL.showdataL, |
| | | showColor: (state) => state.common.showColor, |
| | | }), |
| | | ...mapGetters([ |
| | |
| | | dataItem: { |
| | | name: "数据模式", |
| | | source: "el-icon-s-data", |
| | | path: "/wel/index", |
| | | path: "/welcomeData/data", |
| | | }, |
| | | mapItem: { |
| | | name: "地图模式", |
| | |
| | | i18n: 'dashboard' |
| | | }, |
| | | component: () => |
| | | import( /* webpackChunkName: "views" */ '@/views/supervisoryConsole/data') |
| | | import( /* webpackChunkName: "views" */ '@/views/dataL/homeL') |
| | | }] |
| | | }, |
| | | |
| | |
| | | import( /* webpackChunkName: "views" */ '@/views/report/announcementReport') |
| | | }] |
| | | }, |
| | | // { |
| | | // path: '/dataL', |
| | | // redirect: '/dataL/homeL', |
| | | // component: Layout, |
| | | // children: [{ |
| | | // path: 'homeL', |
| | | // name: '首页', |
| | | // meta: { |
| | | // i18n: 'report' |
| | | // }, |
| | | // component: () => |
| | | // import( /* webpackChunkName: "views" */ '@/views/dataL/homeL') |
| | | // }] |
| | | // }, |
| | | |
| | | |
| | | |
| | |
| | | |
| | | state: { |
| | | dataLa: null, |
| | | showdataL: false, |
| | | }, |
| | | mutations: { |
| | | SET_DATAL: (state, dataLa) => { |
| | | state.dataLa = dataLa; |
| | | }, |
| | | SET_SHOWDATAL: (state, isit) => { |
| | | state.showdataL = isit; |
| | | }, |
| | | } |
| | | } |
| | | export default dataL; |
| New file |
| | |
| | | <template> |
| | | <div id="homeL"> |
| | | <div class="homeL-up"> |
| | | <span class="h1">物联网安保云服务平台</span> |
| | | <span class="h2">IoT security cloud service platform</span> |
| | | </div> |
| | | <div class="homeL-bar"> |
| | | <div class="outS" @click="down1"> |
| | | <div class="down1"><span>一键报警</span></div> |
| | | </div> |
| | | <div class="outS" @click="down2"> |
| | | <div class="down2"><span>防疫健康码</span></div> |
| | | </div> |
| | | <div class="outS" @click="down3"> |
| | | <div class="down3"><span>违禁物品</span></div> |
| | | </div> |
| | | <div class="outS" @click="down4"> |
| | | <div class="down4"><span>体温检测</span></div> |
| | | </div> |
| | | <div class="outS" @click="down5"> |
| | | <div class="down5"><span>统计分析</span></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | a: 1, |
| | | }; |
| | | }, |
| | | methods: { |
| | | down1() { |
| | | this.$router.push({ path: "/welcomeData/data" }); |
| | | }, |
| | | down2() { |
| | | this.$router.push({ path: "/healthcode/healthcode" }); |
| | | }, |
| | | down3() { |
| | | this.$router.push({ path: "/parcel/parcel" }); |
| | | }, |
| | | down4() { |
| | | this.$router.push({ path: "/animalHeat/animalHeat" }); |
| | | }, |
| | | down5() { |
| | | this.$router.push({ path: "/home/index" }); |
| | | }, |
| | | }, |
| | | mouted() {}, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | #homeL { |
| | | width: 100%; |
| | | height: 100%; |
| | | // border: 1px solid #000; |
| | | .homeL-up { |
| | | width: 100%; |
| | | height: 70%; |
| | | // border: 1px solid rgb(39, 164, 185); |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | flex-direction: column; |
| | | background-image: url("../../../public/img/bjkeji.jpg"); |
| | | background-repeat: no-repeat; |
| | | background-size: 100% 100%; |
| | | -moz-background-size: 100% 100%; |
| | | color: #fff; |
| | | |
| | | .h1 { |
| | | font-size: 54px; |
| | | } |
| | | .h2 { |
| | | font-size: 28px; |
| | | } |
| | | } |
| | | .homeL-bar { |
| | | width: 100%; |
| | | height: 30%; |
| | | position: relative; |
| | | top: 2.5px; |
| | | // border: 1px solid rgb(51, 22, 180); |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | .outS { |
| | | width: 20%; |
| | | height: 100%; |
| | | // border: 1px solid rgb(180, 22, 75); |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .down1, |
| | | .down2, |
| | | .down3, |
| | | .down4, |
| | | .down5 { |
| | | width: 96%; |
| | | height: 96%; |
| | | background-repeat: no-repeat; |
| | | background-size: 100% 100%; |
| | | cursor: pointer; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | border-radius: 5px; |
| | | &:hover { |
| | | width: 99%; |
| | | height: 99%; |
| | | transition: all 0.3s ease; |
| | | } |
| | | span { |
| | | position: relative; |
| | | top: -30px; |
| | | left: -50px; |
| | | font-weight: 600; |
| | | font-size: 30px; |
| | | color: #fff; |
| | | display: inline-block; |
| | | // border: 1px solid rgb(180, 22, 75); |
| | | } |
| | | } |
| | | .down1 { |
| | | background-image: url("../../../public/img/yijianbaoj.jpg"); |
| | | } |
| | | .down2 { |
| | | background-image: url("../../../public/img/fangyi.jpg"); |
| | | } |
| | | .down3 { |
| | | background-image: url("../../../public/img/anjian.jpg"); |
| | | } |
| | | .down4 { |
| | | background-image: url("../../../public/img/tiwen.jpg"); |
| | | } |
| | | .down5 { |
| | | background-image: url("../../../public/img/tongji.jpg"); |
| | | } |
| | | } |
| | | } |
| | | </style> |