From 75291a6831b27cc76a79985269ed73f79ad1e4b6 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期二, 27 九月 2022 17:07:54 +0800
Subject: [PATCH] 修改菜单权限
---
src/views/personalCenter/components/Content.vue | 70 +++++++++++++++--------------------
1 files changed, 30 insertions(+), 40 deletions(-)
diff --git a/src/views/personalCenter/components/Content.vue b/src/views/personalCenter/components/Content.vue
index b725687..c7ced9c 100644
--- a/src/views/personalCenter/components/Content.vue
+++ b/src/views/personalCenter/components/Content.vue
@@ -1,72 +1,57 @@
<template>
<div class="whiteContent Content">
- <LeftMenu @mChange="mChange"> </LeftMenu>
- <div class="right-content">
- <SubAccount v-if="activeIndex == 4"></SubAccount>
- <BasicInfo v-if="activeIndex == 3"></BasicInfo>
+ <div class="heart">
+ <LeftMenu @mChange="mChange"> </LeftMenu>
+ <div class="right-content">
+ <SubAccount v-if="activeIndex == 'subAccount'"></SubAccount>
+ <BasicInfo v-if="activeIndex == 'baseInfo'" @gotolist="gotolist"></BasicInfo>
+ <OrderMng v-if="activeIndex == 'order'"></OrderMng>
+ </div>
</div>
</div>
</template>
<script>
-import { findDevList } from "@/api/device";
-import SubAccount from "./SubAccount";
-import LeftMenu from "./LeftMenu";
-import BasicInfo from "./BasicInfo";
+import SubAccount from "./SubAccount"
+import LeftMenu from "./LeftMenu"
+import BasicInfo from "./BasicInfo"
+import OrderMng from "./OrderMng"
+
export default {
- created() {
- window._AMapSecurityConfig = {
- securityJsCode: "768ab79bdc4075aa082bc070c53bb3c4",
- };
- },
- mounted() {
- this.searchingBtn();
- },
components: {
SubAccount, //琛ㄦ牸
LeftMenu,
BasicInfo,
+ OrderMng
},
data() {
return {
map: null,
AMap: null,
- activeIndex: 0,
+ activeIndex: "baseInfo",
nodes: [],
isShowCard: false,
isFull: false, //鏄惁鍏ㄥ睆
zoom: 4, //鍦板浘绾у埆
center: [116.06157, 39.66157], //鍦板浘涓績
activeNode: null, //閫変腑鐨勫湴鍥捐妭鐐�
- geocoder: {},
- };
+ geocoder: {}
+ }
},
methods: {
//鍏抽棴璁惧璇︽儏寮瑰眰
closeCard() {
- this.isShowCard = false;
+ this.isShowCard = false
},
mChange(i) {
- this.activeIndex = i;
+ this.activeIndex = i
},
- // 鏌ヨ鍒楄〃
- searchingBtn() {
- let param = {
- page: 1,
- size: 999,
- inputText: "",
- };
- findDevList(param)
- .then((res) => {
- this.nodes = res.data.list;
- })
- .catch((err) => {
- console.log(err);
- });
- },
- },
-};
+ gotolist() {
+ this.mChange(4)
+ }
+ }
+}
</script>
<style scoped lang="scss">
@@ -76,6 +61,11 @@
margin: 30px auto;
display: flex;
justify-content: center;
+
+ .heart {
+ display: flex;
+ }
+
.left-menu {
margin-right: 24px;
}
@@ -88,7 +78,7 @@
min-height: 856px;
box-sizing: border-box;
background-color: #fff;
- width: 1196px;
+ width: 1036px;
}
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.8.0