(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-25663f0a"],{"323a":function(e,t,r){"use strict";r.d(t,"e",(function(){return a})),r.d(t,"f",(function(){return i})),r.d(t,"a",(function(){return o})),r.d(t,"c",(function(){return s})),r.d(t,"d",(function(){return l})),r.d(t,"b",(function(){return c}));var n=r("bf9a");function a(e){return n["b"].post("admin_merchants",e)}function i(e,t){return n["b"].put("admin_merchants/".concat(e),t)}function o(e){return n["b"].get("admin_merchants/".concat(e,"/edit"))}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("admin_merchants",{params:e})}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("admin_merchant_config/get",{params:e})}function c(e){return n["b"].post("admin_merchant_config/edit",e)}},3835:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}function a(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(r.push(o.value),t&&r.length===t)break}catch(l){a=!0,i=l}finally{try{n||null==s["return"]||s["return"]()}finally{if(a)throw i}}return r}}r.d(t,"a",(function(){return s}));var i=r("06c5");function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return n(e)||a(e,t)||Object(i["a"])(e,t)||o()}},"386d":function(e,t,r){"use strict";var n=r("cb7c"),a=r("83a1"),i=r("5f1b");r("214f")("search",1,(function(e,t,r,o){return[function(r){var n=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=o(r,e,this);if(t.done)return t.value;var s=n(e),l=String(this),c=s.lastIndex;a(c,0)||(s.lastIndex=0);var u=i(s,l);return a(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},"69d9":function(e,t,r){"use strict";r("8e6e"),r("456d"),r("7f7f"),r("ac6a");var n=r("ade3");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return c["b"].get("user_repaired",{params:e})}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c["b"].get("user_repaired/img",{params:e})}var p=r("b64d"),d=r("873a"),h=r("323a"),m={name:"Index",components:{SearchForm:s["a"],Pagination:l["a"]},data:function(){return{search:[{type:"el-select",field:"area_id",label:"骑行区域",options:[{id:"",name:"全部"}]},{type:"super-input",field:"mobile_nickname",label:"用户昵称 / 用户手机号"},{field:"bike_no",label:"车牌号"},{type:"el-select",field:"merchant_id",label:"商户",options:[{id:"",name:"全部"}]}],users_repaired:[],page:null,dialogVisible:!1,innerVisible:!1,rows:{bike_no:"",nickname:"",mobile:"",created_at:"",trouble_part:"",trouble_description:"",fix_image:[]},imgIds:[],is_img_show:!1}},mixins:[d["m"]],watch:{$route:{handler:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var r,n,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.autoPageSize(55,t);case 2:return e.next=4,u(t.query);case 4:r=e.sent,n=r.data,a=n.data,i=n.meta,this.users_repaired=a,this.page=i;case 10:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),immediate:!0}},created:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,r,n,a,o,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([Object(p["b"])({all:1})]);case 2:if(t=e.sent,r=Object(i["a"])(t,1),n=r[0].data,this.search[0].options.push.apply(this.search[0].options,n),"administrator"!==this.$store.state.users.user.roles[0]){e.next=15;break}return e.next=9,Promise.all([Object(h["c"])({all:1})]);case 9:a=e.sent,o=Object(i["a"])(a,1),s=o[0].data,this.search[3].options.push.apply(this.search[3].options,s.data),e.next=16;break;case 15:this.search.splice(3,1);case 16:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{ditailClick:function(e){this.rows.bike_no=e.bike_no,this.rows.nickname=e.users.nickname,this.rows.mobile=e.users.mobile,this.rows.created_at=e.created_at,this.rows.trouble_part=e.trouble_part,this.rows.trouble_description=e.trouble_description,this.rows.fix_image=JSON.parse(e.trouble_imgs),console.log(this.rows.fix_image),this.imgIds=JSON.parse(e.trouble_imgs),null!=this.rows.fix_image&&(this.is_img_show=!0),this.dialogVisible=!0},clickImgShow:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.innerVisible=!0,e.next=3,Promise.all([f({imgIds:this.imgIds})]);case 3:t=e.sent,r=Object(i["a"])(t,1),n=r[0].data,this.rows.fix_image=n,console.log(n);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},b=m,g=(r("ea3e"),r("2877")),v=Object(g["a"])(b,n,a,!1,null,null,null);t["default"]=v.exports},"81df":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.page?r("el-pagination",e._b({ref:"page",attrs:{"page-sizes":e.pageSizes,"current-page":e.currentPage,"page-size":e.perPage,total:e.page.total,layout:e.layout,background:""},on:{"size-change":e.onSizeChange,"current-change":e.onChange,"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.perPage=t},"update:page-size":function(t){e.perPage=t}}},"el-pagination",e.$attrs,!1)):e._e()},a=[],i={name:"Pagination",data:function(){return{currentPage:1,perPage:10}},props:{page:Object,layout:{type:String,default:"total, prev, pager, next, sizes, jumper"},autoPush:{type:Boolean,default:!0}},computed:{pageSizes:function(){var e=[10,30,50,100,200],t=this.page.per_page;return-1===e.indexOf(t)?[this.page.per_page].concat(e):e}},methods:{push:function(){var e=Object.assign({},this.$route.query,{page:this.currentPage,per_page:this.perPage});this.$router.push({path:this.$route.path,query:e})},onSizeChange:function(e){this.$emit("size-change",e),this.autoPush&&(this.currentPage=1,this.push())},onChange:function(e){this.$emit("current-change",e),this.autoPush&&this.push()}},watch:{page:{handler:function(e){var t=this;e&&(this.currentPage=e.current_page,this.perPage=e.per_page,this.$nextTick((function(){t.$refs.page.internalCurrentPage=e.current_page})))},immediate:!0}}},o=i,s=r("2877"),l=Object(s["a"])(o,n,a,!1,null,"f691fd2e",null);t["a"]=l.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},b64d:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return i})),r.d(t,"d",(function(){return o})),r.d(t,"e",(function(){return s})),r.d(t,"a",(function(){return l}));var n=r("bf9a");function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n["b"].get("area",{params:e})}function i(e){return n["b"].get("area/".concat(e))}function o(e){return n["b"].post("area",e)}function s(e,t){return n["b"].put("area/".concat(e),t)}function l(e){return n["b"].get("area/".concat(e,"/edit"))}},c8b9:function(e,t,r){},cafd:function(e,t,r){"use strict";var n=r("cb81"),a=r.n(n);a.a},cb81:function(e,t,r){},ea3e:function(e,t,r){"use strict";var n=r("c8b9"),a=r.n(n);a.a}}]); //# sourceMappingURL=chunk-25663f0a.7c73f1a5.js.map