pages-history-history.87577c77.js
5.9 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-history-history"],{"0644":function(t,e,n){var a=n("8c91");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("38c06438",a,!0,{sourceMap:!1,shadowMode:!1})},1150:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{navBackground:{background:"#4988fd"},dateValue:"",show:!1,mode:"date",showEmpty:!1,equipmentList:[{eImg:"../../static/img/history1.png",eName:"监控设备",state:0},{eImg:"../../static/img/history1.png",eName:"监控设备",state:1}]}},methods:{getdatalist:function(){var t=this;uni.request({url:this.apiUrl+"/api/inspection/project/record",data:{token:uni.getStorageSync("token")||""},success:function(e){console.log(e),console.log("历史记录列表",e.data.data.data),t.equipmentList=e.data.data.data}})},changeDate:function(t){console.log(t),console.log("当前选择日期:",t.result),this.dateValue=t.result,console.log("当天日期",t.isToday)},stateIcon:function(t){if(1===t)return!0},goHistorDetail:function(t){uni.navigateTo({url:"../historyDetail/historyDetail?id="+t})}},onShow:function(){this.getdatalist();var t=new Date,e=t.getMonth()+1,n=t.getDate(),a="-";e>=1&&e<=9&&(e="0"+e),n>=1&&n<=9&&(n="0"+n);var i=t.getFullYear()+a+e+a+n;this.$data.dateValue=i},filters:{formatDate:function(t){var e=new Date,n=e.getMonth()+1,a=e.getHours();a<10&&(a="0"+a);var i=e.getMinutes();i<10&&(i="0"+i);var o=e.getFullYear()+"-"+n+"-"+e.getDate()+" "+a+":"+i;return o}}};e.default=a},"72d5":function(t,e,n){"use strict";n.r(e);var a=n("cd61"),i=n("882d");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("9804");var s,c=n("f0c5"),r=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,"38e82bc6",null,!1,a["a"],s);e["default"]=r.exports},"882d":function(t,e,n){"use strict";n.r(e);var a=n("1150"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"8c91":function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.content[data-v-38e82bc6]{padding:0 %?30?%}.dateSlecte_box[data-v-38e82bc6]{margin-top:%?40?%;display:flex;justify-content:space-between}.date[data-v-38e82bc6]{border:%?1?% solid #4988fd;width:%?500?%;height:%?48?%;text-align:center;position:relative;border-radius:%?8?%;color:#999}.calendarIcon[data-v-38e82bc6]{color:#2974ff;position:absolute;left:%?440?%;top:%?2?%}.queryBtn[data-v-38e82bc6]{background-color:#2974ff;width:%?150?%;font-size:%?24?%;color:#fff;text-align:center;line-height:%?48?%;border-radius:%?8?%}.scoutData_box[data-v-38e82bc6]{margin-top:%?45?%;border-top:%?1?% solid #ebeef5}.scoutData[data-v-38e82bc6]{margin-top:%?30?%}.sDtitle[data-v-38e82bc6]{color:#333;font-size:%?35?%;font-weight:700}.equipment[data-v-38e82bc6]{margin-top:%?40?%;height:%?115?%;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);display:flex;justify-content:space-between;align-items:center;padding:0 %?20?%}.equipment uni-image[data-v-38e82bc6]{width:%?60?%;height:%?60?%;margin-right:%?20?%}.equipmentInfo[data-v-38e82bc6]{display:flex;align-items:center}.equipmentTxt[data-v-38e82bc6]{font-size:%?30?%;display:flex;flex-direction:column;color:#2974ff}.eTxt1[data-v-38e82bc6]{color:#999;font-size:%?19?%;margin-top:%?8?%}.empty_box[data-v-38e82bc6]{display:flex;flex-direction:column;align-items:center;color:#2974ff}.empty_box uni-image[data-v-38e82bc6]{margin-bottom:%?40?%;height:%?420?%;width:%?450?%}',""]),t.exports=e},9804:function(t,e,n){"use strict";var a=n("0644"),i=n.n(a);i.a},cd61:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uNavbar:n("7237").default,uEmpty:n("e527").default,uIcon:n("b934").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"container"},[n("u-navbar",{attrs:{"is-back":!1,title:"历史记录","title-color":"white","border-bottom":!1,background:t.navBackground}}),n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"scoutData_box"},[t.equipmentList.length<=0?n("u-empty",{attrs:{mode:"news",text:"暂无历史数据",icon:"http://cdn.uviewui.com/uview/empty/news.png"}}):n("v-uni-view",{staticClass:"scoutData"},[n("v-uni-text",{staticClass:"sDtitle"},[t._v("巡检数据")]),t._l(t.equipmentList,(function(e,a){return n("v-uni-view",{key:a,staticClass:"equipment",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goHistorDetail(e.id)}}},[n("v-uni-view",{staticClass:"equipmentInfo"},[n("v-uni-image",{attrs:{src:e.images,mode:""}}),n("v-uni-view",{staticClass:"equipmentTxt"},[n("v-uni-text",[t._v(t._s(e.site_name))]),n("v-uni-text",{staticClass:"eTxt1"},[t._v(t._s(e.createtime))])],1)],1),t.stateIcon(e.state)?n("u-icon",{attrs:{name:"checkmark-circle-fill",color:"#04db76",size:"50"}}):n("u-icon",{attrs:{name:"error-circle-fill",color:"#f30908",size:"50"}})],1)}))],2)],1)],1)],1)},o=[]}}]);