diff --git a/src/api/carousel.ts b/src/api/carousel.ts index 53abdef..64ad85d 100644 --- a/src/api/carousel.ts +++ b/src/api/carousel.ts @@ -59,4 +59,18 @@ export function carouselDel(id:number,type:Number) { */ export function carouselChang(id:number,type:Number,img_url:string) { return axios.post('/admin/api/v1/carousel/chang',{id,type,img_url}); +} +/** + * 获取所有汇率 + * @returns + */ +export function getAll() { + return axios.post('/api/v1/ExchangeRate/lists'); +} +/** + * 更新汇率 + * @returns + */ +export function setAll(item:any) { + return axios.post('/admin/api/v1/carousel/chang',item); } \ No newline at end of file diff --git a/src/locale/zh-CN.ts b/src/locale/zh-CN.ts index 1a85568..33d99b2 100644 --- a/src/locale/zh-CN.ts +++ b/src/locale/zh-CN.ts @@ -52,7 +52,7 @@ export default { 'navbar.action.locale': '切换为中文', 'menu.project': '项目', 'menu.hotinformation': '文章', - 'menu.carousel':'轮播图', + 'menu.carousel':'汇率', 'menu.volunteerservicecorps':'志愿队', 'menu.jobuser':'用户', ...localeSettings, diff --git a/src/router/routes/modules/carousel.ts b/src/router/routes/modules/carousel.ts index 5b00427..abf9463 100644 --- a/src/router/routes/modules/carousel.ts +++ b/src/router/routes/modules/carousel.ts @@ -1,37 +1,37 @@ -import { DEFAULT_LAYOUT } from '../base'; -import { AppRouteRecordRaw } from '../types'; +// import { DEFAULT_LAYOUT } from '../base'; +// import { AppRouteRecordRaw } from '../types'; -const LIST: AppRouteRecordRaw = { - path: '/carousel', - name: 'carousel', - component: DEFAULT_LAYOUT, - meta: { - locale: 'menu.carousel', - requiresAuth: true, - icon: 'icon-image', - order: 3, - }, - children: [ - { - path: 'carouseldetailed', // The midline path complies with SEO specifications - name: 'carouseldetailed', - component: () => import('@/views/carousel/carousel.vue'), - meta: { - locale: 'menu.carousel.Table', - requiresAuth: true, - roles: ['*'], - }, - },{ - path: 'carouseladdetailed', // The midline path complies with SEO specifications - name: 'carouseladdetailed', - component: () => import('@/views/carousel/carouselad.vue'), - meta: { - locale: 'menu.carouselad.Table', - requiresAuth: true, - roles: ['*'], - }, - }, - ], -}; +// const LIST: AppRouteRecordRaw = { +// path: '/carousel', +// name: 'carousel', +// component: DEFAULT_LAYOUT, +// meta: { +// locale: 'menu.carousel', +// requiresAuth: true, +// icon: 'icon-image', +// order: 3, +// }, +// children: [ +// { +// path: 'carouseldetailed', // The midline path complies with SEO specifications +// name: 'carouseldetailed', +// component: () => import('@/views/carousel/carousel.vue'), +// meta: { +// locale: 'menu.carousel.Table', +// requiresAuth: true, +// roles: ['*'], +// }, +// },{ +// path: 'carouseladdetailed', // The midline path complies with SEO specifications +// name: 'carouseladdetailed', +// component: () => import('@/views/carousel/carouselad.vue'), +// meta: { +// locale: 'menu.carouselad.Table', +// requiresAuth: true, +// roles: ['*'], +// }, +// }, +// ], +// }; -export default LIST; +// export default LIST; diff --git a/src/router/routes/modules/exchangerate.ts b/src/router/routes/modules/exchangerate.ts new file mode 100644 index 0000000..a9c33e1 --- /dev/null +++ b/src/router/routes/modules/exchangerate.ts @@ -0,0 +1,28 @@ +import { DEFAULT_LAYOUT } from '../base'; +import { AppRouteRecordRaw } from '../types'; + +const LIST: AppRouteRecordRaw = { + path: '/exchangerate', + name: 'exchangerate', + component: DEFAULT_LAYOUT, + meta: { + locale: 'menu.carousel', + requiresAuth: true, + icon: 'icon-menu-unfold', + order: 3, + }, + children: [ + { + path: 'carouseldetailed', // The midline path complies with SEO specifications + name: 'carouseldetailed', + component: () => import('@/views/carousel/carousel.vue'), + meta: { + locale: 'menu.carousel.Table', + requiresAuth: true, + roles: ['*'], + }, + } + ], +}; + +export default LIST; diff --git a/src/router/routes/modules/hotinformation.ts b/src/router/routes/modules/hotinformation.ts index a3ec2bc..09c8909 100644 --- a/src/router/routes/modules/hotinformation.ts +++ b/src/router/routes/modules/hotinformation.ts @@ -1,47 +1,47 @@ -import { DEFAULT_LAYOUT } from '../base'; -import { AppRouteRecordRaw } from '../types'; +// import { DEFAULT_LAYOUT } from '../base'; +// import { AppRouteRecordRaw } from '../types'; -const LIST: AppRouteRecordRaw = { - path: '/hotinformation', - name: 'hotinformation', - component: DEFAULT_LAYOUT, - meta: { - locale: 'menu.hotinformation', - requiresAuth: true, - icon: 'icon-layers', - order: 9, - }, - children: [ - { - path: 'index', // The midline path complies with SEO specifications - name: 'index', - component: () => import('@/views/hotinformation/index.vue'), - meta: { - locale: 'menu.hotinformation.Table', - requiresAuth: true, - roles: ['*'], - }, - },{ - path: 'volunteerdynamics', // The midline path complies with SEO specifications - name: 'volunteerdynamics', - component: () => import('@/views/hotinformation/volunteerdynamics.vue'), - meta: { - locale: 'menu.hotinformation.volunteerdynamics', - requiresAuth: true, - roles: ['*'], - }, - },{ - path: 'edi/:type/:id', // The midline path complies with SEO specifications - name: 'edi', - component: () => import('@/views/hotinformation/edi.vue'), - meta: { - locale: 'menu.hotinformation.edi', - requiresAuth: true, - hideInMenu:true, - roles: ['*'], - }, - } - ], -}; +// const LIST: AppRouteRecordRaw = { +// path: '/hotinformation', +// name: 'hotinformation', +// component: DEFAULT_LAYOUT, +// meta: { +// locale: 'menu.hotinformation', +// requiresAuth: true, +// icon: 'icon-layers', +// order: 9, +// }, +// children: [ +// { +// path: 'index', // The midline path complies with SEO specifications +// name: 'index', +// component: () => import('@/views/hotinformation/index.vue'), +// meta: { +// locale: 'menu.hotinformation.Table', +// requiresAuth: true, +// roles: ['*'], +// }, +// },{ +// path: 'volunteerdynamics', // The midline path complies with SEO specifications +// name: 'volunteerdynamics', +// component: () => import('@/views/hotinformation/volunteerdynamics.vue'), +// meta: { +// locale: 'menu.hotinformation.volunteerdynamics', +// requiresAuth: true, +// roles: ['*'], +// }, +// },{ +// path: 'edi/:type/:id', // The midline path complies with SEO specifications +// name: 'edi', +// component: () => import('@/views/hotinformation/edi.vue'), +// meta: { +// locale: 'menu.hotinformation.edi', +// requiresAuth: true, +// hideInMenu:true, +// roles: ['*'], +// }, +// } +// ], +// }; -export default LIST; +// export default LIST; diff --git a/src/router/routes/modules/jobuser.ts b/src/router/routes/modules/jobuser.ts index 583e9da..a43cd76 100644 --- a/src/router/routes/modules/jobuser.ts +++ b/src/router/routes/modules/jobuser.ts @@ -8,7 +8,7 @@ const JOBUSER: AppRouteRecordRaw = { meta: { locale: 'menu.jobuser', requiresAuth: true, - icon: 'Person fill gear', + icon: 'icon-user', order: 0, }, children: [ diff --git a/src/router/routes/modules/project.ts b/src/router/routes/modules/project.ts index 68ed4b9..c955730 100644 --- a/src/router/routes/modules/project.ts +++ b/src/router/routes/modules/project.ts @@ -1,38 +1,38 @@ -import { DEFAULT_LAYOUT } from '../base'; -import { AppRouteRecordRaw } from '../types'; +// import { DEFAULT_LAYOUT } from '../base'; +// import { AppRouteRecordRaw } from '../types'; -const LIST: AppRouteRecordRaw = { - path: '/project', - name: 'project', - component: DEFAULT_LAYOUT, - meta: { - locale: 'menu.project', - requiresAuth: true, - icon: 'icon-list', - order: 0, - }, - children: [ - { - path: 'projectdetailed', // The midline path complies with SEO specifications - name: 'projectdetailed', - component: () => import('@/views/project/index.vue'), - meta: { - locale: 'menu.project.Table', - requiresAuth: true, - roles: ['*'], - }, - }, - // { - // path: 'card', - // name: 'Card', - // component: () => import('@/views/list/card/index.vue'), - // meta: { - // locale: 'menu.project.cardList', - // requiresAuth: true, - // roles: ['*'], - // }, - // }, - ], -}; +// const LIST: AppRouteRecordRaw = { +// path: '/project', +// name: 'project', +// component: DEFAULT_LAYOUT, +// meta: { +// locale: 'menu.project', +// requiresAuth: true, +// icon: 'icon-list', +// order: 0, +// }, +// children: [ +// { +// path: 'projectdetailed', // The midline path complies with SEO specifications +// name: 'projectdetailed', +// component: () => import('@/views/project/index.vue'), +// meta: { +// locale: 'menu.project.Table', +// requiresAuth: true, +// roles: ['*'], +// }, +// }, +// // { +// // path: 'card', +// // name: 'Card', +// // component: () => import('@/views/list/card/index.vue'), +// // meta: { +// // locale: 'menu.project.cardList', +// // requiresAuth: true, +// // roles: ['*'], +// // }, +// // }, +// ], +// }; -export default LIST; +// export default LIST; diff --git a/src/router/routes/modules/volunteerservicecorps.ts b/src/router/routes/modules/volunteerservicecorps.ts index 3e01dad..114e160 100644 --- a/src/router/routes/modules/volunteerservicecorps.ts +++ b/src/router/routes/modules/volunteerservicecorps.ts @@ -1,38 +1,38 @@ -import { DEFAULT_LAYOUT } from '../base'; -import { AppRouteRecordRaw } from '../types'; +// import { DEFAULT_LAYOUT } from '../base'; +// import { AppRouteRecordRaw } from '../types'; -const LIST: AppRouteRecordRaw = { - path: '/volunteerservicecorps', - name: 'volunteerservicecorps', - component: DEFAULT_LAYOUT, - meta: { - locale: 'menu.volunteerservicecorps', - requiresAuth: true, - icon: 'icon-user-group', - order: 3, - }, - children: [ - { - path: 'volunteerservicecorpsdetailed', // The midline path complies with SEO specifications - name: 'volunteerservicecorpsdetailed', - component: () => import('@/views/volunteerservicecorps/index.vue'), - meta: { - locale: 'menu.volunteerservicecorps.Table', - requiresAuth: true, - roles: ['*'], - }, - },{ - path: 'edivolunteerservicecorps', // The midline path complies with SEO specifications - name: 'edivolunteerservicecorps', - component: () => import('@/views/volunteerservicecorps/edi.vue'), - meta: { - locale: 'menu.volunteerservicecorps.Table', - requiresAuth: true, - hideInMenu:true, - roles: ['*'], - }, - }, - ], -}; +// const LIST: AppRouteRecordRaw = { +// path: '/volunteerservicecorps', +// name: 'volunteerservicecorps', +// component: DEFAULT_LAYOUT, +// meta: { +// locale: 'menu.volunteerservicecorps', +// requiresAuth: true, +// icon: 'icon-user-group', +// order: 3, +// }, +// children: [ +// { +// path: 'volunteerservicecorpsdetailed', // The midline path complies with SEO specifications +// name: 'volunteerservicecorpsdetailed', +// component: () => import('@/views/volunteerservicecorps/index.vue'), +// meta: { +// locale: 'menu.volunteerservicecorps.Table', +// requiresAuth: true, +// roles: ['*'], +// }, +// },{ +// path: 'edivolunteerservicecorps', // The midline path complies with SEO specifications +// name: 'edivolunteerservicecorps', +// component: () => import('@/views/volunteerservicecorps/edi.vue'), +// meta: { +// locale: 'menu.volunteerservicecorps.Table', +// requiresAuth: true, +// hideInMenu:true, +// roles: ['*'], +// }, +// }, +// ], +// }; -export default LIST; +// export default LIST; diff --git a/src/views/carousel/carousel.vue b/src/views/carousel/carousel.vue index 3149d09..19d4d93 100644 --- a/src/views/carousel/carousel.vue +++ b/src/views/carousel/carousel.vue @@ -2,81 +2,66 @@
- - - - - - + +

100积分

+ + + + + + + + + + + + + + + + + + + + + 保存 + +
- - -
- -
-
+
diff --git a/src/views/carousel/carouselad.vue b/src/views/carousel/carouselad.vue deleted file mode 100644 index 8f7e753..0000000 --- a/src/views/carousel/carouselad.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/views/carousel/locale/zh-CN.ts b/src/views/carousel/locale/zh-CN.ts index 72958b0..c0809b2 100644 --- a/src/views/carousel/locale/zh-CN.ts +++ b/src/views/carousel/locale/zh-CN.ts @@ -1,6 +1,5 @@ export default { - 'menu.carousel.basic': '轮播图详情页', - 'menu.carousel.Table': '轮播图详情', - 'menu.carouselad.Table': '轮播图广告详情', + 'menu.carousel.basic': '汇率', + 'menu.carousel.Table': '汇率设置', }; \ No newline at end of file diff --git a/src/views/jobuser/components/showgroup.vue b/src/views/jobuser/components/showgroup.vue new file mode 100644 index 0000000..a2b8f02 --- /dev/null +++ b/src/views/jobuser/components/showgroup.vue @@ -0,0 +1,39 @@ + + + + + \ No newline at end of file diff --git a/src/views/jobuser/index.vue b/src/views/jobuser/index.vue index 8ce4685..87e10bf 100644 --- a/src/views/jobuser/index.vue +++ b/src/views/jobuser/index.vue @@ -1,44 +1,62 @@