diff --git a/.env.development b/.env.development index 595e335..d3e8059 100644 --- a/.env.development +++ b/.env.development @@ -5,14 +5,15 @@ VITE_APP_TITLE = 煤科建管平台 VITE_APP_ENV = 'development' # 开发环境 -VITE_APP_BASE_API = 'http://192.168.110.149:8899' +VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 李陈杰 209 +# VITE_APP_BASE_API = 'http://192.168.110.209:8899' # 曾涛 # VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 罗成 # VITE_APP_BASE_API = 'http://192.168.110.188:8899' # 朱银 -# VITE_APP_BASE_API = 'http://192.168.110.180:8899' +# VITE_APP_BASE_API = 'http://192.168.110.149:8899' #曾涛 # VITE_APP_BASE_API = 'http://192.168.110.171:8899' diff --git a/src/api/progress/progressCategory/index.ts b/src/api/progress/progressCategory/index.ts index 1f593bb..9d0e9ae 100644 --- a/src/api/progress/progressCategory/index.ts +++ b/src/api/progress/progressCategory/index.ts @@ -8,10 +8,11 @@ import { ProgressCategoryVO, ProgressCategoryForm, ProgressCategoryQuery } from * @returns {*} */ -export const listProgressCategory = (id?: string | number): AxiosPromise => { +export const listProgressCategory = (parentId?: string | number,name?:string): AxiosPromise => { return request({ - url: '/progress/progressCategory/listByParent/' + id, - method: 'get' + url: '/progress/progressCategory/listByParent', + method: 'get', + params:{parentId,name} }); }; diff --git a/src/api/progress/progressCategoryTemplate/index.ts b/src/api/progress/progressCategoryTemplate/index.ts index 86e86e1..7ebeb8c 100644 --- a/src/api/progress/progressCategoryTemplate/index.ts +++ b/src/api/progress/progressCategoryTemplate/index.ts @@ -78,9 +78,10 @@ export const getTabList = (id: string) => { * @param parentId * @returns {*} */ -export const listProgressCategoryTemplateByParent = (parentId: string | number): AxiosPromise => { +export const listProgressCategoryTemplateByParent = (parentId: string | number,name:string): AxiosPromise => { return request({ - url: '/progress/progressCategoryTemplate/listByParent/' + parentId, - method: 'get' + url: '/progress/progressCategoryTemplate/listByParent' , + method: 'get', + params:{parentId,name} }); }; diff --git a/src/api/project/constructionUser/index.ts b/src/api/project/constructionUser/index.ts index c3c543c..9c20a99 100644 --- a/src/api/project/constructionUser/index.ts +++ b/src/api/project/constructionUser/index.ts @@ -164,7 +164,7 @@ export const updateConstructionUserSalary = (data: ConstructionUserSalaryForm) = */ export const getConstructionUserExit = (query: ConstructionUserExitForm) => { return request({ - url: '/contractor/constructionUserExit/list', + url: '/project/constructionUserExit/list', method: 'get', params: query }); @@ -204,7 +204,6 @@ export const importConstructionUserInfo = (file: string) => { }); }; - // 获取项目列表 export const ProjectList = (query) => { return request({ @@ -216,7 +215,7 @@ export const ProjectList = (query) => { // 获取班组列表 export const TeamList = (query) => { - return request({ + return request({ url: '/contractor/constructionUser/teamList', method: 'get', params: query @@ -230,4 +229,4 @@ export const TeamDistribution = (data) => { method: 'post', data: data }); -}; \ No newline at end of file +}; diff --git a/src/api/project/constructionUserFile/index.ts b/src/api/project/constructionUserFile/index.ts index ef40d02..8916b3b 100644 --- a/src/api/project/constructionUserFile/index.ts +++ b/src/api/project/constructionUserFile/index.ts @@ -10,7 +10,7 @@ import { ConstructionUserFileVO, ConstructionUserFileForm, ConstructionUserFileQ export const listConstructionUserFile = (query?: ConstructionUserFileQuery): AxiosPromise => { return request({ - url: '/project/constructionUserFile/list', + url: '/contractor/constructionUserFile/list', method: 'get', params: query }); @@ -22,7 +22,7 @@ export const listConstructionUserFile = (query?: ConstructionUserFileQuery): Axi */ export const setConstructionUserFile = (data: ConstructionUserFileForm): AxiosPromise => { return request({ - url: '/project/constructionUserFile/save', + url: '/contractor/constructionUserFile/save', method: 'post', data }); @@ -34,7 +34,7 @@ export const setConstructionUserFile = (data: ConstructionUserFileForm): AxiosPr */ export const delConstructionUserFile = (id: string | number | Array) => { return request({ - url: '/project/constructionUserFile/' + id, + url: '/contractor/constructionUserFile/' + id, method: 'delete' }); }; diff --git a/src/api/safety/questionBank/index.ts b/src/api/safety/questionBank/index.ts index 7427f9f..540ba08 100644 --- a/src/api/safety/questionBank/index.ts +++ b/src/api/safety/questionBank/index.ts @@ -1,6 +1,6 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; -import { QuestionBankVO, QuestionBankForm, QuestionBankQuery } from '@/api/safety/questionBank/types'; +import { QuestionBankVO, QuestionBankForm, QuestionBankQuery } from '@/api/safety/wgzQuestionBank/types'; /** * 查询题库列表 @@ -10,7 +10,7 @@ import { QuestionBankVO, QuestionBankForm, QuestionBankQuery } from '@/api/safet export const listQuestionBank = (query?: QuestionBankQuery): AxiosPromise => { return request({ - url: '/safety/questionBank/list', + url: '/safety/wgzQuestionBank/list', method: 'get', params: query }); @@ -22,7 +22,7 @@ export const listQuestionBank = (query?: QuestionBankQuery): AxiosPromise => { return request({ - url: '/safety/questionBank/' + id, + url: '/safety/wgzQuestionBank/' + id, method: 'get' }); }; @@ -33,7 +33,7 @@ export const getQuestionBank = (id: string | number): AxiosPromise { return request({ - url: '/safety/questionBank', + url: '/safety/wgzQuestionBank', method: 'post', data: data }); @@ -45,7 +45,7 @@ export const addQuestionBank = (data: QuestionBankForm) => { */ export const updateQuestionBank = (data: QuestionBankForm) => { return request({ - url: '/safety/questionBank', + url: '/safety/wgzQuestionBank', method: 'put', data: data }); @@ -57,7 +57,7 @@ export const updateQuestionBank = (data: QuestionBankForm) => { */ export const delQuestionBank = (id: string | number | Array) => { return request({ - url: '/safety/questionBank/' + id, + url: '/safety/wgzQuestionBank/' + id, method: 'delete' }); }; diff --git a/src/api/safety/questionUserAnswer/index.ts b/src/api/safety/questionUserAnswer/index.ts index 430d505..de3d40c 100644 --- a/src/api/safety/questionUserAnswer/index.ts +++ b/src/api/safety/questionUserAnswer/index.ts @@ -1,6 +1,6 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; -import { QuestionUserAnswerVO, QuestionUserAnswerForm, QuestionUserAnswerQuery } from '@/api/safety/questionUserAnswer/types'; +import { QuestionUserAnswerVO, QuestionUserAnswerForm, QuestionUserAnswerQuery } from '@/api/safety/wgzQuestionSave/types'; /** * 查询用户试卷存储列表 @@ -10,7 +10,7 @@ import { QuestionUserAnswerVO, QuestionUserAnswerForm, QuestionUserAnswerQuery } export const listQuestionUserAnswer = (query?: QuestionUserAnswerQuery): AxiosPromise => { return request({ - url: '/safety/questionUserAnswer/list', + url: '/safety/wgzQuestionSave/list', method: 'get', params: query }); @@ -22,7 +22,7 @@ export const listQuestionUserAnswer = (query?: QuestionUserAnswerQuery): AxiosPr */ export const getQuestionUserAnswer = (id: string | number): AxiosPromise => { return request({ - url: '/safety/questionUserAnswer/' + id, + url: '/safety/wgzQuestionSave/' + id, method: 'get' }); }; @@ -33,7 +33,7 @@ export const getQuestionUserAnswer = (id: string | number): AxiosPromise { return request({ - url: '/safety/questionUserAnswer', + url: '/safety/wgzQuestionSave', method: 'post', data: data }); @@ -45,7 +45,7 @@ export const addQuestionUserAnswer = (data: QuestionUserAnswerForm) => { */ export const updateQuestionUserAnswer = (data: QuestionUserAnswerForm) => { return request({ - url: '/safety/questionUserAnswer', + url: '/safety/wgzQuestionSave', method: 'put', data: data }); @@ -57,7 +57,7 @@ export const updateQuestionUserAnswer = (data: QuestionUserAnswerForm) => { */ export const delQuestionUserAnswer = (id: string | number | Array) => { return request({ - url: '/safety/questionUserAnswer/' + id, + url: '/safety/wgzQuestionSave/' + id, method: 'delete' }); }; @@ -68,7 +68,7 @@ export const delQuestionUserAnswer = (id: string | number | Array { return request({ - url: '/safety/questionUserAnswer/upload/zip', + url: '/safety/wgzQuestionSave/upload/zip', method: 'post', data: data }); diff --git a/src/api/safety/questionsCategory/index.ts b/src/api/safety/questionsCategory/index.ts index a69e77d..06d3cad 100644 --- a/src/api/safety/questionsCategory/index.ts +++ b/src/api/safety/questionsCategory/index.ts @@ -10,7 +10,7 @@ import { QuestionsCategoryVO, QuestionsCategoryForm, QuestionsCategoryQuery } fr export const listQuestionsCategory = (query?: QuestionsCategoryQuery): AxiosPromise => { return request({ - url: '/safety/questionsCategory/list', + url: '/safety/wzgQuestionCategory/list', method: 'get', params: query }); @@ -22,7 +22,7 @@ export const listQuestionsCategory = (query?: QuestionsCategoryQuery): AxiosProm */ export const getQuestionsCategory = (id: string | number): AxiosPromise => { return request({ - url: '/safety/questionsCategory/' + id, + url: '/safety/wzgQuestionCategory' + id, method: 'get' }); }; @@ -33,7 +33,7 @@ export const getQuestionsCategory = (id: string | number): AxiosPromise { return request({ - url: '/safety/questionsCategory', + url: '/safety/wzgQuestionCategory', method: 'post', data: data }); @@ -45,7 +45,7 @@ export const addQuestionsCategory = (data: QuestionsCategoryForm) => { */ export const updateQuestionsCategory = (data: QuestionsCategoryForm) => { return request({ - url: '/safety/questionsCategory', + url: '/safety/wzgQuestionCategory', method: 'put', data: data }); @@ -57,7 +57,7 @@ export const updateQuestionsCategory = (data: QuestionsCategoryForm) => { */ export const delQuestionsCategory = (id: string | number | Array) => { return request({ - url: '/safety/questionsCategory/' + id, + url: '/safety/wzgQuestionCategory' + id, method: 'delete' }); }; diff --git a/src/api/safety/questionsConfig/index.ts b/src/api/safety/questionsConfig/index.ts index 3c613ec..4969332 100644 --- a/src/api/safety/questionsConfig/index.ts +++ b/src/api/safety/questionsConfig/index.ts @@ -22,7 +22,7 @@ export const listQuestionsConfig = (query?: QuestionsConfigQuery): AxiosPromise< */ export const getQuestionsConfig = (id: string | number): AxiosPromise => { return request({ - url: '/safety/questionsConfig/' + id, + url: '/safety/wzgQuestionsConfiguration/' + id, method: 'get' }); }; @@ -45,7 +45,7 @@ export const addQuestionsConfig = (data: QuestionsConfigForm) => { */ export const updateQuestionsConfig = (data: QuestionsConfigForm) => { return request({ - url: '/safety/questionsConfig', + url: '/safety/wzgQuestionsConfiguration', method: 'put', data: data }); diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 265c016..bd0b93c 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -203,6 +203,7 @@ watch( }); } else { fileList.value = []; + return []; } }, @@ -293,7 +294,7 @@ const handleChange = (file: any, filelist: any) => { } } // 记录 status = 'ready' 的文件 - if (file.status === 'ready') { + if (file.status === 'ready' && !props.isConstruction) { pendingFiles.value.push(file); fileList.value = pendingFiles.value; } diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index d0f78bd..4921a6d 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -201,6 +201,8 @@ const uploadedSuccessfully = () => { fileList.value = fileList.value.filter((f) => f.url !== undefined).concat(uploadList.value); uploadList.value = []; number.value = 0; + console.log(fileList.value); + emit('update:modelValue', listToString(fileList.value)); proxy?.$modal.closeLoading(); } diff --git a/src/components/TopNav/index.vue b/src/components/TopNav/index.vue index 32357e3..39c3a6e 100644 --- a/src/components/TopNav/index.vue +++ b/src/components/TopNav/index.vue @@ -170,8 +170,6 @@ onMounted(() => { //分页 const getWaitingList = () => { pageByTaskWait({ pageNum: 1, pageSize: 10 }).then((resp) => { - console.log(resp); - total.value = resp.total; }); }; diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index 3fd0fd8..21f7710 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -17,7 +17,7 @@ { - if (onlyOneChild.value.meta?.title == '我的待办') { + if (onlyOneChild.value.meta?.title == '我的待办' || props.item.meta?.title == '我的任务') { getWaitingList(); } - if (onlyOneChild.value.meta?.title == '我的抄送') { + if (onlyOneChild.value.meta?.title == '我的抄送') { getChaoList(); } }); @@ -130,9 +130,7 @@ const hasTitle = (title: string | undefined): string => { watch( () => noticeStore.state.value.notices, (newVal) => { - if (onlyOneChild.value.meta?.title == '我的待办') { - console.log(121212121); - + if (onlyOneChild.value.meta?.title == '我的待办' || props.item.meta?.title == '我的任务') { let time = setTimeout(() => { getWaitingList(); clearTimeout(time); diff --git a/src/views/contract/bidCost/index.vue b/src/views/contract/bidCost/index.vue index 34bdbb1..a69eb4c 100644 --- a/src/views/contract/bidCost/index.vue +++ b/src/views/contract/bidCost/index.vue @@ -57,10 +57,10 @@ - - + + - + - - - + + +