1 |
- System.register(["./index-legacy.88892f9c.js","./edit-legacy.c2dfe0c3.js"],(function(e,t){"use strict";var a,i,r,o=document.createElement("style");return o.textContent=".me-doc-setting .el-input__inner{color:var(--color-blue)}.el-input .el-input__inner{height:40px}.el-checkbox .el-checkbox__label{font-size:14px;line-height:20px}.me-doc-setting[data-v-1de45bc4]{position:relative;width:480px;height:555px;padding:40px 50px;background:var(--color-white);box-shadow:2px 2px 10px rgba(25,25,25,.2);border-radius:16px;margin:166px auto 309px;text-align:center}.me-doc-setting .top .back[data-v-1de45bc4]{position:absolute;top:28px;left:28px;cursor:pointer}.me-doc-setting .top .back img[data-v-1de45bc4]{width:46px;height:46px;border-radius:50%;box-shadow:0 0 6px rgba(0,0,0,.16)}.me-doc-setting .button[data-v-1de45bc4]{display:flex;justify-content:space-between;align-items:center}.me-doc-setting .button .el-button[data-v-1de45bc4]{width:62px;height:36px;font-size:14px;border-radius:19px}.me-doc-setting .cover[data-v-1de45bc4]{display:flex;margin-top:30px}.me-doc-setting .cover .cover-left[data-v-1de45bc4]{display:flex;margin-right:20px}.me-doc-setting .cover .cover-left .cover-item[data-v-1de45bc4]{background:#DBDBDB}.me-doc-setting .cover .cover-left .cover-item .plus-add[data-v-1de45bc4]{width:32px;height:32px}.cover-left .cover-item-left[data-v-1de45bc4]{margin-right:3px}.cover-left .cover-item-left .cover-item[data-v-1de45bc4]{width:125px;height:126px;border-radius:6px 0 0 6px;display:flex;align-items:center;justify-content:center}.cover-left .cover-item-left .cover-item img[data-v-1de45bc4]{border-radius:6px 0 0 6px}.me-doc-setting .cover .cover-right[data-v-1de45bc4]{display:flex;align-items:flex-end}.cover-left .cover-item-right .cover-item[data-v-1de45bc4]{width:64px;height:62px;display:flex;align-items:center;justify-content:center}.cover-left .cover-item-right .cover-item img[data-v-1de45bc4]{width:34px;height:34px}.cover-left .cover-item-right .cover-item[data-v-1de45bc4]:nth-child(1){border-radius:0 6px 0 0;margin-bottom:3px}.cover-left .cover-item-right .cover-item[data-v-1de45bc4]:nth-child(2){border-radius:0 0 6px}.me-doc-setting .cover .cover-right[data-v-1de45bc4]{color:var(--color-gray);font-size:14px;line-height:20px}.me-doc-setting .form[data-v-1de45bc4]{margin:25px 0 30px}.el-form-item.set[data-v-1de45bc4]{margin:21px 0 10px}.me-doc-setting .button .complete.el-button.is-disabled[data-v-1de45bc4],.me-doc-setting .button .cancel.el-button[data-v-1de45bc4]{color:var(--color-black);background:#F8F8FA;font-size:14px;border:1px solid #F8F8FA}.me-doc-setting .button .complete.el-button.is-disabled[data-v-1de45bc4]{opacity:1}.me-doc-setting .button .complete.el-button[data-v-1de45bc4]{color:#fff;background:#FF3120;border:1px solid #FF3120}\n",document.head.appendChild(o),{setters:[function(e){a=e.n,i=e._},function(e){r=e._}],execute:function(){e("default",a({name:"me-doc-setting",data:function(){return{data:{},form:{data:{name:"",images:[],is_private:0,is_del:0},rules:{}}}},mounted:function(){var e=this,t=this.$t("common.failure");this.$axios.get("/api/folder/folder_detail",{params:{id:this.id}}).then((function(a){var i=a.data,r=i.code,o=i.msg,s=i.data,d=void 0===s?{}:s;if(0==r){var c=d.name,l=d.images,n=d.is_private,m=d.is_del;e.form.data.name=c,e.form.data.images=l,e.form.data.is_private=1==n,e.form.data.is_del=m}else e.$message.error(o||t)}))},methods:{onSubmit:function(){var e=this,t=this.form.data,a=t.name,i=t.images,r=t.is_private,o=t.is_del,s=this.$t("common.failure");this.$axios.post("/api/folder/edit_folder",{id:this.id,images:i,name:a,is_private:r,is_del:o}).then((function(t){var a=t.data,i=a.code,r=a.msg;a.data,0==i?(e.$message.success(r),e.$router.push({path:"/me/profile"})):e.$message.error(r||s)}))}},computed:{id:function(){var e=this.$route.query.id;return parseInt(e)},disabled:function(){return!this.form.data.name}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"me-doc-setting"},[t("div",{staticClass:"top"},[t("div",{staticClass:"back"},[t("router-link",{attrs:{to:"/me/profile"}},[t("img",{attrs:{src:i,alt:"back icon"}})])],1),t("b",[e._v(e._s(e.$t("me.profile.docSetting.title")))])]),t("div",{staticClass:"cover"},[t("div",{staticClass:"cover-left"},[t("div",{staticClass:"cover-item-left"},[t("div",{staticClass:"cover-item"},[e.form.data.images&&e.form.data.images.length?t("img",{attrs:{src:e.form.data.images[0],alt:"edit"}}):t("img",{staticClass:"plus-add",attrs:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAA/CAYAAABXXxDfAAAAAXNSR0IArs4c6QAAAp9JREFUaEPtWT1rFFEUPWdmN2tkP2Z3XZPZIEFREMHCxkIxIvkPsUgnErWySGklWIpoFwmYJo0pLGwV0cpKEBvBELWQWROTmR0/osjuXNkVgyS7U+08huXOD7j3nDPvnTNzL2H4mSgUqtGIfY/CKRAHRPBBEC199sPbhqGAJhuO5fMHrVzmDcGxPX1Fljy/eckkHqPk3aqzTHC2H8F2K5peD8NnpgQwTL78g8D+fuREcL/hB1eHjrzrOJO0+TGWmOCl5wdnho58rVg8ls3a7+LJy2vPb55S8gYUMHbn9c3rsY85z6J3Xg3PgN+Z+7xVw1PDU8PrrYC6vX7emjB7dXsjKmvUadRp1GnU9Zjg6iTHiAMDGnU7Qtcro4cg+yYjkcyg1Sc5QQvL8XVlNWpjbtC9u/XsaLvFr283N/HtX/3uDK9eLRwXyayQOJlI4xQVFWCBW8G8B2xzPJ+vWSPZVRClFGFMFopgxfODi3QrziLJy8l2S2H1COc65NdIHkkhvGQhidxkveIEIJ1kO6WvevfuuxXnBcmp9MFLFpFE0TWOV0ozFq2HybZKWXUR/xeah7tR51acuySvpwxiInAE8oUis54fPtnZ1dWKxaOZrD0DwXlQcgPvLBgleTqurgDfAXk18N6dT1nhugge20Hw6BPws9NDF5VJKL27pk5ydJITc850bq9zexM2pG5vRGV1e3V7dfveCmjUadQZMWH9sTEhs0adRp1GnUbdHgU05zXnTQSQ/tIaUbm7Dc5lN+JH1/K8sdW8YASQydF1h1C9WvY6O5J+5ETkTsNvzg8lebdavkHgVk9yIr9bbTmxEYZrQ0n+79t3ngKc3k1QJJpr+OGiKeJGNzb/k3LLpSuweBbCGhm9lxYeNMIwkTVVnJh/AD1l0CqeaIn2AAAAAElFTkSuQmCC"}})])]),t("div",{staticClass:"cover-item-right"},[t("div",{staticClass:"cover-item"}),t("div",{staticClass:"cover-item"},[t("router-link",{attrs:{to:{path:"/me/changeCover",query:{id:e.id}}}},[t("img",{attrs:{src:r,alt:"edit"}})])],1)])]),t("div",{staticClass:"cover-right"},[e._v(" "+e._s(e.$t("me.profile.docSetting.modify"))+" ")])]),t("div",{staticClass:"form"},[t("el-form",{ref:"form",attrs:{model:e.form.data,rules:e.form.rules}},[t("el-form-item",{staticClass:"name",attrs:{prop:"name",label:e.$t("common.title")}},[t("el-input",{attrs:{clearable:""},model:{value:e.form.data.name,callback:function(t){e.$set(e.form.data,"name",t)},expression:"form.data.name"}})],1),t("el-form-item",{staticClass:"set"},[t("el-checkbox",{model:{value:e.form.data.is_private,callback:function(t){e.$set(e.form.data,"is_private",t)},expression:"form.data.is_private"}},[e._v(" "+e._s(e.$t("me.profile.createDoc.secretTip1"))+" "),t("br"),e._v(" "+e._s(e.$t("me.profile.createDoc.secretTip2"))+" ")])],1),t("el-form-item",[t("el-checkbox",{model:{value:e.form.data.is_del,callback:function(t){e.$set(e.form.data,"is_del",t)},expression:"form.data.is_del"}},[e._v(" "+e._s(e.$t("me.profile.docSetting.deleteTip1"))+" "),t("br"),e._v(" "+e._s(e.$t("me.profile.docSetting.deleteTip2"))+" "),t("br"),e._v(" "+e._s(e.$t("me.profile.docSetting.deleteTip3"))+" ")])],1)],1)],1),t("div",{staticClass:"button"},[t("router-link",{attrs:{to:"/me/profile"}},[t("el-button",{staticClass:"cancel",attrs:{type:"primary",round:""}},[e._v(e._s(e.$t("common.cancel")))])],1),t("router-link",{attrs:{to:"/me/profile"}},[t("el-button",{staticClass:"complete",attrs:{type:"primary",round:"",disabled:e.disabled},on:{click:e.onSubmit}},[e._v(e._s(e.$t("common.complete")))])],1)],1)])}),[],!1,null,"1de45bc4",null,null).exports)}}}));
|