index.b9cd7b21.js 6.3 KB

1
  1. import{n as c,W as _,d as o,F as e}from"./index.4fdc1c7a.js";const p={name:"oem-company"};var C=function(){var t=this;return t._self._c,t._m(0)},f=[function(){var s=this,t=s._self._c;return t("div",{staticClass:"oem-company"},[t("ul",[t("li",{staticClass:"blue company-item"},[t("div",{staticClass:"top"},[t("div",{staticClass:"item-content"},[t("div",{staticClass:"title"},[s._v("\uD654\uC7A5\uD488 \uAE30\uCD08 \uC6A9\uAE30 \uC804\uBB38 \uC0DD\uC0B0")]),t("div",{staticClass:"name"},[s._v("\u4E0A\u6D77\u827A\u8482\u5316\u5986\u54C1\u6709\u9650\u516C\u53F8")])])]),t("div",{staticClass:"bottom"},[t("div",{staticClass:"selection"}),t("div",{staticClass:"type"},[s._v("PARK BEOM SOO")])])]),t("li",{staticClass:"red company-item"},[t("div",{staticClass:"top"},[t("div",{staticClass:"item-content"},[t("div",{staticClass:"title"},[s._v("\uD654\uC7A5\uD488 \uAE30\uCD08 \uC6A9\uAE30 \uC804\uBB38 \uC0DD\uC0B0")]),t("div",{staticClass:"name"},[s._v("\u4E0A\u6D77\u827A\u8482\u5316\u5986\u54C1\u6709\u9650\u516C\u53F8")])])]),t("div",{staticClass:"bottom"},[t("div",{staticClass:"selection"}),t("div",{staticClass:"type"},[s._v("PARK BEOM SOO")])])]),t("li",{staticClass:"yellow company-item"},[t("div",{staticClass:"top"},[t("div",{staticClass:"item-content"},[t("div",{staticClass:"title"},[s._v("\uD654\uC7A5\uD488 \uAE30\uCD08 \uC6A9\uAE30 \uC804\uBB38 \uC0DD\uC0B0")]),t("div",{staticClass:"name"},[s._v("\u4E0A\u6D77\u827A\u8482\u5316\u5986\u54C1\u6709\u9650\u516C\u53F8")])])]),t("div",{staticClass:"bottom"},[t("div",{staticClass:"selection"}),t("div",{staticClass:"type"},[s._v("PARK BEOM SOO")])])]),t("li",{staticClass:"green company-item"},[t("div",{staticClass:"top"},[t("div",{staticClass:"item-content"},[t("div",{staticClass:"title"},[s._v("\uD654\uC7A5\uD488 \uAE30\uCD08 \uC6A9\uAE30 \uC804\uBB38 \uC0DD\uC0B0")]),t("div",{staticClass:"name"},[s._v("\u4E0A\u6D77\u827A\u8482\u5316\u5986\u54C1\u6709\u9650\u516C\u53F8")])])]),t("div",{staticClass:"bottom"},[t("div",{staticClass:"selection"}),t("div",{staticClass:"type"},[s._v("PARK BEOM SOO")])])]),t("li",{staticClass:"blue company-item"},[t("div",{staticClass:"top"},[t("div",{staticClass:"item-content"},[t("div",{staticClass:"title"},[s._v("\uD654\uC7A5\uD488 \uAE30\uCD08 \uC6A9\uAE30 \uC804\uBB38 \uC0DD\uC0B0")]),t("div",{staticClass:"name"},[s._v("\u4E0A\u6D77\u827A\u8482\u5316\u5986\u54C1\u6709\u9650\u516C\u53F8")])])]),t("div",{staticClass:"bottom"},[t("div",{staticClass:"selection"}),t("div",{staticClass:"type"},[s._v("PARK BEOM SOO")])])]),t("li",{staticClass:"red company-item"},[t("div",{staticClass:"top"},[t("div",{staticClass:"item-content"},[t("div",{staticClass:"title"},[s._v("\uD654\uC7A5\uD488 \uAE30\uCD08 \uC6A9\uAE30 \uC804\uBB38 \uC0DD\uC0B0")]),t("div",{staticClass:"name"},[s._v("\u4E0A\u6D77\u827A\u8482\u5316\u5986\u54C1\u6709\u9650\u516C\u53F8")])])]),t("div",{staticClass:"bottom"},[t("div",{staticClass:"selection"}),t("div",{staticClass:"type"},[s._v("PARK BEOM SOO")])])]),t("li",{staticClass:"yellow company-item"},[t("div",{staticClass:"top"},[t("div",{staticClass:"item-content"},[t("div",{staticClass:"title"},[s._v("\uD654\uC7A5\uD488 \uAE30\uCD08 \uC6A9\uAE30 \uC804\uBB38 \uC0DD\uC0B0")]),t("div",{staticClass:"name"},[s._v("\u4E0A\u6D77\u827A\u8482\u5316\u5986\u54C1\u6709\u9650\u516C\u53F8")])])]),t("div",{staticClass:"bottom"},[t("div",{staticClass:"selection"}),t("div",{staticClass:"type"},[s._v("PARK BEOM SOO")])])]),t("li",{staticClass:"blue company-item"},[t("div",{staticClass:"top"},[t("div",{staticClass:"item-content"},[t("div",{staticClass:"title"},[s._v("\uD654\uC7A5\uD488 \uAE30\uCD08 \uC6A9\uAE30 \uC804\uBB38 \uC0DD\uC0B0")]),t("div",{staticClass:"name"},[s._v("\u4E0A\u6D77\u827A\u8482\u5316\u5986\u54C1\u6709\u9650\u516C\u53F8")])])]),t("div",{staticClass:"bottom"},[t("div",{staticClass:"selection"}),t("div",{staticClass:"type"},[s._v("PARK BEOM SOO")])])])])])}],u=c(p,C,f,!1,null,"ff5c5426",null,null);const y=u.exports;const h={name:"design",components:{Waterfall:_,CompanyList:y},data(){return{showCompany:!1,loading:!1,products:[],limit:10,page:1,totalPage:1}},mounted(){this.getProducts()},methods:{toggleShowCompany(){this.showCompany=!this.showCompany},loadData(s){this.getProducts({page:s,newload:!1})},getProducts({page:s=this.page,columnSize:t=this.columnSize,newload:i=!0}={}){this.loading=!0,this.page=s;const a=this.$t("common.failure");this.$axios.get("/api/index/product_list",{params:{type:this.types,limit:this.limit,page:s,go:t}}).then(n=>{const{code:r,msg:d=a,data:v={}}=n.data,{items:l=[],totalPage:m}=v;r==0?(this.products=i?l:refillData(this.products,l),this.totalPage=m):this.$message.error(d)}).finally(()=>{this.loading=!1})}},watch:{columnSize(s,t){this.getProducts({page:this.page,columnSize:s})},filterType(){this.getProducts({newload:!0})}},computed:{columnSize(){return this.$store.state.columnSize},types(){return this.filterType?this.isFilterTypeArray?this.filterType:o[e.oem][this.filterType]?[e.oem,o[e.oem][this.filterType]].join(","):[e.oem].join(","):""},isFilterTypeArray(){const{filter:s}=this.$route.query;return s.includes(",")},filterType(){return this.$route.query.filter},filter(){const s=JSON.parse(sessionStorage.getItem("conf_oem_filters"));let t=s.find(a=>a.id==this.filterType);const i=this.filterType.split(",");return!t&&i.length>1&&(t=s.find(a=>a.id==i[1])),t},nameKey(){return this.$store.state.nameKey}}};var g=function(){var t=this,i=t._self._c;return i("div",{staticClass:"oem"},[t.filterType?i("div",{staticClass:"header",attrs:{id:"scrollHeader"}},[i("div",{staticClass:"header-content"},[i("div",{staticClass:"left v-center"},[i("b",[t._v(t._s(t.filter&&t.filter[t.nameKey]||t.$t("common.viewAll")))]),t.filter&&t.filter.describe?i("span",[t._v(" "+t._s(t.filter.describe)+" ")]):t._e()]),i("div",{staticClass:"right"},[i("span",{on:{click:t.toggleShowCompany}},[t._v(t._s(t.showCompany?t.$t("oem.showPicture"):t.$t("oem.showCompany")))]),i("router-link",{attrs:{to:{path:"/oem",query:{filter:"all"}}}},[i("el-button",{attrs:{type:"primary",round:""}},[t._v(t._s(t.$t("common.viewAll")))])],1)],1)])]):t._e(),i("div",{staticClass:"bottom"},[t.showCompany?i("CompanyList"):[t.products.length?i("Waterfall",{attrs:{page:t.page,totalPage:t.totalPage,loading:t.loading,data:t.products},on:{loadData:t.loadData}}):t._e()]],2)])},O=[],S=c(h,g,O,!1,null,"2ffa8c86",null,null);const b=S.exports;export{b as default};