Kaynağa Gözat

- 增加 标签刷新

- 修复 刷新错误的问题
master
2183691628 3 yıl önce
ebeveyn
işleme
d0ea12ee1e
4 değiştirilmiş dosya ile 86 ekleme ve 64 silme
  1. +4
    -2
      README.md
  2. +1
    -2
      src/layout/components/TagsView/index.vue
  3. +69
    -60
      src/router/index.js
  4. +12
    -0
      src/views/redirect/index.vue

+ 4
- 2
README.md Dosyayı Görüntüle

@@ -1,7 +1,7 @@
<!--
* @Date: 2021-11-29 11:14:13
* @LastEditors: JinxuChen
* @LastEditTime: 2021-12-03 16:53:14
* @LastEditTime: 2021-12-03 17:11:59
* @FilePath: \GpsCardAdmin\README.md
* @description:
-->
@@ -36,4 +36,6 @@ FEATURE
- 增加 禁入类别
- 修复 打包路径错误的问题
- 取消 右键标签刷新操作
- 修改 右键标签为中文
- 修改 右键标签为中文
- 增加 标签刷新
- 修复 刷新错误的问题

+ 1
- 2
src/layout/components/TagsView/index.vue Dosyayı Görüntüle

@@ -17,8 +17,7 @@
</router-link>
</scroll-pane>
<ul v-show="visible" :style="{left:left+'px',top:top+'px'}" class="contextmenu">
<!-- refreshSelectedTag todo刷新有bug暂时取消 -->
<!-- <li @click="refreshSelectedTag(selectedTag)">Refresh</li> -->
<li @click="refreshSelectedTag(selectedTag)">刷新</li>
<li v-if="!isAffix(selectedTag)" @click="closeSelectedTag(selectedTag)">关闭</li>
<li @click="closeOthersTags">关闭其它</li>
<li @click="closeAllTags(selectedTag)">关闭全部</li>


+ 69
- 60
src/router/index.js Dosyayı Görüntüle

@@ -31,6 +31,15 @@ import Layout from '@/layout'
* all roles can be accessed
*/
export const constantRoutes = [{
path: '/redirect',
component: Layout,
hidden: true,
children: [{
path: '/redirect/:path(.*)',
component: () => import('@/views/redirect/index')
}]
},
{
path: '/login',
component: () => import('@/views/login/index'),
hidden: true
@@ -52,76 +61,76 @@ export const constantRoutes = [{
component: () => import('@/views/dashboard/index'),
meta: {
title: '首页',
icon: 'dashboard'
icon: 'dashboard',
affix: true
}
}]
},
// 禁入区域管理
// 禁入区域管理
{
path: '/off-limits-manage',
component: Layout,
redirect: '/off-limits-manage/off-limits-type',
name: 'off-limits-manage',
meta: {
title: '禁入区域管理',
icon: 'el-icon-s-help'
title: '禁入区域管理',
icon: 'el-icon-s-help'
},
children: [
{
path: 'off-limits-type',
name: 'off-limits-type',
component: () => import('@/views/off-limits-manage/off-limits-main/off-limits-type/index'),
meta: {
title: '禁入类别',
icon: 'el-icon-s-order'
}
},
{
path: 'alarm-recognition',
name: 'alarm-recognition',
component: () => import('@/views/off-limits-manage/alarm-recognition/index'),
meta: {
title: '告警识别内容',
icon: 'el-icon-s-management'
}
},
{
path: 'common-exception',
name: 'common-exception',
component: () => import('@/views/off-limits-manage/common-exception/index'),
meta: {
title: '通用例外',
icon: 'el-icon-warning'
}
},
{
path: 'user-exception',
name: 'user-exception',
component: () => import('@/views/off-limits-manage/user-exception/index'),
meta: {
title: '用户例外',
icon: 'el-icon-user-solid'
}
},
// todo 一期先不做这个功能 后面原型图确认了再做
/* {
path: 'related-setting',
name: 'related-setting',
component: () => import('@/views/off-limits-manage/related-setting/index'),
meta: {
title: '相关设置',
icon: 'el-icon-s-tools'
}
}, */
{
path: 'alarm-query',
name: 'alarm-query',
component: () => import('@/views/off-limits-manage/alarm-query/index'),
meta: {
title: '告警查询',
icon: 'el-icon-message-solid'
}
children: [{
path: 'off-limits-type',
name: 'off-limits-type',
component: () => import('@/views/off-limits-manage/off-limits-main/off-limits-type/index'),
meta: {
title: '禁入类别',
icon: 'el-icon-s-order'
}
},
{
path: 'alarm-recognition',
name: 'alarm-recognition',
component: () => import('@/views/off-limits-manage/alarm-recognition/index'),
meta: {
title: '告警识别内容',
icon: 'el-icon-s-management'
}
},
{
path: 'common-exception',
name: 'common-exception',
component: () => import('@/views/off-limits-manage/common-exception/index'),
meta: {
title: '通用例外',
icon: 'el-icon-warning'
}
},
{
path: 'user-exception',
name: 'user-exception',
component: () => import('@/views/off-limits-manage/user-exception/index'),
meta: {
title: '用户例外',
icon: 'el-icon-user-solid'
}
},
// todo 一期先不做这个功能 后面原型图确认了再做
/* {
path: 'related-setting',
name: 'related-setting',
component: () => import('@/views/off-limits-manage/related-setting/index'),
meta: {
title: '相关设置',
icon: 'el-icon-s-tools'
}
}, */
{
path: 'alarm-query',
name: 'alarm-query',
component: () => import('@/views/off-limits-manage/alarm-query/index'),
meta: {
title: '告警查询',
icon: 'el-icon-message-solid'
}
}
]

},
@@ -169,7 +178,7 @@ export const constantRoutes = [{
}]
}, */

// 例子模板,可参考
// 例子模板,可参考
/* {
path: '/nested',
component: Layout,


+ 12
- 0
src/views/redirect/index.vue Dosyayı Görüntüle

@@ -0,0 +1,12 @@
<script>
export default {
created() {
const { params, query } = this.$route
const { path } = params
this.$router.replace({ path: '/' + path, query })
},
render: function(h) {
return h() // avoid warning message
}
}
</script>

Yükleniyor…
İptal
Kaydet