12 |
- (function(e){function t(t){for(var r,a,o=t[0],s=t[1],u=t[2],d=0,l=[];d<o.length;d++)a=o[d],Object.prototype.hasOwnProperty.call(c,a)&&c[a]&&l.push(c[a][0]),c[a]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);f&&f(t);while(l.length)l.shift()();return i.push.apply(i,u||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,a=1;a<n.length;a++){var o=n[a];0!==c[o]&&(r=!1)}r&&(i.splice(t--,1),e=s(s.s=n[0]))}return e}var r={},a={app:0},c={app:0},i=[];function o(e){return s.p+"static/js/"+({}[e]||e)+"."+{"chunk-39a49e28":"b507ae9e"}[e]+".js"}function s(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.e=function(e){var t=[],n={"chunk-39a49e28":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var r="static/css/"+({}[e]||e)+"."+{"chunk-39a49e28":"b2ed27b7"}[e]+".css",c=s.p+r,i=document.getElementsByTagName("link"),o=0;o<i.length;o++){var u=i[o],d=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(d===r||d===c))return t()}var l=document.getElementsByTagName("style");for(o=0;o<l.length;o++){u=l[o],d=u.getAttribute("data-href");if(d===r||d===c)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var r=t&&t.target&&t.target.src||c,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=r,delete a[e],f.parentNode.removeChild(f),n(i)},f.href=c;var E=document.getElementsByTagName("head")[0];E.appendChild(f)})).then((function(){a[e]=0})));var r=c[e];if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((function(t,n){r=c[e]=[t,n]}));t.push(r[2]=i);var u,d=document.createElement("script");d.charset="utf-8",d.timeout=120,s.nc&&d.setAttribute("nonce",s.nc),d.src=o(e);var l=new Error;u=function(t){d.onerror=d.onload=null,clearTimeout(f);var n=c[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",l.name="ChunkLoadError",l.type=r,l.request=a,n[1](l)}c[e]=void 0}};var f=setTimeout((function(){u({type:"timeout",target:d})}),12e4);d.onerror=d.onload=u,document.head.appendChild(d)}return Promise.all(t)},s.m=e,s.c=r,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)s.d(n,r,function(t){return e[t]}.bind(null,r));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="/",s.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],d=u.push.bind(u);u.push=t,u=u.slice();for(var l=0;l<u.length;l++)t(u[l]);var f=d;i.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"034f":function(e,t,n){"use strict";var r=n("85ec"),a=n.n(r);a.a},"0f9a":function(e,t,n){"use strict";n.r(t);var r=n("a358"),a={id:localStorage.getItem("id")},c={SET_ID:function(e,t){e.id=t}},i={login:function(e,t){var n=e.commit,a=t.code,c=t.phone;return new Promise((function(e,t){Object(r["c"])({phone:c.trim(),code:a}).then((function(t){n("SET_ID",t),localStorage.setItem("id",t),e()})).catch((function(e){t(e)}))}))}};t["default"]={namespaced:!0,state:a,mutations:c,actions:i}},"3dd7":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return i}));var r=n("b775");function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["b"])("/matching/queryCarModel",e)}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["b"])("/matchingByOpen/queryCarModelGroupPackage",e)}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["b"])("/partsByOpen/queryComponentList",e)}},4360:function(e,t,n){"use strict";var r=n("2b0e"),a=n("2f62"),c={id:function(e){return e.user.id}},i=c;r["a"].use(a["a"]);var o=n("c653"),s=o.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),r=o(t);return e[n]=r.default,e}),{}),u=new a["a"].Store({modules:s,getters:i});t["a"]=u},4469:function(e,t,n){"use strict";n.r(t);n("433b");var r=n("d399"),a=n("a34a"),c=n.n(a),i=n("3dd7");function o(e,t,n,r,a,c,i){try{var o=e[c](i),s=o.value}catch(u){return void n(u)}o.done?t(s):Promise.resolve(s).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function i(e){o(c,r,a,i,s,"next",e)}function s(e){o(c,r,a,i,s,"throw",e)}i(void 0)}))}}var u={initialsList:[],carModelList:[],carBrandList:[],carFactoryList:[],carSeriesList:[],selectedCarBrand:{},selectedCarFactory:"",selectedCarSeries:"",selectedCarModel:"",selectedCarGroup:"",selectedDisplacement:"",displacement:[],carGroupList:[],firstcomponentcode:"",finished:!1,loading:!1,secondcomponentcode:"",step:1},d={CHANGE_STEP:function(e,t){e.step=t},SET_FINISHED:function(e,t){e.finished=t},SET_LOADING:function(e,t){e.loading=t},SET_FIRST_COMPONENT_CODE:function(e,t){e.firstcomponentcode=t},SET_SECOND_COMPONENT_CODE:function(e,t){e.secondcomponentcode=t},SET_CARBRAND_LIST:function(e,t){e.carBrandList=e.carBrandList.concat(t),e.initialsList=e.initialsList.concat(t.map((function(e){return e["首字母"]})))},SET_CAR_MODEL_LIST:function(e,t){e.carModelList=t},SET_GROUP:function(e,t){e.selectedCarGroup=t},SET_MODEL:function(e,t){e.selectedCarModel=t},CLEAN_MODEL:function(e){e.carModelList=[],e.selectedCarModel=[]},SET_CARBRAND:function(e,t){e.selectedCarBrand=t},SET_FACTORY:function(e,t){e.selectedCarFactory=t},SET_SERIES:function(e,t){e.selectedCarSeries=t},CLEAN_FACTORY:function(e){e.selectedCarFactory="",e.carFactoryList=[]},CLEAN_SERIES:function(e){e.selectedCarSeries="",e.carSeriesList=[]},SET_CAR_FACTORY_LIST:function(e,t){e.carFactoryList=t},SET_CAR_SERIES_LIST:function(e,t){e.carSeriesList=t.map((function(e){return{text:e.carSeries,value:e.carSeries}}))},SET_CAR_FACTORY:function(e,t){e.selectedCarFactory=t},SET_CAR_DEPARTMENT:function(e,t){e.selectedDisplacement=t},SET_CAR_DEPARTMENT_LIST:function(e,t){e.displacement=t},CLEAN_CAR_DEPARTMENT:function(e,t){e.displacement=[],e.selectedDisplacement=""},SET_CAR_GROUP_LIST:function(e,t){e.carGroupList=t},CLEAN_SET_CAR_GROUP:function(e,t){e.carGroupList=[],e.selectedCarGroup=""},RESET_CARBRAND_LIST:function(e){e.carBrandList=[],e.initialsList=[]},SET_USER_NAME:function(e,t){e.name=t}},l={queryCarBrandList:function(e){var t=e.commit;return s(c.a.mark((function e(){var n;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t("SET_LOADING",!0),t("SET_FINISHED",!1),e.next=4,Object(i["b"])();case 4:n=e.sent,t("RESET_CARBRAND_LIST"),t("SET_CARBRAND_LIST",n.brands),t("SET_LOADING",!1),t("SET_FINISHED",!0);case 9:case"end":return e.stop()}}),e)})))()},queryCarFactoryList:function(e,t){var n=e.commit;e.state;return s(c.a.mark((function e(){var a;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r["a"].loading({duration:0,forbidClick:!0,message:"加载中"}),n("SET_LOADING",!0),n("SET_FINISHED",!1),e.next=5,Object(i["b"])(t);case 5:a=e.sent,r["a"].clear(),n("SET_LOADING",!1),n("SET_FINISHED",!0),n("SET_CAR_FACTORY_LIST",a.carSeriesList);case 10:case"end":return e.stop()}}),e)})))()},queryDisplacement:function(e,t){var n=e.commit;e.state;return s(c.a.mark((function e(){var r;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n("SET_LOADING",!0),n("SET_FINISHED",!1),e.next=4,Object(i["b"])(t);case 4:r=e.sent,n("SET_CAR_DEPARTMENT_LIST",r.displacementList),n("SET_LOADING",!1),n("SET_FINISHED",!0);case 8:case"end":return e.stop()}}),e)})))()},queryCarModelGroup:function(e,t){var n=e.commit;e.state;return s(c.a.mark((function e(){var r;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n("SET_LOADING",!0),n("SET_FINISHED",!1),e.next=4,Object(i["b"])(t);case 4:r=e.sent,n("SET_CAR_GROUP_LIST",r.carGroupList),n("SET_LOADING",!1),n("SET_FINISHED",!0);case 8:case"end":return e.stop()}}),e)})))()},queryCarModelList:function(e,t){var n=e.commit,r=e.state;return s(c.a.mark((function e(){var t;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n("SET_LOADING",!0),n("SET_FINISHED",!1),e.next=4,Object(i["a"])({brand:r.selectedCarBrand.brand,carFactory:r.selectedCarFactory,carSeries:r.selectedCarSeries});case 4:t=e.sent,n("SET_CAR_MODEL_LIST",t),n("SET_LOADING",!1),n("SET_FINISHED",!0);case 8:case"end":return e.stop()}}),e)})))()}};t["default"]={namespaced:!0,state:u,mutations:d,actions:l}},"56d7":function(e,t,n){"use strict";n.r(t);var r=n("2b0e"),a=n("8c4f"),c=function(e,t){for(var n in t)e[n](t[n])},i=n("a358"),o=n("18a0"),s=n.n(o),u={beforeEach:function(e,t,n){e.meta.useWx&&!0===e.meta.useWx?(Object(i["b"])().then((function(e){s.a.config({debug:!1,appId:e.appId,timestamp:e.timestamp,nonceStr:e.noncestr,signature:e.signature,jsApiList:["openLocation","getLocation"]})})),s.a.ready((function(){s.a.checkJsApi({jsApiList:["openLocation","getLocation"],success:function(e){}}),r["a"].prototype.$wx=s.a,n()}))):n()}};r["a"].use(a["a"]);var d=new a["a"]({routes:[{path:"/",name:"index",redirect:"/home"},{path:"/home",name:"home",meta:{showTabbar:!0},component:function(){return n.e("chunk-39a49e28").then(n.bind(null,"7abe"))}}]});c(d,u);var l=d,f=n("4360"),E=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("div",{staticClass:"mainCon"},[n("router-view")],1)])},p=[],S={name:"App",data:function(){return{active:0}},activated:function(){this.$setgoindex()}},T=S,_=(n("034f"),n("2877")),L=Object(_["a"])(T,E,p,!1,null,null,null),m=L.exports,v=(n("157a"),n("b20f"),n("47e2"),n("2241")),h=(n("ec8c"),n("1125")),b=(n("0645"),n("39d1")),A=(n("6370"),n("3acc")),I=(n("9753"),n("417e")),g=(n("78a2"),n("1437")),C=(n("4826"),n("f9bd")),O=(n("bca0"),n("543e")),y=(n("bf24"),n("44bf")),D=(n("4071"),n("a3e2")),R=(n("9889"),n("f564")),N=(n("d707"),n("8f80")),w=(n("5a5c"),n("772a")),M=(n("9eda"),n("565f")),P=(n("8d12"),n("2bb1")),j=(n("3cc4"),n("5596")),F=(n("e659"),n("241e")),B=(n("504f"),n("1d36")),k=(n("558f"),n("0b33")),x=(n("8990"),n("5e46")),G=(n("3e6d"),n("a37c")),Y=(n("87d0"),n("e41f")),H=(n("433b"),n("d399")),U=(n("e9a3"),n("d314")),q=(n("c65f"),n("2d6d")),$=(n("a035"),n("21ab")),J=(n("4072"),n("2830")),V=(n("da02"),n("6b41")),W=(n("576f"),n("92e2")),K=(n("cd52"),n("e11d")),z=(n("4391"),n("58e6")),Q=(n("b342"),n("ad06")),X=(n("2a53"),n("34e9")),Z=(n("3ec1"),n("7744")),ee=(n("93b0"),n("2bdd")),te=(n("c625"),n("b650")),ne=(n("4627"),n("2ed4")),re=(n("1318"),n("ac28")),ae=(n("1fe9"),n("d961"));r["a"].use(ae["a"]),r["a"].use(re["a"]),r["a"].use(ne["a"]),r["a"].use(te["a"]),r["a"].use(ee["a"]),r["a"].use(Z["a"]),r["a"].use(X["a"]),r["a"].use(Q["a"]),r["a"].use(z["a"]),r["a"].use(K["a"]),r["a"].use(W["a"]),r["a"].use(V["a"]),r["a"].use(J["a"]),r["a"].use($["a"]),r["a"].use(q["a"]),r["a"].use(U["a"]),r["a"].use(H["a"]),r["a"].use(Y["a"]),r["a"].use(G["a"]),r["a"].use(x["a"]),r["a"].use(k["a"]),r["a"].use(B["a"]),r["a"].use(F["a"]),r["a"].use(j["a"]),r["a"].use(P["a"]),r["a"].use(M["a"]),r["a"].use(w["a"]),r["a"].use(N["a"]),r["a"].use(R["a"]),r["a"].use(D["a"]),r["a"].use(y["a"]),r["a"].use(O["a"]),r["a"].use(C["a"]),r["a"].use(g["a"]),r["a"].use(I["a"]),r["a"].use(A["a"]),r["a"].use(b["a"]),r["a"].use(h["a"]),r["a"].use(v["a"]);var ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("van-nav-bar",e._g(e._b({attrs:{title:e.$route.meta.title,"left-text":"返回","left-arrow":""},on:{"click-left":e.onClickLeft}},"van-nav-bar",e.$attrs,!1),e.$listeners),[e._t("left",null,{slot:"left"}),e._t("title",null,{slot:"title"}),e._t("right",null,{slot:"right"})],2)},ie=[],oe={props:{onClickLeft:{default:function(){var e=this;return function(){"true"===e.$route.query.goindex?e.$router.push("/"):e.$router.back(-1)}}}},methods:{}},se=oe,ue=Object(_["a"])(se,ce,ie,!1,null,null,null),de=ue.exports;function le(e){le.installed||e.component("NavBar",de)}var fe=le;r["a"].use(fe),r["a"].config.productionTip=!1,new r["a"]({router:l,store:f["a"],render:function(e){return e(m)}}).$mount("#app")},"85ec":function(e,t,n){},8686:function(e,t,n){"use strict";n.r(t);var r={commodity:{},checkErrorCarModel:{},checkErrorPartsDetail:{}},a={SET_DETAIL:function(e,t){e.checkErrorCarModel=t},SET_PARTS:function(e,t){e.checkErrorPartsDetail=t},SET_COMMIDITY:function(e,t){e.commodity=t}};t["default"]={namespaced:!0,state:r,mutations:a}},"8bd4":function(e,t,n){"use strict";n.r(t);var r={vin:"",vinSearchResult:[]},a={SET_VIN_SEARCH:function(e,t){e.vinSearchResult=t},SET_VIN:function(e,t){e.vin=t}};t["default"]={namespaced:!0,state:r,mutations:a}},9229:function(e,t,n){"use strict";n.r(t);n("3dd7");var r={serviceList:[],series:"",manufactorList:[],manufactor:"",carSeriesList:[],carSeries:"",productionYearList:[],productionYear:"",displacementList:[],displacement:"",typeList:[],carId:"",step:"",tree:[],treeCache:[],titleList:[]},a={RESET_ALL:function(e){e.serviceList=[],e.series="",e.manufactorList=[],e.manufactor="",e.carSeriesList=[],e.carSeries="",e.productionYearList=[],e.productionYear="",e.displacementList=[],e.displacement="",e.typeList=[],e.carId="",e.step="",e.tree=[],e.treeCache=[],e.titleList=[]},SET_TREE:function(e,t){e.tree=t},SET_TREE_CACHE:function(e,t){e.treeCache=t},SET_TITLE_LIST:function(e,t){e.titleList=t},PUSH_TITLE_LIST:function(e,t){e.titleList.push(t)},SET_STEP:function(e,t){e.step=t},SET_SERIES:function(e,t){e.series=t},SET_SERIES_LIST:function(e,t){e.serviceList=t},SET_MANUFACTOR:function(e,t){e.manufactor=t},SET_MANUFACTOR_LIST:function(e,t){e.manufactorList=t},SET_CAR_SERIES:function(e,t){e.carSeries=t},SET_CAR_SERIES_LIST:function(e,t){e.carSeriesList=t},SET_TIME:function(e,t){e.productionYear=t},SET_TIME_LIST:function(e,t){e.productionYearList=t},SET_DISPLACEMENT:function(e,t){e.displacement=t},SET_DISPLACEMENT_LIST:function(e,t){e.displacementList=t},SET_TYPE_LIST:function(e,t){e.typeList=t},SET_CARID:function(e,t){e.carId=t}};t["default"]={namespaced:!0,state:r,mutations:a}},a358:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return o}));var r=n("b775");function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["c"])("/get",e)}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["c"])("/weChat/phoneLogin",e)}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r["a"].post("/uploads",e)}var o=function(e){return Object(r["c"])("/sys/addSuperShopApplication",e)}},a429:function(e,t,n){"use strict";n.r(t);n("3dd7");var r={serviceList:[],series:"",brandList:[],brand:"",carModelList:[],carModel:"",productionYearList:[],productionYear:"",displacementList:[],displacement:"",engineModelList:[],engineModel:"",typeList:[],carId:"",step:"",tree:[],treeCache:[],titleList:[]},a={RESET_ALL:function(e){e.serviceList=[],e.series="",e.brandList=[],e.brand="",e.carModelList=[],e.carModel="",e.productionYearList=[],e.productionYear="",e.displacementList=[],e.displacement="",e.engineModelList=[],e.engineModel="",e.typeList=[],e.carId="",e.step="",e.tree=[],e.treeCache=[],e.titleList=[]},SET_TREE:function(e,t){e.tree=t},SET_TREE_CACHE:function(e,t){e.treeCache=t},SET_TITLE_LIST:function(e,t){e.titleList=t},PUSH_TITLE_LIST:function(e,t){e.titleList.push(t)},SET_STEP:function(e,t){e.step=t},SET_SERIES:function(e,t){e.series=t},SET_SERIES_LIST:function(e,t){e.serviceList=t},SET_BRAND:function(e,t){e.brand=t},SET_BRAND_LIST:function(e,t){e.brandList=t},SET_MODEL:function(e,t){e.carModel=t},SET_MODEL_LIST:function(e,t){e.carModelList=t},SET_TIME:function(e,t){e.productionYear=t},SET_TIME_LIST:function(e,t){e.productionYearList=t},SET_DISPLACEMENT:function(e,t){e.displacement=t},SET_DISPLACEMENT_LIST:function(e,t){e.displacementList=t},SET_ENGINEMODEL:function(e,t){e.engineModel=t},SET_ENGINEMODEL_LIST:function(e,t){e.engineModelList=t},SET_TYPE_LIST:function(e,t){e.typeList=t},SET_CARID:function(e,t){e.carId=t}};t["default"]={namespaced:!0,state:r,mutations:a}},b20f:function(e,t,n){e.exports={navbarHeight:"12.26667vw",mainColor:"#F25D24"}},b775:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return d}));n("9889");var r=n("f564"),a=n("bc3a"),c=n.n(a),i=(n("4360"),n("4328")),o=n.n(i),s="http://api.dms.66km.com/";function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(r,a){c.a.post("search?action="+e,t,n).then((function(e){r(e)}),(function(e){a(e)})).catch((function(e){a(e)}))}))}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(r,a){c.a.post(e,t,n).then((function(e){r(e)}),(function(e){a(e)})).catch((function(e){a(e)}))}))}c.a.defaults.timeout=864e3,c.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",c.a.defaults.baseURL=s,c.a.interceptors.request.use((function(e){return["post","POST","put","PUT"].indexOf(e.method)>-1&&(e.data=o.a.stringify(e.data)),e}),(function(e){return Promise.reject(e)})),c.a.interceptors.response.use((function(e){return e.config.noCheckError?Promise.resolve(e):0===e.data.code?Promise.resolve(e.data.data):400!==e.data.code?(Object(r["a"])({type:"danger",message:e.data.msg}),Promise.reject(e)):void(location.href="/#/login")}),(function(e){return"noLogin"===e?Object(r["a"])({type:"danger",message:"登录信息失效,请重新登录"}):Object(r["a"])({type:"danger",message:"服务器异常,请稍候重试"}),Promise.reject(e)})),t["a"]=c.a.create()},c653:function(e,t,n){var r={"./carModel.js":"4469","./checkError.js":"8686","./maintain.js":"a429","./parts.js":"d1b8","./serviceManual.js":"9229","./user.js":"0f9a","./vin.js":"8bd4"};function a(e){var t=c(e);return n(t)}function c(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=c,e.exports=a,a.id="c653"},d1b8:function(e,t,n){"use strict";n.r(t);var r=n("a34a"),a=n.n(r),c=n("3dd7");function i(e,t,n,r,a,c,i){try{var o=e[c](i),s=o.value}catch(u){return void n(u)}o.done?t(s):Promise.resolve(s).then(r,a)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function o(e){i(c,r,a,o,s,"next",e)}function s(e){i(c,r,a,o,s,"throw",e)}o(void 0)}))}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l={treeData:[],selectedBrand:{},selectAllFlag:!1,selectAllBrandFlag:!1},f={RESETALL:function(e,t){e.selectAllBrandFlag=!0,e.selectedBrand=e.treeData[0],e.selectAllFlag=!0,e.selectedBrand.sub.forEach((function(e){return e.selected=!1})),e.treeData.forEach((function(e){return e.selected=!1}))},CLEARALL:function(e,t){e.selectAllBrandFlag=!1,e.selectedBrand={},e.selectAllFlag=!1,e.treeData=[]},SET_SUB_STATE:function(e,t){e.selectAllFlag=!0,e.selectedBrand.sub.forEach((function(e){return e.selected=t}))},SELECT_SUB:function(e,t){e.selectedBrand.sub.filter((function(e){return e.selected})).length>1||e.selectAllFlag?(t.selected=!t.selected,e.selectAllFlag=!1):t.selected=!0},SELECT_ONE_BRAND:function(e,t){e.selectAllBrandFlag=!1,t.selected||(e.selectedBrand&&e.selectedBrand.sub.forEach((function(e){return e.selected=!1})),e.selectAllFlag=!0,t.selected=!t.selected,e.selectedBrand=t,e.treeData.filter((function(e){return e.code!==t.code})).forEach((function(e){return e.selected=!1})))},SET_TREEDATA_STATE:function(e,t){e.selectAllBrandFlag=!0,e.treeData.forEach((function(e){return e.selected=t}))},SET_TREE_DATA:function(e,t){e.treeData=t.map((function(e,t){return e.sub=e.sub.map((function(e,t){return u({},e,{selected:!1})})),u({},e,{selected:!1})})),e.selectedBrand=e.treeData[0],e.selectAllFlag=!0,e.selectAllBrandFlag=!0}},E={queryCarBrandList:function(e){var t=e.commit;return o(a.a.mark((function e(){var n;return a.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["c"])();case 2:n=e.sent,t("SET_TREE_DATA",n);case 4:case"end":return e.stop()}}),e)})))()}};t["default"]={namespaced:!0,state:l,actions:E,mutations:f}}});
- //# sourceMappingURL=app.c8d31440.js.map
|