parent
9d408ab866
commit
79db9ce7dd
|
@ -460,6 +460,14 @@
|
||||||
goSubmit(){
|
goSubmit(){
|
||||||
var _this = this;
|
var _this = this;
|
||||||
let required = true
|
let required = true
|
||||||
|
if (_this.pd.safetyList && _this.pd.safetyList.some(item => item.APPROVAL_STATUS === '0')) {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '未进行安全措施确认,不能签字',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '请稍候'
|
title: '请稍候'
|
||||||
})
|
})
|
||||||
|
|
|
@ -559,6 +559,14 @@
|
||||||
goSubmit(){
|
goSubmit(){
|
||||||
var _this = this;
|
var _this = this;
|
||||||
let required = true
|
let required = true
|
||||||
|
if (_this.pd.safetyList && _this.pd.safetyList.some(item => item.APPROVAL_STATUS === '0')) {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '未进行安全措施确认,不能签字',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '请稍候'
|
title: '请稍候'
|
||||||
})
|
})
|
||||||
|
|
|
@ -495,6 +495,14 @@
|
||||||
goSubmit(){
|
goSubmit(){
|
||||||
var _this = this;
|
var _this = this;
|
||||||
let required = true
|
let required = true
|
||||||
|
if (_this.pd.safetyList && _this.pd.safetyList.some(item => item.APPROVAL_STATUS === '0')) {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '未进行安全措施确认,不能签字',
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '请稍候'
|
title: '请稍候'
|
||||||
})
|
})
|
||||||
|
|
|
@ -407,7 +407,6 @@
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
// this.triggered = true;
|
// this.triggered = true;
|
||||||
// }, 1000)
|
// }, 1000)
|
||||||
|
|
||||||
},
|
},
|
||||||
// onPullDownRefresh() {
|
// onPullDownRefresh() {
|
||||||
// console.log('refresh');
|
// console.log('refresh');
|
||||||
|
@ -429,7 +428,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
async downCallback(page) {
|
async downCallback(page) {
|
||||||
|
this.getSumCount();
|
||||||
await this.getWork();
|
await this.getWork();
|
||||||
await this.getHiddenData()
|
await this.getHiddenData()
|
||||||
await this.getSafetyEnvironmentalCount()
|
await this.getSafetyEnvironmentalCount()
|
||||||
|
@ -607,14 +606,15 @@
|
||||||
// });
|
// });
|
||||||
},
|
},
|
||||||
async getSumCount() {
|
async getSumCount() {
|
||||||
const hotWorkCount = await this.getCount('/app/hotwork/cfd/countCheck');
|
const hotWorkCount = await this.getCount('/app/hotwork/cfd/countCheck');
|
||||||
const highWorkCount = await this.getCount('/app/gfHighwork/countCheck');
|
const highWorkCount = await this.getCount('/app/gfHighwork/countCheck');
|
||||||
const blindBoardCount = await this.getCount('/app/gfBlindBoard/countCheck');
|
const blindBoardCount = await this.getCount('/app/gfBlindBoard/countCheck');
|
||||||
const hoistingCount = await this.getCount('/app/gfHoisting/countCheck');
|
const hoistingCount = await this.getCount('/app/gfHoisting/countCheck');
|
||||||
const confinedSpaceCount = await this.getCount('/app/gfConfinedSpace/countCheck');
|
const confinedSpaceCount = await this.getCount('/app/gfConfinedSpace/countCheck');
|
||||||
const electricityCount = await this.getCount('/app/gfElectricity/countCheck');
|
const electricityCount = await this.getCount('/app/gfElectricity/countCheck');
|
||||||
|
|
||||||
this.totalUnreadCount = hotWorkCount + highWorkCount + blindBoardCount + hoistingCount + confinedSpaceCount + electricityCount;
|
this.totalUnreadCount = hotWorkCount + highWorkCount + blindBoardCount + hoistingCount + confinedSpaceCount + electricityCount;
|
||||||
|
this.$forceUpdate();
|
||||||
},
|
},
|
||||||
getCount(url) {
|
getCount(url) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<basics v-if="PageCur=='basics'" id="basics"></basics>
|
<basics v-if="PageCur=='basics'" ref="basics" id="basics"></basics>
|
||||||
<application v-if="PageCur=='application'"></application>
|
<application v-if="PageCur=='application'"></application>
|
||||||
<works v-if="PageCur=='works'" id = "works"></works>
|
<works v-if="PageCur=='works'" id = "works"></works>
|
||||||
<my v-if="PageCur=='my'"></my>
|
<my v-if="PageCur=='my'"></my>
|
||||||
|
@ -112,6 +112,11 @@
|
||||||
// this.checkUpdate("android");
|
// this.checkUpdate("android");
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
console.log(this.$refs.basics,1515)
|
||||||
|
// 刷新数据
|
||||||
|
if(this.$refs.basics){
|
||||||
|
this.$refs.basics.getSumCount()
|
||||||
|
}
|
||||||
var _this = this;
|
var _this = this;
|
||||||
_this.$nextTick(() => { //等待组件渲染结束才调用
|
_this.$nextTick(() => { //等待组件渲染结束才调用
|
||||||
if(_this.initflag) {
|
if(_this.initflag) {
|
||||||
|
|
Loading…
Reference in New Issue