diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index 9b0d791..fe7f40f 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -4,13 +4,19 @@ "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", 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 @@ + + + + + diff --git a/pages/login.vue b/pages/login.vue index b1e3c84..eaad16d 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/realName/index/index.vue b/pages/realName/index/index.vue index 9abfcd2..fc7247a 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 { @@ -1065,7 +1078,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; @@ -1078,8 +1091,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/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/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/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 } } } 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' }, 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 @@ - 今日风险 - - + 今日风险 + + + + + +