浏览代码

页面更新

sr 4 年之前
父节点
当前提交
1fd46d6b06
共有 2 个文件被更改,包括 31 次插入17 次删除
  1. 2 2
      ruoyi-ui/src/settings.js
  2. 29 15
      ruoyi-ui/src/views/system/surface/index.vue

+ 2 - 2
ruoyi-ui/src/settings.js

@@ -1,10 +1,10 @@
 module.exports = {
   title: '潜山市云数据中心',
   // urls: `http://192.168.101.11:8090`,
-  urls: `http://192.168.101.110:8080`,
+  urls: `http://192.168.101.110:8090`,
   // urls: `http://192.168.101.49:8080`,
 
-  // urls: `http://192.168.101.10:8080`,
+  // urls: ``,
 
   /**
    * 侧边栏主题 深色主题theme-dark,浅色主题theme-light

+ 29 - 15
ruoyi-ui/src/views/system/surface/index.vue

@@ -130,17 +130,38 @@
       this.getList();
     },
     methods: {
+      routerFn(id,tables) {
+        if(this.queryData.viewType == 'crud'){
+          this.$router.push({
+            path: '/business/table',
+            query: {
+              id,
+              tables,
+            },
+          })
+        }else if(this.queryData.viewType == 'headTab') {
+          this.$router.push({
+            path: '/business/editing',
+            query: {
+              id,
+              tables,
+            },
+          })
+        }else if(this.queryData.viewType == 'itemTab'){
+          this.$router.push({
+            path: '/business/form',
+            query: {
+              id,
+              tables,
+            },
+          })
+        }
+      },
       headerBtn(item) {
         switch (item) {
           case 'A':
             {
-              this.$router.push({
-                path: '/business/table',
-                query: {
-                  id: -1,
-                  tables: this.tabName,
-                },
-              })
+              this.routerFn(-1,this.tabName)
               return
             }
           case 'M':
@@ -150,14 +171,7 @@
                 return
               }
               const id = this.ids.join(',')
-              // id = id.join(',')
-              this.$router.push({
-                path: '/business/form',
-                query: {
-                  id,
-                  tables: this.tabName,
-                },
-              })
+              this.routerFn(id,this.tabName)
               return
             }
           case 'D':