Commit 8e291716 authored by Davve's avatar Davve

build

parent a6d19380
This diff is collapsed.
.createPost-container[data-v-4dc4bd33]{position:relative}.createPost-container .createPost-main-container[data-v-4dc4bd33]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-4dc4bd33]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-4dc4bd33]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-4dc4bd33]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-4dc4bd33]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-4dc4bd33]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-4dc4bd33]{display:inline-block}.createPost-container .word-counter[data-v-4dc4bd33]{width:40px;position:absolute;right:-10px;top:0} .createPost-container[data-v-0e78771b]{position:relative}.createPost-container .createPost-main-container[data-v-0e78771b]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-0e78771b]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-0e78771b]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-0e78771b]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-0e78771b]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-0e78771b]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-0e78771b]{display:inline-block}.createPost-container .word-counter[data-v-0e78771b]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file \ No newline at end of file
@supports (-webkit-mask:none) and (not (cater-color:#fff)){.login-container .el-input input{color:#fff}.login-container .el-input input:first-line{color:#eee}}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;-webkit-appearance:none;border-radius:0;padding:12px 5px 12px 15px;color:#eee;height:47px;caret-color:#fff}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #283443 inset!important;-webkit-text-fill-color:#fff!important}.login-container .el-form-item{border:1px solid hsla(0,0%,100%,.1);background:rgba(0,0,0,.1);border-radius:5px;color:#454545}.login-container[data-v-3b1477bc]{position:fixed;height:100%;width:100%;background-color:#2d3a4b}.login-container .login-form[data-v-3b1477bc]{position:absolute;left:0;right:0;width:520px;max-width:100%;padding:35px 35px 15px;margin:120px auto}.login-container .tips[data-v-3b1477bc]{font-size:14px;color:#fff;margin-bottom:10px}.login-container .tips span[data-v-3b1477bc]:first-of-type{margin-right:16px}.login-container .svg-container[data-v-3b1477bc]{padding:6px 5px 6px 15px;color:#889aa4;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container[data-v-3b1477bc]{position:relative}.login-container .title-container .title[data-v-3b1477bc]{font-size:26px;color:#eee;margin:0 auto 40px;text-align:center;font-weight:700}.login-container .title-container .set-language[data-v-3b1477bc]{color:#fff;position:absolute;top:5px;right:0}.login-container .show-pwd[data-v-3b1477bc]{position:absolute;right:10px;top:7px;font-size:16px;color:#889aa4;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.login-container .thirdparty-button[data-v-3b1477bc]{position:absolute;right:35px;bottom:28px} @supports (-webkit-mask:none) and (not (cater-color:#fff)){.login-container .el-input input{color:#fff}.login-container .el-input input:first-line{color:#eee}}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;-webkit-appearance:none;border-radius:0;padding:12px 5px 12px 15px;color:#eee;height:47px;caret-color:#fff}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #283443 inset!important;-webkit-text-fill-color:#fff!important}.login-container .el-form-item{border:1px solid hsla(0,0%,100%,.1);background:rgba(0,0,0,.1);border-radius:5px;color:#454545}.login-container[data-v-323c0aa2]{position:fixed;height:100%;width:100%;background-color:#2d3a4b}.login-container .login-form[data-v-323c0aa2]{position:absolute;left:0;right:0;width:520px;max-width:100%;padding:35px 35px 15px;margin:120px auto}.login-container .tips[data-v-323c0aa2]{font-size:14px;color:#fff;margin-bottom:10px}.login-container .tips span[data-v-323c0aa2]:first-of-type{margin-right:16px}.login-container .svg-container[data-v-323c0aa2]{padding:6px 5px 6px 15px;color:#889aa4;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container[data-v-323c0aa2]{position:relative}.login-container .title-container .title[data-v-323c0aa2]{font-size:26px;color:#eee;margin:0 auto 40px;text-align:center;font-weight:700}.login-container .title-container .set-language[data-v-323c0aa2]{color:#fff;position:absolute;top:5px;right:0}.login-container .show-pwd[data-v-323c0aa2]{position:absolute;right:10px;top:7px;font-size:16px;color:#889aa4;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.login-container .thirdparty-button[data-v-323c0aa2]{position:absolute;right:35px;bottom:28px}
\ No newline at end of file \ No newline at end of file
.editor-slide-upload[data-v-39480e6e]{margin-bottom:20px}.editor-slide-upload[data-v-39480e6e] .el-upload--picture-card{width:100%}.tinymce-container[data-v-261f5e1f]{position:relative}.tinymce-container[data-v-261f5e1f] .mce-fullscreen{z-index:10000}.tinymce-textarea[data-v-261f5e1f]{visibility:hidden;z-index:-1}.editor-custom-btn-container[data-v-261f5e1f]{position:absolute;right:4px;top:4px}.fullscreen .editor-custom-btn-container[data-v-261f5e1f]{z-index:10000;position:fixed}.editor-upload-btn[data-v-261f5e1f]{display:inline-block}.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.createPost-container[data-v-e0866ffc]{position:relative}.createPost-container .createPost-main-container[data-v-e0866ffc]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-e0866ffc]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-e0866ffc]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-e0866ffc]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-e0866ffc]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-e0866ffc]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-e0866ffc]{display:inline-block}.createPost-container .word-counter[data-v-e0866ffc]{width:40px;position:absolute;right:-10px;top:0} .editor-slide-upload[data-v-39480e6e]{margin-bottom:20px}.editor-slide-upload[data-v-39480e6e] .el-upload--picture-card{width:100%}.tinymce-container[data-v-261f5e1f]{position:relative}.tinymce-container[data-v-261f5e1f] .mce-fullscreen{z-index:10000}.tinymce-textarea[data-v-261f5e1f]{visibility:hidden;z-index:-1}.editor-custom-btn-container[data-v-261f5e1f]{position:absolute;right:4px;top:4px}.fullscreen .editor-custom-btn-container[data-v-261f5e1f]{z-index:10000;position:fixed}.editor-upload-btn[data-v-261f5e1f]{display:inline-block}.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.createPost-container[data-v-f61e6ee6]{position:relative}.createPost-container .createPost-main-container[data-v-f61e6ee6]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-f61e6ee6]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-f61e6ee6]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-f61e6ee6]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-f61e6ee6]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-f61e6ee6]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-f61e6ee6]{display:inline-block}.createPost-container .word-counter[data-v-f61e6ee6]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file \ No newline at end of file
.createPost-container[data-v-5976e6d0]{position:relative}.createPost-container .createPost-main-container[data-v-5976e6d0]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-5976e6d0]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-5976e6d0]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-5976e6d0]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-5976e6d0]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-5976e6d0]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-5976e6d0]{display:inline-block}.createPost-container .word-counter[data-v-5976e6d0]{width:40px;position:absolute;right:-10px;top:0} .createPost-container[data-v-24c2af7e]{position:relative}.createPost-container .createPost-main-container[data-v-24c2af7e]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-24c2af7e]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-24c2af7e]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-24c2af7e]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-24c2af7e]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-24c2af7e]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-24c2af7e]{display:inline-block}.createPost-container .word-counter[data-v-24c2af7e]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file \ No newline at end of file
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.edit-input[data-v-79477fd2]{padding-right:100px}.cancel-btn[data-v-79477fd2]{position:absolute;right:15px;top:10px} .waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.edit-input[data-v-3999c578]{padding-right:100px}.cancel-btn[data-v-3999c578]{position:absolute;right:15px;top:10px}
\ No newline at end of file \ No newline at end of file
.createPost-container[data-v-4dc4bd33]{position:relative}.createPost-container .createPost-main-container[data-v-4dc4bd33]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-4dc4bd33]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-4dc4bd33]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-4dc4bd33]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-4dc4bd33]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-4dc4bd33]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-4dc4bd33]{display:inline-block}.createPost-container .word-counter[data-v-4dc4bd33]{width:40px;position:absolute;right:-10px;top:0} .createPost-container[data-v-0e78771b]{position:relative}.createPost-container .createPost-main-container[data-v-0e78771b]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-0e78771b]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-0e78771b]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-0e78771b]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-0e78771b]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-0e78771b]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-0e78771b]{display:inline-block}.createPost-container .word-counter[data-v-0e78771b]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file \ No newline at end of file
.createPost-container[data-v-5976e6d0]{position:relative}.createPost-container .createPost-main-container[data-v-5976e6d0]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-5976e6d0]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-5976e6d0]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-5976e6d0]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-5976e6d0]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-5976e6d0]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-5976e6d0]{display:inline-block}.createPost-container .word-counter[data-v-5976e6d0]{width:40px;position:absolute;right:-10px;top:0} .createPost-container[data-v-24c2af7e]{position:relative}.createPost-container .createPost-main-container[data-v-24c2af7e]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-24c2af7e]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-24c2af7e]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-24c2af7e]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-24c2af7e]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-24c2af7e]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-24c2af7e]{display:inline-block}.createPost-container .word-counter[data-v-24c2af7e]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0e95"],{"4NrL":function(t,e,a){"use strict";a.r(e);var n={name:"EditAccount",components:{AccountDetail:a("Ytwa").a}},r=a("KHd+"),o=Object(r.a)(n,function(){var t=this.$createElement;return(this._self._c||t)("account-detail",{attrs:{"is-edit":!0}})},[],!1,null,null,null);o.options.__file="edit.vue";e.default=o.exports},"704n":function(t,e,a){"use strict";var n=a("z4zC");a.n(n).a},VyMG:function(t,e,a){"use strict";a.d(e,"d",function(){return r}),a.d(e,"b",function(){return o}),a.d(e,"a",function(){return s}),a.d(e,"c",function(){return i});var n=a("t3Un");function r(t){return Object(n.a)({url:"/api/account/list",method:"get",params:t})}function o(t){return Object(n.a)({url:"/api/account/list/update",method:"post",data:t})}function s(t){return Object(n.a)({url:"/api/account/create",method:"post",data:t})}function i(t){return Object(n.a)({url:"/api/account/detail",method:"get",params:{id:t}})}},Yfch:function(t,e,a){"use strict";function n(t){return/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(t)}a.d(e,"a",function(){return n})},Ytwa:function(t,e,a){"use strict";var n=a("P2sY"),r=a.n(n),o=a("Grqa"),s=a("uARZ"),i=(a("Yfch"),a("VyMG")),u=a("gg54"),c={status:"draft",username:"",password:"",email:"",phone:"",nick_name:""},m={name:"GroupDetail",components:{MDinput:o.a,Sticky:s.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,n){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),n(new Error(e.field+"为必传项"))):n()};return{postForm:r()({},c),loading:!1,userListOptions:[],rules:{username:[{validator:e}],nick_name:[{validator:e}],email:[{validator:e}],password:[{validator:e}],phone:[{validator:e}]}}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=r()({},c);this.tempRoute=r()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(i.c)(t).then(function(t){e.postForm=t.data.data.data}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,Object(i.a)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/account/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},getRemoteUserList:function(t){var e=this;Object(u.e)(t).then(function(t){t.data.items&&(e.userListOptions=t.data.items.map(function(t){return t.name}))})}}},l=(a("704n"),a("KHd+")),p=Object(l.a)(m,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"createPost-container"},[a("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar "+t.postForm.status}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:t.submitForm}},[t._v("保存")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",[a("el-col",{attrs:{span:24}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"username"}},[a("MDinput",{attrs:{maxlength:100,name:"username",required:"",disabled:"disabled"},model:{value:t.postForm.username,callback:function(e){t.$set(t.postForm,"username",e)},expression:"postForm.username"}},[t._v("\n 账号\n ")])],1):a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"username"}},[a("MDinput",{attrs:{maxlength:100,name:"username",required:""},model:{value:t.postForm.username,callback:function(e){t.$set(t.postForm,"username",e)},expression:"postForm.username"}},[t._v("\n 账号\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"password"}},[a("MDinput",{attrs:{maxlength:100,name:"password",required:"",disabled:"disabled"},model:{value:t.postForm.password,callback:function(e){t.$set(t.postForm,"password",e)},expression:"postForm.password"}},[t._v("\n 密码\n ")])],1):a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"password"}},[a("MDinput",{attrs:{maxlength:100,name:"password",required:""},model:{value:t.postForm.password,callback:function(e){t.$set(t.postForm,"password",e)},expression:"postForm.password"}},[t._v("\n 密码\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"email"}},[a("MDinput",{attrs:{maxlength:100,name:"email",required:""},model:{value:t.postForm.email,callback:function(e){t.$set(t.postForm,"email",e)},expression:"postForm.email"}},[t._v("\n 邮箱\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"nick_name"}},[a("MDinput",{attrs:{maxlength:100,name:"nick_name",required:""},model:{value:t.postForm.nick_name,callback:function(e){t.$set(t.postForm,"nick_name",e)},expression:"postForm.nick_name"}},[t._v("\n 姓名\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"phone"}},[a("MDinput",{attrs:{maxlength:100,name:"phone",required:""},model:{value:t.postForm.phone,callback:function(e){t.$set(t.postForm,"phone",e)},expression:"postForm.phone"}},[t._v("\n 电话\n ")])],1)],1)],1)],1)],1)],1)},[],!1,null,"0e78771b",null);p.options.__file="AccountDetail.vue";e.a=p.exports},gg54:function(t,e,a){"use strict";a.d(e,"e",function(){return r}),a.d(e,"b",function(){return o}),a.d(e,"d",function(){return s}),a.d(e,"c",function(){return i}),a.d(e,"a",function(){return u});var n=a("t3Un");function r(t){return Object(n.a)({url:"/api/search/user",method:"get",params:{name:t}})}function o(t){return Object(n.a)({url:"/api/search/group",method:"get",params:{name:t}})}function s(t){return Object(n.a)({url:"/api/search/tag",method:"get",params:{name:t}})}function i(t){return Object(n.a)({url:"/api/search/star",method:"get",params:{name:t}})}function u(t){return Object(n.a)({url:"/api/search/city",method:"get",params:{name:t}})}},z4zC:function(t,e,a){}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1449"],{VeNG:function(e,n,t){"use strict";var o=t("iRsz");t.n(o).a},c11S:function(e,n,t){"use strict";var o=t("gTgX");t.n(o).a},gTgX:function(e,n,t){},iRsz:function(e,n,t){},ntYl:function(e,n,t){"use strict";t.r(n);var o={name:"Login",data:function(){return{loginForm:{username:"",password:""},loginRules:{username:[{required:!0,trigger:"blur",validator:function(e,n,t){n?t():t(new Error("Please enter the correct user name"))}}],password:[{required:!0,trigger:"blur",validator:function(e,n,t){n.length<5?t(new Error("The password can not be less than 6 digits")):t()}}]},passwordType:"password",loading:!1,showDialog:!1,redirect:void 0}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},created:function(){},destroyed:function(){},methods:{showPwd:function(){"password"===this.passwordType?this.passwordType="":this.passwordType="password"},handleLogin:function(){var e=this;this.$refs.loginForm.validate(function(n){if(!n)return console.log("error submit!!"),!1;e.loading=!0,e.$store.dispatch("LoginByUsername",e.loginForm).then(function(){e.loading=!1,e.$router.push({path:e.redirect||"/"})}).catch(function(){e.loading=!1})})}}},s=(t("c11S"),t("VeNG"),t("KHd+")),r=Object(s.a)(o,function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"login-container"},[t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,"auto-complete":"on","label-position":"left"}},[t("div",{staticClass:"title-container"},[t("h3",{staticClass:"title"},[e._v("更美社区管理后台")])]),e._v(" "),t("el-form-item",{attrs:{prop:"username"}},[t("span",{staticClass:"svg-container"},[t("svg-icon",{attrs:{"icon-class":"user"}})],1),e._v(" "),t("el-input",{attrs:{placeholder:e.$t("login.username"),name:"username",type:"text","auto-complete":"on"},model:{value:e.loginForm.username,callback:function(n){e.$set(e.loginForm,"username",n)},expression:"loginForm.username"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"password"}},[t("span",{staticClass:"svg-container"},[t("svg-icon",{attrs:{"icon-class":"password"}})],1),e._v(" "),t("el-input",{attrs:{type:e.passwordType,placeholder:e.$t("login.password"),name:"password","auto-complete":"on"},nativeOn:{keyup:function(n){return"button"in n||!e._k(n.keyCode,"enter",13,n.key,"Enter")?e.handleLogin(n):null}},model:{value:e.loginForm.password,callback:function(n){e.$set(e.loginForm,"password",n)},expression:"loginForm.password"}}),e._v(" "),t("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[t("svg-icon",{attrs:{"icon-class":"eye"}})],1)],1),e._v(" "),t("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(n){return n.preventDefault(),e.handleLogin(n)}}},[e._v(e._s(e.$t("login.logIn")))])],1)],1)},[],!1,null,"323c0aa2",null);r.options.__file="index.vue";n.default=r.exports}}]);
\ No newline at end of file
This diff is collapsed.
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1f32"],{"4NrL":function(t,e,a){"use strict";a.r(e);var n={name:"EditAccount",components:{AccountDetail:a("Ytwa").a}},r=a("KHd+"),o=Object(r.a)(n,function(){var t=this.$createElement;return(this._self._c||t)("account-detail",{attrs:{"is-edit":!0}})},[],!1,null,null,null);o.options.__file="edit.vue";e.default=o.exports},EDUd:function(t,e,a){"use strict";var n=a("QaUQ");a.n(n).a},QaUQ:function(t,e,a){},VyMG:function(t,e,a){"use strict";a.d(e,"d",function(){return r}),a.d(e,"b",function(){return o}),a.d(e,"a",function(){return s}),a.d(e,"c",function(){return i});var n=a("t3Un");function r(t){return Object(n.a)({url:"/api/account/list",method:"get",params:t})}function o(t){return Object(n.a)({url:"/api/account/list/update",method:"post",data:t})}function s(t){return Object(n.a)({url:"/api/account/create",method:"post",data:t})}function i(t){return Object(n.a)({url:"/api/account/detail",method:"get",params:{id:t}})}},Yfch:function(t,e,a){"use strict";function n(t){return/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(t)}a.d(e,"a",function(){return n})},Ytwa:function(t,e,a){"use strict";var n=a("P2sY"),r=a.n(n),o=a("Grqa"),s=a("uARZ"),i=(a("Yfch"),a("VyMG")),u=a("gg54"),c={status:"draft",username:"",password:"",email:"",phone:"",nick_name:""},m={name:"GroupDetail",components:{MDinput:o.a,Sticky:s.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,n){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),n(new Error(e.field+"为必传项"))):n()};return{postForm:r()({},c),loading:!1,userListOptions:[],rules:{username:[{validator:e}],nick_name:[{validator:e}],email:[{validator:e}],password:[{validator:e}],phone:[{validator:e}]}}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=r()({},c);this.tempRoute=r()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(i.c)(t).then(function(t){e.postForm=t.data.data.data}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,Object(i.a)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/account/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},getRemoteUserList:function(t){var e=this;Object(u.f)(t).then(function(t){t.data.items&&(e.userListOptions=t.data.items.map(function(t){return t.name}))})}}},l=(a("EDUd"),a("KHd+")),p=Object(l.a)(m,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"createPost-container"},[a("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar "+t.postForm.status}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:t.submitForm}},[t._v("保存")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"username"}},[a("MDinput",{attrs:{maxlength:100,name:"username",required:""},model:{value:t.postForm.username,callback:function(e){t.$set(t.postForm,"username",e)},expression:"postForm.username"}},[t._v("\n 账号\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"password"}},[a("MDinput",{attrs:{maxlength:100,name:"password",required:""},model:{value:t.postForm.password,callback:function(e){t.$set(t.postForm,"password",e)},expression:"postForm.password"}},[t._v("\n 密码\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"email"}},[a("MDinput",{attrs:{maxlength:100,name:"email",required:""},model:{value:t.postForm.email,callback:function(e){t.$set(t.postForm,"email",e)},expression:"postForm.email"}},[t._v("\n 邮箱\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"nick_name"}},[a("MDinput",{attrs:{maxlength:100,name:"nick_name",required:""},model:{value:t.postForm.nick_name,callback:function(e){t.$set(t.postForm,"nick_name",e)},expression:"postForm.nick_name"}},[t._v("\n 姓名\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"phone"}},[a("MDinput",{attrs:{maxlength:100,name:"phone",required:""},model:{value:t.postForm.phone,callback:function(e){t.$set(t.postForm,"phone",e)},expression:"postForm.phone"}},[t._v("\n 电话\n ")])],1)],1)],1)],1)],1)],1)},[],!1,null,"5976e6d0",null);p.options.__file="AccountDetail.vue";e.a=p.exports},gg54:function(t,e,a){"use strict";a.d(e,"f",function(){return r}),a.d(e,"b",function(){return o}),a.d(e,"c",function(){return s}),a.d(e,"e",function(){return i}),a.d(e,"d",function(){return u}),a.d(e,"a",function(){return c});var n=a("t3Un");function r(t){return Object(n.a)({url:"/api/search/user",method:"get",params:{name:t}})}function o(t){return Object(n.a)({url:"/api/search/group",method:"get",params:{name:t}})}function s(t){return Object(n.a)({url:"/api/search/region",method:"get",params:{name:t}})}function i(t){return Object(n.a)({url:"/api/search/tag",method:"get",params:{name:t}})}function u(t){return Object(n.a)({url:"/api/search/star",method:"get",params:{name:t}})}function c(t){return Object(n.a)({url:"/api/search/city",method:"get",params:{name:t}})}}}]);
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7175"],{EDUd:function(t,e,a){"use strict";var n=a("QaUQ");a.n(n).a},Htjz:function(t,e,a){"use strict";a.r(e);var n={name:"CreateAccount",components:{AccountDetail:a("Ytwa").a}},r=a("KHd+"),o=Object(r.a)(n,function(){var t=this.$createElement;return(this._self._c||t)("account-detail",{attrs:{"is-edit":!1}})},[],!1,null,null,null);o.options.__file="create.vue";e.default=o.exports},QaUQ:function(t,e,a){},VyMG:function(t,e,a){"use strict";a.d(e,"d",function(){return r}),a.d(e,"b",function(){return o}),a.d(e,"a",function(){return s}),a.d(e,"c",function(){return i});var n=a("t3Un");function r(t){return Object(n.a)({url:"/api/account/list",method:"get",params:t})}function o(t){return Object(n.a)({url:"/api/account/list/update",method:"post",data:t})}function s(t){return Object(n.a)({url:"/api/account/create",method:"post",data:t})}function i(t){return Object(n.a)({url:"/api/account/detail",method:"get",params:{id:t}})}},Yfch:function(t,e,a){"use strict";function n(t){return/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(t)}a.d(e,"a",function(){return n})},Ytwa:function(t,e,a){"use strict";var n=a("P2sY"),r=a.n(n),o=a("Grqa"),s=a("uARZ"),i=(a("Yfch"),a("VyMG")),u=a("gg54"),c={status:"draft",username:"",password:"",email:"",phone:"",nick_name:""},m={name:"GroupDetail",components:{MDinput:o.a,Sticky:s.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,n){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),n(new Error(e.field+"为必传项"))):n()};return{postForm:r()({},c),loading:!1,userListOptions:[],rules:{username:[{validator:e}],nick_name:[{validator:e}],email:[{validator:e}],password:[{validator:e}],phone:[{validator:e}]}}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=r()({},c);this.tempRoute=r()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(i.c)(t).then(function(t){e.postForm=t.data.data.data}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,Object(i.a)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/account/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},getRemoteUserList:function(t){var e=this;Object(u.f)(t).then(function(t){t.data.items&&(e.userListOptions=t.data.items.map(function(t){return t.name}))})}}},l=(a("EDUd"),a("KHd+")),p=Object(l.a)(m,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"createPost-container"},[a("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar "+t.postForm.status}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:t.submitForm}},[t._v("保存")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"username"}},[a("MDinput",{attrs:{maxlength:100,name:"username",required:""},model:{value:t.postForm.username,callback:function(e){t.$set(t.postForm,"username",e)},expression:"postForm.username"}},[t._v("\n 账号\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"password"}},[a("MDinput",{attrs:{maxlength:100,name:"password",required:""},model:{value:t.postForm.password,callback:function(e){t.$set(t.postForm,"password",e)},expression:"postForm.password"}},[t._v("\n 密码\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"email"}},[a("MDinput",{attrs:{maxlength:100,name:"email",required:""},model:{value:t.postForm.email,callback:function(e){t.$set(t.postForm,"email",e)},expression:"postForm.email"}},[t._v("\n 邮箱\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"nick_name"}},[a("MDinput",{attrs:{maxlength:100,name:"nick_name",required:""},model:{value:t.postForm.nick_name,callback:function(e){t.$set(t.postForm,"nick_name",e)},expression:"postForm.nick_name"}},[t._v("\n 姓名\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"phone"}},[a("MDinput",{attrs:{maxlength:100,name:"phone",required:""},model:{value:t.postForm.phone,callback:function(e){t.$set(t.postForm,"phone",e)},expression:"postForm.phone"}},[t._v("\n 电话\n ")])],1)],1)],1)],1)],1)],1)},[],!1,null,"5976e6d0",null);p.options.__file="AccountDetail.vue";e.a=p.exports},gg54:function(t,e,a){"use strict";a.d(e,"f",function(){return r}),a.d(e,"b",function(){return o}),a.d(e,"c",function(){return s}),a.d(e,"e",function(){return i}),a.d(e,"d",function(){return u}),a.d(e,"a",function(){return c});var n=a("t3Un");function r(t){return Object(n.a)({url:"/api/search/user",method:"get",params:{name:t}})}function o(t){return Object(n.a)({url:"/api/search/group",method:"get",params:{name:t}})}function s(t){return Object(n.a)({url:"/api/search/region",method:"get",params:{name:t}})}function i(t){return Object(n.a)({url:"/api/search/tag",method:"get",params:{name:t}})}function u(t){return Object(n.a)({url:"/api/search/star",method:"get",params:{name:t}})}function c(t){return Object(n.a)({url:"/api/search/city",method:"get",params:{name:t}})}}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-8dd0"],{c11S:function(e,t,n){"use strict";var o=n("gTgX");n.n(o).a},f9L6:function(e,t,n){},gTgX:function(e,t,n){},ntYl:function(e,t,n){"use strict";n.r(t);var o={name:"Login",data:function(){return{loginForm:{username:"",password:""},loginRules:{username:[{required:!0,trigger:"blur",validator:function(e,t,n){t?n():n(new Error("Please enter the correct user name"))}}],password:[{required:!0,trigger:"blur",validator:function(e,t,n){t.length<5?n(new Error("The password can not be less than 6 digits")):n()}}]},passwordType:"password",loading:!1,showDialog:!1,redirect:void 0}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},created:function(){},destroyed:function(){},methods:{showPwd:function(){"password"===this.passwordType?this.passwordType="":this.passwordType="password"},handleLogin:function(){var e=this;this.$refs.loginForm.validate(function(t){if(!t)return console.log("error submit!!"),!1;e.loading=!0,e.$store.dispatch("LoginByUsername",e.loginForm).then(function(){e.loading=!1,e.$router.push({path:e.redirect||"/"})}).catch(function(){e.loading=!1})})}}},s=(n("c11S"),n("qt7k"),n("KHd+")),r=Object(s.a)(o,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login-container"},[n("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,"auto-complete":"on","label-position":"left"}},[n("div",{staticClass:"title-container"},[n("h3",{staticClass:"title"},[e._v("更美社区后台")])]),e._v(" "),n("el-form-item",{attrs:{prop:"username"}},[n("span",{staticClass:"svg-container"},[n("svg-icon",{attrs:{"icon-class":"user"}})],1),e._v(" "),n("el-input",{attrs:{placeholder:e.$t("login.username"),name:"username",type:"text","auto-complete":"on"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"password"}},[n("span",{staticClass:"svg-container"},[n("svg-icon",{attrs:{"icon-class":"password"}})],1),e._v(" "),n("el-input",{attrs:{type:e.passwordType,placeholder:e.$t("login.password"),name:"password","auto-complete":"on"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleLogin(t):null}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),e._v(" "),n("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[n("svg-icon",{attrs:{"icon-class":"eye"}})],1)],1),e._v(" "),n("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v(e._s(e.$t("login.logIn")))])],1)],1)},[],!1,null,"3b1477bc",null);r.options.__file="index.vue";t.default=r.exports},qt7k:function(e,t,n){"use strict";var o=n("f9L6");n.n(o).a}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-be71"],{"704n":function(t,e,a){"use strict";var n=a("z4zC");a.n(n).a},Htjz:function(t,e,a){"use strict";a.r(e);var n={name:"CreateAccount",components:{AccountDetail:a("Ytwa").a}},r=a("KHd+"),o=Object(r.a)(n,function(){var t=this.$createElement;return(this._self._c||t)("account-detail",{attrs:{"is-edit":!1}})},[],!1,null,null,null);o.options.__file="create.vue";e.default=o.exports},VyMG:function(t,e,a){"use strict";a.d(e,"d",function(){return r}),a.d(e,"b",function(){return o}),a.d(e,"a",function(){return s}),a.d(e,"c",function(){return i});var n=a("t3Un");function r(t){return Object(n.a)({url:"/api/account/list",method:"get",params:t})}function o(t){return Object(n.a)({url:"/api/account/list/update",method:"post",data:t})}function s(t){return Object(n.a)({url:"/api/account/create",method:"post",data:t})}function i(t){return Object(n.a)({url:"/api/account/detail",method:"get",params:{id:t}})}},Yfch:function(t,e,a){"use strict";function n(t){return/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(t)}a.d(e,"a",function(){return n})},Ytwa:function(t,e,a){"use strict";var n=a("P2sY"),r=a.n(n),o=a("Grqa"),s=a("uARZ"),i=(a("Yfch"),a("VyMG")),u=a("gg54"),c={status:"draft",username:"",password:"",email:"",phone:"",nick_name:""},m={name:"GroupDetail",components:{MDinput:o.a,Sticky:s.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,n){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),n(new Error(e.field+"为必传项"))):n()};return{postForm:r()({},c),loading:!1,userListOptions:[],rules:{username:[{validator:e}],nick_name:[{validator:e}],email:[{validator:e}],password:[{validator:e}],phone:[{validator:e}]}}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=r()({},c);this.tempRoute=r()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(i.c)(t).then(function(t){e.postForm=t.data.data.data}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,Object(i.a)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/account/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},getRemoteUserList:function(t){var e=this;Object(u.e)(t).then(function(t){t.data.items&&(e.userListOptions=t.data.items.map(function(t){return t.name}))})}}},l=(a("704n"),a("KHd+")),p=Object(l.a)(m,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"createPost-container"},[a("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar "+t.postForm.status}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:t.submitForm}},[t._v("保存")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",[a("el-col",{attrs:{span:24}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"username"}},[a("MDinput",{attrs:{maxlength:100,name:"username",required:"",disabled:"disabled"},model:{value:t.postForm.username,callback:function(e){t.$set(t.postForm,"username",e)},expression:"postForm.username"}},[t._v("\n 账号\n ")])],1):a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"username"}},[a("MDinput",{attrs:{maxlength:100,name:"username",required:""},model:{value:t.postForm.username,callback:function(e){t.$set(t.postForm,"username",e)},expression:"postForm.username"}},[t._v("\n 账号\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"password"}},[a("MDinput",{attrs:{maxlength:100,name:"password",required:"",disabled:"disabled"},model:{value:t.postForm.password,callback:function(e){t.$set(t.postForm,"password",e)},expression:"postForm.password"}},[t._v("\n 密码\n ")])],1):a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"password"}},[a("MDinput",{attrs:{maxlength:100,name:"password",required:""},model:{value:t.postForm.password,callback:function(e){t.$set(t.postForm,"password",e)},expression:"postForm.password"}},[t._v("\n 密码\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"email"}},[a("MDinput",{attrs:{maxlength:100,name:"email",required:""},model:{value:t.postForm.email,callback:function(e){t.$set(t.postForm,"email",e)},expression:"postForm.email"}},[t._v("\n 邮箱\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"nick_name"}},[a("MDinput",{attrs:{maxlength:100,name:"nick_name",required:""},model:{value:t.postForm.nick_name,callback:function(e){t.$set(t.postForm,"nick_name",e)},expression:"postForm.nick_name"}},[t._v("\n 姓名\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"phone"}},[a("MDinput",{attrs:{maxlength:100,name:"phone",required:""},model:{value:t.postForm.phone,callback:function(e){t.$set(t.postForm,"phone",e)},expression:"postForm.phone"}},[t._v("\n 电话\n ")])],1)],1)],1)],1)],1)],1)},[],!1,null,"0e78771b",null);p.options.__file="AccountDetail.vue";e.a=p.exports},gg54:function(t,e,a){"use strict";a.d(e,"e",function(){return r}),a.d(e,"b",function(){return o}),a.d(e,"d",function(){return s}),a.d(e,"c",function(){return i}),a.d(e,"a",function(){return u});var n=a("t3Un");function r(t){return Object(n.a)({url:"/api/search/user",method:"get",params:{name:t}})}function o(t){return Object(n.a)({url:"/api/search/group",method:"get",params:{name:t}})}function s(t){return Object(n.a)({url:"/api/search/tag",method:"get",params:{name:t}})}function i(t){return Object(n.a)({url:"/api/search/star",method:"get",params:{name:t}})}function u(t){return Object(n.a)({url:"/api/search/city",method:"get",params:{name:t}})}},z4zC:function(t,e,a){}}]);
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment