1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"5c46":function(e,t,a){"use strict";var n;a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return n}));var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",[a("v-uni-swiper",{staticClass:"grace-swiper swiper1",staticStyle:{height:"380rpx"},attrs:{autoplay:"true","indicator-dots":!0,"indicator-color":"rgba(255, 255, 255, 1)","indicator-active-color":"#3688FF",interval:"5000"}},e._l(e.swiperItems,(function(e,t){return a("v-uni-swiper-item",{key:t},[a("v-uni-image",{attrs:{src:e,mode:"widthFix"}})],1)})),1),a("v-uni-view",{staticClass:"time-bx",staticStyle:{padding:"20upx"}},[a("v-uni-view",{staticClass:"grace-flex-center"},[a("v-uni-text",{staticClass:"grace-black grace-h2"},[e._v(e._s(e.real_time.date_hm))]),a("v-uni-text",{staticClass:"grace-black grace-h4",staticStyle:{"padding-top":"30upx","margin-left":"20upx",width:"40upx"}},[e._v(e._s(e.real_time.data_s))])],1),a("v-uni-view",{staticClass:"grace-flex-center"},[a("v-uni-text",{staticClass:"grace-gray grace-h4"},[e._v(e._s(e.real_time.date_nyr)+" "+e._s(e.real_time.date_week))])],1)],1),a("v-uni-view",{staticClass:"line"}),a("v-uni-view",{staticClass:"grace-grids six"},e._l(e.todoList,(function(t,n){return a("v-uni-view",{staticClass:"grace-grids-items grace-relative",attrs:{"data-todott":t.name,"data-todoroot":t.root},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.on_todo_list_tap.apply(void 0,arguments)}}},[a("v-uni-image",{staticClass:"todo-img",attrs:{src:t.src,mode:""}}),a("v-uni-text",{staticClass:"grace-grids-text"},[e._v(e._s(t.name))])],1)})),1)],1)},i=[]},6954:function(e,t,a){var n=a("24fb");t=n(!1),t.push([e.i,".grace-select-tags[data-v-7a41314f]{padding:0}.grace-select-tags uni-checkbox-group[data-v-7a41314f], .grace-select-tags uni-radio-group[data-v-7a41314f]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.grace-select-tags uni-label[data-v-7a41314f]{display:block;width:auto;overflow:hidden;padding:%?18?% %?20?%;height:%?30?%;line-height:%?30?%;margin:%?8?% 8px 8px 0;background:#f6f7f8;font-size:%?24?%;border-radius:%?8?%}.grace-select-tags uni-label uni-checkbox[data-v-7a41314f], .grace-select-tags uni-label uni-radio[data-v-7a41314f]{display:none}.grace-checked[data-v-7a41314f]{color:#fff}",""]),e.exports=t},"70c5":function(e,t,a){"use strict";var n=a("d6d9"),r=a.n(n);r.a},7125:function(e,t,a){"use strict";a("c975"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,Array.prototype.indexOf=function(e){for(var t=0;t<this.length;t++)if(this[t]==e)return t;return-1};var n={props:{type:{type:String,default:""},selectedColor:{type:String,default:"#3688FF"},items:{type:Array,default:function(){return[]}}},created:function(){this.tagsData=this.items},data:function(){return{tagsData:[]}},methods:{graceSelectChange:function(e){for(var t=e.detail.value,a=0;a<this.tagsData.length;a++)t==this.tagsData[a].value?this.tagsData[a].checked=!0:this.tagsData[a].checked=!1;this.$emit("change",t)},graceCheckBoxChange:function(e){for(var t=e.detail.value,a=0;a<this.tagsData.length;a++)-1!=t.indexOf(this.tagsData[a].value)?this.tagsData[a].checked=!0:this.tagsData[a].checked=!1;this.$emit("change",t)}}};t.default=n},"74d2":function(e,t,a){"use strict";var n;a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return n}));var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"grace-select-tags"},["radio"==e.type?a("v-uni-radio-group",{on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.graceSelectChange.apply(void 0,arguments)}}},e._l(e.tagsData,(function(t,n){return a("v-uni-label",{key:n,class:[t.checked?"grace-checked":""],style:{background:t.checked?e.selectedColor+" !important":"#F6F7F8"}},[a("v-uni-radio",{attrs:{value:t.value,checked:t.checked}}),e._v(e._s(t.name))],1)})),1):e._e(),"checkbox"==e.type?a("v-uni-checkbox-group",{on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.graceCheckBoxChange.apply(void 0,arguments)}}},e._l(e.tagsData,(function(t,n){return a("v-uni-label",{key:n,class:[t.checked?"grace-checked":""],style:{background:t.checked?e.selectedColor+" !important":"#F6F7F8"}},[a("v-uni-checkbox",{attrs:{value:t.value,checked:t.checked}}),e._v(e._s(t.name))],1)})),1):e._e()],1)},i=[]},"7ac7":function(e,t,a){var n=a("6954");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=a("4f06").default;r("2a712794",n,!0,{sourceMap:!1,shadowMode:!1})},"92ad":function(e,t,a){"use strict";var n=a("7ac7"),r=a.n(n);r.a},"99d7":function(e,t,a){"use strict";a.r(t);var n=a("b611"),r=a.n(n);for(var i in n)"default"!==i&&function(e){a.d(t,e,(function(){return n[e]}))}(i);t["default"]=r.a},ab9a:function(e,t,a){"use strict";a.r(t);var n=a("74d2"),r=a("f248");for(var i in r)"default"!==i&&function(e){a.d(t,e,(function(){return r[e]}))}(i);a("92ad");var o,c=a("f0c5"),s=Object(c["a"])(r["default"],n["b"],n["c"],!1,null,"7a41314f",null,!1,n["a"],o);t["default"]=s.exports},b611:function(e,t,a){"use strict";var n=a("4ea4");a("4de4"),a("4160"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a("ab9a")),i={data:function(){return{swiperItems:["../../static/index/ban1.jpg","../../static/index/ban2.jpg","../../static/index/ban3.jpg"],active:1,real_time:{date_nyr:"2019-12-01",date_week:"星期二",date_hm:"18:22",data_s:"55"},todoList:[]}},onLoad:function(){var e=this;setInterval(e.get_real_time,1e3);var t=uni.getStorageSync("g_username");e.ajax("/authdata/GetDataByName",{name:"getUserButtons",parammaps:{jwt_username:t}},"POST",e.filter_data_root);uni.getStorageSync("g_employeId"),uni.getStorageSync("g_pastureId")},methods:{get_real_time:function(){var e=this,t=["星期天","星期一","星期二","星期三","星期四","星期五","星期六"],a=new Date,n=a.getFullYear(),r=a.getMonth()+1,i=a.getDate(),o=a.getHours(),c=a.getMinutes(),s=a.getSeconds(),u=a.getDay(),l=n+"年"+r+"月"+i+"日",d=t[u],g=o+":"+c,f=s;e.real_time={date_nyr:l,date_week:d,date_hm:g,data_s:f}},get_number_data:function(e){console.log("数字:",e);var t=e.data.list,a=[{name:"资产信息",src:"../../static/todo/a2.png",value:0,root:"true"},{name:"报修",src:"../../static/index/a2.png",value:0,root:"false"},{name:"点检",src:"../../static/index/a4.png",value:0,root:"false"},{name:"启停",src:"../../static/index/a5.png",value:0,root:"false"},{name:"申购",src:"../../static/index/d1.png",value:0,root:"false"},{name:"评估验证",src:"../../static/index/d3.png",value:0,root:"false"},{name:"水表",src:"../../static/index/c1.png",value:0,root:"false"},{name:"电表",src:"../../static/index/c2.png",value:0,root:"false"},{name:"天然气表",src:"../../static/index/c3.png",value:0,root:"false"},{name:"蒸汽表",src:"../../static/index/c5.png",value:0,root:"false"}];a.forEach((function(e){t.forEach((function(t){e.name===t.remark&&(e.value=t.amount)}))})),console.log(a);var n=a.filter((function(e){return e.value>0}));console.log("有数字的筛选",n),console.log(n.length),n.length>0?uni.showTabBarRedDot({index:1}):uni.hideTabBarRedDot({index:1})},filter_data_root:function(e){var t=this,a=e.data.list,n=[{name:"资产信息",src:"../../static/index/a1.png",root:"true"},{name:"报修",src:"../../static/index/a2.png",root:"false"},{name:"点检",src:"../../static/index/a4.png",root:"false"},{name:"启停",src:"../../static/index/a5.png",root:"false"},{name:"申购",src:"../../static/index/d1.png",root:"false"},{name:"评估验证",src:"../../static/index/d3.png",root:"false"},{name:"水表",src:"../../static/index/c1.png",root:"false"},{name:"电表",src:"../../static/index/c2.png",root:"false"},{name:"天然气表",src:"../../static/index/c3.png",root:"false"},{name:"蒸汽表",src:"../../static/index/c5.png",root:"false"}];a.forEach((function(e,t){"maintenance:repair:baoxiu"==e.path&&(n[1]["root"]="true",console.log("报修权限有")),"maintenance:spotCheck:add"==e.path&&(n[2]["root"]="true",console.log("点检权限有")),"asset:SST:equipmentStop"==e.path&&(n[3]["root"]="true",console.log("启停权限有")),"customs:subscribe:add"==e.path&&(n[4]["root"]="true",console.log("申购权限有")),"evaluationVerification:assessment:APP"==e.path&&(n[5]["root"]="true",console.log("评估验证权限有")),"cost:water:waterMeter"==e.path&&(n[6]["root"]="true",console.log("水表权限有")),"cost:elec:electricityMeter"==e.path&&(n[7]["root"]="true",console.log("电表权限有")),"cost:gas:naturalGasMeter"==e.path&&(n[8]["root"]="true",console.log("天然气表权限有")),"cost:steam:steamMeter"==e.path&&(n[9]["root"]="true",console.log("蒸汽表权限有"))})),t.todoList=n},on_todo_list_tap:function(e){var t=e.currentTarget.dataset.todott,a=e.currentTarget.dataset.todoroot;switch(console.log(a),t){case"资产信息":uni.navigateTo({url:"./card/card"});break;case"报修":"true"==a?uni.navigateTo({url:"./reportRepair/reportRepair"}):uni.showToast({title:"暂无此权限",duration:2e3,icon:"none"});break;case"点检":"true"==a?uni.navigateTo({url:"./spotCheck/spotCheck"}):uni.showToast({title:"暂无此权限",duration:2e3,icon:"none"});break;case"启停":"true"==a?uni.navigateTo({url:"./equipmentStop/equipmentStop"}):uni.showToast({title:"暂无此权限",duration:2e3,icon:"none"});break;case"水表":"true"==a?uni.navigateTo({url:"./waterMeter/waterMeter"}):uni.showToast({title:"暂无此权限",duration:2e3,icon:"none"});break;case"电表":"true"==a?uni.navigateTo({url:"./electricityMeter/electricityMeter"}):uni.showToast({title:"暂无此权限",duration:2e3,icon:"none"});break;case"天然气表":if("true"==a){uni.navigateTo({url:"./naturalGasMeter/naturalGasMeter"});break}uni.showToast({title:"暂无此权限",duration:2e3,icon:"none"});break;case"沼气表":"true"==a?uni.navigateTo({url:"./methaneMeter/methaneMeter"}):uni.showToast({title:"暂无此权限",duration:2e3,icon:"none"});break;case"蒸汽表":"true"==a?uni.navigateTo({url:"./steamMeter/steamMeter"}):uni.showToast({title:"暂无此权限",duration:2e3,icon:"none"});break;case"评估验证":"true"==a?uni.navigateTo({url:"./assessmentVerify/assessmentVerify"}):uni.showToast({title:"暂无此权限",duration:2e3,icon:"none"});break;case"申购":"true"==a?uni.navigateTo({url:"./applyForBuy/applyForBuy"}):uni.showToast({title:"暂无此权限",duration:2e3,icon:"none"});break;case"非维保领用":"true"==a?uni.navigateTo({url:"./collect/collect"}):uni.showToast({title:"暂无此权限",duration:2e3,icon:"none"});break}}},components:{graceSelectTags:r.default}};t.default=i},c337:function(e,t,a){var n=a("24fb");t=n(!1),t.push([e.i,".grace-body[data-v-069052e3]{padding:%?25?%}.line[data-v-069052e3]{background:#f6f7f8;height:%?16?%;width:100%}.six[data-v-069052e3]{border-top:1px solid #dcdcdc;border-left:1px solid #dcdcdc}.six > .grace-grids-items[data-v-069052e3]{width:33.3%;border-right:1px solid #dcdcdc;border-bottom:1px solid #dcdcdc;padding:%?40?% 0}.todo-img[data-v-069052e3]{width:%?60?%;height:%?60?%;margin-bottom:%?10?%}",""]),e.exports=t},d6d9:function(e,t,a){var n=a("c337");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=a("4f06").default;r("5ebb5fef",n,!0,{sourceMap:!1,shadowMode:!1})},f248:function(e,t,a){"use strict";a.r(t);var n=a("7125"),r=a.n(n);for(var i in n)"default"!==i&&function(e){a.d(t,e,(function(){return n[e]}))}(i);t["default"]=r.a},f987:function(e,t,a){"use strict";a.r(t);var n=a("5c46"),r=a("99d7");for(var i in r)"default"!==i&&function(e){a.d(t,e,(function(){return r[e]}))}(i);a("70c5");var o,c=a("f0c5"),s=Object(c["a"])(r["default"],n["b"],n["c"],!1,null,"069052e3",null,!1,n["a"],o);t["default"]=s.exports}}]);
|