From 57460d0af1fbea81eca69bb1d15de3ef8f2a0a59 Mon Sep 17 00:00:00 2001 From: Teo <2642673902@qq.com> Date: Thu, 4 Sep 2025 11:10:55 +0800 Subject: [PATCH 01/26] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/layout/components/Navbar.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.development b/.env.development index eb8185a..beee2bd 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ VITE_APP_ENV = 'development' # 开发环境 # 李陈杰 209 -VITE_APP_BASE_API = 'http://192.168.110.188:8899' +VITE_APP_BASE_API = 'http://192.168.110.209:8899' # 曾涛 # VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 罗成 diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 8e70d3f..c2ed27e 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -26,11 +26,11 @@ - +
From e075ce1bfcfe677d823d2af1c62fb6e9540d76ee Mon Sep 17 00:00:00 2001 From: shi <936384804@qq.com> Date: Thu, 4 Sep 2025 17:36:13 +0800 Subject: [PATCH 02/26] style --- src/views/ProjectScreen/components/leftPage.vue | 8 +++++--- src/views/ProjectScreen/components/rightPage.vue | 5 +++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/ProjectScreen/components/leftPage.vue b/src/views/ProjectScreen/components/leftPage.vue index 3130984..8336379 100644 --- a/src/views/ProjectScreen/components/leftPage.vue +++ b/src/views/ProjectScreen/components/leftPage.vue @@ -14,7 +14,7 @@
-
+
@@ -62,7 +62,8 @@
{{ item.teamName }}
-
{{ item.attendanceNumber }} 人/{{ item.allNumber }}
+
{{ item.attendanceNumber }} 人/{{ item.allNumber + }}
{{ item.attendanceRate }} %
{{ item.attendanceTime }}
@@ -247,12 +248,13 @@ onUnmounted(() => { margin-top: 15px; .tag_item { + width: 28%; display: flex; flex-direction: column; align-items: center; gap: 10px; border: 1px dashed rgba(29, 214, 255, 0.3); - padding: 10px 25px; + padding: 10px; .tag_info { font-size: 20px; diff --git a/src/views/ProjectScreen/components/rightPage.vue b/src/views/ProjectScreen/components/rightPage.vue index 37aaec2..0d08c08 100644 --- a/src/views/ProjectScreen/components/rightPage.vue +++ b/src/views/ProjectScreen/components/rightPage.vue @@ -173,19 +173,20 @@ onUnmounted(() => { .chart_container { display: flex; flex-direction: column; + gap: 5px; width: 100%; height: 100%; } .echart { - height: 50%; + height: 48%; width: 100%; } } } .content { - max-height: 100px; + height: 100px; margin: 0 15px; padding: 0 10px; margin-top: 15px; From 26bef3f7242fca4f2895b8ac163d28d8a14792ae Mon Sep 17 00:00:00 2001 From: Teo <2642673902@qq.com> Date: Thu, 4 Sep 2025 17:56:01 +0800 Subject: [PATCH 03/26] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/views/design/drawing/indexEdit.vue | 9 +- .../formalitiesAreConsolidated/index.vue | 4 +- .../materialReceive/index.vue | 138 ++++++++++-------- src/views/progress/progressCategory/index.vue | 8 +- .../BasicData/landBlock/index.vue | 22 +-- src/views/tender/bidd/index.vue | 27 +++- 7 files changed, 125 insertions(+), 87 deletions(-) diff --git a/.env.development b/.env.development index beee2bd..6c8eb32 100644 --- a/.env.development +++ b/.env.development @@ -6,13 +6,13 @@ VITE_APP_ENV = 'development' # 开发环境 # 李陈杰 209 -VITE_APP_BASE_API = 'http://192.168.110.209:8899' +# 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.149: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/views/design/drawing/indexEdit.vue b/src/views/design/drawing/indexEdit.vue index 42b1999..53ab0ec 100644 --- a/src/views/design/drawing/indexEdit.vue +++ b/src/views/design/drawing/indexEdit.vue @@ -50,7 +50,7 @@

请选择要启动的流程:

- +
diff --git a/src/views/materials/materialsEquipment/materialReceive/index.vue b/src/views/materials/materialsEquipment/materialReceive/index.vue index 3f1d4c0..90f6d3d 100644 --- a/src/views/materials/materialsEquipment/materialReceive/index.vue +++ b/src/views/materials/materialsEquipment/materialReceive/index.vue @@ -1,14 +1,13 @@ @@ -328,10 +328,12 @@ defineExpose({ open }); From 03ec2223aa2db0dbd3adb20c3019172a3b6343fc Mon Sep 17 00:00:00 2001 From: ljx <15723110242@139.com> Date: Fri, 5 Sep 2025 22:17:25 +0800 Subject: [PATCH 06/26] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/api/materials/materialOutbound/index.ts | 27 +++ src/api/materials/materialsUseRecord/types.ts | 15 +- .../materialOutbound/component/outbound.vue | 90 ++++++++ .../materials/materialOutbound/index.vue | 148 +++++++++++++ .../materials/materialsUseRecord/index.vue | 207 +++++++++++------- 6 files changed, 398 insertions(+), 93 deletions(-) create mode 100644 src/api/materials/materialOutbound/index.ts create mode 100644 src/views/materials/materialOutbound/component/outbound.vue create mode 100644 src/views/materials/materialOutbound/index.vue diff --git a/.env.development b/.env.development index 9419bae..4a809a3 100644 --- a/.env.development +++ b/.env.development @@ -6,13 +6,13 @@ VITE_APP_ENV = 'development' # 开发环境 # 李陈杰 209 -# VITE_APP_BASE_API = 'http://192.168.110.209:8899' +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.180:8899' #曾涛 # VITE_APP_BASE_API = 'http://192.168.110.171:8899' diff --git a/src/api/materials/materialOutbound/index.ts b/src/api/materials/materialOutbound/index.ts new file mode 100644 index 0000000..ca53c82 --- /dev/null +++ b/src/api/materials/materialOutbound/index.ts @@ -0,0 +1,27 @@ +import request from '@/utils/request'; + +//获取出库材料得列表 +export const outboundMaterials = (query?: any) => { + return request({ + url: '/materials/materials/listRelevancy', + method: 'get', + params: query + }); +}; +//新增出库 +export const addOutbound = (data?: any) => { + return request({ + url: '/materials/materialsInventory', + method: 'post', + data + }); +}; + +//获取材料列表 +export const getMaterialsList = (query?: any) => { + return request({ + url: '/materials/materials/list', + method: 'get', + params: query + }); +}; diff --git a/src/api/materials/materialsUseRecord/types.ts b/src/api/materials/materialsUseRecord/types.ts index 697f347..19df92b 100644 --- a/src/api/materials/materialsUseRecord/types.ts +++ b/src/api/materials/materialsUseRecord/types.ts @@ -33,7 +33,6 @@ export interface MaterialsUseRecordVO { * 备注 */ remark: string; - } export interface MaterialsUseRecordForm extends BaseEntity { @@ -71,11 +70,9 @@ export interface MaterialsUseRecordForm extends BaseEntity { * 备注 */ remark?: string; - } export interface MaterialsUseRecordQuery extends PageQuery { - /** * 项目ID */ @@ -101,11 +98,9 @@ export interface MaterialsUseRecordQuery extends PageQuery { */ residueNumber?: string | number; - /** - * 日期范围参数 - */ - params?: any; + /** + * 日期范围参数 + */ + params?: any; + materialsId?: string | number; } - - - diff --git a/src/views/materials/materialOutbound/component/outbound.vue b/src/views/materials/materialOutbound/component/outbound.vue new file mode 100644 index 0000000..c182cee --- /dev/null +++ b/src/views/materials/materialOutbound/component/outbound.vue @@ -0,0 +1,90 @@ + + + diff --git a/src/views/materials/materialOutbound/index.vue b/src/views/materials/materialOutbound/index.vue new file mode 100644 index 0000000..91a54e3 --- /dev/null +++ b/src/views/materials/materialOutbound/index.vue @@ -0,0 +1,148 @@ + + + + + diff --git a/src/views/materials/materialsUseRecord/index.vue b/src/views/materials/materialsUseRecord/index.vue index 494f0a7..a8da5f4 100644 --- a/src/views/materials/materialsUseRecord/index.vue +++ b/src/views/materials/materialsUseRecord/index.vue @@ -1,84 +1,101 @@ @@ -240,7 +232,7 @@ const projectList = ref([]); const projectLoading = ref(false); const userLoading = ref(false); const viewAllButtonText = computed(() => { - return queryParams.value.type === 1 ? '查看未绑定设备' : '查看已绑定设备'; + return queryParams.value.type === 1 ? '查看未绑定项目设备' : '查看已绑定项目设备'; }); // 对话框相关 @@ -473,7 +465,7 @@ const handleViewAll = () => { getList(); }; -const handleGoToEmptyPage = () => { +const handleGoToEmptyPage = (userId: any) => { router.push({ path: './equipmentGPS' }); diff --git a/src/views/project/landTransfer/BusinessLedger/landTransferLedger/index.vue b/src/views/project/landTransfer/BusinessLedger/landTransferLedger/index.vue index 28839b3..bc9baa1 100644 --- a/src/views/project/landTransfer/BusinessLedger/landTransferLedger/index.vue +++ b/src/views/project/landTransfer/BusinessLedger/landTransferLedger/index.vue @@ -4,7 +4,7 @@
设计面积 - {{ detailInfo.designArea }} 亩 + {{ detailInfo.areaSum }} 亩
@@ -13,7 +13,7 @@
已流转面积 - {{ detailInfo.transferAea }} 亩 + {{ detailInfo.transferAreaSum }} 亩
@@ -22,7 +22,7 @@
租金 - {{ detailInfo.landRent / 1000 }} 万元 + {{ detailInfo.rentSum / 1000 }} 万元
@@ -42,6 +42,7 @@ + @@ -74,18 +75,23 @@ - - - - - - - - + + + + + + + + + + - - + + diff --git a/src/views/tender/bidd/index.vue b/src/views/tender/bidd/index.vue index 1bf3b61..99baf53 100644 --- a/src/views/tender/bidd/index.vue +++ b/src/views/tender/bidd/index.vue @@ -59,8 +59,8 @@ - - + + @@ -92,7 +92,7 @@ {{ scope.row.price != 0 ? Number(scope.row.price).toFixed(2) : null }} - + diff --git a/src/views/tender/plan/index.vue b/src/views/tender/plan/index.vue index ba71c3a..1ff7736 100644 --- a/src/views/tender/plan/index.vue +++ b/src/views/tender/plan/index.vue @@ -198,9 +198,11 @@ ? activeTab == 2 ? 0 : '' - : (scope.row.quantity ? Number(scope.row.quantity) : 0) - - (scope.row.selectNum ? Number(scope.row.selectNum) : 0) - - (scope.row.useQuantity ? Number(scope.row.useQuantity) : 0) + : ( + (scope.row.quantity ? Number(scope.row.quantity) : 0) - + (scope.row.selectNum ? Number(scope.row.selectNum) : 0) - + (scope.row.useQuantity ? Number(scope.row.useQuantity) : 0) + ).toFixed(2) }} From e71ec5b9c1a1a250e8d4efaadc28a7d767ff376c Mon Sep 17 00:00:00 2001 From: ljx <15723110242@139.com> Date: Sat, 6 Sep 2025 18:23:14 +0800 Subject: [PATCH 15/26] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.development b/.env.development index aae7043..4a809a3 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ VITE_APP_ENV = 'development' # 开发环境 # 李陈杰 209 -VITE_APP_BASE_API = 'http://192.168.110.149:8899' +VITE_APP_BASE_API = 'http://192.168.110.209:8899' # 曾涛 # VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 罗成 From b412e847d48a1d7cb63731801c33b6984957bc58 Mon Sep 17 00:00:00 2001 From: ljx <15723110242@139.com> Date: Sat, 6 Sep 2025 18:24:12 +0800 Subject: [PATCH 16/26] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 1 - 1 file changed, 1 deletion(-) diff --git a/.env.development b/.env.development index 1a58681..4a809a3 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,6 @@ VITE_APP_TITLE = 煤科建管平台 VITE_APP_ENV = 'development' # 开发环境 -VITE_APP_BASE_API = 'http://192.168.110.149:8899' # 李陈杰 209 VITE_APP_BASE_API = 'http://192.168.110.209:8899' # 曾涛 From 5101dc7657326a1258fb72d08aa089e3a807124c Mon Sep 17 00:00:00 2001 From: tcy <1193318383@qq.com> Date: Sat, 6 Sep 2025 18:26:17 +0800 Subject: [PATCH 17/26] =?UTF-8?q?fix(ctr):=20=E4=BF=AE=E5=A4=8D=E6=94=B6?= =?UTF-8?q?=E5=85=A5=E5=90=88=E5=90=8C=E7=B1=BB=E5=9E=8B=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=90=8E=E6=9C=AA=E9=87=8D=E7=BD=AE=E5=90=88=E5=90=8C=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在切换收入合同类型时,确保合同类型被正确重置 - 优化了模板中的代码格式,提高了可读性 --- src/views/ctr/index.vue | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/views/ctr/index.vue b/src/views/ctr/index.vue index 96f5c49..98b913d 100644 --- a/src/views/ctr/index.vue +++ b/src/views/ctr/index.vue @@ -24,7 +24,8 @@ - + @@ -37,17 +38,15 @@ - + - + @@ -61,35 +60,36 @@ - + - 选择招标 + 选择招标 - + + v-model="form.amount" placeholder="请输入合同金额" disabled /> - + @@ -208,7 +208,7 @@ const payRatioComputed = computed({ return total; }, // 只读 - set: () => {} + set: () => { } }); const checkContractType = (type) => { contract_type.value = type; @@ -280,7 +280,6 @@ const resetForm = () => { }; fileList.value = []; tempFileList.value = []; - contract_type.value = ''; setTimeout(() => { localStorage.removeItem('tempContractForm'); }, 0); @@ -399,6 +398,7 @@ const getInfoByProjectIdList = async () => { form.value.contractOwner = res.data.planDuration; }; onMounted(() => { + contract_type.value = ''; getInfoByProjectIdList(); const tempForm = localStorage.getItem('tempContractForm'); From 4fa4c754f931dce481d9b4b70c8f5499bd5f7d7a Mon Sep 17 00:00:00 2001 From: dhr <2216804034@qq.com> Date: Sat, 6 Sep 2025 18:51:05 +0800 Subject: [PATCH 18/26] 0906 --- src/views/equipment/equipmentGPS.vue | 81 +++- src/views/equipment/index.js | 392 ++++++++++++++++++ src/views/equipment/index.vue | 135 +++--- .../BasicData/landBlock/index.vue | 4 +- .../landTransferLedger/index.vue | 10 +- 5 files changed, 555 insertions(+), 67 deletions(-) create mode 100644 src/views/equipment/index.js diff --git a/src/views/equipment/equipmentGPS.vue b/src/views/equipment/equipmentGPS.vue index 35290b8..8a24dea 100644 --- a/src/views/equipment/equipmentGPS.vue +++ b/src/views/equipment/equipmentGPS.vue @@ -1,17 +1,63 @@ - From 4a9a0c4214ef03efcd571e0e520848643765ee4c Mon Sep 17 00:00:00 2001 From: Teo <2642673902@qq.com> Date: Mon, 8 Sep 2025 10:23:39 +0800 Subject: [PATCH 23/26] =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E4=BA=BA=E5=91=98=E4=BB=BB=E5=91=BD=E4=BF=AE=E5=A4=8Dui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/design/appointment/index.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/design/appointment/index.vue b/src/views/design/appointment/index.vue index 6adfa28..89cce9e 100644 --- a/src/views/design/appointment/index.vue +++ b/src/views/design/appointment/index.vue @@ -343,13 +343,17 @@ type="primary" size="large" v-hasPermi="['design:user:batch']" + icon="Check" @click="submitForm" class="px-8 py-2.5 transition-all duration-300 transform hover:scale-105 bg-blue-500 hover:bg-blue-600 text-white font-medium" - > - 确认提交 + >确认提交 - - 重置 + 重置
From cf2b80577023580951aa2eee36dfe36a0e28e80d Mon Sep 17 00:00:00 2001 From: taoge1020 Date: Mon, 8 Sep 2025 20:00:59 +0800 Subject: [PATCH 24/26] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/safety/questionBank/index.ts | 12 +- src/api/safety/questionUserAnswer/index.ts | 14 +- src/api/safety/questionsCategory/index.ts | 10 +- src/api/safety/questionsConfig/index.ts | 4 +- src/components/TopNav/index.vue | 2 - src/layout/components/Sidebar/SidebarItem.vue | 10 +- src/views/design/received/index.vue | 4 +- .../formalities/listOfFormalities/index.vue | 17 +- src/views/safety/questionBank/index.vue | 40 +- src/views/safety/questionUserAnswer/index.vue | 59 +-- src/views/safety/questionsCategory/index.vue | 31 +- src/views/safety/questionsConfig/index.vue | 457 +++++++----------- src/views/system/user/comm/editInfo.vue | 10 +- src/views/system/user/comm/roleInfo.vue | 12 + src/views/system/user/index.vue | 32 +- 16 files changed, 292 insertions(+), 424 deletions(-) diff --git a/.env.development b/.env.development index 595e335..24a087f 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.149:8899' +VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 李陈杰 209 # 曾涛 # VITE_APP_BASE_API = 'http://192.168.110.180:8899' 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/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/design/received/index.vue b/src/views/design/received/index.vue index 3dfa5ef..cb81327 100644 --- a/src/views/design/received/index.vue +++ b/src/views/design/received/index.vue @@ -62,13 +62,13 @@ :accept="'.xlsx,.xls'" :limit="1" > - 导入文件 + 导入文件 diff --git a/src/views/formalities/listOfFormalities/index.vue b/src/views/formalities/listOfFormalities/index.vue index 24c2bac..ed712fc 100644 --- a/src/views/formalities/listOfFormalities/index.vue +++ b/src/views/formalities/listOfFormalities/index.vue @@ -1,9 +1,7 @@ - - + @@ -59,21 +62,19 @@ - - +
@@ -196,35 +197,15 @@ const handleSelectionChange = (selection: QuestionUserAnswerVO[]) => { multiple.value = !selection.length; }; -/** 修改按钮操作 */ -// const handleUpdate = async (row?: QuestionUserAnswerVO) => { -// reset(); -// const _id = row?.id || ids.value[0]; -// const res = await getQuestionUserAnswer(_id); -// Object.assign(form.value, res.data); -// dialog.visible = true; -// dialog.title = '修改用户试卷存储'; -// }; - /** 批量下载按钮操作 */ const handleDownload = async () => { const _ids = ids.value; - await downLoadOss({ idList: _ids }, '/safety/questionUserAnswer/exportFile', '安全考试.zip'); + await downLoadOss({ idList: _ids }, '/safety/wgzQuestionSave/exportFile', '安全考试.zip'); }; /** 下载单个按钮操作 */ const downloadOssOne = async (row?: QuestionUserAnswerVO) => { await download.oss(row?.file); }; - -// const fileWatch = watch( -// () => filePath.value, -// (nid, oid) => { -// uploadQuestionUserAnswer({ file: filePath.value, projectId: currentProject.value?.id }).then((res) => { -// console.log(res); -// }); -// } -// ); - //监听项目id刷新数据 const listeningProject = watch( () => currentProject.value?.id, diff --git a/src/views/safety/questionsCategory/index.vue b/src/views/safety/questionsCategory/index.vue index e46f30c..d96e8eb 100644 --- a/src/views/safety/questionsCategory/index.vue +++ b/src/views/safety/questionsCategory/index.vue @@ -22,38 +22,21 @@ 新增 - - 修改 - - - 删除 - - - + diff --git a/src/views/safety/questionsConfig/index.vue b/src/views/safety/questionsConfig/index.vue index 669ca3a..282c309 100644 --- a/src/views/safety/questionsConfig/index.vue +++ b/src/views/safety/questionsConfig/index.vue @@ -1,309 +1,220 @@ + + diff --git a/src/views/system/user/comm/editInfo.vue b/src/views/system/user/comm/editInfo.vue index 1e8b39d..7168cee 100644 --- a/src/views/system/user/comm/editInfo.vue +++ b/src/views/system/user/comm/editInfo.vue @@ -192,12 +192,12 @@ async function handleDeptChange(value: number | string) { ]; } -const submitForm = () => { +const submitForm = (cb) => { userFormRef.value?.validate(async (valid: boolean) => { if (valid) { - form.value.userId ? await api.updateUser(form.value) : await api.addUser(form.value); - proxy?.$modal.msgSuccess('操作成功'); - proxy?.$emit('submit', false); + // form.value.userId ? await api.updateUser(form.value) : await api.addUser(form.value); + // proxy?.$modal.msgSuccess('操作成功'); + cb(); } }); }; @@ -243,7 +243,7 @@ const getInfoForm = () => { onMounted(() => { getDeptTree(); }); -defineExpose({ open, getInfoForm }); +defineExpose({ open, getInfoForm, submitForm });