From 491cbdb273afb8a9e7a725a76eb4f668a2e939e2 Mon Sep 17 00:00:00 2001
From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com>
Date: Fri, 22 Nov 2024 17:52:52 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/workPlan/dayPlan/pro-index.vue | 4 ++--
pages/workPlan/dayPlanAuditingDetails/pro-index.vue | 2 +-
pages/workPlan/dayPlanDetails/pro-index.vue | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pages/workPlan/dayPlan/pro-index.vue b/pages/workPlan/dayPlan/pro-index.vue
index a98bdec..b2a288a 100644
--- a/pages/workPlan/dayPlan/pro-index.vue
+++ b/pages/workPlan/dayPlan/pro-index.vue
@@ -712,7 +712,7 @@ export default {
zgs: {
rules: [{ required: true, errorMessage: '请填写公司职工人数' }]
},
- rys: {
+ fbrys: {
rules: [{ required: true, errorMessage: '请填写分包人员人数' }]
},
jtcls: {
@@ -758,7 +758,7 @@ export default {
{ form_label: '现场负责人电话', items_type: 'ipt', required: true, name: 'fzrdh' },
{ form_label: '全体人数', items_type: 'ipt', required: true, name: 'qtrs', isType: 'number' },
{ form_label: '公司职工人数', items_type: 'ipt', required: true, name: 'zgs', isType: 'number' },
- { form_label: '分包人员人数', items_type: 'ipt', required: true, name: 'rys', isType: 'number' },
+ { form_label: '分包人员人数', items_type: 'ipt', required: true, name: 'fbrys', isType: 'number' },
{ form_label: '交通用车', items_type: 'ipt', required: true, name: 'jtcls' },
{ form_label: '特种作业车辆', items_type: 'ipt', required: true, name: 'tscls' },
diff --git a/pages/workPlan/dayPlanAuditingDetails/pro-index.vue b/pages/workPlan/dayPlanAuditingDetails/pro-index.vue
index 0a6f62b..e42cf28 100644
--- a/pages/workPlan/dayPlanAuditingDetails/pro-index.vue
+++ b/pages/workPlan/dayPlanAuditingDetails/pro-index.vue
@@ -253,7 +253,7 @@ export default {
{ form_label: '现场负责人电话', items_type: 'ipt', required: true, name: 'fzrdh' },
{ form_label: '全体人数', items_type: 'ipt', required: true, name: 'qtrs', isType: 'number' },
{ form_label: '公司职工人数', items_type: 'ipt', required: true, name: 'zgs', isType: 'number' },
- { form_label: '分包人员人数', items_type: 'ipt', required: true, name: 'rys', isType: 'number' },
+ { form_label: '分包人员人数', items_type: 'ipt', required: true, name: 'fbrys', isType: 'number' },
{ form_label: '交通用车', items_type: 'ipt', required: true, name: 'jtcls' },
{ form_label: '特种作业车辆', items_type: 'ipt', required: true, name: 'tscls' },
diff --git a/pages/workPlan/dayPlanDetails/pro-index.vue b/pages/workPlan/dayPlanDetails/pro-index.vue
index 33b3dbc..d41a9de 100644
--- a/pages/workPlan/dayPlanDetails/pro-index.vue
+++ b/pages/workPlan/dayPlanDetails/pro-index.vue
@@ -247,7 +247,7 @@ export default {
{ form_label: '现场负责人电话', items_type: 'ipt', required: true, name: 'fzrdh' },
{ form_label: '全体人数', items_type: 'ipt', required: true, name: 'qtrs', isType: 'number' },
{ form_label: '公司职工人数', items_type: 'ipt', required: true, name: 'zgs', isType: 'number' },
- { form_label: '分包人员人数', items_type: 'ipt', required: true, name: 'rys', isType: 'number' },
+ { form_label: '分包人员人数', items_type: 'ipt', required: true, name: 'fbrys', isType: 'number' },
{ form_label: '交通用车', items_type: 'ipt', required: true, name: 'jtcls' },
{ form_label: '特种作业车辆', items_type: 'ipt', required: true, name: 'tscls' },
From e60bd7ef768730a263827d5f510d4deaf0bb71a6 Mon Sep 17 00:00:00 2001
From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com>
Date: Fri, 6 Dec 2024 18:49:44 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.hbuilderx/launch.json | 2 +-
pages/login.vue | 2 +-
pages/workPlan/dayPlan/inf-index.vue | 2 +-
pages/workPlan/dayPlan/sub-user/index.vue | 67 +++++++++++++----------
4 files changed, 42 insertions(+), 31 deletions(-)
diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index 4ccd172..9b0d791 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -13,7 +13,7 @@
"type" : "uniCloud"
},
{
- "playground" : "custom",
+ "playground" : "standard",
"type" : "uni-app:app-android"
}
]
diff --git a/pages/login.vue b/pages/login.vue
index 42f636c..64e4991 100644
--- a/pages/login.vue
+++ b/pages/login.vue
@@ -440,7 +440,7 @@ export default {
.catch(err => {
uni.$u.toast('登录失败')
this.$store.dispatch('LogOut').then(() => {
- console.log(err)
+ console.log(err + '999')
uni.showToast({
title: err,
icon: 'none'
diff --git a/pages/workPlan/dayPlan/inf-index.vue b/pages/workPlan/dayPlan/inf-index.vue
index db079b0..b7feb63 100644
--- a/pages/workPlan/dayPlan/inf-index.vue
+++ b/pages/workPlan/dayPlan/inf-index.vue
@@ -1958,7 +1958,7 @@ export default {
console.log('上传成功!', uploadFileRes)
const imgInfo = {
name: imgName,
- tempUrl: `ynPlan/zbh/${this.$moment().format('YYYY')}/${this.$moment().format(
+ tempUrl: `ynPlanf/zbh/${this.$moment().format('YYYY')}/${this.$moment().format(
'MM'
)}/${this.$moment().format('DD')}/${imgName}`,
url: imgUrl
diff --git a/pages/workPlan/dayPlan/sub-user/index.vue b/pages/workPlan/dayPlan/sub-user/index.vue
index 7c4f360..33b08d7 100644
--- a/pages/workPlan/dayPlan/sub-user/index.vue
+++ b/pages/workPlan/dayPlan/sub-user/index.vue
@@ -371,14 +371,20 @@ export default {
this.subUserList = []
// this.subUserListTemp
tempArray.forEach(e => {
- this.subUserListAll.forEach(j => {
- if (!e.includes(j.idNumber)) {
- // this.subUserList.push(j)
- this.subUserList.push(JSON.parse(JSON.stringify(j)))
- // this.subUserListTemp.push(JSON.parse(JSON.stringify(j)))
- }
- })
+ if (e.length > 1) {
+ this.subUserListAll.forEach(j => {
+ if (!e.includes(j.idNumber)) {
+ // this.subUserList.push(j)
+ this.subUserList.push(JSON.parse(JSON.stringify(j)))
+ // this.subUserListTemp.push(JSON.parse(JSON.stringify(j)))
+ }
+ })
+ }
})
+
+ if (this.subUserList.length == 0) {
+ this.subUserList = JSON.parse(JSON.stringify(this.subUserListAll))
+ }
} else {
this.subUserList = JSON.parse(JSON.stringify(this.subUserListAll))
// this.subUserListTemp = JSON.parse(JSON.stringify(this.subUserListAll))
@@ -624,6 +630,8 @@ export default {
this.personList = JSON.parse(options.personList).personList
+ console.log(this.personList, ' this.personList****')
+
// console.log('options.index', options.index)
this.currentIndex = options.index
@@ -634,31 +642,34 @@ export default {
computed: {
onAlreadySelect() {
let amount = 0
- if (this.subUserList.length > 0) {
- this.subUserList.forEach(e => {
- if (e.isChecked) {
- amount++
- }
- })
- }
- return amount
+ // if (this.subUserList.length > 0) {
+ // this.subUserList.forEach(e => {
+ // if (e.isChecked) {
+ // amount++
+ // }
+ // })
+ // }
+
+ if (this.subUserList.length > 0) return this.subUserList.filter(e => e.isChecked == true).length
+ // return amount
},
isAllChecked() {
let isCheckedAll = false
- if (this.subUserList.length > 0) {
- isCheckedAll = this.subUserList.every(e => e.isChecked === true)
+ if (this.subUserList.length > 0) return this.subUserList.every(e => e.isChecked === true)
+ // if (this.subUserList.length > 0) {
+ // isCheckedAll = this.subUserList.every(e => e.isChecked === true)
- // if (isCheckedAll) {
- // this.subUserListTemp.forEach(e => {
- // e.isChecked = true
- // })
- // } else {
- // this.subUserListTemp.forEach(e => {
- // e.isChecked = false
- // })
- // }
- }
- return isCheckedAll
+ // // if (isCheckedAll) {
+ // // this.subUserListTemp.forEach(e => {
+ // // e.isChecked = true
+ // // })
+ // // } else {
+ // // this.subUserListTemp.forEach(e => {
+ // // e.isChecked = false
+ // // })
+ // // }
+ // }
+ // return isCheckedAll
}
}
}
From 9efd40232f2f6350b68d35b442d287d757190ddc Mon Sep 17 00:00:00 2001
From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com>
Date: Tue, 10 Dec 2024 09:19:55 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=BB=9A=E5=8A=A8?=
=?UTF-8?q?=E6=8F=90=E7=A4=BA=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.hbuilderx/launch.json | 22 +--
components/MultiColorNoticeBar/index.vue | 129 ++++++++++++++++++
pages/realName/index/index.vue | 27 +++-
.../index/components/home-notice-bar.vue | 72 +++++++---
4 files changed, 217 insertions(+), 33 deletions(-)
create mode 100644 components/MultiColorNoticeBar/index.vue
diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index 9b0d791..69faf69 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -4,16 +4,22 @@
"version" : "0.0",
"configurations" : [
{
- "app-plus" : {
- "launchtype" : "local"
- },
- "default" : {
- "launchtype" : "local"
- },
- "type" : "uniCloud"
+ "app-plus" :
+ {
+ "launchtype" : "local"
+ },
+ "default" :
+ {
+ "launchtype" : "local"
+ },
+ "mp-weixin" :
+ {
+ "launchtype" : "local"
+ },
+ "type" : "uniCloud"
},
{
- "playground" : "standard",
+ "playground" : "custom",
"type" : "uni-app:app-android"
}
]
diff --git a/components/MultiColorNoticeBar/index.vue b/components/MultiColorNoticeBar/index.vue
new file mode 100644
index 0000000..f65ce05
--- /dev/null
+++ b/components/MultiColorNoticeBar/index.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+ {{ text }}
+
+
+
+
+
+
+
+
+
diff --git a/pages/realName/index/index.vue b/pages/realName/index/index.vue
index 2a05630..32f87b0 100644
--- a/pages/realName/index/index.vue
+++ b/pages/realName/index/index.vue
@@ -115,15 +115,26 @@
- 今日风险
+ 今日风险
-
+ > -->
+
+
@@ -352,6 +363,7 @@ import PieChartsModelRingTwo from './components/pie-charts-model-ring-two'
import PieChartsModelMan from './components/pie-charts-model-man.vue'
import PieChartsModelGirl from './components/pie-charts-model-girl.vue'
import { getHomePageListApi } from '@/api/phaseTwo/homePage'
+import MultiColorNoticeBar from '../../../components/MultiColorNoticeBar'
export default {
components: {
@@ -360,7 +372,8 @@ export default {
PieChartsModelRing,
PieChartsModelRingTwo,
PieChartsModelMan,
- PieChartsModelGirl
+ PieChartsModelGirl,
+ MultiColorNoticeBar
},
data() {
return {
@@ -1064,7 +1077,7 @@ export default {
.today-warning {
margin: 30rpx 0;
height: 68rpx;
- padding: 0 30rpx;
+ padding-left: 30rpx;
display: flex;
align-items: center;
border: 1rpx solid #ccc;
@@ -1077,8 +1090,10 @@ export default {
}
.uni-notice-bar {
- flex: 1;
+ // flex: 1;
+ width: 65%;
height: 50rpx;
+ padding-left: 20rpx;
// line-height: 50rpx;
// background-color: orange;
}
diff --git a/pages/workPlan/index/components/home-notice-bar.vue b/pages/workPlan/index/components/home-notice-bar.vue
index ea25fb7..06b0bf6 100644
--- a/pages/workPlan/index/components/home-notice-bar.vue
+++ b/pages/workPlan/index/components/home-notice-bar.vue
@@ -2,22 +2,49 @@
- 今日风险
-
-
+ 今日风险
+
+
+
+
+
+