(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"4c77":function(e,n,i){"use strict";var t=i("d966"),r=i.n(t);r.a},8069:function(e,n,i){"use strict";i.r(n);var t=i("da67"),r=i.n(t);for(var s in t)["default"].indexOf(s)<0&&function(e){i.d(n,e,(function(){return t[e]}))}(s);n["default"]=r.a},"8e86":function(e,n,i){"use strict";var t;i.d(n,"b",(function(){return r})),i.d(n,"c",(function(){return s})),i.d(n,"a",(function(){return t}));var r=function(){var e=this,n=e.$createElement,i=(e._self._c,e.__map(e.menus,(function(n,i){var t=e.__get_orig(n),r=n.parent&&n.children.length>0,s=!n.parent&&n.children.length>0;return{$orig:t,g0:r,g1:s}})));e.$mp.data=Object.assign({},{$root:{l0:i}})},s=[]},d537:function(e,n,i){"use strict";(function(e,n){var t=i("4ea4");i("6cdc");t(i("66fd"));var r=t(i("f75a"));e.__webpack_require_UNI_MP_PLUGIN__=i,n(r.default)}).call(this,i("bc2e")["default"],i("543d")["createPage"])},d966:function(e,n,i){},da67:function(e,n,i){"use strict";(function(e){var t=i("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=t(i("9523")),s=i("26cb");function a(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function o(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?a(Object(i),!0).forEach((function(n){(0,r.default)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}n.default={data:function(){return{title:"Hello",menuList:[{label:"监测数据管理",children:[{label:"气象监测",url:"/pages/index/meteorological",permission:"endpoint.weather.index"},{label:"智能监控",url:"/pages/index/monitor",permission:"endpoint.camera.index"},{label:"土壤监控",url:"/pages/index/soil-monitoring",permission:"endpoint.soil.index"},{label:"水质监控",url:"/pages/index/water-quality",permission:"endpoint.water.index"},{label:"昆虫性诱监测",url:"/pages/index/insect-monitors",permission:"endpoint.insect.index"},{label:"虫情监测",url:"/pages/index/pests",permission:"endpoint.worm_statics.index"},{label:"杀虫灯检测",url:"/pages/index/insecticidal-lamp",permission:"endpoint.insecticidal_lamp.index"}]},{label:"全市基础数据",parent:"基础数据管理",children:[{label:"城镇数据",url:"/pages/basics/town-base",permission:"endpoint.town_street.index"},{label:"基地数据",url:"/pages/basics/basics-base",permission:"endpoint.agricultural_basic.index"}]},{label:"农作物数据",parent:"基础数据管理",children:[{label:"城镇农作物",url:"/pages/crop/town-crop",permission:"endpoint.town_crops.index"},{label:"基地农作物",url:"/pages/crop/basics-crop",permission:"endpoint.crops.index"}]},{label:"农作物产量",parent:"基础数据管理",children:[{label:"城镇产量",url:"/pages/yield/town-yield",permission:"endpoint.town_crops_output.index"},{label:"基地产量",url:"/pages/yield/basics-yield",permission:"endpoint.crops_output.index"}]},{label:"重点产业",parent:"基础数据管理",children:[{label:"稻虾价格",url:"/pages/estate/estate-price",permission:"endpoint.rice_shrimp_prices.index"},{label:"稻虾每周价格",url:"/pages/estate/estate-week-price",permission:"endpoint.rice_shrimp_weekly_prices.index"},{label:"稻虾产业",url:"/pages/estate/estate-industry",permission:"endpoint.rice_shrimp_industries.index"},{label:"稻虾流向",url:"/pages/estate/estate-flows",permission:"endpoint.rice_shrimp_flows.index"},{label:"大宗物资",url:"/pages/estate/estate-materiels",permission:"endpoint.materiels.index"}]},{label:"设备管理",children:[{label:"设备管理",url:"/pages/device/index",permission:"endpoint.device.index"},{label:"警报明细",url:"/pages/device/warning",permission:"endpoint.warnings.index"}]}]}},computed:o(o({},(0,s.mapGetters)(["userInfo","token"])),{},{menus:function(){var e,n;return this.filterAsyncRoutes(this.menuList,null!==(e=null===(n=this.userInfo)||void 0===n?void 0:n.permissions_slug)&&void 0!==e?e:[])}}),onLoad:function(){},methods:{hasPermission:function(e,n){return!n.permission||e.some((function(e){return n.permission.includes(e)}))},filterAsyncRoutes:function(e,n){var i=this,t=[];return e.forEach((function(e){var r=o({},e);i.hasPermission(n,r)&&(r.children&&(r.children=i.filterAsyncRoutes(r.children,n)),t.push(r))})),t},linknavFn:function(n){if(n.url){var i=encodeURIComponent("".concat(n.url));e.navigateTo({url:"/pages/webview/index?url=".concat(i)})}}}}}).call(this,i("543d")["default"])},f75a:function(e,n,i){"use strict";i.r(n);var t=i("8e86"),r=i("8069");for(var s in r)["default"].indexOf(s)<0&&function(e){i.d(n,e,(function(){return r[e]}))}(s);i("4c77");var a,o=i("f0c5"),l=Object(o["a"])(r["default"],t["b"],t["c"],!1,null,"2c7cf19e",null,!1,t["a"],a);n["default"]=l.exports}},[["d537","common/runtime","common/vendor"]]]);