Commit 1ccace2d authored by Davve's avatar Davve

run build

parent b897a4f6
This diff is collapsed.
.createPost-container[data-v-bf236cbe]{position:relative}.createPost-container .createPost-main-container[data-v-bf236cbe]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-bf236cbe]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-bf236cbe]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-bf236cbe]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-bf236cbe]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-bf236cbe]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-bf236cbe]{display:inline-block}.createPost-container .word-counter[data-v-bf236cbe]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.createPost-container[data-v-3bcae23f]{position:relative}.createPost-container .createPost-main-container[data-v-3bcae23f]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-3bcae23f]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-3bcae23f]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-3bcae23f]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-3bcae23f]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-3bcae23f]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-3bcae23f]{display:inline-block}.createPost-container .word-counter[data-v-3bcae23f]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.createPost-container[data-v-bf236cbe]{position:relative}.createPost-container .createPost-main-container[data-v-bf236cbe]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-bf236cbe]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-bf236cbe]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-bf236cbe]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-bf236cbe]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-bf236cbe]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-bf236cbe]{display:inline-block}.createPost-container .word-counter[data-v-bf236cbe]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.createPost-container[data-v-3bcae23f]{position:relative}.createPost-container .createPost-main-container[data-v-3bcae23f]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-3bcae23f]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-3bcae23f]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-3bcae23f]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-3bcae23f]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-3bcae23f]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-3bcae23f]{display:inline-block}.createPost-container .word-counter[data-v-3bcae23f]{width:40px;position:absolute;right:-10px;top:0}
\ 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-1fd3"],{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}),a.d(e,"e",function(){return c});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 c(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"),c=a("uARZ"),u=(a("Yfch"),a("VyMG")),m=a("gg54"),l={status:"draft",username:"",password:"",email:"",phone:"",nick_name:""},p={name:"GroupDetail",components:{MDinput:i.a,Sticky:c.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:e}],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(u.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(u.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("ecRC"),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,"bf236cbe",null);f.options.__file="AccountDetail.vue";e.a=f.exports},ecRC:function(t,e,a){"use strict";var n=a("xi+q");a.n(n).a},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 c}),a.d(e,"a",function(){return u}),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 c(t){return Object(n.a)({url:"/api/search/city",method:"get",params:{name:t}})}function u(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}})}},"xi+q":function(t,e,a){}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-42d0"],{"9+lY":function(t,e,a){"use strict";var n=a("q9F6");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}),a.d(e,"e",function(){return c});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 c(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"),c=a("uARZ"),u=(a("Yfch"),a("VyMG")),m=a("gg54"),l={status:"draft",username:"",password:"",email:"",phone:"",nick_name:""},p={name:"GroupDetail",components:{MDinput:i.a,Sticky:c.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()}}],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(u.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(u.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("9+lY"),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,"3bcae23f",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 c}),a.d(e,"a",function(){return u}),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 c(t){return Object(n.a)({url:"/api/search/city",method:"get",params:{name:t}})}function u(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}})}},q9F6:function(t,e,a){}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-77c0"],{"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},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 c});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 c(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"),c=a("uARZ"),u=(a("Yfch"),a("VyMG")),m=a("gg54"),l={status:"draft",username:"",password:"",email:"",phone:"",nick_name:""},p={name:"GroupDetail",components:{MDinput:i.a,Sticky:c.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:e}],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(u.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(u.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("ecRC"),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,"bf236cbe",null);f.options.__file="AccountDetail.vue";e.a=f.exports},ecRC:function(t,e,a){"use strict";var n=a("xi+q");a.n(n).a},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 c}),a.d(e,"a",function(){return u}),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 c(t){return Object(n.a)({url:"/api/search/city",method:"get",params:{name:t}})}function u(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}})}},"xi+q":function(t,e,a){}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-ca83"],{"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},"9+lY":function(t,e,a){"use strict";var n=a("q9F6");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 c});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 c(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"),c=a("uARZ"),u=(a("Yfch"),a("VyMG")),m=a("gg54"),l={status:"draft",username:"",password:"",email:"",phone:"",nick_name:""},p={name:"GroupDetail",components:{MDinput:i.a,Sticky:c.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()}}],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(u.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(u.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("9+lY"),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,"3bcae23f",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 c}),a.d(e,"a",function(){return u}),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 c(t){return Object(n.a)({url:"/api/search/city",method:"get",params:{name:t}})}function u(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}})}},q9F6:function(t,e,a){}}]);
\ No newline at end of file
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