| | |
| | | <i :class="item[iconKey]"></i> |
| | | <span slot="title" |
| | | :alt="item[pathKey]">{{generateTitle(item)}}</span> |
| | | |
| | | </el-menu-item> |
| | | <el-submenu v-else-if="!validatenull(item[childrenKey])&&vaildRoles(item)" |
| | | :index="item[pathKey]" |
| | |
| | | <i :class="item[iconKey]"></i> |
| | | <span slot="title" |
| | | :class="{'el-menu--display':collapse && first}">{{generateTitle(item)}}</span> |
| | | <div v-show="generateTitle(item) == '保安单位许可备案审批'" |
| | | style="position: absolute; |
| | | top: -2px; |
| | | z-index: 99; |
| | | width: 28px; |
| | | height: 28px; |
| | | border-radius: 50%; |
| | | background: red; |
| | | font-size: 12px; |
| | | color: #fff; |
| | | text-align: center; |
| | | line-height: 28px !important; |
| | | transform: translate(-80%, 0) scale(0.8)"> |
| | | {{xkTotal}} |
| | | </div> |
| | | </template> |
| | | <template v-for="(child,cindex) in item[childrenKey]"> |
| | | <el-menu-item :index="child[pathKey],cindex" |
| | |
| | | :key="child[labelKey]"> |
| | | <i :class="child[iconKey]"></i> |
| | | <span slot="title">{{generateTitle(child)}}</span> |
| | | <div v-show="generateTitle(child) == '保安服务许可申请'" |
| | | style="position: absolute; |
| | | top: -2px; |
| | | z-index: 99; |
| | | width: 28px; |
| | | height: 28px; |
| | | border-radius: 50%; |
| | | background: red; |
| | | font-size: 12px; |
| | | color: #fff; |
| | | text-align: center; |
| | | line-height: 28px !important; |
| | | transform: translate(-80%, 0) scale(0.8)"> |
| | | {{xkTotal}} |
| | | </div> |
| | | </el-menu-item> |
| | | <sidebar-item v-else |
| | | :menu="[child]" |
| | |
| | | :props="props" |
| | | :screen="screen" |
| | | :collapse="collapse"></sidebar-item> |
| | | |
| | | </template> |
| | | </el-submenu> |
| | | </template> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | |
| | | import {mapGetters} from "vuex"; |
| | | import {isURL, validatenull} from "@/util/validate"; |
| | | import config from "./config.js"; |
| | |
| | | }, |
| | | collapse: { |
| | | type: Boolean |
| | | }, |
| | | xkTotal: { |
| | | type: Number |
| | | } |
| | | }, |
| | | beforeCreate () { |
| | | |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | mounted() { |
| | | |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["roles"]), |