From 311c08ff2b6c5750c3f194a74f4aedd1f191734a Mon Sep 17 00:00:00 2001 From: yinq Date: Fri, 10 May 2024 09:28:40 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20add=E5=B7=A5=E5=8E=82=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- .env.production | 4 +- .env.staging | 4 +- package.json | 4 +- src/api/mes/base/baseFactory.js | 44 +++ src/views/login.vue | 2 +- src/views/mes/base/baseFactory/index.vue | 328 +++++++++++++++++++++++ src/views/register.vue | 2 +- vue.config.js | 2 +- 9 files changed, 383 insertions(+), 11 deletions(-) create mode 100644 src/api/mes/base/baseFactory.js create mode 100644 src/views/mes/base/baseFactory/index.vue diff --git a/.env.development b/.env.development index 302ecd1..163e3d4 100644 --- a/.env.development +++ b/.env.development @@ -1,10 +1,10 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = 信明橡塑管理系统 # 开发环境配置 ENV = 'development' -# 若依管理系统/开发环境 +# 信明橡塑管理系统/开发环境 VUE_APP_BASE_API = '/dev-api' # 路由懒加载 diff --git a/.env.production b/.env.production index b4893b0..327bd62 100644 --- a/.env.production +++ b/.env.production @@ -1,8 +1,8 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = 信明橡塑管理系统 # 生产环境配置 ENV = 'production' -# 若依管理系统/生产环境 +# 信明橡塑管理系统/生产环境 VUE_APP_BASE_API = '/prod-api' diff --git a/.env.staging b/.env.staging index 361859f..fd5092e 100644 --- a/.env.staging +++ b/.env.staging @@ -1,10 +1,10 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = 信明橡塑管理系统 NODE_ENV = production # 测试环境配置 ENV = 'staging' -# 若依管理系统/测试环境 +# 信明橡塑管理系统/测试环境 VUE_APP_BASE_API = '/stage-api' diff --git a/package.json b/package.json index 7b23abe..d9f6b64 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "ruoyi", "version": "3.8.7", - "description": "若依管理系统", - "author": "若依", + "description": "信明橡塑管理系统", + "author": "信明橡塑", "license": "MIT", "scripts": { "dev": "vue-cli-service serve", diff --git a/src/api/mes/base/baseFactory.js b/src/api/mes/base/baseFactory.js new file mode 100644 index 0000000..b7c4055 --- /dev/null +++ b/src/api/mes/base/baseFactory.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询工厂管理列表 +export function listBaseFactory(query) { + return request({ + url: '/mes/base/baseFactory/list', + method: 'get', + params: query + }) +} + +// 查询工厂管理详细 +export function getBaseFactory(objId) { + return request({ + url: '/mes/base/baseFactory/' + objId, + method: 'get' + }) +} + +// 新增工厂管理 +export function addBaseFactory(data) { + return request({ + url: '/mes/base/baseFactory', + method: 'post', + data: data + }) +} + +// 修改工厂管理 +export function updateBaseFactory(data) { + return request({ + url: '/mes/base/baseFactory', + method: 'put', + data: data + }) +} + +// 删除工厂管理 +export function delBaseFactory(objId) { + return request({ + url: '/mes/base/baseFactory/' + objId, + method: 'delete' + }) +} diff --git a/src/views/login.vue b/src/views/login.vue index 06c09d2..85132a9 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -1,7 +1,7 @@ + + diff --git a/src/views/register.vue b/src/views/register.vue index 7bf6f43..f1e3161 100644 --- a/src/views/register.vue +++ b/src/views/register.vue @@ -1,7 +1,7 @@