Commit 20d3df11 authored by Davve's avatar Davve

build

parent cf403500
This diff is collapsed.
.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-4b3248f6]{position:relative}.createPost-container .createPost-main-container[data-v-4b3248f6]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-4b3248f6]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-4b3248f6]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-4b3248f6]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-4b3248f6]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-4b3248f6]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-4b3248f6]{display:inline-block}.createPost-container .word-counter[data-v-4b3248f6]{width:40px;position:absolute;right:-10px;top:0}.edit-input[data-v-4b3248f6]{padding-right:100px}.cancel-btn[data-v-4b3248f6]{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}.createPost-container[data-v-681e4ddf]{position:relative}.createPost-container .createPost-main-container[data-v-681e4ddf]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-681e4ddf]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-681e4ddf]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-681e4ddf]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-681e4ddf]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-681e4ddf]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-681e4ddf]{display:inline-block}.createPost-container .word-counter[data-v-681e4ddf]{width:40px;position:absolute;right:-10px;top:0}.edit-input[data-v-681e4ddf]{padding-right:100px}.cancel-btn[data-v-681e4ddf]{position:absolute;right:15px;top:10px}
\ No newline at end of file \ No newline at end of file
.createPost-container[data-v-efeecd74]{position:relative}.createPost-container .createPost-main-container[data-v-efeecd74]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-efeecd74]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-efeecd74]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-efeecd74]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-efeecd74]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-efeecd74]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-efeecd74]{display:inline-block}.createPost-container .word-counter[data-v-efeecd74]{width:40px;position:absolute;right:-10px;top:0} .createPost-container[data-v-fb502642]{position:relative}.createPost-container .createPost-main-container[data-v-fb502642]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-fb502642]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-fb502642]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-fb502642]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-fb502642]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-fb502642]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-fb502642]{display:inline-block}.createPost-container .word-counter[data-v-fb502642]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file \ No newline at end of file
.createPost-container[data-v-efeecd74]{position:relative}.createPost-container .createPost-main-container[data-v-efeecd74]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-efeecd74]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-efeecd74]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-efeecd74]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-efeecd74]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-efeecd74]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-efeecd74]{display:inline-block}.createPost-container .word-counter[data-v-efeecd74]{width:40px;position:absolute;right:-10px;top:0} .createPost-container[data-v-fb502642]{position:relative}.createPost-container .createPost-main-container[data-v-fb502642]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-fb502642]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-fb502642]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-fb502642]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-fb502642]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-fb502642]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-fb502642]{display:inline-block}.createPost-container .word-counter[data-v-fb502642]{width:40px;position:absolute;right:-10px;top:0}
\ 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-54829ce4]{position:relative}.createPost-container .createPost-main-container[data-v-54829ce4]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-54829ce4]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-54829ce4]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-54829ce4]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-54829ce4]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-54829ce4]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-54829ce4]{display:inline-block}.createPost-container .word-counter[data-v-54829ce4]{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-083b37a8]{position:relative}.createPost-container .createPost-main-container[data-v-083b37a8]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-083b37a8]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-083b37a8]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-083b37a8]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-083b37a8]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-083b37a8]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-083b37a8]{display:inline-block}.createPost-container .word-counter[data-v-083b37a8]{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 diff is collapsed.
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-20d5"],{"/xWP":function(t,e,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},OJhn:function(t,e,a){"use strict";var n=a("/xWP");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}),a.d(e,"e",function(){return u});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}})}function u(t){return Object(n.a)({url:"/api/account/reset_password",method:"post",data:t})}},Yfch:function(t,e,a){"use strict"},Ytwa:function(t,e,a){"use strict";var n=a("EJiy"),r=a.n(n),o=a("P2sY"),s=a.n(o),i=a("Grqa"),u=a("uARZ"),c=(a("Yfch"),a("VyMG")),m=a("gg54"),l={status:"draft",username:"",password:"",email:"",phone:"",nick_name:""},p={name:"GroupDetail",components:{MDinput:i.a,Sticky:u.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:s()({},l),loading:!1,userListOptions:[],rules:{username:[{validator:e}],nick_name:[{validator:e}],email:[{validator:e}],password:[{validator:function(e,a,n){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),n(new Error(e.field+"为必传项"))):a.length<6?(t.$message({message:"密码不得少于6位",type:"error"}),n(new Error("密码不得少于6位"))):n()},trigger:"blur"}],phone:[{validator:e}]}}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=s()({},l);this.tempRoute=s()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(c.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(c.a)(t.postForm).then(function(e){if(500==e.data.data.code)return t.$notify({title:"失败",message:e.data.data.message,type:"error",duration:2e3}),t.loading=!1,!1;console.log(r()(e.data.data.code)),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(m.g)(t).then(function(t){t.data.items&&(e.userListOptions=t.data.items.map(function(t){return t.name}))})}}},d=(a("OJhn"),a("KHd+")),f=Object(d.a)(p,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,"efeecd74",null);f.options.__file="AccountDetail.vue";e.a=f.exports},gg54:function(t,e,a){"use strict";a.d(e,"g",function(){return r}),a.d(e,"c",function(){return o}),a.d(e,"e",function(){return s}),a.d(e,"d",function(){return i}),a.d(e,"b",function(){return u}),a.d(e,"a",function(){return c}),a.d(e,"f",function(){return m});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/celebrity",method:"get",params:{name:t}})}function u(t){return Object(n.a)({url:"/api/search/city",method:"get",params:{name:t}})}function c(t){return Object(n.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function m(t){return Object(n.a)({url:"/api/search/topic",method:"get",params:{name:t}})}}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-29c5"],{"4NrL":function(t,e,a){"use strict";a.r(e);var r={name:"EditAccount",components:{AccountDetail:a("Ytwa").a}},n=a("KHd+"),o=Object(n.a)(r,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},"4XPx":function(t,e,a){"use strict";var r=a("bCAB");a.n(r).a},VyMG:function(t,e,a){"use strict";a.d(e,"d",function(){return n}),a.d(e,"b",function(){return o}),a.d(e,"a",function(){return s}),a.d(e,"c",function(){return i}),a.d(e,"e",function(){return u});var r=a("t3Un");function n(t){return Object(r.a)({url:"/api/account/list",method:"get",params:t})}function o(t){return Object(r.a)({url:"/api/account/list/update",method:"post",data:t})}function s(t){return Object(r.a)({url:"/api/account/create",method:"post",data:t})}function i(t){return Object(r.a)({url:"/api/account/detail",method:"get",params:{id:t}})}function u(t){return Object(r.a)({url:"/api/account/reset_password",method:"post",data:t})}},Yfch:function(t,e,a){"use strict"},Ytwa:function(t,e,a){"use strict";var r=a("EJiy"),n=a.n(r),o=a("P2sY"),s=a.n(o),i=a("Grqa"),u=a("uARZ"),c=(a("Yfch"),a("VyMG")),m=a("gg54"),l={status:"draft",username:"",password:"",email:"",phone:"",nick_name:""},p={name:"GroupDetail",components:{MDinput:i.a,Sticky:u.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,r){""===(a=a.trim())?(t.$message({message:e.field+"为必传项",type:"error"}),r(new Error(e.field+"为必传项"))):r()};return{postForm:s()({},l),loading:!1,userListOptions:[],rules:{username:[{validator:e,trigger:"blur"}],nick_name:[{validator:e,trigger:"blur"}],email:[{validator:e,trigger:"blur"}],password:[{validator:function(e,a,r){""===(a=a.trim())?(t.$message({message:e.field+"为必传项",type:"error"}),r(new Error(e.field+"为必传项"))):a.length<6?(t.$message({message:"密码不得少于6位",type:"error"}),r(new Error("密码不得少于6位"))):r()},trigger:"blur"}],phone:[{validator:e,trigger:"blur"}]},is_show:!0}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=s()({},l);this.tempRoute=s()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(c.c)(t).then(function(t){e.postForm=t.data.data.data,e.is_show=!1}).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(c.a)(t.postForm).then(function(e){if(500==e.data.data.code)return t.$notify({title:"失败",message:e.data.data.message,type:"error",duration:2e3}),t.loading=!1,!1;console.log(n()(e.data.data.code)),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(m.g)(t).then(function(t){t.data.items&&(e.userListOptions=t.data.items.map(function(t){return t.name}))})}}},d=(a("4XPx"),a("KHd+")),f=Object(d.a)(p,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.isShow?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}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.is_show,expression:"is_show"}],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,"fb502642",null);f.options.__file="AccountDetail.vue";e.a=f.exports},bCAB:function(t,e,a){},gg54:function(t,e,a){"use strict";a.d(e,"g",function(){return n}),a.d(e,"c",function(){return o}),a.d(e,"e",function(){return s}),a.d(e,"d",function(){return i}),a.d(e,"b",function(){return u}),a.d(e,"a",function(){return c}),a.d(e,"f",function(){return m});var r=a("t3Un");function n(t){return Object(r.a)({url:"/api/search/user",method:"get",params:{name:t}})}function o(t){return Object(r.a)({url:"/api/search/group",method:"get",params:{name:t}})}function s(t){return Object(r.a)({url:"/api/search/tag",method:"get",params:{name:t}})}function i(t){return Object(r.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function u(t){return Object(r.a)({url:"/api/search/city",method:"get",params:{name:t}})}function c(t){return Object(r.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function m(t){return Object(r.a)({url:"/api/search/topic",method:"get",params:{name:t}})}}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4782"],{"/xWP":function(t,e,a){},"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},OJhn:function(t,e,a){"use strict";var n=a("/xWP");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}),a.d(e,"e",function(){return u});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}})}function u(t){return Object(n.a)({url:"/api/account/reset_password",method:"post",data:t})}},Yfch:function(t,e,a){"use strict"},Ytwa:function(t,e,a){"use strict";var n=a("EJiy"),r=a.n(n),o=a("P2sY"),s=a.n(o),i=a("Grqa"),u=a("uARZ"),c=(a("Yfch"),a("VyMG")),m=a("gg54"),l={status:"draft",username:"",password:"",email:"",phone:"",nick_name:""},p={name:"GroupDetail",components:{MDinput:i.a,Sticky:u.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:s()({},l),loading:!1,userListOptions:[],rules:{username:[{validator:e}],nick_name:[{validator:e}],email:[{validator:e}],password:[{validator:function(e,a,n){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),n(new Error(e.field+"为必传项"))):a.length<6?(t.$message({message:"密码不得少于6位",type:"error"}),n(new Error("密码不得少于6位"))):n()},trigger:"blur"}],phone:[{validator:e}]}}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=s()({},l);this.tempRoute=s()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(c.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(c.a)(t.postForm).then(function(e){if(500==e.data.data.code)return t.$notify({title:"失败",message:e.data.data.message,type:"error",duration:2e3}),t.loading=!1,!1;console.log(r()(e.data.data.code)),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(m.g)(t).then(function(t){t.data.items&&(e.userListOptions=t.data.items.map(function(t){return t.name}))})}}},d=(a("OJhn"),a("KHd+")),f=Object(d.a)(p,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,"efeecd74",null);f.options.__file="AccountDetail.vue";e.a=f.exports},gg54:function(t,e,a){"use strict";a.d(e,"g",function(){return r}),a.d(e,"c",function(){return o}),a.d(e,"e",function(){return s}),a.d(e,"d",function(){return i}),a.d(e,"b",function(){return u}),a.d(e,"a",function(){return c}),a.d(e,"f",function(){return m});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/celebrity",method:"get",params:{name:t}})}function u(t){return Object(n.a)({url:"/api/search/city",method:"get",params:{name:t}})}function c(t){return Object(n.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function m(t){return Object(n.a)({url:"/api/search/topic",method:"get",params:{name:t}})}}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5c4f"],{"4XPx":function(t,e,a){"use strict";var r=a("bCAB");a.n(r).a},Htjz:function(t,e,a){"use strict";a.r(e);var r={name:"CreateAccount",components:{AccountDetail:a("Ytwa").a}},n=a("KHd+"),o=Object(n.a)(r,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 n}),a.d(e,"b",function(){return o}),a.d(e,"a",function(){return s}),a.d(e,"c",function(){return i}),a.d(e,"e",function(){return u});var r=a("t3Un");function n(t){return Object(r.a)({url:"/api/account/list",method:"get",params:t})}function o(t){return Object(r.a)({url:"/api/account/list/update",method:"post",data:t})}function s(t){return Object(r.a)({url:"/api/account/create",method:"post",data:t})}function i(t){return Object(r.a)({url:"/api/account/detail",method:"get",params:{id:t}})}function u(t){return Object(r.a)({url:"/api/account/reset_password",method:"post",data:t})}},Yfch:function(t,e,a){"use strict"},Ytwa:function(t,e,a){"use strict";var r=a("EJiy"),n=a.n(r),o=a("P2sY"),s=a.n(o),i=a("Grqa"),u=a("uARZ"),c=(a("Yfch"),a("VyMG")),m=a("gg54"),l={status:"draft",username:"",password:"",email:"",phone:"",nick_name:""},p={name:"GroupDetail",components:{MDinput:i.a,Sticky:u.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,r){""===(a=a.trim())?(t.$message({message:e.field+"为必传项",type:"error"}),r(new Error(e.field+"为必传项"))):r()};return{postForm:s()({},l),loading:!1,userListOptions:[],rules:{username:[{validator:e,trigger:"blur"}],nick_name:[{validator:e,trigger:"blur"}],email:[{validator:e,trigger:"blur"}],password:[{validator:function(e,a,r){""===(a=a.trim())?(t.$message({message:e.field+"为必传项",type:"error"}),r(new Error(e.field+"为必传项"))):a.length<6?(t.$message({message:"密码不得少于6位",type:"error"}),r(new Error("密码不得少于6位"))):r()},trigger:"blur"}],phone:[{validator:e,trigger:"blur"}]},is_show:!0}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=s()({},l);this.tempRoute=s()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(c.c)(t).then(function(t){e.postForm=t.data.data.data,e.is_show=!1}).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(c.a)(t.postForm).then(function(e){if(500==e.data.data.code)return t.$notify({title:"失败",message:e.data.data.message,type:"error",duration:2e3}),t.loading=!1,!1;console.log(n()(e.data.data.code)),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(m.g)(t).then(function(t){t.data.items&&(e.userListOptions=t.data.items.map(function(t){return t.name}))})}}},d=(a("4XPx"),a("KHd+")),f=Object(d.a)(p,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.isShow?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}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.is_show,expression:"is_show"}],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,"fb502642",null);f.options.__file="AccountDetail.vue";e.a=f.exports},bCAB:function(t,e,a){},gg54:function(t,e,a){"use strict";a.d(e,"g",function(){return n}),a.d(e,"c",function(){return o}),a.d(e,"e",function(){return s}),a.d(e,"d",function(){return i}),a.d(e,"b",function(){return u}),a.d(e,"a",function(){return c}),a.d(e,"f",function(){return m});var r=a("t3Un");function n(t){return Object(r.a)({url:"/api/search/user",method:"get",params:{name:t}})}function o(t){return Object(r.a)({url:"/api/search/group",method:"get",params:{name:t}})}function s(t){return Object(r.a)({url:"/api/search/tag",method:"get",params:{name:t}})}function i(t){return Object(r.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function u(t){return Object(r.a)({url:"/api/search/city",method:"get",params:{name:t}})}function c(t){return Object(r.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function m(t){return Object(r.a)({url:"/api/search/topic",method:"get",params:{name:t}})}}}]);
\ No newline at end of file
This diff is collapsed.
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