1 |
- import{n as l,W as m,F as e}from"./index.4fdc1c7a.js";const _={name:"design-company"};var C=function(){var t=this;return t._self._c,t._m(0)},p=[function(){var s=this,t=s._self._c;return t("div",{staticClass:"design-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=l(_,C,p,!1,null,"a046e4e1",null,null);const y=u.exports;const f={name:"design",components:{Waterfall:m,CompanyList:y},data(){return{showCompany:!1,loading:!1,products:[],limit:10,page:1,totalPage:1}},mounted(){this.getProducts()},watch:{columnSize(s,t){this.getProducts({page:this.page,columnSize:s})},filterType(){this.getProducts({newload:!0})}},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 o=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:c,msg:d=o,data:r={}}=n.data,{items:a=[],totalPage:v}=r;c==0?(this.products=i?a:refillData(this.products,a),this.totalPage=v):this.$message.error(d)}).finally(()=>{this.loading=!1})}},computed:{columnSize(){return this.$store.state.columnSize},types(){if(this.filterType)return this.filterType==="all"?[e.design].join(","):[e.design,this.filterType].join(",")},nameKey(){return this.$store.state.nameKey},filterType(){return this.$route.query.filter},filter(){return JSON.parse(sessionStorage.getItem("conf_design_filters")).find(i=>i.id==this.filterType)}}};var h=function(){var t=this,i=t._self._c;return i("div",{staticClass:"design"},[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("design.showPicture"):t.$t("design.showCompany")))]),i("router-link",{attrs:{to:{path:"/design",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)])},g=[],O=l(f,h,g,!1,null,"614850da",null,null);const S=O.exports;export{S as default};
|