From 1e4f04961ea37836c9e09af9f907adbe81969d2e Mon Sep 17 00:00:00 2001 From: chengkun <2500338766@qq.com> Date: Sat, 7 May 2022 13:59:15 +0800 Subject: [PATCH] =?UTF-8?q?1.0.0:=E6=96=B0=E5=A2=9E=E5=8F=8D=E9=A6=88?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=8F=8A=E5=9B=BE=E7=89=87=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E7=AE=A1=E7=90=86=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- .env.staging | 2 +- package.json | 8 +- src/api/img/type.js | 54 ++++++ src/router/index.js | 15 +- src/views/img/feedback/index.vue | 8 +- src/views/img/type/index.vue | 315 +++++++++++++++++++++++++++++++ 8 files changed, 395 insertions(+), 11 deletions(-) create mode 100644 src/api/img/type.js create mode 100644 src/views/img/type/index.vue diff --git a/.env.development b/.env.development index 302ecd1..d8e9d72 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = bnyer管理系统 # 开发环境配置 ENV = 'development' diff --git a/.env.production b/.env.production index b4893b0..2d3a78d 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = bnyer管理系统 # 生产环境配置 ENV = 'production' diff --git a/.env.staging b/.env.staging index 361859f..8a8b5d8 100644 --- a/.env.staging +++ b/.env.staging @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = bnyer管理系统 NODE_ENV = production diff --git a/package.json b/package.json index d5f9103..de68d60 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "ruoyi", - "version": "3.4.0", - "description": "若依管理系统", - "author": "若依", + "name": "bnyer", + "version": "1.0.0", + "description": "bnyer管理系统", + "author": "penny", "license": "MIT", "scripts": { "dev": "vue-cli-service serve", diff --git a/src/api/img/type.js b/src/api/img/type.js new file mode 100644 index 0000000..a4cf82b --- /dev/null +++ b/src/api/img/type.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 查询类型分页列表 +export function listType(data) { + return request({ + url: '/img/img/type/page', + method: 'post', + data: data + }) +} + +// 新增类型 +export function addType(data) { + return request({ + url: '/img/img/type/insert', + method: 'post' , + data: data + }) +} + +// 修改类型 +export function editType(data) { + return request({ + url: '/img/img/type/update', + method: 'post' , + data: data + }) +} + +// 删除类型 +export function delType(ids) { + return request({ + url: '/img/img/type/delete/' + ids, + method: 'delete' + }) +} + +// 获取类型详情 +export function getTypeDetails(id) { + return request({ + url: '/img/img/type/details/' + id, + method: 'get' + }) +} + +// 变更类型显示状态 +export function changeStatus(data) { + return request({ + url: '/img/img/type/changeStatus', + method: 'post' , + data: data + }) +} + diff --git a/src/router/index.js b/src/router/index.js index c6aec7f..2ebe0a5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -83,7 +83,20 @@ export const constantRoutes = [ path: 'index', component: () => import('@/views/img/feedback'), name: 'Feedback', - meta: { title: '反馈', icon: 'dashboard', affix: true } + meta: { title: '反馈信息', icon: 'dashboard', affix: true } + } + ] + }, + { + path: '/type', + component: Layout, + redirect: 'index', + children: [ + { + path: 'index', + component: () => import('@/views/img/type'), + name: 'Feedback', + meta: { title: '图片类型', icon: 'dashboard', affix: true } } ] }, diff --git a/src/views/img/feedback/index.vue b/src/views/img/feedback/index.vue index dcad5be..c1520a5 100644 --- a/src/views/img/feedback/index.vue +++ b/src/views/img/feedback/index.vue @@ -72,13 +72,13 @@ - + /> @@ -101,7 +101,6 @@ \ No newline at end of file