123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- // pages/xunjianmore/xunjianmore.js
- import http from '../../base/httputil'
- const app = getApp()
- Page({
- /**
- * 页面的初始数据
- */
- data: {
- host: app.globalData.host,
- buslogid: null,
- mapdata: null,
- pictureBasePath: null,
- hiddenName: true,
- isHave_xqzgtzs: false,
- isHave_fcyjtzs: false,
- isRefresh: false,
- enterpriseId:null,
- },
- onLoad(e) {
- this.data.buslogid = e.buslogid
- this.data.enterpriseId=e.busEnterpriseId
- let obj = new Object()
- obj.busLogId = this.data.buslogid
- http.post("/system/AppXunjianimgController/getXunjianimgList", obj, this.getXunjianMoreListSuccess)
- },
- onShow(){
- let pages = getCurrentPages();
- let currPage = pages[pages.length - 1];
- this.data.isRefresh = currPage.data.isRefresh;
-
- if (this.data.isRefresh) {
- let obj = new Object()
- obj.busLogId = this.data.buslogid
- http.post("/system/AppXunjianimgController/getXunjianimgList", obj, this.getXunjianMoreListSuccess)
- }
- },
- getXunjianMoreListSuccess(res){
-
- console.log("!!",res)
- this.setData({
- pictureBasePath: res.data.pictureBasePath + "/",
- mapdata: res.data.xunjianimgMap,
- isHave_xqzgtzs: res.data.isHave_xqzgtzs,
- isHave_fcyjtzs: res.data.isHave_fcyjtzs,
- })
- },
- bindViewZhengGaiJinDu(e) {
- let businspectionid = e.currentTarget.dataset.businspectionid
- let itemsTypeValue=e.currentTarget.dataset.typevalue
- if(itemsTypeValue==null){
- wx.showToast({
- title: '没有发现安全隐患,请放心!!',
- icon: "none"
- })
- }else{
- wx.navigateTo({
- url: '../zhenggaijindu/zhenggaijindu?busInspectionId=' + businspectionid + "&buslogId=" + this.data.buslogid,
- })
- }
- },
- // 按钮显示隐藏
- shghnn: function () {
- this.setData({
- hiddenName: !this.data.hiddenName
- })
- },
- bindViewXqzgDetail(){
- wx.navigateTo({
- url: '../xqzgdetail/xqzgdetail?logId='+this.data.buslogid,
- })
- },
- bindViewFcDetail(){
- wx.navigateTo({
- url: '../fcdetail/fcdetail?logId='+this.data.buslogid,
- })
- },
- // 跳转限期整改告知书
- bindViewXqZgGzS() {
- wx.navigateTo({
- url: '../xqzggzs/xqzggzs?logId=' + this.data.buslogid,
- })
- },
- //补充告知书
- bindViewAddGzs(){
- //有限期整改的东西,去通知书页面
- wx.navigateTo({
- url: '../xqzggzs2/xqzggzs2?logId=' + this.data.buslogid + "&busEnterpriseId=" + this.data.enterpriseId,
- })
- }
- })
|