|
@@ -16,13 +16,31 @@
|
|
:span="4"
|
|
:span="4"
|
|
style="margin-top: 16px; padding: 3px 20px"
|
|
style="margin-top: 16px; padding: 3px 20px"
|
|
>
|
|
>
|
|
- <el-link class="link" :underline="false" @click="clickMenu(it.path)">{{ it.moduleName }}</el-link>
|
|
|
|
|
|
+ <el-link class="link" :underline="false" @click="clickMenu(it.fullUrl)">{{ it.moduleName }}</el-link>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="group">
|
|
|
|
- <MenuRouter v-if="routes && routes.length" :list="routes" :flag="true" />
|
|
|
|
|
|
+ <div v-for="(item, index) in menuList" :key="index" class="group">
|
|
|
|
+ <div v-if="item.moduleName != '首页'">
|
|
|
|
+ <div class="main-title">
|
|
|
|
+ <div class="title">{{ item.moduleName }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="item.children && item.children.length" class="child">
|
|
|
|
+ <el-row :gutter="20">
|
|
|
|
+ <el-col v-for="(it, idx) in item.children" :key="idx" class="item" :span="4">
|
|
|
|
+ <el-link class="link" :underline="false" @click="clickMenu(it.fullUrl)">{{ it.moduleName }}</el-link>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-else class="child">
|
|
|
|
+ <div class="item">
|
|
|
|
+ <el-link class="link" :underline="false" @click="clickMenu(item.fullUrl)">{{
|
|
|
|
+ item.moduleName
|
|
|
|
+ }}</el-link>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 弹窗 -->
|
|
<!-- 弹窗 -->
|
|
@@ -71,7 +89,7 @@ import {
|
|
getListInvoiceOrder
|
|
getListInvoiceOrder
|
|
} from '@/api/dashboard'
|
|
} from '@/api/dashboard'
|
|
import { getArrivalNotice } from '@/api/stock'
|
|
import { getArrivalNotice } from '@/api/stock'
|
|
-import MenuRouter from '@/components/MenuRouter'
|
|
|
|
|
|
+
|
|
import { getListOrderTrack } from '@/api/supply/pickup'
|
|
import { getListOrderTrack } from '@/api/supply/pickup'
|
|
import { getFileUrl } from '@/api/common'
|
|
import { getFileUrl } from '@/api/common'
|
|
import { mapGetters } from 'vuex'
|
|
import { mapGetters } from 'vuex'
|
|
@@ -79,8 +97,7 @@ import popu from '@/components/template/popu.vue'
|
|
export default {
|
|
export default {
|
|
name: 'Dashboard',
|
|
name: 'Dashboard',
|
|
components: {
|
|
components: {
|
|
- popu,
|
|
|
|
- MenuRouter
|
|
|
|
|
|
+ popu
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
getRouter({
|
|
getRouter({
|
|
@@ -88,16 +105,12 @@ export default {
|
|
adminUserId: this.userid
|
|
adminUserId: this.userid
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.menuList = res.data
|
|
this.menuList = res.data
|
|
|
|
+ console.log(res.data)
|
|
})
|
|
})
|
|
this.getMenuList()
|
|
this.getMenuList()
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- ...mapGetters(['showMessages', 'userid', 'isCustomer']),
|
|
|
|
- routes() {
|
|
|
|
- // return this.$router.options.routes
|
|
|
|
- // this.$router.options.routes.concat(global.antRouter)
|
|
|
|
- return global.antRouter // 把路由concat进去
|
|
|
|
- }
|
|
|
|
|
|
+ ...mapGetters(['showMessages', 'userid', 'isCustomer'])
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|