fix():bug修复

master
李神峰 2024-07-02 13:09:23 +08:00
parent 61387d7a12
commit 6f5a19fda7
4 changed files with 39 additions and 8 deletions

View File

@ -35,7 +35,7 @@
<div <div
class="readStatus" class="readStatus"
v-show=" v-show="
(readStatus && item.key == 3) || (readStatus && item.key == 3) || (dispatchStatus && item.key ==5 && limit == 0) ||
(limit == 1 && readYjStatus && item.key == 5) (limit == 1 && readYjStatus && item.key == 5)
" "
></div> ></div>
@ -56,7 +56,7 @@
mode="aspectFit" mode="aspectFit"
></image ></image
><span style="color: #000">当前防汛应急响应</span> ><span style="color: #000">当前防汛应急响应</span>
<span style="color: #59a7ff">{{ !level ? '无' : level }}</span> <span style="color: #59a7ff">{{ !level || !yjStatus ? '无' : level }}</span>
</view> </view>
<!-- 24小时综述 --> <!-- 24小时综述 -->
@ -291,6 +291,7 @@
</div> </div>
<div style="color: #91939b">监测时间{{ item.tm }}</div> <div style="color: #91939b">监测时间{{ item.tm }}</div>
</div> </div>
<div v-if="!hdList.length" style="text-align:center"></div>
</div> </div>
<div class="info_icon" v-else> <div class="info_icon" v-else>
<div <div
@ -312,7 +313,9 @@
</div> </div>
<div style="color: #91939b">监测时间{{ item.tm }}</div> <div style="color: #91939b">监测时间{{ item.tm }}</div>
</div> </div>
<div v-if="!skList.length" style="text-align:center"></div>
</div> </div>
</view> </view>
</view> </view>
</view> </view>
@ -352,6 +355,7 @@ export default {
tableData: {}, tableData: {},
tm: '', tm: '',
level: '', level: '',
yjStatus:0,
limit: disType(uni.getStorageSync('value').adcd), limit: disType(uni.getStorageSync('value').adcd),
timeList: [ timeList: [
{ text: '昨天08:00~当前时间', value: 1 }, { text: '昨天08:00~当前时间', value: 1 },
@ -378,8 +382,9 @@ export default {
current: 0, current: 0,
hdList: [], hdList: [],
skList: [], skList: [],
readStatus: false, readStatus: false, //
readYjStatus: false, readYjStatus: false, //
dispatchStatus:false, //
default_src: uni.getStorageSync('avatar'), default_src: uni.getStorageSync('avatar'),
imgList: {}, imgList: {},
imgtm: moment().format('YYYYMMDD'), imgtm: moment().format('YYYYMMDD'),
@ -388,7 +393,8 @@ export default {
imgHourstm: [], imgHourstm: [],
imgHoursList: {}, imgHoursList: {},
interval: null, interval: null,
numPic: 0 numPic: 0,
allStatus: false
} }
}, },
computed: { computed: {
@ -487,6 +493,13 @@ export default {
} }
}, },
immediate: true immediate: true
},
allStatus:{
handler (newValue) {
const newArr = this.getNavList()
},
immediate: true
} }
}, },
methods: { methods: {
@ -629,6 +642,16 @@ export default {
uni.$showMsg() uni.$showMsg()
} }
}, },
async getDispatchStatus(){
try {
const res = await uni.$http.post('/gunshiApp/xfflood/xfEmerDispatchR/app/list',{status:1,dispatchTypeList:["0","1"]})
if(res.data.code == 200){
this.dispatchStatus = res.data.data.length > 0 ? true : false
}
} catch (error) {
console.log(error);
}
},
jumpHdDetail (params) { jumpHdDetail (params) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/hdDetail/hdDetail?stcd=${params.stcd}&stnm=${params.stnm}&source=${params.source}&wrz=${params.wrz}&grz=${params.grz}` url: `/pages/hdDetail/hdDetail?stcd=${params.stcd}&stnm=${params.stnm}&source=${params.source}&wrz=${params.wrz}&grz=${params.grz}`
@ -834,6 +857,7 @@ export default {
if (data.data.records.length > 0) { if (data.data.records.length > 0) {
console.log('1111111data', data) console.log('1111111data', data)
this.level = level(data.data.records[0].level) this.level = level(data.data.records[0].level)
this.yjStatus = data.data.records[0].status
} else { } else {
this.level = '无' this.level = '无'
} }
@ -859,6 +883,7 @@ export default {
onShow () { onShow () {
this.getReadStatus() this.getReadStatus()
this.getResponseLevel() this.getResponseLevel()
this.getDispatchStatus()
if (this.limit == 1) { if (this.limit == 1) {
this.getYjRead() this.getYjRead()
// this.getInterval() // this.getInterval()

View File

@ -20,7 +20,7 @@ export function disType(e) {
let type; let type;
if (e.endsWith('000000000')) { if (e.endsWith('000000000')) {
type = 1; type = 1;
} else if (e.endsWith('000000')) { } else{
type = 0; type = 0;
} }
return type; return type;

View File

@ -79,7 +79,7 @@
formData:{ formData:{
args:'', args:'',
sources:["SH","SW"], sources:["SH","SW"],
adcd:type == 1 ? undefined :adcd, // adcd:type == 1 ? undefined : adcd,
}, },
list:[], // list:[], //
saveList:[], // saveList:[], //
@ -103,6 +103,9 @@
this.getList() this.getList()
}, },
async getList(){ async getList(){
const adcd = uni.getStorageSync('value').adcd
let newAdcd = adcd.endsWith('000000000') ? "" : adcd
this.formData = {...this.formData,adcd:newAdcd}
console.log(1111,this.formData); console.log(1111,this.formData);
try{ try{
const {data} = await uni.$http.post( const {data} = await uni.$http.post(

View File

@ -80,7 +80,7 @@
formData:{ formData:{
args:'', args:'',
sources:["SW","SK"], sources:["SW","SK"],
adcd:type == 1 ? undefined :adcd, // adcd:uni.getStorageSync('value').adcd,
}, },
list:[], // list:[], //
saveList:[] // saveList:[] //
@ -104,6 +104,9 @@
this.getList() this.getList()
}, },
async getList(){ async getList(){
const adcd = uni.getStorageSync('value').adcd
let newAdcd = adcd.endsWith('000000000') ? "" : adcd
this.formData = {...this.formData,adcd:newAdcd}
try{ try{
const {data} = await uni.$http.post( const {data} = await uni.$http.post(
"/gunshiApp/xfflood/reservoir/water/list",{...this.formData} "/gunshiApp/xfflood/reservoir/water/list",{...this.formData}