init:first commit of plus-ui
This commit is contained in:
87
src/api/safety/documentSafetyMeeting/index.ts
Normal file
87
src/api/safety/documentSafetyMeeting/index.ts
Normal file
@ -0,0 +1,87 @@
|
||||
import request from '@/utils/request';
|
||||
import {
|
||||
documentSafetyMeetingListFile,
|
||||
documentSafetyMeetingListFolder,
|
||||
documentSafetyMeetingListQuery,
|
||||
documentSafetyMeetingListVo,
|
||||
documentRecycleBinListQuery,
|
||||
documentRecycleBinListVO
|
||||
} from './type';
|
||||
import { AxiosPromise } from 'axios';
|
||||
// 查询安全会议结构
|
||||
export function documentCompletionTreeStructure(query: object) {
|
||||
return request({
|
||||
url: '/safety/documentSafetyMeeting/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
// 查询安全会议文件列表
|
||||
export function documentCompletionList(query: documentSafetyMeetingListQuery): AxiosPromise<documentSafetyMeetingListVo> {
|
||||
return request({
|
||||
url: '/safety/documentSafetyMeeting/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
// 安全会议添加
|
||||
export function documentCompletionAdd(data: documentSafetyMeetingListFile) {
|
||||
return request({
|
||||
url: '/safety/documentSafetyMeeting/file',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 安全会议修改文件名
|
||||
export function documentCompletionEdit(query: object) {
|
||||
return request({
|
||||
url: '/api/v1/system/documentSafetyMeeting/edit',
|
||||
method: 'put',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
// 安全会议删除文件
|
||||
export function documentCompletionDelete(id: string) {
|
||||
return request({
|
||||
url: '/safety/documentSafetyMeeting/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
// 安全会议获取指定id信息
|
||||
export function documentCompletionGet(id: string) {
|
||||
return request({
|
||||
url: '/safety/documentSafetyMeeting/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
// 新建文件夹
|
||||
export function newFolder(data: documentSafetyMeetingListFolder): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/safety/documentSafetyMeeting/folder',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 单文件下载
|
||||
export function uniFileDownload(query: object) {
|
||||
return request({
|
||||
url: '/api/v1/system/documentSafetyMeeting/safetyDataUniFileDownload',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
// 回收站恢复
|
||||
export function completionDataRecyclingStation(id: string[]) {
|
||||
return request({
|
||||
url: '/safety/documentSafetyMeeting/recovery/' + id,
|
||||
method: 'put'
|
||||
});
|
||||
}
|
||||
// 回收站列表数据
|
||||
export function documentRecycleBinList(query: documentRecycleBinListQuery): AxiosPromise<documentRecycleBinListVO> {
|
||||
return request({
|
||||
url: '/safety/documentSafetyMeeting/recycleBin/list',
|
||||
method: 'get',
|
||||
params: { ...query, fileType: '2' }
|
||||
});
|
||||
}
|
||||
61
src/api/safety/documentSafetyMeeting/type.ts
Normal file
61
src/api/safety/documentSafetyMeeting/type.ts
Normal file
@ -0,0 +1,61 @@
|
||||
export interface documentSafetyMeetingListFolder {
|
||||
//新增文件夹
|
||||
projectId: string;
|
||||
pid?: string;
|
||||
fileName: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface documentSafetyMeetingListFile {
|
||||
//新增文件
|
||||
file: any;
|
||||
req?: reqQuery;
|
||||
}
|
||||
|
||||
export interface reqQuery {
|
||||
projectId: string;
|
||||
pid?: string;
|
||||
}
|
||||
|
||||
export interface documentSafetyMeetingListQuery {
|
||||
projectId: string;
|
||||
pid?: string;
|
||||
//1文件 2文件夹 3图片
|
||||
fileType?: string;
|
||||
}
|
||||
|
||||
export interface documentSafetyMeetingListVo {
|
||||
projectId: string;
|
||||
id: string;
|
||||
pid: string;
|
||||
fileName: string;
|
||||
fileStatus?: string;
|
||||
filePath: string;
|
||||
fileSuffix: string;
|
||||
originalName: string;
|
||||
remark?: string;
|
||||
//1文件 2文件夹 3图片
|
||||
fileType?: string;
|
||||
}
|
||||
|
||||
export interface documentRecycleBinListQuery {
|
||||
projectId: string;
|
||||
pid?: string;
|
||||
fileType?: string;
|
||||
pageSize?: number;
|
||||
pageNum?: number;
|
||||
orderByColumn?: string;
|
||||
isAsc?: string;
|
||||
}
|
||||
|
||||
export interface documentRecycleBinListVO {
|
||||
id: string;
|
||||
projectId: string;
|
||||
pid?: string;
|
||||
fileName?: string;
|
||||
filePath?: number;
|
||||
fileSuffix?: number;
|
||||
fileStatus?: string;
|
||||
originalName?: string;
|
||||
remark?: string;
|
||||
}
|
||||
63
src/api/safety/questionBank/index.ts
Normal file
63
src/api/safety/questionBank/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { QuestionBankVO, QuestionBankForm, QuestionBankQuery } from '@/api/safety/questionBank/types';
|
||||
|
||||
/**
|
||||
* 查询题库列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listQuestionBank = (query?: QuestionBankQuery): AxiosPromise<QuestionBankVO[]> => {
|
||||
return request({
|
||||
url: '/safety/questionBank/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询题库详细
|
||||
* @param id
|
||||
*/
|
||||
export const getQuestionBank = (id: string | number): AxiosPromise<QuestionBankVO> => {
|
||||
return request({
|
||||
url: '/safety/questionBank/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增题库
|
||||
* @param data
|
||||
*/
|
||||
export const addQuestionBank = (data: QuestionBankForm) => {
|
||||
return request({
|
||||
url: '/safety/questionBank',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改题库
|
||||
* @param data
|
||||
*/
|
||||
export const updateQuestionBank = (data: QuestionBankForm) => {
|
||||
return request({
|
||||
url: '/safety/questionBank',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除题库
|
||||
* @param id
|
||||
*/
|
||||
export const delQuestionBank = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/safety/questionBank/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
101
src/api/safety/questionBank/types.ts
Normal file
101
src/api/safety/questionBank/types.ts
Normal file
@ -0,0 +1,101 @@
|
||||
export interface QuestionBankVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 题目类别
|
||||
*/
|
||||
categoryType: string;
|
||||
|
||||
/**
|
||||
* 题目类型
|
||||
*/
|
||||
questionType: string;
|
||||
|
||||
/**
|
||||
* 题目内容
|
||||
*/
|
||||
questionContent: string;
|
||||
|
||||
/**
|
||||
* 选项(以JSON数组形式存储)
|
||||
*/
|
||||
optionList: Array<string>;
|
||||
|
||||
/**
|
||||
* 正确答案
|
||||
*/
|
||||
correctAnswer: string;
|
||||
|
||||
}
|
||||
|
||||
export interface QuestionBankForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 题目类别
|
||||
*/
|
||||
categoryType?: string;
|
||||
|
||||
/**
|
||||
* 题目类型
|
||||
*/
|
||||
questionType?: string;
|
||||
|
||||
/**
|
||||
* 题目内容
|
||||
*/
|
||||
questionContent?: string;
|
||||
|
||||
/**
|
||||
* 选项(以JSON数组形式存储)
|
||||
*/
|
||||
optionList?: Array<string>;
|
||||
|
||||
/**
|
||||
* 正确答案
|
||||
*/
|
||||
correctAnswer?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface QuestionBankQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 题目类别
|
||||
*/
|
||||
categoryType?: string;
|
||||
|
||||
/**
|
||||
* 题目类型
|
||||
*/
|
||||
questionType?: string;
|
||||
|
||||
/**
|
||||
* 题目内容
|
||||
*/
|
||||
questionContent?: string;
|
||||
|
||||
/**
|
||||
* 选项(以JSON数组形式存储)
|
||||
*/
|
||||
optionList?: Array<string>;
|
||||
|
||||
/**
|
||||
* 正确答案
|
||||
*/
|
||||
correctAnswer?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
||||
75
src/api/safety/questionUserAnswer/index.ts
Normal file
75
src/api/safety/questionUserAnswer/index.ts
Normal file
@ -0,0 +1,75 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { QuestionUserAnswerVO, QuestionUserAnswerForm, QuestionUserAnswerQuery } from '@/api/safety/questionUserAnswer/types';
|
||||
|
||||
/**
|
||||
* 查询用户试卷存储列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listQuestionUserAnswer = (query?: QuestionUserAnswerQuery): AxiosPromise<QuestionUserAnswerVO[]> => {
|
||||
return request({
|
||||
url: '/safety/questionUserAnswer/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询用户试卷存储详细
|
||||
* @param id
|
||||
*/
|
||||
export const getQuestionUserAnswer = (id: string | number): AxiosPromise<QuestionUserAnswerVO> => {
|
||||
return request({
|
||||
url: '/safety/questionUserAnswer/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增用户试卷存储
|
||||
* @param data
|
||||
*/
|
||||
export const addQuestionUserAnswer = (data: QuestionUserAnswerForm) => {
|
||||
return request({
|
||||
url: '/safety/questionUserAnswer',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改用户试卷存储
|
||||
* @param data
|
||||
*/
|
||||
export const updateQuestionUserAnswer = (data: QuestionUserAnswerForm) => {
|
||||
return request({
|
||||
url: '/safety/questionUserAnswer',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除用户试卷存储
|
||||
* @param id
|
||||
*/
|
||||
export const delQuestionUserAnswer = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/safety/questionUserAnswer/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 上传线下考试试卷存储
|
||||
* @param data
|
||||
*/
|
||||
export const uploadQuestionUserAnswer = (data: any) => {
|
||||
return request({
|
||||
url: '/safety/questionUserAnswer/upload/zip',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
97
src/api/safety/questionUserAnswer/types.ts
Normal file
97
src/api/safety/questionUserAnswer/types.ts
Normal file
@ -0,0 +1,97 @@
|
||||
export interface QuestionUserAnswerVO {
|
||||
/**
|
||||
* 得分
|
||||
*/
|
||||
score: number;
|
||||
id: string | number;
|
||||
file: string;
|
||||
/**
|
||||
* 考试类型(1线上考试 2线下考试)
|
||||
*/
|
||||
/**
|
||||
* 考试时间(时间戳/秒)
|
||||
*/
|
||||
examTime: number;
|
||||
|
||||
/**
|
||||
* 用时时间(时间戳/秒)
|
||||
*/
|
||||
takeTime: number;
|
||||
|
||||
/**
|
||||
* 及格线/总分(格式:60,100)
|
||||
*/
|
||||
pass: string;
|
||||
}
|
||||
|
||||
export interface QuestionUserAnswerForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
teamId?: string | number;
|
||||
userName?: string;
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 题库id列表
|
||||
*/
|
||||
bankId?: string | number;
|
||||
|
||||
/**
|
||||
* 答案列表
|
||||
*/
|
||||
answer?: string;
|
||||
|
||||
/**
|
||||
* 得分
|
||||
*/
|
||||
score?: number;
|
||||
|
||||
/**
|
||||
* 考试时间(时间戳/秒)
|
||||
*/
|
||||
examTime?: number;
|
||||
|
||||
/**
|
||||
* 用时时间(时间戳/秒)
|
||||
*/
|
||||
takeTime?: number;
|
||||
|
||||
/**
|
||||
* 及格线/总分(格式:60,100)
|
||||
*/
|
||||
pass?: string;
|
||||
|
||||
/**
|
||||
* 文件地址
|
||||
*/
|
||||
file?: string;
|
||||
}
|
||||
|
||||
export interface QuestionUserAnswerQuery extends PageQuery {
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId?: string | number;
|
||||
teamId?: string | number;
|
||||
userName?: string;
|
||||
projectId?: string | number;
|
||||
/**
|
||||
* 考试类型(1线上考试 2线下考试)
|
||||
*/
|
||||
examType?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
63
src/api/safety/questionsCategory/index.ts
Normal file
63
src/api/safety/questionsCategory/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { QuestionsCategoryVO, QuestionsCategoryForm, QuestionsCategoryQuery } from '@/api/safety/questionsCategory/types';
|
||||
|
||||
/**
|
||||
* 查询题库类别列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listQuestionsCategory = (query?: QuestionsCategoryQuery): AxiosPromise<QuestionsCategoryVO[]> => {
|
||||
return request({
|
||||
url: '/safety/questionsCategory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询题库类别详细
|
||||
* @param id
|
||||
*/
|
||||
export const getQuestionsCategory = (id: string | number): AxiosPromise<QuestionsCategoryVO> => {
|
||||
return request({
|
||||
url: '/safety/questionsCategory/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增题库类别
|
||||
* @param data
|
||||
*/
|
||||
export const addQuestionsCategory = (data: QuestionsCategoryForm) => {
|
||||
return request({
|
||||
url: '/safety/questionsCategory',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改题库类别
|
||||
* @param data
|
||||
*/
|
||||
export const updateQuestionsCategory = (data: QuestionsCategoryForm) => {
|
||||
return request({
|
||||
url: '/safety/questionsCategory',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除题库类别
|
||||
* @param id
|
||||
*/
|
||||
export const delQuestionsCategory = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/safety/questionsCategory/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
41
src/api/safety/questionsCategory/types.ts
Normal file
41
src/api/safety/questionsCategory/types.ts
Normal file
@ -0,0 +1,41 @@
|
||||
export interface QuestionsCategoryVO {
|
||||
/**
|
||||
* 题库类别
|
||||
*/
|
||||
categoryName: string;
|
||||
id: string | number;
|
||||
}
|
||||
|
||||
export interface QuestionsCategoryForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 题库类别
|
||||
*/
|
||||
categoryName?: string;
|
||||
}
|
||||
|
||||
export interface QuestionsCategoryQuery extends PageQuery {
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 题库类别
|
||||
*/
|
||||
categoryName?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
63
src/api/safety/questionsConfig/index.ts
Normal file
63
src/api/safety/questionsConfig/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { QuestionsConfigVO, QuestionsConfigForm, QuestionsConfigQuery } from '@/api/safety/questionsConfig/types';
|
||||
|
||||
/**
|
||||
* 查询题库配置列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listQuestionsConfig = (query?: QuestionsConfigQuery): AxiosPromise<QuestionsConfigVO[]> => {
|
||||
return request({
|
||||
url: '/safety/questionsConfig/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询题库配置详细
|
||||
* @param id
|
||||
*/
|
||||
export const getQuestionsConfig = (id: string | number): AxiosPromise<QuestionsConfigVO> => {
|
||||
return request({
|
||||
url: '/safety/questionsConfig/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增题库配置
|
||||
* @param data
|
||||
*/
|
||||
export const addQuestionsConfig = (data: QuestionsConfigForm) => {
|
||||
return request({
|
||||
url: '/safety/questionsConfig',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改题库配置
|
||||
* @param data
|
||||
*/
|
||||
export const updateQuestionsConfig = (data: QuestionsConfigForm) => {
|
||||
return request({
|
||||
url: '/safety/questionsConfig',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除题库配置
|
||||
* @param id
|
||||
*/
|
||||
export const delQuestionsConfig = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/safety/questionsConfig/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
169
src/api/safety/questionsConfig/types.ts
Normal file
169
src/api/safety/questionsConfig/types.ts
Normal file
@ -0,0 +1,169 @@
|
||||
export interface QuestionsConfigVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 单选题(单位/道)
|
||||
*/
|
||||
singleChoice: number;
|
||||
|
||||
/**
|
||||
* 单选分数
|
||||
*/
|
||||
singleScore: number;
|
||||
|
||||
/**
|
||||
* 多选题(单位/道)
|
||||
*/
|
||||
multipleChoice: number;
|
||||
|
||||
/**
|
||||
* 多选分数
|
||||
*/
|
||||
multipleScore: number;
|
||||
|
||||
/**
|
||||
* 判断题(单位/道)
|
||||
*/
|
||||
estimate: number;
|
||||
|
||||
/**
|
||||
* 判断分数
|
||||
*/
|
||||
estimateScore: number;
|
||||
|
||||
/**
|
||||
* 满分
|
||||
*/
|
||||
fullMark: number;
|
||||
|
||||
/**
|
||||
* 及格线
|
||||
*/
|
||||
passScore: number;
|
||||
|
||||
/**
|
||||
* 答题最大时间(单位/分钟)
|
||||
*/
|
||||
answerTime: number;
|
||||
}
|
||||
|
||||
export interface QuestionsConfigForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 单选题(单位/道)
|
||||
*/
|
||||
singleChoice?: number;
|
||||
|
||||
/**
|
||||
* 单选分数
|
||||
*/
|
||||
singleScore?: number;
|
||||
|
||||
/**
|
||||
* 多选题(单位/道)
|
||||
*/
|
||||
multipleChoice?: number;
|
||||
|
||||
/**
|
||||
* 多选分数
|
||||
*/
|
||||
multipleScore?: number;
|
||||
|
||||
/**
|
||||
* 判断题(单位/道)
|
||||
*/
|
||||
estimate?: number;
|
||||
|
||||
/**
|
||||
* 判断分数
|
||||
*/
|
||||
estimateScore?: number;
|
||||
|
||||
/**
|
||||
* 满分
|
||||
*/
|
||||
fullMark?: number;
|
||||
|
||||
/**
|
||||
* 及格线
|
||||
*/
|
||||
passScore?: number;
|
||||
|
||||
/**
|
||||
* 答题最大时间(单位/分钟)
|
||||
*/
|
||||
answerTime?: number;
|
||||
}
|
||||
|
||||
export interface QuestionsConfigQuery extends PageQuery {
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
/**
|
||||
* 单选题(单位/道)
|
||||
*/
|
||||
singleChoice?: number;
|
||||
|
||||
/**
|
||||
* 单选分数
|
||||
*/
|
||||
singleScore?: number;
|
||||
|
||||
/**
|
||||
* 多选题(单位/道)
|
||||
*/
|
||||
multipleChoice?: number;
|
||||
|
||||
/**
|
||||
* 多选分数
|
||||
*/
|
||||
multipleScore?: number;
|
||||
|
||||
/**
|
||||
* 判断题(单位/道)
|
||||
*/
|
||||
estimate?: number;
|
||||
|
||||
/**
|
||||
* 判断分数
|
||||
*/
|
||||
estimateScore?: number;
|
||||
|
||||
/**
|
||||
* 满分
|
||||
*/
|
||||
fullMark?: number;
|
||||
|
||||
/**
|
||||
* 及格线
|
||||
*/
|
||||
passScore?: number;
|
||||
|
||||
/**
|
||||
* 答题最大时间(单位/分钟)
|
||||
*/
|
||||
answerTime?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
63
src/api/safety/safetyInspection/index.ts
Normal file
63
src/api/safety/safetyInspection/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { SafetyInspectionForm, SafetyInspectionQuery, SafetyInspectionVO } from '@/api/safety/safetyInspection/types';
|
||||
|
||||
/**
|
||||
* 查询安全巡检工单列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listSafetyInspection = (query?: SafetyInspectionQuery): AxiosPromise<SafetyInspectionVO[]> => {
|
||||
return request({
|
||||
url: '/safety/safetyInspection/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询安全巡检工单详细
|
||||
* @param id
|
||||
*/
|
||||
export const getSafetyInspection = (id: string | number): AxiosPromise<SafetyInspectionVO> => {
|
||||
return request({
|
||||
url: '/safety/safetyInspection/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增安全巡检工单
|
||||
* @param data
|
||||
*/
|
||||
export const addSafetyInspection = (data: SafetyInspectionForm) => {
|
||||
return request({
|
||||
url: '/safety/safetyInspection',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改安全巡检工单
|
||||
* @param data
|
||||
*/
|
||||
export const updateSafetyInspection = (data: SafetyInspectionForm) => {
|
||||
return request({
|
||||
url: '/safety/safetyInspection',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除安全巡检工单
|
||||
* @param id
|
||||
*/
|
||||
export const delSafetyInspection = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/safety/safetyInspection/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
350
src/api/safety/safetyInspection/types.ts
Normal file
350
src/api/safety/safetyInspection/types.ts
Normal file
@ -0,0 +1,350 @@
|
||||
export interface SafetyInspectionVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 父id(默认为0)
|
||||
*/
|
||||
pid: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 检查类型
|
||||
*/
|
||||
checkType: string;
|
||||
|
||||
/**
|
||||
* 违章类型
|
||||
*/
|
||||
violationType: string;
|
||||
|
||||
/**
|
||||
* 巡检结果
|
||||
*/
|
||||
inspectionResult: string;
|
||||
|
||||
/**
|
||||
* 整改班组id
|
||||
*/
|
||||
teamId: string | number;
|
||||
|
||||
/**
|
||||
* 整改班组名字
|
||||
*/
|
||||
teamName: string;
|
||||
|
||||
/**
|
||||
* 整改人(班组长)id
|
||||
*/
|
||||
correctorId: string | number;
|
||||
|
||||
/**
|
||||
* 整改人(班组长)名字
|
||||
*/
|
||||
correctorName: string;
|
||||
|
||||
/**
|
||||
* 整改期限
|
||||
*/
|
||||
rectificationDeadline: string;
|
||||
|
||||
/**
|
||||
* 是否回复(1回复 2不回复)
|
||||
*/
|
||||
isReply: string;
|
||||
|
||||
/**
|
||||
* 回复日期
|
||||
*/
|
||||
replyDate: string;
|
||||
|
||||
/**
|
||||
* 工单状态(1通知 2整改 3复查)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 问题隐患
|
||||
*/
|
||||
hiddenDanger: string | number;
|
||||
|
||||
/**
|
||||
* 整改措施
|
||||
*/
|
||||
measure: string;
|
||||
|
||||
/**
|
||||
* 复查情况
|
||||
*/
|
||||
review: string;
|
||||
|
||||
/**
|
||||
* 复查状态(1通过 2未通过)
|
||||
*/
|
||||
reviewType: string;
|
||||
|
||||
/**
|
||||
* 检查时间
|
||||
*/
|
||||
checkTime: string;
|
||||
|
||||
/**
|
||||
* 整改时间
|
||||
*/
|
||||
rectificationTime: string;
|
||||
|
||||
/**
|
||||
* 复查时间
|
||||
*/
|
||||
reviewTime: string;
|
||||
|
||||
/**
|
||||
* 检查附件
|
||||
*/
|
||||
checkFile: string;
|
||||
|
||||
/**
|
||||
* 整改附件
|
||||
*/
|
||||
rectificationFile: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
creatorId: string | number;
|
||||
|
||||
/**
|
||||
* 创建人名字
|
||||
*/
|
||||
creatorName: string;
|
||||
}
|
||||
|
||||
export interface SafetyInspectionForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 父id(默认为0)
|
||||
*/
|
||||
pid?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 检查类型
|
||||
*/
|
||||
checkType?: string;
|
||||
|
||||
/**
|
||||
* 违章类型
|
||||
*/
|
||||
violationType?: string;
|
||||
|
||||
/**
|
||||
* 巡检结果
|
||||
*/
|
||||
inspectionResult?: string;
|
||||
|
||||
/**
|
||||
* 整改班组id
|
||||
*/
|
||||
teamId?: string | number;
|
||||
|
||||
/**
|
||||
* 整改人(班组长)id
|
||||
*/
|
||||
correctorId?: string | number;
|
||||
|
||||
/**
|
||||
* 整改期限
|
||||
*/
|
||||
rectificationDeadline: string;
|
||||
|
||||
/**
|
||||
* 是否回复(1回复 2不回复)
|
||||
*/
|
||||
isReply?: string;
|
||||
|
||||
/**
|
||||
* 回复日期
|
||||
*/
|
||||
replyDate?: string;
|
||||
|
||||
/**
|
||||
* 工单状态(1通知 2整改 3复查)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 问题隐患
|
||||
*/
|
||||
hiddenDanger?: string | number;
|
||||
|
||||
/**
|
||||
* 整改措施
|
||||
*/
|
||||
measure?: string;
|
||||
|
||||
/**
|
||||
* 复查情况
|
||||
*/
|
||||
review?: string;
|
||||
|
||||
/**
|
||||
* 复查状态(1通过 2未通过)
|
||||
*/
|
||||
reviewType?: string;
|
||||
|
||||
/**
|
||||
* 检查时间
|
||||
*/
|
||||
checkTime?: string;
|
||||
|
||||
/**
|
||||
* 整改时间
|
||||
*/
|
||||
rectificationTime?: string;
|
||||
|
||||
/**
|
||||
* 复查时间
|
||||
*/
|
||||
reviewTime?: string;
|
||||
|
||||
/**
|
||||
* 检查附件
|
||||
*/
|
||||
checkFile?: string;
|
||||
|
||||
/**
|
||||
* 整改附件
|
||||
*/
|
||||
rectificationFile?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface SafetyInspectionQuery extends PageQuery {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 父id(默认为0)
|
||||
*/
|
||||
pid?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 检查类型
|
||||
*/
|
||||
checkType?: string;
|
||||
|
||||
/**
|
||||
* 违章类型
|
||||
*/
|
||||
violationType?: string;
|
||||
|
||||
/**
|
||||
* 巡检结果
|
||||
*/
|
||||
inspectionResult?: string;
|
||||
|
||||
/**
|
||||
* 整改班组id
|
||||
*/
|
||||
teamId?: string | number;
|
||||
|
||||
/**
|
||||
* 整改人(班组长)id
|
||||
*/
|
||||
correctorId?: string | number;
|
||||
|
||||
/**
|
||||
* 是否回复(1回复 2不回复)
|
||||
*/
|
||||
isReply?: string;
|
||||
|
||||
/**
|
||||
* 回复日期
|
||||
*/
|
||||
replyDate?: string;
|
||||
|
||||
/**
|
||||
* 工单状态(1通知 2整改 3复查)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 问题隐患
|
||||
*/
|
||||
hiddenDanger?: string | number;
|
||||
|
||||
/**
|
||||
* 整改措施
|
||||
*/
|
||||
measure?: string;
|
||||
|
||||
/**
|
||||
* 复查情况
|
||||
*/
|
||||
review?: string;
|
||||
|
||||
/**
|
||||
* 复查状态(1通过 2未通过)
|
||||
*/
|
||||
reviewType?: string;
|
||||
|
||||
/**
|
||||
* 检查时间
|
||||
*/
|
||||
checkTime?: string;
|
||||
|
||||
/**
|
||||
* 整改时间
|
||||
*/
|
||||
rectificationTime?: string;
|
||||
|
||||
/**
|
||||
* 复查时间
|
||||
*/
|
||||
reviewTime?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
63
src/api/safety/safetyLog/index.ts
Normal file
63
src/api/safety/safetyLog/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { SafetyLogForm, SafetyLogQuery, SafetyLogVO } from '@/api/safety/safetyLog/types';
|
||||
|
||||
/**
|
||||
* 查询安全日志列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listSafetyLog = (query?: SafetyLogQuery): AxiosPromise<SafetyLogVO[]> => {
|
||||
return request({
|
||||
url: '/safety/safetyLog/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询安全日志详细
|
||||
* @param id
|
||||
*/
|
||||
export const getSafetyLog = (id: string | number): AxiosPromise<SafetyLogVO> => {
|
||||
return request({
|
||||
url: '/safety/safetyLog/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增安全日志
|
||||
* @param data
|
||||
*/
|
||||
export const addSafetyLog = (data: SafetyLogForm) => {
|
||||
return request({
|
||||
url: '/safety/safetyLog',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改安全日志
|
||||
* @param data
|
||||
*/
|
||||
export const updateSafetyLog = (data: SafetyLogForm) => {
|
||||
return request({
|
||||
url: '/safety/safetyLog',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除安全日志
|
||||
* @param id
|
||||
*/
|
||||
export const delSafetyLog = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/safety/safetyLog/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
269
src/api/safety/safetyLog/types.ts
Normal file
269
src/api/safety/safetyLog/types.ts
Normal file
@ -0,0 +1,269 @@
|
||||
import { IdAndNameVO } from '@/api/types';
|
||||
|
||||
export interface SafetyLogVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 发生日期
|
||||
*/
|
||||
dateOfOccurrence: string;
|
||||
|
||||
/**
|
||||
* 最高气温
|
||||
*/
|
||||
airTemperatureMax: number;
|
||||
|
||||
/**
|
||||
* 最低气温
|
||||
*/
|
||||
airTemperatureMin: number;
|
||||
|
||||
/**
|
||||
* 气候
|
||||
*/
|
||||
weather: string;
|
||||
|
||||
/**
|
||||
* 进展
|
||||
*/
|
||||
progress: string;
|
||||
|
||||
/**
|
||||
* 作业内容
|
||||
*/
|
||||
jobContent: string;
|
||||
|
||||
/**
|
||||
* 交底情况
|
||||
*/
|
||||
discloseCondition: string;
|
||||
|
||||
/**
|
||||
* 活动情况
|
||||
*/
|
||||
activityCondition: string;
|
||||
|
||||
/**
|
||||
* 检查情况
|
||||
*/
|
||||
examineCondition: string;
|
||||
|
||||
/**
|
||||
* 实施情况
|
||||
*/
|
||||
implementCondition: string;
|
||||
|
||||
/**
|
||||
* 安全检查情况
|
||||
*/
|
||||
safetyInspectionCondition: string;
|
||||
|
||||
/**
|
||||
* 停工或加班情况
|
||||
*/
|
||||
stoppageOrOvertime: string;
|
||||
|
||||
/**
|
||||
* 其他情况
|
||||
*/
|
||||
otherCondition: string;
|
||||
|
||||
/**
|
||||
* 文件id列表
|
||||
*/
|
||||
fileId: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
creator: IdAndNameVO;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
export interface SafetyLogForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
creatorName?: string;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 发生日期
|
||||
*/
|
||||
dateOfOccurrence?: string;
|
||||
|
||||
/**
|
||||
* 最高气温
|
||||
*/
|
||||
airTemperatureMax?: number;
|
||||
|
||||
/**
|
||||
* 最低气温
|
||||
*/
|
||||
airTemperatureMin?: number;
|
||||
|
||||
/**
|
||||
* 气候
|
||||
*/
|
||||
weather?: string;
|
||||
|
||||
/**
|
||||
* 进展
|
||||
*/
|
||||
progress?: string;
|
||||
|
||||
/**
|
||||
* 作业内容
|
||||
*/
|
||||
jobContent?: string;
|
||||
|
||||
/**
|
||||
* 交底情况
|
||||
*/
|
||||
discloseCondition?: string;
|
||||
|
||||
/**
|
||||
* 活动情况
|
||||
*/
|
||||
activityCondition?: string;
|
||||
|
||||
/**
|
||||
* 检查情况
|
||||
*/
|
||||
examineCondition?: string;
|
||||
|
||||
/**
|
||||
* 实施情况
|
||||
*/
|
||||
implementCondition?: string;
|
||||
|
||||
/**
|
||||
* 安全检查情况
|
||||
*/
|
||||
safetyInspectionCondition?: string;
|
||||
|
||||
/**
|
||||
* 停工或加班情况
|
||||
*/
|
||||
stoppageOrOvertime?: string;
|
||||
|
||||
/**
|
||||
* 其他情况
|
||||
*/
|
||||
otherCondition?: string;
|
||||
|
||||
/**
|
||||
* 文件id列表
|
||||
*/
|
||||
fileId: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface SafetyLogQuery extends PageQuery {
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
creatorName?: string;
|
||||
|
||||
/**
|
||||
* 发生日期
|
||||
*/
|
||||
dateOfOccurrence?: string;
|
||||
|
||||
/**
|
||||
* 最高气温
|
||||
*/
|
||||
airTemperatureMax?: number;
|
||||
|
||||
/**
|
||||
* 最低气温
|
||||
*/
|
||||
airTemperatureMin?: number;
|
||||
|
||||
/**
|
||||
* 气候
|
||||
*/
|
||||
weather?: string;
|
||||
|
||||
/**
|
||||
* 进展
|
||||
*/
|
||||
progress?: string;
|
||||
|
||||
/**
|
||||
* 作业内容
|
||||
*/
|
||||
jobContent?: string;
|
||||
|
||||
/**
|
||||
* 交底情况
|
||||
*/
|
||||
discloseCondition?: string;
|
||||
|
||||
/**
|
||||
* 活动情况
|
||||
*/
|
||||
activityCondition?: string;
|
||||
|
||||
/**
|
||||
* 检查情况
|
||||
*/
|
||||
examineCondition?: string;
|
||||
|
||||
/**
|
||||
* 实施情况
|
||||
*/
|
||||
implementCondition?: string;
|
||||
|
||||
/**
|
||||
* 安全检查情况
|
||||
*/
|
||||
safetyInspectionCondition?: string;
|
||||
|
||||
/**
|
||||
* 停工或加班情况
|
||||
*/
|
||||
stoppageOrOvertime?: string;
|
||||
|
||||
/**
|
||||
* 其他情况
|
||||
*/
|
||||
otherCondition?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
63
src/api/safety/safetyWeeklyReport/index.ts
Normal file
63
src/api/safety/safetyWeeklyReport/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { SafetyWeeklyReportForm, SafetyWeeklyReportQuery, SafetyWeeklyReportVO } from '@/api/safety/safetyWeeklyReport/types';
|
||||
|
||||
/**
|
||||
* 查询安全周报列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listSafetyWeeklyReport = (query?: SafetyWeeklyReportQuery): AxiosPromise<SafetyWeeklyReportVO[]> => {
|
||||
return request({
|
||||
url: '/safety/safetyWeeklyReport/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询安全周报详细
|
||||
* @param id
|
||||
*/
|
||||
export const getSafetyWeeklyReport = (id: string | number): AxiosPromise<SafetyWeeklyReportVO> => {
|
||||
return request({
|
||||
url: '/safety/safetyWeeklyReport/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增安全周报
|
||||
* @param data
|
||||
*/
|
||||
export const addSafetyWeeklyReport = (data: SafetyWeeklyReportForm) => {
|
||||
return request({
|
||||
url: '/safety/safetyWeeklyReport',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改安全周报
|
||||
* @param data
|
||||
*/
|
||||
export const updateSafetyWeeklyReport = (data: SafetyWeeklyReportForm) => {
|
||||
return request({
|
||||
url: '/safety/safetyWeeklyReport',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除安全周报
|
||||
* @param id
|
||||
*/
|
||||
export const delSafetyWeeklyReport = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/safety/safetyWeeklyReport/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
112
src/api/safety/safetyWeeklyReport/types.ts
Normal file
112
src/api/safety/safetyWeeklyReport/types.ts
Normal file
@ -0,0 +1,112 @@
|
||||
import { IdAndNameVO } from '@/api/types';
|
||||
|
||||
export interface SafetyWeeklyReportVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 周期
|
||||
*/
|
||||
week: string;
|
||||
|
||||
/**
|
||||
* 周期范围
|
||||
*/
|
||||
scope: string;
|
||||
|
||||
/**
|
||||
* 周期范围结束
|
||||
*/
|
||||
scopeEnd: string;
|
||||
|
||||
/**
|
||||
* 文件位置
|
||||
*/
|
||||
pathUrl: IdAndNameVO;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
export interface SafetyWeeklyReportForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 周期
|
||||
*/
|
||||
week?: string;
|
||||
|
||||
/**
|
||||
* 周期范围
|
||||
*/
|
||||
scope?: string;
|
||||
|
||||
/**
|
||||
* 周期范围结束
|
||||
*/
|
||||
scopeEnd?: string;
|
||||
|
||||
/**
|
||||
* 文件位置
|
||||
*/
|
||||
path?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface SafetyWeeklyReportQuery extends PageQuery {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 周期
|
||||
*/
|
||||
week?: string;
|
||||
|
||||
/**
|
||||
* 周期范围
|
||||
*/
|
||||
scopeDate?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
63
src/api/safety/teamMeeting/index.ts
Normal file
63
src/api/safety/teamMeeting/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { TeamMeetingForm, TeamMeetingQuery, TeamMeetingVO } from '@/api/safety/teamMeeting/types';
|
||||
|
||||
/**
|
||||
* 查询站班会列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listTeamMeeting = (query?: TeamMeetingQuery): AxiosPromise<TeamMeetingVO[]> => {
|
||||
return request({
|
||||
url: '/safety/teamMeeting/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询站班会详细
|
||||
* @param id
|
||||
*/
|
||||
export const getTeamMeeting = (id: string | number): AxiosPromise<TeamMeetingVO> => {
|
||||
return request({
|
||||
url: '/safety/teamMeeting/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增站班会
|
||||
* @param data
|
||||
*/
|
||||
export const addTeamMeeting = (data: TeamMeetingForm) => {
|
||||
return request({
|
||||
url: '/safety/teamMeeting',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改站班会
|
||||
* @param data
|
||||
*/
|
||||
export const updateTeamMeeting = (data: TeamMeetingForm) => {
|
||||
return request({
|
||||
url: '/safety/teamMeeting',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除站班会
|
||||
* @param id
|
||||
*/
|
||||
export const delTeamMeeting = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/safety/teamMeeting/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
152
src/api/safety/teamMeeting/types.ts
Normal file
152
src/api/safety/teamMeeting/types.ts
Normal file
@ -0,0 +1,152 @@
|
||||
import { IdAndNameVO } from '@/api/types';
|
||||
|
||||
export interface TeamMeetingVO {
|
||||
pictureUrlList: Array<string>;
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 班组
|
||||
*/
|
||||
teamName: IdAndNameVO;
|
||||
|
||||
/**
|
||||
* 分包公司
|
||||
*/
|
||||
contractorName: IdAndNameVO;
|
||||
|
||||
/**
|
||||
* 开会时间
|
||||
*/
|
||||
meetingDate: string;
|
||||
|
||||
/**
|
||||
* 宣讲人
|
||||
*/
|
||||
compereName: IdAndNameVO;
|
||||
|
||||
/**
|
||||
* 参与人列表
|
||||
*/
|
||||
participantList: Array<IdAndNameVO>;
|
||||
|
||||
/**
|
||||
* 班会内容
|
||||
*/
|
||||
content: string;
|
||||
|
||||
/**
|
||||
* 班会图片Url
|
||||
*/
|
||||
pictureUrl: Array<IdAndNameVO>;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
export interface TeamMeetingForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 班组id
|
||||
*/
|
||||
teamId?: string | number;
|
||||
|
||||
/**
|
||||
* 分包公司id
|
||||
*/
|
||||
contractorId?: string | number;
|
||||
|
||||
/**
|
||||
* 开会时间
|
||||
*/
|
||||
meetingDate?: string;
|
||||
|
||||
/**
|
||||
* 宣讲人
|
||||
*/
|
||||
compereId?: string | number;
|
||||
|
||||
/**
|
||||
* 参与人id列表
|
||||
*/
|
||||
participantIdList?: Array<string | number>;
|
||||
|
||||
/**
|
||||
* 班会内容
|
||||
*/
|
||||
content?: string;
|
||||
|
||||
/**
|
||||
* 班会图片
|
||||
*/
|
||||
pictureList?: Array<string | number>;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface TeamMeetingQuery extends PageQuery {
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 班组id
|
||||
*/
|
||||
teamId?: string | number;
|
||||
|
||||
/**
|
||||
* 分包公司id
|
||||
*/
|
||||
contractorId?: string | number;
|
||||
|
||||
/**
|
||||
* 开会时间
|
||||
*/
|
||||
meetingDate?: string;
|
||||
|
||||
/**
|
||||
* 宣讲人
|
||||
*/
|
||||
compereId?: string | number;
|
||||
|
||||
/**
|
||||
* 参与人id
|
||||
*/
|
||||
participantIdList?: Array<string | number>;
|
||||
|
||||
/**
|
||||
* 班会内容
|
||||
*/
|
||||
content?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
Reference in New Issue
Block a user