Selaa lähdekoodia

3.14工作内容

bulusiLuo 3 vuotta sitten
vanhempi
commit
069c5726f8

+ 39 - 0
src/api/currentpage.js

@@ -0,0 +1,39 @@
+import request from '@/utils/request'
+
+/**
+  * 说明:
+  * get和delete传值用params,
+  * post和put传值用data
+  */
+// 获取router
+export function getRouter(params) {
+  return request({
+    url: '/base/user/userlistByTree',
+    method: 'get',
+    params
+  })
+}
+// 分页查询
+export function getCurrentPage(params) {
+  return request({
+    url: '/tofly-reveal/portalmodule/page',
+    method: 'get',
+    params
+  })
+}
+// 数据库信息
+export function getDBTable(params) {
+  return request({
+    url: '/tofly-reveal/commonInter/getDBTable',
+    method: 'get',
+    params
+  })
+}
+// 分页查询
+export function getPortalmodule(data) {
+  return request({
+    url: '/tofly-reveal/portalmodule',
+    method: 'post',
+    data
+  })
+}

+ 1 - 1
src/utils/request.js

@@ -6,7 +6,7 @@ import qs from 'qs'
 
 // 请求的url
 // export const baseUrl = 'http://192.168.2.231:8084'
-export const baseUrl = 'http://118.24.21.156:8089'
+export const baseUrl = 'http://117.174.10.73:1112'
 // export const baseUrl = 'http://192.168.2.49:8061'
 // 创建axios实例
 const service = axios.create({

+ 16 - 0
src/views/currentSystem/InfoDisclosure/openWork.vue

@@ -27,6 +27,7 @@
 
 <script>
 import Pagination from '@/components/Pagination/index.vue'
+import {getCurrentPage,getPortalmodule,getDBTable} from '@/api/currentpage'
 export default {
     components:{
         Pagination
@@ -35,6 +36,21 @@ export default {
     return {
     };
   },
+  created(){
+      getCurrentPage({
+          
+      }).then(res=>{
+          console.log(res);
+      })
+    //   getPortalmodule({
+          
+    //   }).then(res=>{
+    //       console.log('1',res);
+    //   })
+    //   getDBTable({}).then(res=>{
+    //       console.log('2',res);
+    //   })
+  },
   methods: {
   }
 };

+ 1 - 0
src/views/currentSystem/dashboard/index.vue

@@ -42,6 +42,7 @@
         </el-tabs>
       </div>
     </div>
+    
     <div class="outLink banxin">
       <p>欢迎进入中国水协官方网站</p>
       <span><a href="https://www.h2o-china.com">点击前往 >></a></span>