From aefc0a94a834db09685dca25bec1d4829b83c37b Mon Sep 17 00:00:00 2001 From: zch Date: Mon, 24 Mar 2025 16:38:17 +0800 Subject: [PATCH] =?UTF-8?q?refactor(dms):=20=E5=B0=86=20WMS=20=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=E4=B8=BA=20DMS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改了多个文件中的函数名称,将 WMS 替换为 DMS - 保持了原有的功能和逻辑不变,仅修改了命名 --- src/api/dms/baseDeviceCategory/index.ts | 12 ++++++------ src/api/dms/baseDeviceType/index.ts | 12 ++++++------ src/views/dms/alarmType/index.vue | 8 ++++---- src/views/dms/dmsBaseLubeStandard/index.vue | 4 ++-- src/views/dms/dmsBaseLubeStation/index.vue | 4 ++-- src/views/dms/dmsBaseMaintStandard/index.vue | 4 ++-- src/views/dms/dmsBaseMaintStation/index.vue | 4 ++-- src/views/dms/dmsKnowledgeLube/index.vue | 4 ++-- src/views/dms/dmsKnowledgeMaint/index.vue | 4 ++-- src/views/dms/dmsKnowledgeRepair/index.vue | 4 ++-- 10 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/api/dms/baseDeviceCategory/index.ts b/src/api/dms/baseDeviceCategory/index.ts index bce0c72..5bdcd64 100644 --- a/src/api/dms/baseDeviceCategory/index.ts +++ b/src/api/dms/baseDeviceCategory/index.ts @@ -8,7 +8,7 @@ import { BaseDeviceCategoryVO, BaseDeviceCategoryForm, BaseDeviceCategoryQuery } * @returns {*} */ -export const listBaseDeviceCategoryInWMS = (query?: BaseDeviceCategoryQuery): AxiosPromise => { +export const listBaseDeviceCategoryInDMS = (query?: BaseDeviceCategoryQuery): AxiosPromise => { return request({ url: '/dms/baseDeviceCategory/list', method: 'get', @@ -20,7 +20,7 @@ export const listBaseDeviceCategoryInWMS = (query?: BaseDeviceCategoryQuery): Ax * 查询设备大类信息详细 * @param deviceCategoryId */ -export const getBaseDeviceCategoryInWMS = (deviceCategoryId: string | number): AxiosPromise => { +export const getBaseDeviceCategoryInDMS = (deviceCategoryId: string | number): AxiosPromise => { return request({ url: '/dms/baseDeviceCategory/' + deviceCategoryId, method: 'get' @@ -31,7 +31,7 @@ export const getBaseDeviceCategoryInWMS = (deviceCategoryId: string | number): A * 新增设备大类信息 * @param data */ -/*export const addBaseDeviceCategoryInWMS = (data: BaseDeviceCategoryForm) => { +/*export const addBaseDeviceCategoryInDMS = (data: BaseDeviceCategoryForm) => { return request({ url: '/dms/baseDeviceCategory', method: 'post', @@ -43,7 +43,7 @@ export const getBaseDeviceCategoryInWMS = (deviceCategoryId: string | number): A * 修改设备大类信息 * @param data */ -/*export const updateBaseDeviceCategoryInWMS = (data: BaseDeviceCategoryForm) => { +/*export const updateBaseDeviceCategoryInDMS = (data: BaseDeviceCategoryForm) => { return request({ url: '/dms/baseDeviceCategory', method: 'put', @@ -55,7 +55,7 @@ export const getBaseDeviceCategoryInWMS = (deviceCategoryId: string | number): A * 删除设备大类信息 * @param deviceCategoryId */ -/*export const delBaseDeviceCategoryInWMS = (deviceCategoryId: string | number | Array) => { +/*export const delBaseDeviceCategoryInDMS = (deviceCategoryId: string | number | Array) => { return request({ url: '/dms/baseDeviceCategory/' + deviceCategoryId, method: 'delete' @@ -68,7 +68,7 @@ export const getBaseDeviceCategoryInWMS = (deviceCategoryId: string | number): A * @param query * @returns {*} */ -export function getBaseDeviceCategoryListInWMS (query) { +export function getBaseDeviceCategoryListInDMS (query) { return request({ url: '/dms/baseDeviceCategory/getBaseDeviceCategoryList', method: 'get', diff --git a/src/api/dms/baseDeviceType/index.ts b/src/api/dms/baseDeviceType/index.ts index e53c9bf..b29dc1e 100644 --- a/src/api/dms/baseDeviceType/index.ts +++ b/src/api/dms/baseDeviceType/index.ts @@ -8,7 +8,7 @@ import { BaseDeviceTypeVO, BaseDeviceTypeForm, BaseDeviceTypeQuery } from '@/api * @returns {*} */ -export const listBaseDeviceTypeInWMS = (query?: BaseDeviceTypeQuery): AxiosPromise => { +export const listBaseDeviceTypeInDMS = (query?: BaseDeviceTypeQuery): AxiosPromise => { return request({ url: '/dms/baseDeviceType/list', method: 'get', @@ -20,7 +20,7 @@ export const listBaseDeviceTypeInWMS = (query?: BaseDeviceTypeQuery): AxiosPromi * 查询设备类型信息详细 * @param deviceTypeId */ -export const getBaseDeviceTypeInWMS = (deviceTypeId: string | number): AxiosPromise => { +export const getBaseDeviceTypeInDMS = (deviceTypeId: string | number): AxiosPromise => { return request({ url: '/dms/baseDeviceType/' + deviceTypeId, method: 'get' @@ -31,7 +31,7 @@ export const getBaseDeviceTypeInWMS = (deviceTypeId: string | number): AxiosProm * 新增设备类型信息 * @param data */ -/*export const addBaseDeviceTypeInWMS = (data: BaseDeviceTypeForm) => { +/*export const addBaseDeviceTypeInDMS = (data: BaseDeviceTypeForm) => { return request({ url: '/dms/baseDeviceType', method: 'post', @@ -43,7 +43,7 @@ export const getBaseDeviceTypeInWMS = (deviceTypeId: string | number): AxiosProm * 修改设备类型信息 * @param data */ -/*export const updateBaseDeviceTypeInWMS = (data: BaseDeviceTypeForm) => { +/*export const updateBaseDeviceTypeInDMS = (data: BaseDeviceTypeForm) => { return request({ url: '/dms/baseDeviceType', method: 'put', @@ -55,7 +55,7 @@ export const getBaseDeviceTypeInWMS = (deviceTypeId: string | number): AxiosProm * 删除设备类型信息 * @param deviceTypeId */ -/*export const delBaseDeviceTypeInWMS = (deviceTypeId: string | number | Array) => { +/*export const delBaseDeviceTypeInDMS = (deviceTypeId: string | number | Array) => { return request({ url: '/dms/baseDeviceType/' + deviceTypeId, method: 'delete' @@ -68,7 +68,7 @@ export const getBaseDeviceTypeInWMS = (deviceTypeId: string | number): AxiosProm * @param query * @returns {*} */ -export function getBaseDeviceTypeListInWMS (query) { +export function getBaseDeviceTypeListInDMS (query) { return request({ url: '/dms/baseDeviceType/getBaseDeviceTypeList', method: 'get', diff --git a/src/views/dms/alarmType/index.vue b/src/views/dms/alarmType/index.vue index 9f7ddca..76967b4 100644 --- a/src/views/dms/alarmType/index.vue +++ b/src/views/dms/alarmType/index.vue @@ -129,8 +129,8 @@