System.register(["./index-legacy.a084919e.js","./index-legacy.dc002958.js"],(function(t,e){"use strict";var a,i,o,r,s=document.createElement("style");return s.textContent=".el-input .el-input__inner{height:40px}.el-checkbox .el-checkbox__label{font-size:14px;line-height:20px}.me-folder[data-v-a2ff71cb]{position:relative;width:700px;height:625px;padding:40px 20px 20px;background:var(--color-white);box-shadow:2px 2px 10px rgba(25,25,25,.2);border-radius:16px;margin:120px auto 206px;text-align:center}.me-folder .pictures[data-v-a2ff71cb]{margin:30px 0;display:flex;overflow:auto}.me-folder .top .back[data-v-a2ff71cb]{position:absolute;top:28px;left:20px;cursor:pointer}.me-folder .top .back img[data-v-a2ff71cb]{width:46px;height:46px;border-radius:50%;box-shadow:0 0 6px rgba(0,0,0,.16)}.pictures .column-item[data-v-a2ff71cb]{width:122px;margin-right:12px}.pictures .column-item[data-v-a2ff71cb]:nth-child(5){margin-right:0}.column-item .list-item[data-v-a2ff71cb]{position:relative;margin-bottom:12px}.column-item .list-item img.image[data-v-a2ff71cb]{width:100%;height:auto;border-radius:8px}.column-item .list-item img.select[data-v-a2ff71cb]{position:absolute;top:10px;left:10px;width:26px;height:26px}\n",document.head.appendChild(s),{setters:[function(t){a=t.n,i=t.r,o=t._},function(t){r=t.W}],execute:function(){var e={name:"me-folder",components:{Waterfall:r},data:function(){return{images:[],limit:5,page:1,totalPage:1}},mounted:function(){this.getImages()},methods:{goBack:function(){this.$router.go(-1)},loadData:function(t){this.getImages({page:t,newload:!1})},onSelected:function(t){var e=this,a=t[0].image,i=this.$t("common.failure");this.$axios.post("/api/folder/edit_folder",{images:[a],id:this.id}).then((function(t){var a=t.data,o=a.code,r=a.msg;0==o?(e.$message.success(r),e.$router.push({path:"/me/docSetting",query:{id:e.id}})):e.$message.error(r||i)})).catch((function(){e.$message.error(i)}))},getImages:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.page,o=void 0===a?this.page:a,r=e.newload,s=void 0===r||r,n=this.$t("common.failure");this.$axios.get("/api/folder/image_list",{params:{page:o,limit:this.limit,folder_id:this.id,go:5}}).then((function(e){var a=e.data,o=a.code,r=a.msg,c=a.data,d=void 0===c?{}:c;if(0==o){var l=d.items,m=void 0===l?[]:l,g=d.page,p=d.totalPage;t.page=g,t.images=s?m:i(t.images,m),t.totalPage=p}else t.$message.error(r||n)})).catch((function(){t.$message.error(n)}))}},computed:{id:function(){var t=this.$route.query.id;return parseInt(t)},folderName:function(){return this.$route.query.name}}};t("default",a(e,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"me-folder"},[e("div",{staticClass:"top"},[e("div",{staticClass:"back",on:{click:t.goBack}},[e("img",{attrs:{src:o,alt:"back icon"}})]),e("b",[t._v(t._s(t.folderName))])]),e("div",{staticClass:"pictures"},[t.images.length?e("Waterfall",{attrs:{data:t.images,page:t.page,totalPage:t.totalPage},on:{loadData:t.loadData,selected:t.onSelected}}):t._e()],1)])}),[],!1,null,"a2ff71cb",null,null).exports)}}}));
