Browse Source

添加visa申请列表

main
mac 2 months ago
parent
commit
d1ae9c508b
  1. 3
      src/api/index.ts
  2. 28
      src/pages/visa/index.tsx
  3. 11
      src/route/routes.ts
  4. 2
      src/utils/axios.ts

3
src/api/index.ts

@ -54,5 +54,8 @@ export default {
}, },
delete_new_message(params: object) { delete_new_message(params: object) {
return $axios.post('/admin/delBuzzNewsMessage', params) return $axios.post('/admin/delBuzzNewsMessage', params)
},
get_visa_list(params: object) {
return $axios.post('/admin/visaList', params)
} }
} }

28
src/pages/visa/index.tsx

@ -0,0 +1,28 @@
import api from "@/api"
import MyTable from "@/components/MyTable"
import React from "react"
const Visa = () => {
const columns = [
{
title: '名称',
dataIndex: 'name'
},
{
title: 'ID',
dataIndex: 'public_key'
},
]
return (
<div>
<MyTable
apiFun={api.get_visa_list}
columns={columns}
/>
</div>
)
}
export default Visa

11
src/route/routes.ts

@ -3,6 +3,7 @@ import Swiper from "@/pages/swiper"
import System from "@/pages/notify/system" import System from "@/pages/notify/system"
import { HomeOutlined, SolutionOutlined } from "@ant-design/icons" import { HomeOutlined, SolutionOutlined } from "@ant-design/icons"
import BUZZUPNews from "@/pages/notify/news" import BUZZUPNews from "@/pages/notify/news"
import Visa from "@/pages/visa"
const routes = [ const routes = [
{ {
@ -41,7 +42,15 @@ const routes = [
component: BUZZUPNews, component: BUZZUPNews,
routes: [] routes: []
}, },
{
path: '/visa',
name: 'Visa卡申请列表',
exact: true,
key: 'visa',
icon: SolutionOutlined,
component: Visa,
routes: []
},
] ]

2
src/utils/axios.ts

@ -13,7 +13,7 @@ interface AxiosConfig {
export const getBaseUrl = () => { export const getBaseUrl = () => {
// return `http://192.168.124.20:8008/api/v1` // return `http://192.168.124.20:8008/api/v1`
return `https://apk.hippoim.us/api/v1`
return `https://apk.buzz-up.io/api/v1`
} }
const config: AxiosConfig = { const config: AxiosConfig = {

Loading…
Cancel
Save