瀏覽代碼

系统配置

dct 9 月之前
父節點
當前提交
bd2e27f1f5
共有 4 個文件被更改,包括 175 次插入2590 次删除
  1. 14 11
      src/api/checker.js
  2. 10 3
      src/api/systemConfig.js
  3. 2 2
      src/config/env.js
  4. 149 2574
      src/pages/systemSetting/commonSetting.vue

+ 14 - 11
src/api/checker.js

@@ -1,13 +1,13 @@
 import http from '@/utils/request'
 
 // 通道组接口
-export function apiChannelGroup (url, params) {
-  return http.post(`checkerChannelGroup/${url}`, params)
+export function apiChannelGroup (url, { data: params }) {
+  return http.post(`checkerChannelGroup/${url}`, { data: params })
 }
 
 // 通道接口
-export function apiChannel (url, params) {
-  return http.post(`checkerChannel/${url}`, params)
+export function apiChannel (url, { data: params }) {
+  return http.post(`checkerChannel/${url}`, { data: params })
 }
 // 获取检票机类型
 export function getDeviceTypeList () {
@@ -16,27 +16,30 @@ export function getDeviceTypeList () {
 
 // 获取检票机列表
 export function getDeviceList (params) {
-  return http.post('checker/getCheckerList', params)
+  return http.post('/admin/term', { data: params })
 }
 
-// 修改检票设备信息
+// 修改检票设备信息·
 export function updateDevice (params) {
-  return http.post('checker/updateChecker', params)
+  return http.post('/admin/term/update', { data: params })
 }
 
 // 检票机出入统计
 export function getCheckerTrafficRecord (params) {
-  return http.post('checker/getCheckerTrafficRecord', params)
+  return http.post('checker/getCheckerTrafficRecord', { data: params })
 }
 
 // 通道出入统计
 export function getCheckerChannelTrafficRecord (params) {
-  return http.post('checkerChannel/getCheckerChannelTrafficRecord', params)
+  return http.post('checkerChannel/getCheckerChannelTrafficRecord', { data: params })
 }
 
 // 删除检票机
-export function deleteChecker (params) {
-  return http.post('checker/deleteChecker', params)
+export function deleteChecker (id) {
+  let params = {
+    idList: [id]
+  }
+  return http.post('/admin/term/delete', { data: params })
 }
 
 // 已作废 获取检票区列表

+ 10 - 3
src/api/systemConfig.js

@@ -1,12 +1,19 @@
 import http from '@/utils/request'
 export function getSystemConfigList () {
   return http.post('/admin/system-config/list', {
-    pageNum: 1,
-    pageSize: 1000
+    data: {
+      pageNum: 1,
+      pageSize: 1000
+    }
   })
 }
+
+export function deleteSystemConfig (params) {
+  return http.post('/admin/system-config/delete', { data: params })
+}
+
 export function updateSystemConfig (params) {
-  return http.post('systemConfig/updateSystemConfig', params)
+  return http.post('/admin/system-config/update', { data: params })
 }
 export function getPayChannel () {
   return http.post('/admin/system-config/list', {

+ 2 - 2
src/config/env.js

@@ -12,11 +12,11 @@ export default () => {
 
   switch (process.env.NODE_ENV) {
     case 'development': // 开发测试
-      env.baseUrl = 'https://545f-124-90-244-14.ngrok-free.app/'
+      env.baseUrl = 'http://114.104.160.233:28001/'
       break
 
     default:
-      env.baseUrl = 'https://545f-124-90-244-14.ngrok-free.app/'
+      env.baseUrl = 'http://114.104.160.233:28001/'
       break
   }
 

File diff suppressed because it is too large
+ 149 - 2574
src/pages/systemSetting/commonSetting.vue