Bläddra i källkod

push router name update

allen 1 år sedan
förälder
incheckning
be07ba1989

+ 7 - 16
src/router/index.js

@@ -657,22 +657,7 @@ export const adminRoutes = [
         meta: { title: i18n.t('tab.systemConfig'), icon: 'nested', noCache: true }
       }
     ]
-  },
-  {
-    path: '/part_settings',
-    component: Layout,
-    redirect: '/part_settings/index/:id?',
-    children: [
-      {
-        path: 'index/:id?',
-        component: () => import('@/views/ncs-orginazition/partInfoSetting'),
-        name: 'admin-part-settings',
-        meta: { title: i18n.t('tab.shopSetting'), icon: 'nested', noCache: true },
-        hidden: true
-      }
-    ]
-  },
-  {
+  },{
     path: '/menu',
     component: Layout,
     redirect: '/menu/index',
@@ -695,6 +680,12 @@ export const adminRoutes = [
         component: () => import('@/views/ncs-orginazition/index'),
         name: 'admin-organization',
         meta: { title: i18n.t('tab.organization'), icon: 'tree', noCache: true }
+      },{
+        path: 'index/:id?',
+        component: () => import('@/views/ncs-orginazition/partInfoSetting'),
+        name: 'admin-part-settings',
+        meta: { title: i18n.t('tab.shopSetting'), icon: 'nested', noCache: true },
+        hidden: true
       }
     ]
   },

+ 1 - 1
src/views/custom-infoboard/board-title.vue

@@ -412,7 +412,7 @@
             },
 
             toDesigner(row) {
-                this.$router.push({ name: 'BoardDesigner', params: { id:row.id }})
+                this.$router.push({ name: 'infoboard-designer', params: { id:row.id }})
             }
 
 

+ 1 - 1
src/views/customer/components/customerManager.vue

@@ -1139,7 +1139,7 @@ export default {
     },
     handleClick() {
       if (this.activeName === 'footprint') {
-        this.$router.push({path:'/device/myMapHtml', query: {mapUrl: this.mapUrl}})
+        this.$router.push({path:'/device/map', query: {mapUrl: this.mapUrl}})
       }
     },
     /** 生日选择变化,修改年龄字段 */

+ 2 - 2
src/views/customer/components/elderlyCareManager.vue

@@ -1086,7 +1086,7 @@
             },
             handleClick() {
               if (this.activeName === 'footprint') {
-                this.$router.push({path:'/device/myMapHtml', query: {mapUrl: this.mapUrl}})
+                this.$router.push({path:'/device/map', query: {mapUrl: this.mapUrl}})
               }
             },
             /** 生日选择变化,修改年龄字段 */
@@ -1601,7 +1601,7 @@
             this.locationShow = false
           },
           goPage() {
-            this.$router.push({path:'/allMap'})
+            this.$router.push({path:'/customer/map'})
           },
           getCloud() {
             API_SystemConfig.cloud().then(r => {

+ 1 - 1
src/views/customer/components/patientManager.vue

@@ -1162,7 +1162,7 @@
           },
             handleClick() {
               if (this.activeName === 'footprint') {
-                this.$router.push({path:'/device/myMapHtml', query: {mapUrl: this.mapUrl}})
+                this.$router.push({path:'/device/map', query: {mapUrl: this.mapUrl}})
               }
             },
             /** 生日选择变化,修改年龄字段 */

+ 1 - 1
src/views/dashboard/calling-admin/index.vue

@@ -233,7 +233,7 @@ export default {
     },
     /** 编辑按钮 */
     handlerEdit: function(index, row) {
-      this.$router.push({ name: 'partInfoSetting', params: { id: row.id, callback: this.getList() }})
+      this.$router.push({ name: 'admin-part-settings', params: { id: row.id, callback: this.getList() }})
     },
     /** 表格行选择变化记录选中行数据*/
     selectFun: function(val) {

+ 1 - 4
src/views/dashboard/calling/index.vue

@@ -244,10 +244,7 @@ export default {
       this.isShowArticle = true
     },
     goMove(path) {
-      if (path === 'customerList') {
-        uiVersion === 1 ? path = 'patientManagement' : uiVersion === 2 ? path = 'customerManager' : path = 'elderlyCareManager'
-      }
-      this.$router.push({ name: path })
+      this.$router.push({ name: 'customer-manager' })
     },
     formatterFromName(row, column, cellValue) {
       if (!row.outerior_action && row.relative_name === null) {

+ 1 - 1
src/views/hospitalFrame/frameGroup.vue

@@ -356,7 +356,7 @@ export default {
       this.getList()
     },
     handEdit(row) {
-      this.$router.push({ name: 'frameGroupEdit', params: { id: row.id, callback: this.getList() }})
+      this.$router.push({ name: 'frame-group-edit', params: { id: row.id, callback: this.getList() }})
     },
     /**
              * 提交新增表单

+ 1 - 1
src/views/hospitalFrame/nurse_watch_frame.vue

@@ -300,7 +300,7 @@ export default {
       })
     },
     back() {
-      this.$router.push({ name: 'nurse_watch' })
+      this.$router.push({ name: 'device-mobile' })
       this.$emit('fanhui')
     }
   }

+ 1 - 1
src/views/ncs-broadcast/index.vue

@@ -760,7 +760,7 @@ export default {
       this.getList()
     },
     handEdit(row) {
-      this.$router.push({ name: 'broadcastEdit', params: { id: row.id, callback: this.getList() }})
+      this.$router.push({ name: 'broadcast-edit', params: { id: row.id, callback: this.getList() }})
     },
     /**
      * 提交新增表单

+ 1 - 1
src/views/ncs-channel/index.vue

@@ -514,7 +514,7 @@ export default {
       this.formSubscribe = true
     },
     channelImHistory(row) {
-      this.$router.push({ name: 'channelImHistory', params: { id: row.id, callback: this.getList() }})
+      this.$router.push({ name: 'channel-im-history', params: { id: row.id, callback: this.getList() }})
     },
     getEmployees() {
       const _this = this

+ 1 - 1
src/views/ncs-device/nurse_watch.vue

@@ -567,7 +567,7 @@ export default {
     },
     handEdit(row) {
       if (row.role_id) {
-        this.$router.push({ name: 'nurseWatchFrame', params: { id: row.id, role_id: row.role_id, callback: this.getList() }})
+        this.$router.push({ name: 'nurse-watch-frame', params: { id: row.id, role_id: row.role_id, callback: this.getList() }})
       } else {
         this.$message.error(this.$t('deviceManage.choiceRoleName'))
       }

+ 3 - 3
src/views/ncs-his/his-part/hisPartManager.vue

@@ -193,13 +193,13 @@ export default {
       })
     },
     getHisPatient(row) {
-      this.$router.push({ name: 'hisPatientManage', params: { id: row.keyval, callback: this.getList() }})
+      this.$router.push({ name: 'admin-his-patient', params: { id: row.keyval, callback: this.getList() }})
     },
     getHisClerk(row) {
-      this.$router.push({ name: 'hisClerkManage', params: { id: row.keyval, callback: this.getList() }})
+      this.$router.push({ name: 'admin-his-clerk', params: { id: row.keyval, callback: this.getList() }})
     },
     getHisNurseConfig(row) {
-      this.$router.push({ name: 'hisNurseConfigManage', params: { id: row.keyval, callback: this.getList() }})
+      this.$router.push({ name: 'admin-his-nurse-config', params: { id: row.keyval, callback: this.getList() }})
     },
     /** 处理搜索 */
     handlerSearch(value) {

+ 1 - 1
src/views/ncs-interaction-push-config/index.vue

@@ -441,7 +441,7 @@
             },
 
             goConfig(row) {
-                this.$router.push({ name: 'interaction-push-config', params: { id:row.id }})
+                this.$router.push({ name: 'admin-interaction-push', params: { id:row.id }})
             },
             /** 设备状态格式化 **/
             deviceStatusFormatter(params) {

+ 2 - 2
src/views/ncs-orginazition/index.vue

@@ -468,7 +468,7 @@ export default {
       }
     },
     handEdit(row) {
-      this.$router.push({ name: 'partInfoSetting', params: { id: row.shop_id, callback: this.getList() }})
+      this.$router.push({ name: 'admin-part-settings', params: { id: row.shop_id, callback: this.getList() }})
     },
     /** 获取上级机构数组 特指医院 **/
     getPartents() {
@@ -508,7 +508,7 @@ export default {
     },
     deviceBind(row) {
       console.log('--------------------', row.shop_id, row.parent_id)
-      this.$router.push({ name: 'device-frame', params: { id: row.shop_id, parent_id: row.parent_id }})
+      this.$router.push({ name: 'admin-device-frame', params: { id: row.shop_id, parent_id: row.parent_id }})
     },
     synchroDevice(row) { // 同步线上设备
       synchroDevice(row.union_id, row.shop_id).then(res => {