From 2de0198c138a18684be5cd0434754e5d3510c2c2 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 17 Oct 2024 13:53:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=A6=96=E9=A1=B5--=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/phaseTwo/homePage.js | 19 ++ pages.json | 7 + pages/realName/index/index.vue | 16 +- pages/realName/workPlan/index.vue | 298 ++++++++++++++++++++++++++++++ static/realName/screen.png | Bin 0 -> 302 bytes utils/request.js | 3 +- 6 files changed, 331 insertions(+), 12 deletions(-) create mode 100644 pages/realName/workPlan/index.vue create mode 100644 static/realName/screen.png diff --git a/api/phaseTwo/homePage.js b/api/phaseTwo/homePage.js index f71e52b..8cfeb71 100644 --- a/api/phaseTwo/homePage.js +++ b/api/phaseTwo/homePage.js @@ -8,3 +8,22 @@ export function getHomePageListApi(data) { data: data }) } +// 首页二级页面--作业计划列表 +export function getWorkPlantApi(data) { + return request({ + url: '/bmw/homeSubPage/getAppDayPlanMsg', + method: 'post', + header: { + 'Content-Type': 'application/json' + }, + data: data + }) +} +// 首页二级页面--作业计划列表 +export function getHomePageSelectApi() { + return request({ + url: '/bmw/homePageSelect/getProCondition', + method: 'post', + data: {} + }) +} diff --git a/pages.json b/pages.json index bf93dfd..f7a5753 100644 --- a/pages.json +++ b/pages.json @@ -219,6 +219,13 @@ "navigationStyle": "custom" } }, + { + //首页二级跳转页面 -- 作业计划 + "path": "pages/realName/workPlan/index", + "style": { + "navigationStyle": "custom" + } + }, { //工作台 "path": "pages/realName/workbench/index", diff --git a/pages/realName/index/index.vue b/pages/realName/index/index.vue index ea20a5d..49ce18e 100644 --- a/pages/realName/index/index.vue +++ b/pages/realName/index/index.vue @@ -98,7 +98,7 @@ 今日风险 - + + + + + + + + + + + + 已查询{{ recordsTotal }}条数据 + + + + + + {{ index + 1 }} + {{ item.proName }} + + + {{ item.subComName }} + + 可接受风险:{{ item.kjsfx }} + 低风险:{{ item.dfx }} + 中风险:{{ item.zfx }} + 高风险:{{ item.gfx }} + + + + 作业人数 + {{ item.personNum }} + + + + + + + + +

条件筛选

+

分公司

+ + + + + + {{ item.name }} + + + + + + + + +
+
+
+ + + + + diff --git a/static/realName/screen.png b/static/realName/screen.png new file mode 100644 index 0000000000000000000000000000000000000000..787f6f555ae7d7384282b376c4fadd002f1ce5de GIT binary patch literal 302 zcmV+}0nz@6P)Px#=t)FDR5(wqlT8uBTxTmn1na0zZ=>}TNyxC3QDB`WAK z#&0XxCi&{Umu@tA+qMX%M_6KL=Y0FV&6Snch7Pk8>V zlCykp7>`QP8DJqf=GI3wLW6ix7}~uA@EIi05ni|)<=1Ju4}e6C@airXa8o5`vvLA} z;IkmG5Cd5_0d!Fz7H}Z%7GheOUM2U!g7)mJ=HaG*O_08l5Y3zbe+f|-<;1RG_Yg^K zTnk1vPc3La`$vv2mFy$BT;)yOAQHvnV)NPP3C@gwtqJbd;s5{u07*qoM6N<$g3#`K AnE(I) literal 0 HcmV?d00001 diff --git a/utils/request.js b/utils/request.js index 13c9f63..96e3c9f 100644 --- a/utils/request.js +++ b/utils/request.js @@ -5,7 +5,7 @@ import errorCode from '@/utils/errorCode' import { toast, showConfirm, tansParams } from '@/utils/common' let timeout = 10000 -const baseUrl = config.loginBaseUrl +const baseUrl = config.loginBaseUrl console.log('baseUrl-请求', baseUrl) const request = config => { @@ -21,6 +21,7 @@ const request = config => { url = url.slice(0, -1) config.url = url } + if (config.method === 'post') { config.header = { ...config.header, From f218b3c2cb1360d5b30102cd592745958001564e Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 17 Oct 2024 14:00:50 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 7 +++++++ pages/realName/workPlan-details/index.vue | 9 +++++++++ pages/realName/workPlan/index.vue | 11 ++++++++++- 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 pages/realName/workPlan-details/index.vue diff --git a/pages.json b/pages.json index f7a5753..f267a3e 100644 --- a/pages.json +++ b/pages.json @@ -226,6 +226,13 @@ "navigationStyle": "custom" } }, + { + //首页二级跳转页面 -- 作业计划--详情 + "path": "pages/realName/workPlan-details/index", + "style": { + "navigationStyle": "custom" + } + }, { //工作台 "path": "pages/realName/workbench/index", diff --git a/pages/realName/workPlan-details/index.vue b/pages/realName/workPlan-details/index.vue new file mode 100644 index 0000000..891355c --- /dev/null +++ b/pages/realName/workPlan-details/index.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/pages/realName/workPlan/index.vue b/pages/realName/workPlan/index.vue index 2f9c343..c142842 100644 --- a/pages/realName/workPlan/index.vue +++ b/pages/realName/workPlan/index.vue @@ -26,7 +26,12 @@
- + {{ index + 1 }} {{ item.proName }} @@ -154,6 +159,10 @@ export default { this.getWorkPlantData().then(() => { this.$refs.popup.close() }) + }, + /* 点击跳转作业计划详情 */ + onViewWorkDetails(row) { + uni.navigateTo({ url: '/pages/realName/workPlan-details/index' }) } } }