(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-32ff5be5"],{"333d":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page-container"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPageNum,"page-size":t.pageSize,layout:"total,slot,prev",total:t.total},on:{"current-change":t.handleCurrentChange}},[a("el-button",{staticClass:"first-pager",attrs:{disabled:t.firstPageBtnDisabled},on:{click:t.toFirstPage}},[t._v("首页")])],1),a("el-pagination",{attrs:{background:"","current-page":t.currentPageNum,"page-size":t.pageSize,layout:"pager,next,slot,jumper",total:t.total},on:{"current-change":t.handleCurrentChange}},[a("el-button",{staticClass:"last-pager",attrs:{disabled:t.lastPageBtnDisabled},on:{click:t.toLastPage}},[t._v("末页")])],1)],1)},i=[];function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}a("a9e3");var o,s=(o={name:"pages",components:{},data:function(){return{currentPageNum:this.currentPage,firstPageBtnDisabled:!0,lastPageBtnDisabled:!1,lastPageNum:Math.ceil(this.total/this.pageSize)}},props:{currentPage:{type:Number,default:1},pageSize:{type:Number,default:10},total:{type:Number,default:0}},watch:{total:function(t,e){this.total=t,this.lastPageNum=Math.ceil(t/this.pageSize)}},created:function(){},methods:{handleCurrentChange:function(t){this.firstPageBtnDisabled=1===t,this.lastPageBtnDisabled=t===this.lastPageNum,this.currentPageNum=t,this.$emit("handleCurrentChangeSub",t)},toFirstPage:function(t){this.handleCurrentChange()},toLastPage:function(t){this.currentPageNum=this.lastPageNum,this.handleCurrentChange(this.lastPageNum)}}},r(o,"created",(function(){})),r(o,"mounted",(function(){})),r(o,"destroyed",(function(){})),o),c=s,d=(a("5c29"),a("2877")),u=Object(d["a"])(c,n,i,!1,null,null,null);e["a"]=u.exports},5782:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._m(0),n("div",[n("div",{staticClass:"col"},[n("div",{staticClass:"card rounded"},[n("img",{staticClass:"card-img-top",attrs:{src:a("f703")}}),n("div",{staticClass:"card-header bg-white",staticStyle:{"margin-top":"2px"}},[n("div",{staticStyle:{margin:"5px","min-height":"40px"}},[n("div",{staticClass:"row no-gutters"},[n("div",{staticStyle:{width:"100px","margin-left":"50px","line-height":"40px"}},[t._v("搜索条件:")]),n("div",{staticClass:"col-lg-10",staticStyle:{"line-height":"40px"}},t._l(t.chooseData.filter((function(t){return""!==t.code})),(function(e,a){return n("el-tag",{key:a,staticStyle:{"margin-right":"10px"},attrs:{closable:"",title:e.name+": "+e.code},on:{close:function(a){return t.handleClose(e)}}},[n("span",{staticStyle:{color:"#333"}},[t._v(t._s(e.name))]),n("span",{staticStyle:{color:"#e4393c","margin-left":"5px"}},[t._v(t._s(t._f("ellipsis")(e.code)))])])})),1)])]),n("table",{staticClass:"table searchTable"},[n("tbody",[n("tr",[n("th",{staticStyle:{width:"150px"}},[t._v("关键字")]),n("td",{attrs:{colspan:"2"}},[n("el-input",{staticStyle:{width:"420px"},attrs:{id:"txtkeyword",placeholder:"输入关键字",maxlength:"20",clearable:""},model:{value:t.data.keyword,callback:function(e){t.$set(t.data,"keyword",e)},expression:"data.keyword"}})],1)]),n("tr",[n("th",{staticStyle:{width:"150px"}},[t._v("设备类型")]),n("td",{attrs:{colspan:"2"}},t._l(t.deviceTypeList,(function(e,a){return n("el-radio",{key:a,attrs:{label:e.code},on:{change:t.changeDeviceType},model:{value:t.data.equipmentType,callback:function(e){t.$set(t.data,"equipmentType",e)},expression:"data.equipmentType"}},[t._v(t._s(e.name))])})),1)]),n("tr",{directives:[{name:"show",rawName:"v-show",value:1==t.data.identify,expression:"data.identify==1"}]},[n("th",{staticStyle:{width:"150px"}},[t._v("运行内存")]),n("td",{attrs:{colspan:"2"}},[n("el-checkbox-group",{model:{value:t.data.ram,callback:function(e){t.$set(t.data,"ram",e)},expression:"data.ram"}},t._l(t.RAMList,(function(e,a){return n("el-checkbox",{key:a,attrs:{label:e.code}},[t._v(" "+t._s(e.name))])})),1)],1)]),n("tr",{directives:[{name:"show",rawName:"v-show",value:1==t.data.identify,expression:"data.identify==1"}]},[n("th",[t._v("设备存储")]),n("td",{attrs:{colspan:"2"}},[n("el-checkbox-group",{model:{value:t.data.rom,callback:function(e){t.$set(t.data,"rom",e)},expression:"data.rom"}},t._l(t.deviceStorageList,(function(e,a){return n("el-checkbox",{key:a,attrs:{label:e.code}},[t._v(" "+t._s(e.name))])})),1)],1)]),n("tr",{directives:[{name:"show",rawName:"v-show",value:1==t.data.identify||0==t.data.identify,expression:"data.identify==1||data.identify==0"}]},[n("th",[t._v("特色功能")]),n("td",{attrs:{colspan:"2"}},[n("el-checkbox-group",{model:{value:t.data.features,callback:function(e){t.$set(t.data,"features",e)},expression:"data.features"}},t._l(t.LabelCodeList,(function(e,a){return n("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:e.belong==t.data.identify&&-1!=t.data.identify||-1==e.belong,expression:"(item.belong==data.identify&&data.identify!=-1)||item.belong==-1"}],key:a,attrs:{label:e.code}},[t._v(" "+t._s(e.name)+" ")])})),1)],1)]),n("tr",{directives:[{name:"show",rawName:"v-show",value:1==t.data.identify,expression:"data.identify==1"}]},[n("th",{staticStyle:{width:"150px"}},[t._v("设备分类")]),n("td",{attrs:{colspan:"2"}},t._l(t.deviceClassList,(function(e,a){return n("el-radio",{key:a,attrs:{label:e.code},model:{value:t.data.equipmentCustom,callback:function(e){t.$set(t.data,"equipmentCustom",e)},expression:"data.equipmentCustom"}},[t._v(t._s(e.name))])})),1)]),n("tr",{directives:[{name:"show",rawName:"v-show",value:1==t.data.identify||0==t.data.identify,expression:"data.identify==1||data.identify==0"}]},[n("th",[t._v("电池容量 ")]),n("td",{attrs:{colspan:"2"}},[n("el-checkbox-group",{model:{value:t.data.batteryRatedCapacity,callback:function(e){t.$set(t.data,"batteryRatedCapacity",e)},expression:"data.batteryRatedCapacity"}},t._l(t.mAhList,(function(e,a){return n("el-checkbox",{key:a,staticClass:"checkbox-more",attrs:{label:e.code}},[t._v(" "+t._s(e.name))])})),1)],1)])])]),n("table",{staticClass:"table"},[n("tbody",[n("tr",{staticClass:"table-borderless text-right"},[n("td",{attrs:{colspan:"3"}},[t._m(1),n("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:function(e){return t._search()}}},[t._v("查询")]),n("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:t.reset}},[t._v("清空")])],1)])])])]),n("div",{staticClass:"card-body bg-white rounded shadow",staticStyle:{"margin-top":"2px"}},[n("table",{staticClass:"table table-borderless text-center list"},[n("thead"),n("tbody",t._l(t.sliceList(t.equipmentList.data,5),(function(e,a){return n("tr",{key:a},[t._l(e,(function(e,a){return n("td",{key:a},[n("a",{staticClass:"cursor-pointer",attrs:{target:"_blank"},on:{click:function(a){return t.equipmentDetail(e.brandName,e.equipmentModel)}}},[n("img",{staticClass:"rounded-lg",staticStyle:{width:"62px"},attrs:{src:e.picture?e.picture:t.NoPic}}),n("p",[t._v(" "+t._s(e.brandName)+" "+t._s(e.equipmentModel)+" ")])])])})),t._l(t.filltd(t.equipmentList.data,5),(function(t,e){return n("td",{key:"fill"+e})}))],2)})),0)]),n("div",{staticStyle:{"text-align":"center"}},[n("pages",{ref:"pagination",attrs:{total:t.equipmentList.totalCount,currentPage:t.data.pageIndex,pageSize:t.data.pageSize},on:{handleCurrentChangeSub:function(e){return t._getEquipments(e)}}})],1)])])])])])},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("nav",{attrs:{"aria-label":"breadcrumb"}},[a("ol",{staticClass:"breadcrumb bg-light"},[a("li",{staticClass:"breadcrumb-item"},[a("a",{attrs:{href:"/"}},[t._v("首页")])]),a("li",{staticClass:"breadcrumb-item active",attrs:{"aria-current":"page"}},[t._v("选机中心")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticStyle:{"line-height":"34px","font-family":"黑体"}},[t._v(" 普通用户仅提供 "),a("b",{staticStyle:{color:"red"}},[t._v("40条上限")]),t._v(" 查询,请输入更多条件精确查询。")])}],r=(a("4de4"),a("b0c0"),a("7db0"),a("a434"),a("c740"),a("a15b"),a("d81d"),a("fb6a"),a("333d")),o=a("408b"),s=a("90c5"),c={name:"EquipmentCenter",components:{pages:r["a"]},data:function(){return{data:{identify:-1,keyword:"",equipmentType:"",equipmentCustom:"",rom:[],ram:[],batteryRatedCapacity:[],features:[],pageIndex:1,pageSize:20},chooseData:[{code:"",name:"关键字"},{code:"",name:"设备类型"},{code:"",name:"设备分类"},{code:"",name:"设备存储"},{code:"",name:"特色功能"},{code:"",name:"运行内存"},{code:"",name:"电池容量"}],NoPic:a("aeeb"),deviceTypeList:[],deviceClassList:[],deviceStorageList:[],RAMList:[],mAhList:[],LabelCodeList:[],equipmentList:{data:[],totalCount:0},queryData:[]}},created:function(){if(this.$route.query.code){var t=s["a"].decrypt(this.$route.query.code);t=JSON.parse(t),this.queryData=t,t.keyword&&(this.data.keyword=t.keyword),t.features&&t.identify&&(this.data.identify=this.queryData.identify,this.data.features.push(this.queryData.features))}},mounted:function(){this._getEquipmentQueryCode(),this._getEquipmentLabelCode(),this._search()},methods:{_getEquipmentQueryCode:function(){var t=this;Object(o["i"])().then((function(e){t.deviceTypeList=e.filter((function(t){return"EquipmentType"===t.type})),t.deviceClassList=e.filter((function(t){return"EquipmentCustom"===t.type})),t.deviceStorageList=e.filter((function(t){return"rom"===t.type})),t.RAMList=e.filter((function(t){return"ram"===t.type})),t.mAhList=e.filter((function(t){return"batteryRatedCapacity"===t.type}))}))},_getEquipmentLabelCode:function(){var t=this;Object(o["m"])().then((function(e){if(t.LabelCodeList=e,t.queryData.features){var a=[];a.push(t.LabelCodeList.find((function(e){return e.code===t.queryData.features})).name),t.chooseData.splice(t.chooseData.findIndex((function(t){return"特色功能"===t.name})),1,{code:a.join(","),name:"特色功能"})}}))},_search:function(){this.$refs.pagination.handleCurrentChange(1)},_getEquipments:function(t){var e=this;this.data.pageIndex=t||1,Object(o["a"])(this.data).then((function(t){e.equipmentList=t}))},changeDeviceType:function(t){if(""!==t){var e=this.data.identify;this.deviceTypeList.filter((function(e){return 1==e.belong&&e.code==t})).length>0?this.data.identify=1:(this.data.identify=0,this.data.equipmentCustom="",this.data.rom=[],this.data.ram=[]),e!==this.data.identify&&(this.data.features=[])}else this.data.identify=-1},reset:function(){this.data.identify=-1,this.data.keyword="",this.data.equipmentType="",this.data.equipmentCustom="",this.data.rom=[],this.data.ram=[],this.data.batteryRatedCapacity=[],this.data.features=[],this.chooseData=[{code:"",name:"关键字"},{code:"",name:"设备类型"},{code:"",name:"设备分类"},{code:"",name:"设备存储"},{code:"",name:"运行内存"},{code:"",name:"特色功能"},{code:"",name:"电池容量"}]},equipmentDetail:function(t,e){var a={brandName:t,equipmentModel:e},n=this.$router.resolve({path:"equipmentDetail",query:{code:s["a"].encrypt(JSON.stringify(a))}});window.open(n.href,"_blank")},handleClose:function(t){t.code="",this.chooseData.splice(this.chooseData.findIndex((function(e){return e.name===t.name})),1,t)}},computed:{sliceList:function(){return function(t,e){if(void 0!=t){for(var a=0,n=[],i=0;i75?t.slice(0,75)+"...":t:""}}},d=c,u=(a("f132"),a("2877")),l=Object(u["a"])(d,n,i,!1,null,"8536cdde",null);e["default"]=l.exports},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,a){var n=a("1d80"),i=a("5899"),r="["+i+"]",o=RegExp("^"+r+r+"*"),s=RegExp(r+r+"*$"),c=function(t){return function(e){var a=String(n(e));return 1&t&&(a=a.replace(o,"")),2&t&&(a=a.replace(s,"")),a}};t.exports={start:c(1),end:c(2),trim:c(3)}},"5c29":function(t,e,a){"use strict";a("6375")},6375:function(t,e,a){var n=a("bb1d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("f094aa52",n,!0,{sourceMap:!1,shadowMode:!1})},7156:function(t,e,a){var n=a("861d"),i=a("d2bb");t.exports=function(t,e,a){var r,o;return i&&"function"==typeof(r=e.constructor)&&r!==a&&n(o=r.prototype)&&o!==a.prototype&&i(t,o),t}},"7db0":function(t,e,a){"use strict";var n=a("23e7"),i=a("b727").find,r=a("44d2"),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(o)},a15b:function(t,e,a){"use strict";var n=a("23e7"),i=a("44ad"),r=a("fc6a"),o=a("a640"),s=[].join,c=i!=Object,d=o("join",",");n({target:"Array",proto:!0,forced:c||!d},{join:function(t){return s.call(r(this),void 0===t?",":t)}})},a434:function(t,e,a){"use strict";var n=a("23e7"),i=a("23cb"),r=a("a691"),o=a("50c4"),s=a("7b0b"),c=a("65f0"),d=a("8418"),u=a("1dde"),l=u("splice"),f=Math.max,h=Math.min,p=9007199254740991,m="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!l},{splice:function(t,e){var a,n,u,l,g,b,v=s(this),y=o(v.length),x=i(t,y),_=arguments.length;if(0===_?a=n=0:1===_?(a=0,n=y-x):(a=_-2,n=h(f(r(e),0),y-x)),y+a-n>p)throw TypeError(m);for(u=c(v,n),l=0;ly-n+a;l--)delete v[l-1]}else if(a>n)for(l=y-n;l>x;l--)g=l+n-1,b=l+a-1,g in v?v[b]=v[g]:delete v[b];for(l=0;l2)if(d=g(d),e=d.charCodeAt(0),43===e||45===e){if(a=d.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(d.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+d}for(r=d.slice(2),o=r.length,s=0;si)return NaN;return parseInt(r,n)}return+d};if(r(b,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var C,w=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof w&&(x?l((function(){y.valueOf.call(a)})):c(a)!=b)?d(new v(_(e)),a,w):_(e)},k=n?h(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),D=0;k.length>D;D++)s(v,C=k[D])&&!s(w,C)&&m(w,C,p(v,C));w.prototype=y,y.constructor=w,o(i,b,w)}},aeeb:function(t,e,a){t.exports=a.p+"static/img/NoPic_large.4789eccc.jpg"},b0c0:function(t,e,a){var n=a("83ab"),i=a("9bf2").f,r=Function.prototype,o=r.toString,s=/^\s*function ([^ (]*)/,c="name";n&&!(c in r)&&i(r,c,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(t){return""}}})},bb1d:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".el-pagination{float:left}.el-pager li.active{background:#008cff!important}.page-container{margin:20px 0 20px 0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.first-pager:hover,.last-pager:hover{color:#3baaff!important}",""]),t.exports=e},c740:function(t,e,a){"use strict";var n=a("23e7"),i=a("b727").findIndex,r=a("44d2"),o="findIndex",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(o)},ce30:function(t,e,a){var n=a("dff8");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("bb6ddaaa",n,!0,{sourceMap:!1,shadowMode:!1})},d81d:function(t,e,a){"use strict";var n=a("23e7"),i=a("b727").map,r=a("1dde"),o=r("map");n({target:"Array",proto:!0,forced:!o},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},dff8:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".showbtn[data-v-8536cdde]{background-color:#dc3545;color:#fff;height:29px;width:66px;line-height:25px;margin:auto;padding:initial}.el-button--danger[data-v-8536cdde]{background-color:#dc3545!important;border-color:#dc3545!important}.table[data-v-8536cdde]{margin-bottom:-1px}.table th[data-v-8536cdde]{vertical-align:middle}.searchTable tr[data-v-8536cdde]{border-bottom:1px solid #dee2e6}.searchTable tr th[data-v-8536cdde]{background-color:#f8f9fa!important;text-align:center!important}.el-checkbox[data-v-8536cdde],.el-radio[data-v-8536cdde]{width:100px}.checkbox-more[data-v-8536cdde]{width:145px}.list td[data-v-8536cdde],.list th[data-v-8536cdde]{width:20%}",""]),t.exports=e},f132:function(t,e,a){"use strict";a("ce30")},f703:function(t,e,a){t.exports=a.p+"static/img/banner_search_model.b535e25a.jpg"},fb6a:function(t,e,a){"use strict";var n=a("23e7"),i=a("861d"),r=a("e8b5"),o=a("23cb"),s=a("50c4"),c=a("fc6a"),d=a("8418"),u=a("b622"),l=a("1dde"),f=l("slice"),h=u("species"),p=[].slice,m=Math.max;n({target:"Array",proto:!0,forced:!f},{slice:function(t,e){var a,n,u,l=c(this),f=s(l.length),g=o(t,f),b=o(void 0===e?f:e,f);if(r(l)&&(a=l.constructor,"function"!=typeof a||a!==Array&&!r(a.prototype)?i(a)&&(a=a[h],null===a&&(a=void 0)):a=void 0,a===Array||void 0===a))return p.call(l,g,b);for(n=new(void 0===a?Array:a)(m(b-g,0)),u=0;g