|
@@ -5,12 +5,11 @@
|
|
|
<img class="img" src="@/assets/images/wd.png" width="29" height="25" />
|
|
|
<span class="title">{{ title }}</span>
|
|
|
</div>
|
|
|
- <div class="GeneralSelectDiv1">
|
|
|
+ <div class="GeneralSelectDiv1" v-show="isDocument == 0">
|
|
|
<div class="item bg_tool">工具/发送区</div>
|
|
|
<div class="item bg_statistics">统计/分析区</div>
|
|
|
<div class="item bg_set">设置/编辑区</div>
|
|
|
</div>
|
|
|
- <!-- <div class="clearboth"></div> -->
|
|
|
</div>
|
|
|
<div class="conent">
|
|
|
<div class="area border_sending">
|
|
@@ -50,18 +49,29 @@ export default {
|
|
|
type: undefined,
|
|
|
//当前菜单路由id
|
|
|
routeId: undefined,
|
|
|
- sendingList: [], // 工具/发送区列表
|
|
|
- analysisList: [], // 统计/分析区列表
|
|
|
- editList: [] // 设置/编辑区列表
|
|
|
+ // 判断是否为文档
|
|
|
+ isDocument: 0,
|
|
|
}
|
|
|
},
|
|
|
- computed: {},
|
|
|
+ computed: {
|
|
|
+ sendingList() {
|
|
|
+ return this.docList.filter((item) => item.menuCategory == 0)
|
|
|
+ },
|
|
|
+ analysisList() {
|
|
|
+ return this.docList.filter((item) => item.menuCategory == 1)
|
|
|
+ },
|
|
|
+ editList() {
|
|
|
+ return this.docList.filter((item) => item.menuCategory == 2)
|
|
|
+ },
|
|
|
+ },
|
|
|
watch: {
|
|
|
// 监听路由跳转
|
|
|
$route: {
|
|
|
handler: function (route) {
|
|
|
this.routeId = route.query.id
|
|
|
this.title = route.query.title
|
|
|
+ this.isDocument = route.query.isDocument
|
|
|
+ console.log(this.isDocument)
|
|
|
this.init(this.routeId)
|
|
|
},
|
|
|
//一进页面就执行
|
|
@@ -76,12 +86,6 @@ export default {
|
|
|
const routes = this.$store.state.permission.routes
|
|
|
this.$nextTick(() => {
|
|
|
this.docList = routes.filter((item, index, c) => item.parentId == routeId)
|
|
|
- // 工具/发送区列表
|
|
|
- this.sendingList = this.docList.filter((item, index, c) => item.menuCategory == 0)
|
|
|
- // 统计/分析区列表
|
|
|
- this.analysisList = this.docList.filter((item, index, c) => item.menuCategory == 1)
|
|
|
- // 设置/编辑区列表
|
|
|
- this.editList = this.docList.filter((item, index, c) => item.menuCategory == 2)
|
|
|
})
|
|
|
}
|
|
|
},
|