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 @@
</el-breadcrumb>
</div>
<div class="main_container"></div>
<div class="main_container">
<!-- -->
</div>
</div>
</template>
<script>
export default {
data() {
return {
answerList: [],
};
},
computed: {},
created() {
this.getAnwerList();
},
methods: {
getAnwerList() {},
return {};
},
created() {},
methods: {},
};
</script>
......@@ -40,9 +35,14 @@ export default {
padding: 12px 0 11px;
}
.main_container {
min-height: calc(100% - 66px);
min-height: calc(100vh - 58px - 66px);
padding: 0 15px;
background-color: #fff;
border-radius: 10px;
margin-bottom: 20px;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: stretch;
}
</style>
......@@ -33,15 +33,24 @@ export default {
this.$api.general.getNowMenu({ teamName: "APAAS3" }).then((response) => {
if (response.data.success == 1) {
let arr = response.data.data[0].Child;
let user_index = arr.findIndex(
(item) => item.visit_url == "/technical_support/doc-manage"
);
if (user_index != -1) {
this.navList = arr[user_index].Child;
this.navList.forEach((item) => {
item.name = item.menu_name;
item.path = item.visit_url;
});
for (let i = 0; i < arr.length; i++) {
let first = arr[i];
if (first.visit_url == "/technical_support") {
for (let j = 0; j < first.Child.length; j++) {
let second = first.Child[j];
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 {
this.$api.general.getNowMenu({ teamName: "APAAS3" }).then((response) => {
if (response.data.success == 1) {
let arr = response.data.data[0].Child;
let user_index = arr.findIndex(
(item) => item.visit_url == "/technical_support/doc"
);
if (user_index != -1) {
this.navList = arr[user_index].Child;
this.navList.forEach((item) => {
item.name = item.menu_name;
item.path = item.visit_url;
});
for (let i = 0; i < arr.length; i++) {
let first = arr[i];
if (first.visit_url == "/technical_support") {
for (let j = 0; j < first.Child.length; j++) {
let second = first.Child[j];
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