diff --git a/.env.development b/.env.development index 21892b7..fe20df3 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VITE_APP_TITLE = 新能源项目管理平台 VITE_APP_ENV = 'development' # 开发环境 -VITE_APP_BASE_API = 'http://192.168.110.180:8898' +VITE_APP_BASE_API = 'http://192.168.110.159:8898' # 无人机接口地址 diff --git a/src/api/message/config/index.ts b/src/api/message/config/index.ts new file mode 100644 index 0000000..50b9bac --- /dev/null +++ b/src/api/message/config/index.ts @@ -0,0 +1,72 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ConfigVO, ConfigForm, ConfigQuery } from '@/api/message/config/types'; + +/** + * 查询消息配置列表 + * @param query + * @returns {*} + */ + +export const listConfig = (query?: ConfigQuery): AxiosPromise => { + return request({ + url: '/message/config/list', + method: 'get', + params: query + }); +}; + +/** + * 查询消息配置详细 + * @param id + */ +export const getConfig = (id: string | number): AxiosPromise => { + return request({ + url: '/message/config/' + id, + method: 'get' + }); +}; + +/** + * 新增消息配置 + * @param data + */ +export const addConfig = (data: ConfigForm) => { + return request({ + url: '/message/config', + method: 'post', + data: data + }); +}; + +/** + * 修改消息配置 + * @param data + */ +export const updateConfig = (data: ConfigForm) => { + return request({ + url: '/message/config', + method: 'put', + data: data + }); +}; + +/** + * 删除消息配置 + * @param id + */ +export const delConfig = (id: string | number | Array) => { + return request({ + url: '/message/config/' + id, + method: 'delete' + }); +}; + +/** 获取用户列表 */ +export const listUser = (query?: any) => { + return request({ + url: '/system/user/list', + method: 'get', + params: query + }); +}; diff --git a/src/api/message/config/types.ts b/src/api/message/config/types.ts new file mode 100644 index 0000000..02194f8 --- /dev/null +++ b/src/api/message/config/types.ts @@ -0,0 +1,116 @@ +export interface ConfigVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 消息名称 + */ + msgName: number; + + /** + * 消息模板 + */ + msgContent: string; + + /** + * 消息标识 + */ + msgKey: string; + + /** + * 跳转路由 + */ + route: string; + + /** + * 通知人 + */ + userId: string | number; + +} + +export interface ConfigForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 消息名称 + */ + msgName?: number; + + /** + * 消息模板 + */ + msgContent?: string; + + /** + * 消息标识 + */ + msgKey?: string; + + /** + * 跳转路由 + */ + route?: string; + + /** + * 通知人 + */ + userId?: string | number; + +} + +export interface ConfigQuery extends PageQuery { + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 消息名称 + */ + msgName?: number; + + /** + * 消息模板 + */ + msgContent?: string; + + /** + * 消息标识 + */ + msgKey?: string; + + /** + * 跳转路由 + */ + route?: string; + + /** + * 通知人 + */ + userId?: string | number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/cory/template/components/engineeringChangeApplicationForm.vue b/src/views/cory/template/components/engineeringChangeApplicationForm.vue index 580ed02..db3a07f 100644 --- a/src/views/cory/template/components/engineeringChangeApplicationForm.vue +++ b/src/views/cory/template/components/engineeringChangeApplicationForm.vue @@ -4,7 +4,11 @@ - + + + - + + + - - +