diff --git a/src/api/project/constructionBlacklist/index.ts b/src/api/project/constructionBlacklist/index.ts new file mode 100644 index 0000000..3407e0d --- /dev/null +++ b/src/api/project/constructionBlacklist/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ConstructionBlacklistVO, ConstructionBlacklistForm, ConstructionBlacklistQuery } from '@/api/project/constructionBlacklist/types'; + +/** + * 查询黑名单列表 + * @param query + * @returns {*} + */ + +export const listConstructionBlacklist = (query?: ConstructionBlacklistQuery): AxiosPromise => { + return request({ + url: '/project/constructionBlacklist/list', + method: 'get', + params: query + }); +}; + +/** + * 查询黑名单详细 + * @param id + */ +export const getConstructionBlacklist = (id: string | number): AxiosPromise => { + return request({ + url: '/project/constructionBlacklist/' + id, + method: 'get' + }); +}; + +/** + * 新增黑名单 + * @param data + */ +export const addConstructionBlacklist = (data: ConstructionBlacklistForm) => { + return request({ + url: '/project/constructionBlacklist', + method: 'post', + data: data + }); +}; + +/** + * 修改黑名单 + * @param data + */ +export const updateConstructionBlacklist = (data: ConstructionBlacklistForm) => { + return request({ + url: '/project/constructionBlacklist', + method: 'put', + data: data + }); +}; + +/** + * 删除黑名单 + * @param id + */ +export const delConstructionBlacklist = (id: string | number | Array) => { + return request({ + url: '/project/constructionBlacklist/' + id, + method: 'delete' + }); +}; diff --git a/src/api/project/constructionBlacklist/types.ts b/src/api/project/constructionBlacklist/types.ts new file mode 100644 index 0000000..890f194 --- /dev/null +++ b/src/api/project/constructionBlacklist/types.ts @@ -0,0 +1,69 @@ +export interface ConstructionBlacklistVO { + /** + * id + */ + id: string | number; + /** + * 名字 + */ + userName: string; + + /** + * 身份证号码 + */ + sfzNumber: string; + + /** + * 备注 + */ + remark: string; +} + +export interface ConstructionBlacklistForm extends BaseEntity { + /** + * 项目id + */ + projectId?: string | number; + + /** + * 用户id + */ + userId?: string | number; + + /** + * 备注 + */ + remark?: string; +} + +export interface ConstructionBlacklistQuery extends PageQuery { + /** + * 主键id + */ + id?: string | number; + + /** + * 项目id + */ + projectId?: string | number; + + /** + * 用户id + */ + userId?: string | number; + + /** + * 名字 + */ + userName?: string; + + /** + * 身份证号码 + */ + sfzNumber?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/safety/questionUserAnswer/types.ts b/src/api/safety/questionUserAnswer/types.ts index 3bdb6de..66434a0 100644 --- a/src/api/safety/questionUserAnswer/types.ts +++ b/src/api/safety/questionUserAnswer/types.ts @@ -43,7 +43,6 @@ export interface QuestionUserAnswerVO { * 文件地址 */ file: string; - } export interface QuestionUserAnswerForm extends BaseEntity { @@ -91,11 +90,9 @@ export interface QuestionUserAnswerForm extends BaseEntity { * 文件地址 */ file?: string; - } export interface QuestionUserAnswerQuery extends PageQuery { - /** * 项目id */ @@ -136,11 +133,8 @@ export interface QuestionUserAnswerQuery extends PageQuery { */ file?: string; - /** - * 日期范围参数 - */ - params?: any; + /** + * 日期范围参数 + */ + params?: any; } - - - diff --git a/src/api/safety/questionsConfig/types.ts b/src/api/safety/questionsConfig/types.ts index a7773d4..5725304 100644 --- a/src/api/safety/questionsConfig/types.ts +++ b/src/api/safety/questionsConfig/types.ts @@ -4,6 +4,11 @@ export interface QuestionsConfigVO { */ id: string | number; + /** + * 项目id + */ + projectId: string | number; + /** * 单选题(单位/道) */ @@ -48,7 +53,6 @@ export interface QuestionsConfigVO { * 答题最大时间(单位/分钟) */ answerTime: number; - } export interface QuestionsConfigForm extends BaseEntity { @@ -57,6 +61,11 @@ export interface QuestionsConfigForm extends BaseEntity { */ id?: string | number; + /** + * 项目id + */ + projectId: string | number; + /** * 单选题(单位/道) */ @@ -101,11 +110,13 @@ export interface QuestionsConfigForm extends BaseEntity { * 答题最大时间(单位/分钟) */ answerTime?: number; - } export interface QuestionsConfigQuery extends PageQuery { - + /** + * 项目id + */ + projectId: string | number; /** * 单选题(单位/道) */ @@ -151,11 +162,8 @@ export interface QuestionsConfigQuery extends PageQuery { */ answerTime?: number; - /** - * 日期范围参数 - */ - params?: any; + /** + * 日期范围参数 + */ + params?: any; } - - - diff --git a/src/views/project/constructionBlacklist/index.vue b/src/views/project/constructionBlacklist/index.vue new file mode 100644 index 0000000..9f72c0a --- /dev/null +++ b/src/views/project/constructionBlacklist/index.vue @@ -0,0 +1,163 @@ + + + diff --git a/src/views/project/constructionUser/index.vue b/src/views/project/constructionUser/index.vue index 3e2ea58..c078ed7 100644 --- a/src/views/project/constructionUser/index.vue +++ b/src/views/project/constructionUser/index.vue @@ -12,6 +12,11 @@ + + + + + @@ -71,16 +76,15 @@ {{ getTeamName(scope.row.teamId) }} - - + - - + + @@ -90,11 +94,16 @@ - - + + + + + - +