From 12d7eef59f897556f17bd7705762848841b1a389 Mon Sep 17 00:00:00 2001 From: lcj <2331845269@qq.com> Date: Thu, 27 Mar 2025 17:47:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=BD=E5=B7=A5=E4=BA=BA=E5=91=98=E9=BB=91?= =?UTF-8?q?=E5=90=8D=E5=8D=95=E5=90=8E=E7=AB=AF=E9=80=BB=E8=BE=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=89=8D=E7=AB=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/constructionBlacklist/index.ts | 63 +++++++ .../project/constructionBlacklist/types.ts | 69 ++++++++ src/api/safety/questionUserAnswer/types.ts | 14 +- src/api/safety/questionsConfig/types.ts | 28 +-- .../project/constructionBlacklist/index.vue | 163 ++++++++++++++++++ src/views/project/constructionUser/index.vue | 39 ++++- .../projectTeam/component/UserListDialog.vue | 5 +- src/views/project/workWage/index.vue | 152 ++++++++-------- src/views/safety/questionBank/index.vue | 135 +++++++-------- src/views/safety/questionUserAnswer/index.vue | 117 ++++++++----- src/views/safety/questionsConfig/index.vue | 131 +++++++------- 11 files changed, 619 insertions(+), 297 deletions(-) create mode 100644 src/api/project/constructionBlacklist/index.ts create mode 100644 src/api/project/constructionBlacklist/types.ts create mode 100644 src/views/project/constructionBlacklist/index.vue 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 @@ - - + + + + + - +