diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index 9b0d791..4ccd172 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -13,7 +13,7 @@
"type" : "uniCloud"
},
{
- "playground" : "standard",
+ "playground" : "custom",
"type" : "uni-app:app-android"
}
]
diff --git a/api/workPlan/homePage.js b/api/workPlan/homePage.js
new file mode 100644
index 0000000..982d47d
--- /dev/null
+++ b/api/workPlan/homePage.js
@@ -0,0 +1,42 @@
+import request_yn from '@/utils/request_new_yn_home'
+
+// 获取风险概况
+export function getTitleRiskApi(data) {
+ return request_yn({
+ url: '/ynPlan/home/getTitleRisk',
+ method: 'post',
+ data: data
+ })
+}
+// 获取今日作业人数
+export function getDayUserApi(data) {
+ return request_yn({
+ url: '/ynPlan/home/getDayUser',
+ method: 'post',
+ data: data
+ })
+}
+// 获取月数据
+export function getMonthRiskApi(data) {
+ return request_yn({
+ url: '/ynPlan/home/getMonthFx',
+ method: 'post',
+ data: data
+ })
+}
+// 获取周的数据
+export function getWeekDataApi(data) {
+ return request_yn({
+ url: '/ynPlan/home/getWeekFx',
+ method: 'post',
+ data: data
+ })
+}
+// 获取日数据
+export function getProFxByDayApi(data) {
+ return request_yn({
+ url: '/ynPlan/home/getProFxByDay',
+ method: 'post',
+ data: data
+ })
+}
diff --git a/api/workPlan/riskDay.js b/api/workPlan/riskDay.js
index ae38f0b..3c175a9 100644
--- a/api/workPlan/riskDay.js
+++ b/api/workPlan/riskDay.js
@@ -8,6 +8,14 @@ export function getDayRiskApi(data) {
data: data
})
}
+// 获取风险点
+export function getTodayRiskApi(data) {
+ return request_yn({
+ url: '/ynPlanApp/scene/getriskNum',
+ method: 'post',
+ data: data
+ })
+}
// 风险提交
export function setRiskSubmitApi(data) {
return request_yn({
@@ -16,7 +24,7 @@ export function setRiskSubmitApi(data) {
data: data
})
}
-// 获取风险详情
+// 获取风险详情列表
export function getMySceneListApi(data) {
return request_yn({
url: '/ynPlanApp/scene/getMySceneList',
@@ -24,3 +32,11 @@ export function getMySceneListApi(data) {
data: data
})
}
+// 获取风险详情
+export function getMySceneDataApi(data) {
+ return request_yn({
+ url: '/ynPlanApp/scene/getMySceneData',
+ method: 'post',
+ data: data
+ })
+}
diff --git a/pages/workPlan/custody/index.vue b/pages/workPlan/custody/index.vue
index 04ad233..5c86c05 100644
--- a/pages/workPlan/custody/index.vue
+++ b/pages/workPlan/custody/index.vue
@@ -189,7 +189,7 @@
@@ -53,10 +142,6 @@ export default {
width: 100%;
background-color: #efefef;
- .title-bold {
- font-size: 32rpx;
- font-weight: bold;
- }
.risk-header {
width: 94%;
margin: 16rpx auto;
@@ -78,42 +163,6 @@ export default {
margin-left: 6rpx;
}
}
-
- .change-today {
- width: 94%;
- margin: 16rpx auto;
- padding: 26rpx;
- border: 1px solid #ccc;
- background-color: #fff;
- border-radius: 6rpx;
-
- .today-title {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
-
- .today-title view:last-child {
- padding: 26rpx 6rpx;
- background-color: #d6001a;
- border-radius: 20rpx;
- color: #fff;
- }
-
- ::v-deep .uni-forms-item__label {
- font-weight: bold;
- color: #000;
- font-size: 26rpx;
- }
- }
- .scene-container {
- width: 94%;
- margin: 16rpx auto;
- padding: 26rpx;
- border: 1px solid #ccc;
- background-color: #fff;
- border-radius: 6rpx;
- }
}
}
@@ -147,8 +196,8 @@ export default {
width: 30%;
margin-left: 5%;
margin-top: 20rpx !important;
- height: 180rpx;
- background-color: #eee;
+ height: 200rpx;
+ // background-color: #eee;
border: 1px solid #ccc;
box-sizing: border-box;
position: relative;
@@ -270,4 +319,50 @@ export default {
border-radius: 6rpx;
}
}
+
+.change-today {
+ width: 94%;
+ margin: 16rpx auto;
+ padding: 26rpx;
+ border: 1px solid #ccc;
+ background-color: #fff;
+ border-radius: 6rpx;
+
+ .today-title {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
+
+ // .today-title view:last-child {
+ // padding: 26rpx 6rpx;
+ // background-color: #d6001a;
+ // border-radius: 20rpx;
+ // color: #fff;
+ // }
+
+ ::v-deep .uni-forms-item__label {
+ font-weight: bold;
+ color: #000;
+ font-size: 26rpx;
+ }
+}
+.scene-container {
+ width: 94%;
+ margin: 16rpx auto;
+ padding: 26rpx;
+ border: 1px solid #ccc;
+ background-color: #fff;
+ border-radius: 6rpx;
+
+ ::v-deep .uni-forms-item__label {
+ font-weight: bold;
+ color: #000;
+ font-size: 26rpx;
+ }
+}
+.title-bold {
+ font-size: 32rpx;
+ font-weight: bold;
+}
diff --git a/pages/workPlan/index/components/calendar.vue b/pages/workPlan/index/components/calendar.vue
index 05e7015..2150b17 100644
--- a/pages/workPlan/index/components/calendar.vue
+++ b/pages/workPlan/index/components/calendar.vue
@@ -5,7 +5,11 @@