| | |
| | | item.attachementName = this.detailData.attachment[index].attachmentName; |
| | | }) |
| | | } |
| | | |
| | | |
| | | } |
| | | this.detailData.disaster = test.disasterType == 1 ? '地震': test.disasterType == 2 ? '洪涝' : test.disasterType == 3 ? '气象' : test.disasterType == 4 ? '泥石流': test.disasterType == 5 ? '水旱': '森林草原火灾'; |
| | | }, |
| | |
| | | }else { |
| | | fileUrl = VUE_APP_BASE_URL + item.attachement; |
| | | } |
| | | console.log("urlllllllllllll",fileUrl) |
| | | console.log("urlllllllll",fileUrl) |
| | | uni.downloadFile({ |
| | | url: fileUrl, |
| | | header: { |
| | | |
| | | // 'tk':uni.getStorageSync('tk'), |
| | | // 'uid': uni.getStorageSync('uid'), |
| | | }, |
| | | header: {}, |
| | | success:function(res){ |
| | | console.log("下载res",res); |
| | | var filePath = res.tempFilePath; |
| | |
| | | <u-button @click="toDetail(item)"v-if="item.buttonContent == '已叫应'" size="mini" style="margin-bottom: 10px;background-color:rgb(17, 204, 33);color: white;"> |
| | | {{item.buttonContent}} |
| | | </u-button> |
| | | <u-button v-else-if="item.buttonContent == '未叫应'" type="error" size="mini" style="margin-bottom: 10px;" @click="openDialog(item)"> |
| | | <u-button v-else-if="item.buttonContent == '待叫应'" type="error" size="mini" style="margin-bottom: 10px;" @click="openDialog(item)"> |
| | | {{item.buttonContent}} |
| | | </u-button> |
| | | <u-button @click="toDetail(item)" v-else type="error" size="mini" style="margin-bottom: 10px;"> |
| | |
| | | }, |
| | | methods: { |
| | | getNoticeList() { |
| | | this.data.searchParams.readStatus = this.isReadOnly ? 0 : null; |
| | | this.data.searchParams.readStatus = this.isReadOnly ? 0 : null; |
| | | this.data.searchParams.emergType = this.checked ? 1 : 2; |
| | | this.data.searchParams.warningLevel = this.selectedSaleAnalysis =='red' ? 1 : this.selectedSaleAnalysis =='orange' ? 2: this.selectedSaleAnalysis =='yellow'? 3 : 4; |
| | | getNotice(this.data).then(res => { |
| | |
| | | toDetail(item) { |
| | | console.log("de",item) |
| | | getDetail({id: item.id}).then(res => { |
| | | console.log("response",res) |
| | | if(res.code == 100) { |
| | | uni.navigateTo({ |
| | | url: `/pages/tabBar/notice/detail?data=` + encodeURIComponent(JSON.stringify(res.data)) |