Commit 0d9cdaef authored by 徐一鸣's avatar 徐一鸣

问答中心列表

parent cbf7eeaa
src/assets/imgs/img_head.png

2.15 KB | W: | H:

src/assets/imgs/img_head.png

3.09 KB | W: | H:

src/assets/imgs/img_head.png
src/assets/imgs/img_head.png
src/assets/imgs/img_head.png
src/assets/imgs/img_head.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -14,24 +14,19 @@ ...@@ -14,24 +14,19 @@
</el-breadcrumb> </el-breadcrumb>
</div> </div>
<div class="main_container"></div> <div class="main_container">
<!-- -->
</div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {};
answerList: [],
};
},
computed: {},
created() {
this.getAnwerList();
},
methods: {
getAnwerList() {},
}, },
created() {},
methods: {},
}; };
</script> </script>
...@@ -40,9 +35,14 @@ export default { ...@@ -40,9 +35,14 @@ export default {
padding: 12px 0 11px; padding: 12px 0 11px;
} }
.main_container { .main_container {
min-height: calc(100% - 66px); min-height: calc(100vh - 58px - 66px);
padding: 0 15px;
background-color: #fff; background-color: #fff;
border-radius: 10px; border-radius: 10px;
margin-bottom: 20px; margin-bottom: 20px;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: stretch;
} }
</style> </style>
...@@ -33,15 +33,24 @@ export default { ...@@ -33,15 +33,24 @@ export default {
this.$api.general.getNowMenu({ teamName: "APAAS3" }).then((response) => { this.$api.general.getNowMenu({ teamName: "APAAS3" }).then((response) => {
if (response.data.success == 1) { if (response.data.success == 1) {
let arr = response.data.data[0].Child; let arr = response.data.data[0].Child;
let user_index = arr.findIndex(
(item) => item.visit_url == "/technical_support/doc-manage" for (let i = 0; i < arr.length; i++) {
); let first = arr[i];
if (user_index != -1) {
this.navList = arr[user_index].Child; if (first.visit_url == "/technical_support") {
this.navList.forEach((item) => { for (let j = 0; j < first.Child.length; j++) {
item.name = item.menu_name; let second = first.Child[j];
item.path = item.visit_url;
}); if (second.visit_url == "/technical_support/doc_manage") {
this.navList = second.Child.map((item) => ({
name: item.menu_name,
path: item.visit_url,
}));
break;
}
}
break;
}
} }
} }
}); });
......
...@@ -33,15 +33,24 @@ export default { ...@@ -33,15 +33,24 @@ export default {
this.$api.general.getNowMenu({ teamName: "APAAS3" }).then((response) => { this.$api.general.getNowMenu({ teamName: "APAAS3" }).then((response) => {
if (response.data.success == 1) { if (response.data.success == 1) {
let arr = response.data.data[0].Child; let arr = response.data.data[0].Child;
let user_index = arr.findIndex(
(item) => item.visit_url == "/technical_support/doc" for (let i = 0; i < arr.length; i++) {
); let first = arr[i];
if (user_index != -1) {
this.navList = arr[user_index].Child; if (first.visit_url == "/technical_support") {
this.navList.forEach((item) => { for (let j = 0; j < first.Child.length; j++) {
item.name = item.menu_name; let second = first.Child[j];
item.path = item.visit_url;
}); if (second.visit_url == "/technical_support/doc") {
this.navList = second.Child.map((item) => ({
name: item.menu_name,
path: item.visit_url,
}));
break;
}
}
break;
}
} }
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment