Commit be347bf7 authored by 许俊鹏's avatar 许俊鹏

处理冲突

parents 5c421f29 c22c91d5
......@@ -70,7 +70,7 @@ class StarListView(APIView):
else:
updates['is_online'] = 1
try:
self.rpc['mercury/face/star/batch/update'](ids=ids, updates=updates).unwrap()
self.rpc['mercury/face/batch/update'](ids=ids, updates=updates).unwrap()
except Exception as e:
error_logger.error(u'批量更新明星列表失败 %s', e)
raise
......
......@@ -89,3 +89,15 @@ class TopicSearchView(APIView):
return {
'data': ['{id}:{name}'.format(id=search_data['id'], name=search_data['name']) for search_data in data]
}
class TagTypeSearchView(APIView):
def get(self, request):
name = request.GET.get('name')
try:
data = self.rpc['venus/sun/tag/tagtype_search'](name=name).unwrap()
except Exception as e:
raise e
return {
'data': ['{id}:{name}'.format(id=search_data['id'], name=search_data['name']) for search_data in data]
}
\ No newline at end of file
......@@ -56,16 +56,75 @@ class TagUpdateOrCreateView(APIView):
id = request.POST.get('id')
down_tags = list(set(map(lambda x: x.split(":")[0], json.loads((request.POST.get('down_tags', '[]'))))))
up_tags = list(set(map(lambda x: x.split(":")[0], json.loads((request.POST.get('up_tags', '[]'))))))
tagtypes = list(set(map(lambda x: x.split(":")[0], json.loads((request.POST.get('tagtypes', '[]'))))))
data = {
'name': request.POST.get('name'),
'description': request.POST.get('description'),
'down_tags': down_tags,
'up_tags': up_tags,
'tagtypes': tagtypes,
'icon_url': request.POST.get('icon_url', '')[:-2]
}
try:
data = self.rpc['venus/sun/tag/edit'](id=id, data=data).unwrap()
except Exception as e:
error_logger.error(u'创建/编辑标签%d信息失败%s' % (id, e))
raise
return data
class TagTypeListView(APIView):
def get(self, request):
offset = int(request.GET.get('offset', 1))
limit = int(request.GET.get('limit', 10))
filter = self.handle_filter(request.GET.get('filter', ""))
try:
data = self.rpc['venus/sun/tag/tagtype/list'](offset=(offset - 1) * limit, limit=limit, filters=filter).unwrap()
except Exception as e:
error_logger.error(u'获取标签类型列表失败%s', e)
raise
return data
def post(self, request):
ids = request.POST.get('ids', '').split()
update = int(request.POST.get('update', ''))
updates = {
'is_online': bool(update)
}
try:
self.rpc['venus/sun/tag/tagtype/batch/update'](updates=updates, ids=ids).unwrap()
except Exception as e:
error_logger.error(u'批量更新标签类型列表失败%s', e)
raise
return {
"message": "更新成功"
}
class TagTypeUpdateOrCreateView(APIView):
def get(self, request):
id = request.GET.get('id')
try:
data = self.rpc['venus/sun/tag/tagtype/get'](id=id).unwrap()
except Exception as e:
error_logger.error(u'获取标签%d信息失败%s'%(id, e))
raise
if not data:
data = {}
else:
pass
return {'data': data}
def post(self, request):
id = request.POST.get('id')
data = {
'name': request.POST.get('name'),
}
try:
data = self.rpc['venus/sun/tag/tagtype/edit'](id=id, data=data).unwrap()
except Exception as e:
error_logger.error(u'创建/编辑标签类型%d信息失败%s' % (id, e))
raise
return data
\ No newline at end of file
......@@ -53,6 +53,7 @@ class TopicUpdateOrCreateView(APIView):
'star_id': request.POST.get('star', '').split(':')[0],
'tag_ids': tag_ids,
'is_online': int(request.POST.get('is_online')),
'drop_score': int(request.POST.get('drop_score')),
}
try:
self.rpc['venus/sun/topic/edit'](id=id, data=data).unwrap()
......
......@@ -88,6 +88,12 @@ urlpatterns = [
url(r'^tag/create$', TagUpdateOrCreateView.as_view()),
url(r'^tag/detail$', TagUpdateOrCreateView.as_view()),
# 标签类型相关
url(r'^tag/tagtype/list$', TagTypeListView.as_view()),
url(r'^tag/tagtype/list/update$', TagTypeListView.as_view()),
url(r'^tag/tagtype/create$', TagTypeUpdateOrCreateView.as_view()),
url(r'^tag/tagtype/detail$', TagTypeUpdateOrCreateView.as_view()),
url(r'^face/star/create$', FaceStarEdit.as_view()),
url(r'^face/star/list$', StarListView.as_view()),
url(r'^face/star/list/update$', StarListView.as_view()),
......@@ -101,12 +107,13 @@ urlpatterns = [
search_urlpatterns = [
url(r'search/group$', GroupSearchView.as_view()),
url(r'search/country', CountrySearchView.as_view()),
url(r'search/user', UserSearchView.as_view()),
url(r'search/tag', TagSearchView.as_view()),
url(r'search/celebrity', CelebritySearchView.as_view()),
url(r'search/city', CitySearchView.as_view()),
url(r'search/topic', TopicSearchView.as_view()),
url(r'search/country$', CountrySearchView.as_view()),
url(r'search/user$', UserSearchView.as_view()),
url(r'search/tag$', TagSearchView.as_view()),
url(r'search/celebrity$', CelebritySearchView.as_view()),
url(r'search/city$', CitySearchView.as_view()),
url(r'search/topic$', TopicSearchView.as_view()),
url(r'search/tagtype$', TagTypeSearchView.as_view()),
]
common_urlpatterns = [
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><title>更美社区后台</title><link rel="shortcut icon" href=/favicon.ico><link href=/static/css/chunk-elementUI.8441406c.css rel=stylesheet><link href=/static/css/chunk-libs.825f9043.css rel=stylesheet><link href=/static/css/app.be4107d6.css rel=stylesheet></head><body><script src=/static/tinymce4.7.5/tinymce.min.js></script><script src=/static/jquery.min.js></script><script src=/static/webuploader.min.js></script><div id=app></div><script>!function(c){function n(n){for(var u,t,a=n[0],f=n[1],o=n[2],d=0,b=[];d<a.length;d++)t=a[d],r[t]&&b.push(r[t][0]),r[t]=0;for(u in f)Object.prototype.hasOwnProperty.call(f,u)&&(c[u]=f[u]);for(k&&k(n);b.length;)b.shift()();return h.push.apply(h,o||[]),e()}function e(){for(var c,n=0;n<h.length;n++){for(var e=h[n],u=!0,t=1;t<e.length;t++){var f=e[t];0!==r[f]&&(u=!1)}u&&(h.splice(n--,1),c=a(a.s=e[0]))}return c}var u={},t={runtime:0},r={runtime:0},h=[];function a(n){if(u[n])return u[n].exports;var e=u[n]={i:n,l:!1,exports:{}};return c[n].call(e.exports,e,e.exports,a),e.l=!0,e.exports}a.e=function(c){var n=[];t[c]?n.push(t[c]):0!==t[c]&&{"chunk-03fd":1,"chunk-3199":1,"chunk-38af":1,"chunk-862b":1,"chunk-commons":1,"chunk-00b5":1,"chunk-0618":1,"chunk-0bf8":1,"chunk-0e44":1,"chunk-1132":1,"chunk-1ca7":1,"chunk-1cb0":1,"chunk-2fd3":1,"chunk-3246":1,"chunk-3247":1,"chunk-4130":1,"chunk-4316":1,"chunk-445b":1,"chunk-4922":1,"chunk-4e44":1,"chunk-4f34":1,"chunk-5912":1,"chunk-65da":1,"chunk-6dcd":1,"chunk-7aa7":1,"chunk-7c81":1,"chunk-7ecf":1,"chunk-8114":1,"chunk-aaa0":1,"chunk-b5f3":1,"chunk-d7b7":1,"chunk-2483":1,"chunk-ecd4":1}[c]&&n.push(t[c]=new Promise(function(n,e){for(var u="static/css/"+({"chunk-commons":"chunk-commons"}[c]||c)+"."+{"7zzA":"31d6cfe0",JEtC:"31d6cfe0","chunk-03fd":"f3566086","chunk-3199":"409c3590","chunk-38af":"e08f1bb4","chunk-862b":"d074fa07","chunk-commons":"ad83b7ef","chunk-00b5":"ec341493","chunk-0618":"4c4f48e2","chunk-0bf8":"ee8e342c","chunk-0e44":"e58bb28c","chunk-1132":"6c632f95","chunk-1ca7":"877d5d6d","chunk-1cb0":"877d5d6d","chunk-2fd3":"c1700613","chunk-3246":"da2eb445","chunk-3247":"da2eb445","chunk-4130":"5f3c71f0","chunk-4316":"3a3dbae9","chunk-445b":"c887b451","chunk-4922":"b42b6636","chunk-4e44":"a7ac17e7","chunk-4f34":"bcf59bdc","chunk-5912":"33ace087","chunk-65da":"b42b6636","chunk-6dcd":"41e195b0","chunk-7aa7":"1a4e8f8c","/P8B":"31d6cfe0",Gbeq:"31d6cfe0","chunk-7c81":"5c26487c","chunk-7ecf":"33ace087","chunk-8114":"2577ec4b","chunk-aaa0":"8dcca7c9",Q2Zf:"31d6cfe0",ZMmy:"31d6cfe0","chunk-b5f3":"4c4f48e2","chunk-d7b7":"8fb9756d","chunk-2483":"a6cdf311",SoCV:"31d6cfe0",VwWe:"31d6cfe0","chunk-ecd4":"41e195b0"}[c]+".css",t=a.p+u,r=document.getElementsByTagName("link"),h=0;h<r.length;h++){var f=(d=r[h]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(f===u||f===t))return n()}var o=document.getElementsByTagName("style");for(h=0;h<o.length;h++){var d;if((f=(d=o[h]).getAttribute("data-href"))===u||f===t)return n()}var k=document.createElement("link");k.rel="stylesheet",k.type="text/css",k.onload=n,k.onerror=function(n){var u=n&&n.target&&n.target.src||t,r=new Error("Loading CSS chunk "+c+" failed.\n("+u+")");r.request=u,e(r)},k.href=t,document.getElementsByTagName("head")[0].appendChild(k)}).then(function(){t[c]=0}));var e=r[c];if(0!==e)if(e)n.push(e[2]);else{var u=new Promise(function(n,u){e=r[c]=[n,u]});n.push(e[2]=u);var h,f=document.getElementsByTagName("head")[0],o=document.createElement("script");o.charset="utf-8",o.timeout=120,a.nc&&o.setAttribute("nonce",a.nc),o.src=function(c){return a.p+"static/js/"+({"chunk-commons":"chunk-commons"}[c]||c)+"."+{"7zzA":"acd9b7e4",JEtC:"d582661d","chunk-03fd":"a1aa291d","chunk-3199":"f6c025b8","chunk-38af":"ddc7cb92","chunk-862b":"dffd0693","chunk-commons":"234e9b3d","chunk-00b5":"35c60704","chunk-0618":"41347416","chunk-0bf8":"1244733d","chunk-0e44":"a15d8f47","chunk-1132":"44510b1b","chunk-1ca7":"de9873b5","chunk-1cb0":"f0a821f5","chunk-2fd3":"c620cc72","chunk-3246":"9383cd2e","chunk-3247":"f25295cf","chunk-4130":"4b303ed9","chunk-4316":"6a1f5157","chunk-445b":"3cab8f1d","chunk-4922":"c4f38289","chunk-4e44":"34adf6ac","chunk-4f34":"0302fc5c","chunk-5912":"fe029e09","chunk-65da":"e63c63a0","chunk-6dcd":"f7b74271","chunk-7aa7":"531b5e06","/P8B":"7f6807b2",Gbeq:"42306eb5","chunk-7c81":"1d20c935","chunk-7ecf":"04967f1d","chunk-8114":"97402658","chunk-aaa0":"655fbf02",Q2Zf:"159a6cad",ZMmy:"fbf2ec27","chunk-b5f3":"61a6bcad","chunk-d7b7":"2757dbd7","chunk-2483":"5d438025",SoCV:"49bd7f8a",VwWe:"37520311","chunk-ecd4":"2debf835"}[c]+".js"}(c),h=function(n){o.onerror=o.onload=null,clearTimeout(d);var e=r[c];if(0!==e){if(e){var u=n&&("load"===n.type?"missing":n.type),t=n&&n.target&&n.target.src,h=new Error("Loading chunk "+c+" failed.\n("+u+": "+t+")");h.type=u,h.request=t,e[1](h)}r[c]=void 0}};var d=setTimeout(function(){h({type:"timeout",target:o})},12e4);o.onerror=o.onload=h,f.appendChild(o)}return Promise.all(n)},a.m=c,a.c=u,a.d=function(c,n,e){a.o(c,n)||Object.defineProperty(c,n,{enumerable:!0,get:e})},a.r=function(c){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},a.t=function(c,n){if(1&n&&(c=a(c)),8&n)return c;if(4&n&&"object"==typeof c&&c&&c.__esModule)return c;var e=Object.create(null);if(a.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:c}),2&n&&"string"!=typeof c)for(var u in c)a.d(e,u,function(n){return c[n]}.bind(null,u));return e},a.n=function(c){var n=c&&c.__esModule?function(){return c.default}:function(){return c};return a.d(n,"a",n),n},a.o=function(c,n){return Object.prototype.hasOwnProperty.call(c,n)},a.p="/",a.oe=function(c){throw console.error(c),c};var f=window.webpackJsonp=window.webpackJsonp||[],o=f.push.bind(f);f.push=n,f=f.slice();for(var d=0;d<f.length;d++)n(f[d]);var k=o;e()}([]);</script><script src=/static/js/chunk-elementUI.befe8ef9.js></script><script src=/static/js/chunk-libs.06d36ade.js></script><script src=/static/js/app.f9ae3818.js></script></body></html>
\ No newline at end of file
.wscn-http404-container[data-v-5f60752c]{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);position:absolute;top:40%;left:50%}.wscn-http404[data-v-5f60752c]{position:relative;width:1200px;padding:0 50px;overflow:hidden}.wscn-http404 .pic-404[data-v-5f60752c]{position:relative;float:left;width:600px;overflow:hidden}.wscn-http404 .pic-404__parent[data-v-5f60752c]{width:100%}.wscn-http404 .pic-404__child[data-v-5f60752c]{position:absolute}.wscn-http404 .pic-404__child.left[data-v-5f60752c]{width:80px;top:17px;left:220px;opacity:0;-webkit-animation-name:cloudLeft-data-v-5f60752c;animation-name:cloudLeft-data-v-5f60752c;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1s;animation-delay:1s}.wscn-http404 .pic-404__child.mid[data-v-5f60752c]{width:46px;top:10px;left:420px;opacity:0;-webkit-animation-name:cloudMid-data-v-5f60752c;animation-name:cloudMid-data-v-5f60752c;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1.2s;animation-delay:1.2s}.wscn-http404 .pic-404__child.right[data-v-5f60752c]{width:62px;top:100px;left:500px;opacity:0;-webkit-animation-name:cloudRight-data-v-5f60752c;animation-name:cloudRight-data-v-5f60752c;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1s;animation-delay:1s}@-webkit-keyframes cloudLeft-data-v-5f60752c{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@keyframes cloudLeft-data-v-5f60752c{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@-webkit-keyframes cloudMid-data-v-5f60752c{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@keyframes cloudMid-data-v-5f60752c{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@-webkit-keyframes cloudRight-data-v-5f60752c{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}@keyframes cloudRight-data-v-5f60752c{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}.wscn-http404 .bullshit[data-v-5f60752c]{position:relative;float:left;width:300px;padding:30px 0;overflow:hidden}.wscn-http404 .bullshit__oops[data-v-5f60752c]{font-size:32px;line-height:40px;color:#1482f0;margin-bottom:20px;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__headline[data-v-5f60752c],.wscn-http404 .bullshit__oops[data-v-5f60752c]{font-weight:700;opacity:0;-webkit-animation-name:slideUp-data-v-5f60752c;animation-name:slideUp-data-v-5f60752c;-webkit-animation-duration:.5s;animation-duration:.5s}.wscn-http404 .bullshit__headline[data-v-5f60752c]{font-size:20px;line-height:24px;color:#222;margin-bottom:10px;-webkit-animation-delay:.1s;animation-delay:.1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__info[data-v-5f60752c]{font-size:13px;line-height:21px;color:grey;margin-bottom:30px;-webkit-animation-delay:.2s;animation-delay:.2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__info[data-v-5f60752c],.wscn-http404 .bullshit__return-home[data-v-5f60752c]{opacity:0;-webkit-animation-name:slideUp-data-v-5f60752c;animation-name:slideUp-data-v-5f60752c;-webkit-animation-duration:.5s;animation-duration:.5s}.wscn-http404 .bullshit__return-home[data-v-5f60752c]{display:block;float:left;width:110px;height:36px;background:#1482f0;border-radius:100px;text-align:center;color:#fff;font-size:14px;line-height:36px;cursor:pointer;-webkit-animation-delay:.3s;animation-delay:.3s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes slideUp-data-v-5f60752c{0%{-webkit-transform:translateY(60px);transform:translateY(60px);opacity:0}to{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@keyframes slideUp-data-v-5f60752c{0%{-webkit-transform:translateY(60px);transform:translateY(60px);opacity:0}to{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}
\ 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-2a07d99e]{padding-right:100px}.cancel-btn[data-v-2a07d99e]{position:absolute;right:15px;top:10px}
\ 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-7af7e800]{padding-right:100px}.cancel-btn[data-v-7af7e800]{position:absolute;right:15px;top:10px}
\ No newline at end of file
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}.edit-input[data-v-4d92cdb2]{padding-right:100px}.cancel-btn[data-v-4d92cdb2]{position:absolute;right:15px;top:10px}
\ No newline at end of file
.dashboard-editor-container[data-v-4e4e7308]{padding:32px;background-color:#f0f2f5}.dashboard-editor-container .chart-wrapper[data-v-4e4e7308]{background:#fff;padding:16px 16px 0;margin-bottom:32px}.pan-item[data-v-4178e1ea]{width:200px;height:200px;border-radius:50%;display:inline-block;position:relative;cursor:default;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.2);box-shadow:0 1px 3px rgba(0,0,0,.2)}.pan-info-roles-container[data-v-4178e1ea]{padding:20px;text-align:center}.pan-thumb[data-v-4178e1ea]{width:100%;height:100%;background-size:100%;border-radius:50%;overflow:hidden;position:absolute;-webkit-transform-origin:95% 40%;transform-origin:95% 40%;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.pan-thumb[data-v-4178e1ea]:after{content:"";width:8px;height:8px;position:absolute;border-radius:50%;top:40%;left:95%;margin:-4px 0 0 -4px;background:radial-gradient(ellipse at center,#0e0e0e 0,#7d7e7d 100%);-webkit-box-shadow:0 0 1px hsla(0,0%,100%,.9);box-shadow:0 0 1px hsla(0,0%,100%,.9)}.pan-info[data-v-4178e1ea]{position:absolute;width:inherit;height:inherit;border-radius:50%;overflow:hidden;-webkit-box-shadow:inset 0 0 0 5px rgba(0,0,0,.05);box-shadow:inset 0 0 0 5px rgba(0,0,0,.05)}.pan-info h3[data-v-4178e1ea]{color:#fff;text-transform:uppercase;position:relative;letter-spacing:2px;font-size:18px;margin:0 60px;padding:22px 0 0;height:85px;font-family:Open Sans,Arial,sans-serif;text-shadow:0 0 1px #fff,0 1px 2px rgba(0,0,0,.3)}.pan-info p[data-v-4178e1ea]{color:#fff;padding:10px 5px;font-style:italic;margin:0 30px;font-size:12px;border-top:1px solid hsla(0,0%,100%,.5)}.pan-info p a[data-v-4178e1ea]{display:block;color:#333;width:80px;height:80px;background:hsla(0,0%,100%,.3);border-radius:50%;color:#fff;font-style:normal;font-weight:700;text-transform:uppercase;font-size:9px;letter-spacing:1px;padding-top:24px;margin:7px auto 0;font-family:Open Sans,Arial,sans-serif;opacity:0;-webkit-transition:opacity .3s ease-in-out .2s,background .2s linear 0s,-webkit-transform .3s ease-in-out .2s;transition:opacity .3s ease-in-out .2s,background .2s linear 0s,-webkit-transform .3s ease-in-out .2s;transition:transform .3s ease-in-out .2s,opacity .3s ease-in-out .2s,background .2s linear 0s;transition:transform .3s ease-in-out .2s,opacity .3s ease-in-out .2s,background .2s linear 0s,-webkit-transform .3s ease-in-out .2s;-webkit-transform:translateX(60px) rotate(90deg);transform:translateX(60px) rotate(90deg)}.pan-info p a[data-v-4178e1ea]:hover{background:hsla(0,0%,100%,.5)}.pan-item:hover .pan-thumb[data-v-4178e1ea]{-webkit-transform:rotate(-110deg);transform:rotate(-110deg)}.pan-item:hover .pan-info p a[data-v-4178e1ea]{opacity:1;-webkit-transform:translateX(0) rotate(0deg);transform:translateX(0) rotate(0deg)}.emptyGif[data-v-a99b3d02]{display:block;width:45%;margin:0 auto}.dashboard-editor-container[data-v-a99b3d02]{background-color:#e3e3e3;min-height:100vh;padding:50px 60px 0}.dashboard-editor-container .pan-info-roles[data-v-a99b3d02]{font-size:12px;font-weight:700;color:#333;display:block}.dashboard-editor-container .info-container[data-v-a99b3d02]{position:relative;margin-left:190px;height:150px;line-height:200px}.dashboard-editor-container .info-container .display_name[data-v-a99b3d02]{font-size:48px;line-height:48px;color:#212121;position:absolute;top:25px}
\ No newline at end of file
.createPost-container[data-v-56bd8930]{position:relative}.createPost-container .createPost-main-container[data-v-56bd8930]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-56bd8930]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-56bd8930]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-56bd8930]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-56bd8930]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-56bd8930]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-56bd8930]{display:inline-block}.createPost-container .word-counter[data-v-56bd8930]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.createPost-container[data-v-56bd8930]{position:relative}.createPost-container .createPost-main-container[data-v-56bd8930]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-56bd8930]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-56bd8930]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-56bd8930]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-56bd8930]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-56bd8930]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-56bd8930]{display:inline-block}.createPost-container .word-counter[data-v-56bd8930]{width:40px;position:absolute;right:-10px;top:0}
\ 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-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
.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-06da7b26]{padding-right:100px}.cancel-btn[data-v-06da7b26]{position:absolute;right:15px;top:10px}
\ 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-152dff15]{padding-right:100px}.cancel-btn[data-v-152dff15]{position:absolute;right:15px;top:10px}
\ 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-22ad4d5b]{padding-right:100px}.cancel-btn[data-v-22ad4d5b]{position:absolute;right:15px;top:10px}
\ No newline at end of file
.createPost-container[data-v-ad22feb6]{position:relative}.createPost-container .createPost-main-container[data-v-ad22feb6]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-ad22feb6]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-ad22feb6]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-ad22feb6]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-ad22feb6]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-ad22feb6]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-ad22feb6]{display:inline-block}.createPost-container .word-counter[data-v-ad22feb6]{width:40px;position:absolute;right:-10px;top:0}
\ 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-c865e982]{padding-right:100px}.cancel-btn[data-v-c865e982]{position:absolute;right:15px;top:10px}
\ 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-9b558caa]{padding-right:100px}.cancel-btn[data-v-9b558caa]{position:absolute;right:15px;top:10px}
\ No newline at end of file
.createPost-container[data-v-ad22feb6]{position:relative}.createPost-container .createPost-main-container[data-v-ad22feb6]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-ad22feb6]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-ad22feb6]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-ad22feb6]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-ad22feb6]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-ad22feb6]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-ad22feb6]{display:inline-block}.createPost-container .word-counter[data-v-ad22feb6]{width:40px;position:absolute;right:-10px;top:0}
\ 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}.createPost-container[data-v-9cf1b3fe]{position:relative}.createPost-container .createPost-main-container[data-v-9cf1b3fe]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-9cf1b3fe]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-9cf1b3fe]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-9cf1b3fe]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-9cf1b3fe]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-9cf1b3fe]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-9cf1b3fe]{display:inline-block}.createPost-container .word-counter[data-v-9cf1b3fe]{width:40px;position:absolute;right:-10px;top:0}.edit-select[data-v-9cf1b3fe]{padding-right:50px}.cancel-btn[data-v-9cf1b3fe]{position:absolute;right:15px;top:10px}
\ 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-dd551fe6]{padding-right:100px}.cancel-btn[data-v-dd551fe6]{position:absolute;right:15px;top:10px}
\ 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}
\ No newline at end of file
.errPage-container[data-v-24c0cb68]{width:800px;max-width:100%;margin:100px auto}.errPage-container .pan-back-btn[data-v-24c0cb68]{background:#008489;color:#fff;border:none!important}.errPage-container .pan-gif[data-v-24c0cb68]{margin:0 auto;display:block}.errPage-container .pan-img[data-v-24c0cb68]{display:block;margin:0 auto;width:100%}.errPage-container .text-jumbo[data-v-24c0cb68]{font-size:60px;font-weight:700;color:#484848}.errPage-container .list-unstyled[data-v-24c0cb68]{font-size:14px}.errPage-container .list-unstyled li[data-v-24c0cb68]{padding-bottom:5px}.errPage-container .list-unstyled a[data-v-24c0cb68]{color:#008489;text-decoration:none}.errPage-container .list-unstyled a[data-v-24c0cb68]:hover{text-decoration:underline}
\ 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}.createPost-container[data-v-263b1825]{position:relative}.createPost-container .createPost-main-container[data-v-263b1825]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-263b1825]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-263b1825]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-263b1825]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-263b1825]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-263b1825]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-263b1825]{display:inline-block}.createPost-container .word-counter[data-v-263b1825]{width:40px;position:absolute;right:-10px;top:0}.edit-input[data-v-263b1825]{padding-right:100px}.cancel-btn[data-v-263b1825]{position:absolute;right:15px;top:10px}
\ No newline at end of file
.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}.material-input__component .material-input-bar[data-v-f03f6b9c]:after,.material-input__component .material-input-bar[data-v-f03f6b9c]:before{content:"";height:1px;width:0;bottom:0;position:absolute;-webkit-transition:all .2s ease;transition:all .2s ease}.material-input__component[data-v-f03f6b9c]{margin-top:36px;position:relative}.material-input__component [data-v-f03f6b9c]{-webkit-box-sizing:border-box;box-sizing:border-box}.material-input__component .iconClass .material-input__icon[data-v-f03f6b9c]{position:absolute;left:0;line-height:16px;color:#2196f3;top:12px;width:30px;height:16px;font-size:16px;font-weight:400;pointer-events:none}.material-input__component .iconClass .material-label[data-v-f03f6b9c]{left:30px}.material-input__component .iconClass .material-input[data-v-f03f6b9c]{text-indent:30px}.material-input__component .material-input[data-v-f03f6b9c]{font-size:16px;padding:12px 12px 2px 6px;display:block;width:100%;border:none;line-height:1;border-radius:0}.material-input__component .material-input[data-v-f03f6b9c]:focus{outline:none;border:none;border-bottom:1px solid transparent}.material-input__component .material-label[data-v-f03f6b9c]{font-weight:400;position:absolute;pointer-events:none;left:0;top:0;-webkit-transition:all .2s ease;transition:all .2s ease;font-size:18px}.material-input__component .material-input-bar[data-v-f03f6b9c]{position:relative;display:block;width:100%}.material-input__component .material-input-bar[data-v-f03f6b9c]:before{left:50%}.material-input__component .material-input-bar[data-v-f03f6b9c]:after{right:50%}.material-input__component.material--disabled .material-input[data-v-f03f6b9c]{border-bottom-style:dashed}.material-input__component.material--raised .material-label[data-v-f03f6b9c]{top:-28px;left:0;font-size:16px;font-weight:700}.material-input__component.material--active .material-input-bar[data-v-f03f6b9c]:after,.material-input__component.material--active .material-input-bar[data-v-f03f6b9c]:before{width:50%}.material-input__component[data-v-f03f6b9c]{background:#fff}.material-input__component .material-input[data-v-f03f6b9c]{background:none;color:#000;text-indent:0;border-bottom:1px solid #e0e0e0}.material-input__component .material-label[data-v-f03f6b9c]{color:#9e9e9e}.material-input__component .material-input-bar[data-v-f03f6b9c]:after,.material-input__component .material-input-bar[data-v-f03f6b9c]:before{background:#2196f3}.material-input__component.material--active .material-label[data-v-f03f6b9c]{color:#2196f3}.material-input__component.material--has-errors.material--active .material-label[data-v-f03f6b9c]{color:#f44336}.material-input__component.material--has-errors .material-input-bar[data-v-f03f6b9c]:after,.material-input__component.material--has-errors .material-input-bar[data-v-f03f6b9c]:before{background:transparent}.pagination-container[data-v-b7be0e7e]{background:#fff;padding:32px 16px}.pagination-container.hidden[data-v-b7be0e7e]{display:none}.upload-container[data-v-6a571450]{width:100%;position:relative}.upload-container[data-v-6a571450]:after{content:"";display:table;clear:both}.upload-container .image-uploader[data-v-6a571450]{width:35%;float:left}.upload-container .image-preview[data-v-6a571450]{width:200px;height:200px;position:relative;border:1px dashed #d9d9d9;float:left;margin-left:50px}.upload-container .image-preview .image-preview-wrapper[data-v-6a571450]{position:relative;width:100%;height:100%}.upload-container .image-preview .image-preview-wrapper img[data-v-6a571450]{width:100%;height:100%}.upload-container .image-preview .image-preview-action[data-v-6a571450]{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;color:#fff;opacity:0;font-size:20px;background-color:rgba(0,0,0,.5);-webkit-transition:opacity .3s;transition:opacity .3s;cursor:pointer;text-align:center;line-height:200px}.upload-container .image-preview .image-preview-action .el-icon-delete[data-v-6a571450]{font-size:36px}.upload-container .image-preview:hover .image-preview-action[data-v-6a571450]{opacity:1}.upload-container .image-app-preview[data-v-6a571450]{width:320px;height:180px;position:relative;border:1px dashed #d9d9d9;float:left;margin-left:50px}.upload-container .image-app-preview .app-fake-conver[data-v-6a571450]{height:44px;position:absolute;width:100%;text-align:center;line-height:64px;color:#fff}.editor-slide-upload[data-v-39480e6e]{margin-bottom:20px}.editor-slide-upload[data-v-39480e6e] .el-upload--picture-card{width:100%}
\ No newline at end of file
This diff is collapsed.
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-03fd"],{"/eX4":function(s,t,i){"use strict";i.r(t);var n=[function(){var s=this.$createElement,t=this._self._c||s;return t("div",{staticClass:"pic-404"},[t("img",{staticClass:"pic-404__parent",attrs:{src:i("o2sD"),alt:"404"}}),this._v(" "),t("img",{staticClass:"pic-404__child left",attrs:{src:i("Jvyq"),alt:"404"}}),this._v(" "),t("img",{staticClass:"pic-404__child mid",attrs:{src:i("Jvyq"),alt:"404"}}),this._v(" "),t("img",{staticClass:"pic-404__child right",attrs:{src:i("Jvyq"),alt:"404"}})])},function(){var s=this.$createElement,t=this._self._c||s;return t("div",{staticClass:"bullshit__info"},[this._v("版权所有\n "),t("a",{staticClass:"link-type",attrs:{href:"https://wallstreetcn.com",target:"_blank"}},[this._v("华尔街见闻")])])}],r={name:"Page404",computed:{message:function(){return"网管说这个页面你不能进......"}}},l=(i("Nh2X"),i("KHd+")),e=Object(l.a)(r,function(){var s=this,t=s.$createElement,i=s._self._c||t;return i("div",{staticClass:"wscn-http404-container"},[i("div",{staticClass:"wscn-http404"},[s._m(0),s._v(" "),i("div",{staticClass:"bullshit"},[i("div",{staticClass:"bullshit__oops"},[s._v("OOPS!")]),s._v(" "),s._m(1),s._v(" "),i("div",{staticClass:"bullshit__headline"},[s._v(s._s(s.message))]),s._v(" "),i("div",{staticClass:"bullshit__info"},[s._v("请检查您输入的网址是否正确,请点击以下按钮返回主页或者发送错误报告")]),s._v(" "),i("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[s._v("返回首页")])])])])},n,!1,null,"5f60752c",null);e.options.__file="404.vue";t.default=e.exports},Jvyq:function(s,t){s.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAACKCAYAAABW3IOxAAAAAXNSR0IArs4c6QAAElhJREFUeAHtnXuQHMV9x7tndvdOQkgCWZKxkITEQ5YB87AVCT9iEqgyTsXlyA42QVRcScXYzvOPkKeJLSrOy8RVxMSVBNuVqrhIxS7KJk5BKlWpQKiKX4hgwOII6CzLAk6H0Pt0e/uY6Xx+p7vT3Gl2b2e3Z2d2t7vqdzuP7l//+tvf6+75dU+PVi5kioAxZl01UDtMEG43Wu/AmOuUUYeVVqNKmVGjvX2+HAdqX6mkfqS1Pp2pwQkz1wnju+gdIACZlpTr6npU7FChETIh5uJkKvWYPkO+fUp7oyZUowWt9hWLahTyHU2mK/3YjmApYjxlzGWmSuukQ4iktwP2NZCsmFqWWh9D96hWZp+nvb2lgvompNubWn4tKHYEawGkVqJAnBWVutpmZlono2mdjFnVSlqbcTytnynSpHlaXYPeV5F3QLIDNvNIossRLAlaM3Ehk1etqitDIZGidTKMnbTayvVM8IRAZQj1dNHXF9N9blhQpBc4f2dW3WcmgCwAIPenEGdNJVDbGYhDpOmB+DaunZ+14VrpV31fjxb96dZqeRN7vs29m4WITeKkcssRbAGsEKdUq6lrQ7o6M9M6GWU2LYiW6Snd4HO+p8sFX70dQ7wWjfkW8T4IyYIW41uJNvAEKxuzUQbiSocMwqdbp+sh2ZAVdC0qgRhVur8nS75+A79b2lT9AHo+3mbatpINHMEgz/JKqH7ZmPBtJtA3J3cTtIVz+4m0PsyYfS8D9ytRsrp9RXMpd0Oye+bOUj4YOIJNVsJvQKqdgitAh8aocQbIr/P0d4pLNbmMDOPsXKk9tSYMzUrOux6wbaTg6SN0g9vI3HaLeif6v9SNQg0UwSZr5ndVGP51EmCpiJPEH4OAxwFLBskyhilyvozBzyp+L5JxWxKdjeKSl+j+Xqmgl0D66xrFs3Bd8tlJfv9mQVdTFQNDMMj1Tm3M45Ch0BSRhDeppBqtnXjXZXrnlApV1TAKxwe2hHsreEBYw/015NsYazzwdIM/KBT0ZURa6GZIaFHL0eWf5SZs/E7LKdqI2LjQbSjLaxIqd3W5ap6ma1yXiY2MowB6nLyPQbZJ7dE1Kzz6Ri2hG6zMdINZuD2OYNO7IJn4ylIJfU8wyOVN1cx/8MuAPj+BSq0PFabnFddnbNUB8r8Be8bSsKNVH0oaeXdF51Q13J03cknB8WM9TUeaNbnElI3Iv4NRM0etxGsr9HULRsv1XoAT8HJVToZozw8V9VvaqrH0Ej2G6ltoyao2s+jbFmzSmPX4IB7MG7mowIlSUa+xWYmWdP0Mev7JNl59STBAKqqa+XoWqxkWq+yCr1+iOX3DYvEyuv8R8r3bZt59SbByDV+XmV7QZxOrjnUx7tpT8FL1b3VsIwq22lAyq6PvCDZZMbfy+P/bswXMz68ew4FqtfLyU7bGlvQVwVhBeoXW5iuNi5vNHcZdhkH9cXI/LxsLssu1bwjGuGuJqZmH+M3CYdm0Bnlp49tM/Qxc6yWgWJ02aYpyyjenauHfMXF9dcrZJFZP6/UiKyG2J07YJwn6ogVjGujXINdH81YnkGuKrlFWQvTNP3JSjHueYNWquZY5xvuTFrwb8Zln3INLQjzlAxt6n2BBeBdPjaxm0CZPtYg9e5jEfleebMrClp5vuk9Vwl1CLqZf9nuePljy1YTvqxKku4iB9eUM+m0v1lu8nrR+fbioB7rlmgWp5wkmBYFEOjBmcxCqzbX6bNFkaao+4fvmh3RVRwu+Z3iau5CLl5LggrOx7B/h7xpF68AO7KOI9gXBogWKHrPmakU9UG+rB/SetWD6Fq1dQEv3Eu8QjtHCVYueWso4aT1xraxsQPcTEPmno3YM8nFfEyyuYmnt/CAwlweBujx6n0WARwqe9+OCF55kOodDbzXE20z8lpdD02LuZ42X7D3hwgwCA0ewRjVvQrOqFgar5K2PMyGQl0JqdK//xxzi6wzYA1qmFazhugTSrZiNNfsrcSHXBOebZq+53wH2z7RS+RCpWAvMFnrXLdPvG80kohscLxW8l30dln3PG+ZR/E2QcATy3dSK3kGK41qwNmqbV9nWTlWDtWeSnhnbrT6/kNclOG2U0F6SnveD2YOiY03unzUGQkewGFDcJXsIOILZw9JpikHAESwGFHfJHgKOYPawdJpiEHAEiwHFXbKHgCOYPSydphgEHMFiQHGX7CHgCGYPS6cpBgFHsBhQ3CV7CDiC2cPSaYpBwE1vxIAy4Jd+gUn+V1rA4Ani3CHr65rFdQRrhs5g3ltCsUUWC7cRQbYX/XiziK6LbIaOu7cYAnfS2t3TLJIjWDN03L1WEPg0JPtko4iOYI2QcdeTIPC3kOxDcQkcweJQcdeSIiA8ks3+blyY0BFsISLuvF0E5P3ThyGZfEZwLjiCzUHhDiwgIC/DyJ64cy++OIJZQNWpmIfARZzJtvHT31VyBJuHjTuxhIC8c/ooJJPP7bjgEEgFAfmW5UOOYKlg65TOIHCTI5jjQqoIOIKlCq9T7gjmOJAqAo5gqcLrlDuCOQ6kikBPEww/yw2+7z3FvlynU0XJKW8bgZ5bcAipZDHcLyG/gVy/+owrr16tq2fLNXO0UgtWhopPtmSxN2vb1dC/CdnErzcCxLoUSz+B/Cpy4SJWlys1M1KuhyeqdcP3svWbSe8vkqaj22zfFPqe6ukeoSMA4hPXc00wSCEVdgsirdX7kLbsZYfWE3yc9AW+fltmQ7mLjNJXoLstXdgQGxzBYmHJJ8GofGmhfgX5dWRzrOkdXOSrIIf5OsiLtHB1NgneQH6bOlA3ndQRLBbBfBGMipYNdKW1kjFWKy8exJYq6cXQqJch3GilFupqIIQ2FyfV4QgWi1j2BINUsovzrchvIjtizezyRfbb38cDw0E+sFXgeAs2LvoJZEew2ErKjmBU2gZMkleePoZMrx2KNTH7i2EtVCO0cIdo4ZaGodrKnvorF5rlCLYQkenz7hMMYt1M1tINvh9J9cluuoj2/9T4msjeybo5DOFWmFBdCeHOcwSLBbo7BINUy8n+o4gQa0usKb17cbJSV4+VCurneCy1+mTau5DMWZ4uwSDWVWQlpLoDWTaXbf8cvERR5FPJ2/qnSFZLUrfuyYdUonMnIsR6j1Vz86PsJ5jyMnID4lqtJvViDRyIJYv975yRNzXJs5dvjWO8tFrytGv9n7OXgWlg+2sdEwxivRvl0lp9ECk2yKjXL0s3+CwiXWHX/HM9DNppbL8PubdtgkGsN/INn78s+upnUbS+h8FoZroAtQe5DpEHFReaI1Dl9j8gn2Vbp9ckatsEK1eDrzHl8mEUhSj5AR+D4qOf6gp0in+r14MA9T1kK+K+QbR4bcoeYV9FdsOHA9HobRFsqm7eFwbho1FFcoxymUF+Zubzd/Ju3MaFcXJ+HmLfd5FLkH4dR1I0q+EbaLubuh+J05qYYHSNS6eqZi/OxUviFM5emyHbs0I2vqF9KRk1jT+bLsPf75P3amRThjb0Utb/ibF/RD3LEKJhSEywqUpwL//mdzXUGHNDyMaSmef4uOdhutG8ke1pTF6K9JsDOKYmrFySoYMQ67FWtCUiWLVqrgmU2UMr1tEjOsb9kJZtHLJtwgDry3FaKThx9iIydnhri/EHPZrgJV3hw0mAaJlgkMpjhcF3WIr8U0kyWCwuBu+dIdslXSLbPmwSt4O82u7C4gjsJ8pnkAepKxmjJgotE4xx12+FJvxCIu0JI1OAEcg2Rsu2EcNkibTNcBBlryDbkZbLbdOAHtN1CHs/izxAvZz9lHnCQrQENK3XOpYcj/B7fkL9bUenUPIx9lch24YOySb+GPG+C7E66trbLkxvJZTW/XPI31AHk52a3hLBJishj6JG5hczCRT0Rcj2CmRbj8GXtWiEAPUcsg0ZbjHNIEcTMkkP9VfgLdhZCYsSrFI3HwiC8GEruVlQQuH3QbaDBQ+y6ViyCVBPIdciXWtxLRQtKxXS/T2AiPddukWroSnB6BKXMfZ6Hp9XLqeCeOF2lFfFDhZ8vQ6ybQQZ8WWJ932VVZT6U5kM2B9EPgOxZCCfSmhKsMlqcJ8y6ndSydmiUgAKhor6dQqz1qLaflb1rxTuU+AmrodUQ0OC4fN6Oz6v79KK5X5Zs+/rl0u+TvwmUKrI5lP5f2HWH0MscZZ2JcQSTEiFz+tJfF6yiiDXAbAmhou6H1fL2sT9SZQJsWR6p6sh9rG9XKdb7AFyCVJFv30fTVeRziYzmYAW77tMSGcSzmnByvI6WY2BvTHnZWJRgkw1c5vDBb06QZJBiXqAgu5Gvgq5ZDoss3BOC2aq5ov4vHJPLkGMcZds/O/CWQTEqfxnyN9DLFnTlnmYRzB8Xr+Iz+vnM7eqBQM8Tx/ytHpjC1EHIcoJCnkvch/EOp2nAs91kXSJK3h7mT57+uWNPNl4ji2AWMMtUZwz/pwYA3OhTEnvR8T7fjSPpZ5rwdiH4S8wUN4Myn3Ai38Kcl2Ye0PTM1C8719B/hRivZpeNp1rnm4E8HntwOf1P7RiXucq09UAoCdxSyxPN5fcajdY9i/In4DDaG6tjBhWgFQFVko80AvkErtxSwxF7B+kw/+msHdBrKZLlPMGiDdVV3dBrqvzZlicPbgljjD3OGgEE1/WByDWjb1GLqlDjy3+buR1oCNxFZqna4Brhnw9SJPYsrLhE8jVlP1beaqLJLboseM1tizV1VLB+9+SH0762mM1Qv6eJFkxcYzu8YIkhevRuOJm+DzyOYiVK5dDO3ieIVgkJYUKqcxn8JAfw890GWTbELmdySE2VRjY93vXKB73f0RkAG99XVYmFUem5xBsoSG4BEaGCvpQ0ffWsy4MwnU/FAteGTuWdD/nruX4CDn9PsR6vms5dimjRQkWtcMvePuHff0TXqRdw5uOsrAv9eBpfQqnar+uTH0KAOXJ8PHUgcwog0QEi9rIVM3YkqLH8mVzASR4S1pujqGiZ+iq+81p/2OwvBv5Z8glvq2+DW0TLIqI53tHadle4KWMpZDhKvGtRe+3e8za+xOlQl9NaB8Diz9H7odYlXZx6aV0VggWLTBPoRNF34yUitBOs0Fum98MogJCxn40jlHtPXssKxu+iMjUjpBsYIJ1gkWRgx7VkqefZ1lNnXHbVsjW8jIgnmQncUssjerrwWPp/r6OyF4O+3vQ/o5NTpVgUeukRYIwI7gbJmnZ5FtBDddyEXeKeMPR9D14LFM7v0dZnuxB262Z3DWCLbQYx+5LeOaPez6bnxgzz0PPvYApody/bLKwTDPnMrXzhxCrZ73vDcrV1uXMCBa1tljQB0u+GmfItR7CLWPs1XJXGtWT8bE4R+9BvgS5Ml2mnDEO87LPBcGiFp0/7KvzhnpqZD87tXMvxJqIlsUd53AzEGYLqJeeIFhfTu3Y/qew4q+ybVQP6OvbqR3b2DuCJUNUpnbkyfCxZMkGN3bul0jnpGoOYMcdyDZHrmQ14lqw5njJPlkytfMFiDUQUzvN4Uh+1xEsHrPZqR3ZMyuXr4PFm52/q45g8+tk4Kd25sPR+Zkj2FkMn+BQ1mYN9NTOWTjsHDmCKfUCUP4BxHJTO3Y4NU/LID9FjoPEJ5GrHLnmccLqySC2YG5qxyqFmisrsBp5gumZQdghcHZq59O0WGPNYXF3bSHgrV3hrwXwXcgjSNtfdLBlUEp6HkXvNZTvY4gjV0ogx6mdN6t88qRZVQ7DDxsd7mLC+R0sCpx3P06B7WvLhj3W61gbGrqpHdsVlFBfQwIdK5uNlUp4u1Lh7TiHrkqot+3olggmUzufQvr+rZ22ge5SwoYEi+Y/PmHequr1XaHSt6X9pneHBHNTO9GKy8FxSwSbtVO6zMMT6t2hCW7nC6O3stTZ+iZwbRLMTe3MVlLOfhMRLGo7ZCuOnwpuYX3gLsj2flo2K28AJSTY7NSO7AH/o6h97jgfCLRNsKj5r/FNI3My2MnHb3ah8GbI1/YLGwkIJlM7sjbr+1Fb3HG+ELBCsGiRDp0ya1QYfmT64cCoHdF7rRy3QDA3tdMKkDmJY51g0XKNHzebcXnwFIrbw6g3R+81Om5CMJna2Y18mVar3ii9u54vBFIlWLSoh0+b6+u1+u3MHNzGzMG66L3ocQzB5PuPn0dkQzb31k4UrB447hrBZrFgfOYdmqi/RwcaZ676EGRbOXtPfiMEc1M7UWDccXIEINvQ+Mn6zrHj9YfGTtTLsp3nqamAy+YR5MrkGl0Kh0ADBI4Ys/zUVPj4sdPBPQ2iuMsOAYeAQ2A+Av8Pby5Qwk3kUm8AAAAASUVORK5CYII="},Nh2X:function(s,t,i){"use strict";var n=i("nrX+");i.n(n).a},"nrX+":function(s,t,i){},o2sD:function(s,t,i){s.exports=i.p+"static/img/404.a57b6f3.png"}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0618"],{"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},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})}},WBRP:function(t,e,a){},Yfch:function(t,e,a){"use strict"},Ytwa:function(t,e,a){"use strict";var r=a("P2sY"),n=a.n(r),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,r){""===(a=a.trim())?(t.$message({message:e.field+"为必传项",type:"error"}),r(new Error(e.field+"为必传项"))):r()};return{postForm:n()({},c),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"}]},isShow:!1}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=n()({},c);this.tempRoute=n()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(i.c)(t).then(function(t){e.postForm=t.data.data.data,e.isShow=!0}).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){if(500==e.data.data.code)return t.$notify({title:"失败",message:e.data.data.message,type:"error",duration:2e3}),t.loading=!1,!1;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.h)(t).then(function(t){t.data.items&&(e.userListOptions=t.data.items.map(function(t){return t.name}))})}}},l=(a("iCGk"),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.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,"2504740e",null);p.options.__file="AccountDetail.vue";e.a=p.exports},gg54:function(t,e,a){"use strict";a.d(e,"h",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,"g",function(){return m}),a.d(e,"f",function(){return l});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}})}function l(t){return Object(r.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},iCGk:function(t,e,a){"use strict";var r=a("WBRP");a.n(r).a}}]);
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1132"],{VyMG:function(t,e,n){"use strict";n.d(e,"d",function(){return l}),n.d(e,"b",function(){return a}),n.d(e,"a",function(){return o}),n.d(e,"c",function(){return s}),n.d(e,"e",function(){return r});var i=n("t3Un");function l(t){return Object(i.a)({url:"/api/account/list",method:"get",params:t})}function a(t){return Object(i.a)({url:"/api/account/list/update",method:"post",data:t})}function o(t){return Object(i.a)({url:"/api/account/create",method:"post",data:t})}function s(t){return Object(i.a)({url:"/api/account/detail",method:"get",params:{id:t}})}function r(t){return Object(i.a)({url:"/api/account/reset_password",method:"post",data:t})}},Y5bG:function(t,e,n){"use strict";n.d(e,"a",function(){return l}),Math.easeInOutQuad=function(t,e,n,i){return(t/=i/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e};var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function l(t,e,n){var l=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,a=t-l,o=0;e=void 0===e?500:e;!function t(){o+=20,function(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}(Math.easeInOutQuad(o,l,a,e)),o<e?i(t):n&&"function"==typeof n&&n()}()}},ZySA:function(t,e,n){"use strict";var i=n("P2sY"),l=n.n(i),a=(n("jUE0"),{bind:function(t,e){t.addEventListener("click",function(n){var i=l()({},e.value),a=l()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=a.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var s=o.getBoundingClientRect(),r=o.querySelector(".waves-ripple");switch(r?r.className="waves-ripple":((r=document.createElement("span")).className="waves-ripple",r.style.height=r.style.width=Math.max(s.width,s.height)+"px",o.appendChild(r)),a.type){case"center":r.style.top=s.height/2-r.offsetHeight/2+"px",r.style.left=s.width/2-r.offsetWidth/2+"px";break;default:r.style.top=(n.pageY-s.top-r.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",r.style.left=(n.pageX-s.left-r.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return r.style.backgroundColor=a.color,r.className="waves-ripple z-active",!1}},!1)}}),o=function(t){t.directive("waves",a)};window.Vue&&(window.waves=a,Vue.use(o)),a.install=o;e.a=a},j9z5:function(t,e,n){},jUE0:function(t,e,n){},siTO:function(t,e,n){"use strict";n.r(e);var i=n("VyMG"),l=n("Mz3J"),a=n("ZySA"),o={name:"UserList",components:{Pagination:l.a},directives:{waves:a.a},filters:{isOnlineFilter:function(t){return{1:"success",0:"info"}[t]}},data:function(){return{list:null,total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{page:0,limit:10,filter:{value:"",key:"",is_online:""}},BooleanTypeOptions:[{key:1,display_name:"是"},{key:0,display_name:"否"}],SearchTypeOptions:[{key:"user__username",display_name:"用户名"}]}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(i.d)(this.listQuery).then(function(e){t.list=e.data.data.data,t.total=e.data.data.total,t.listLoading=!1})},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.listQuery.limit=t,this.getList()},handleCurrentChange:function(t){this.listQuery.page=t,this.getList()},handleFilter:function(){this.listQuery.page=1,this.getList()},handleCreate:function(){this.$router.push("/account/create")},handleOfflineOrOnline:function(t){var e=this,n=this.multipleSelection.length,l="";this.del_list=this.del_list.concat(this.multipleSelection);for(var a=0;a<n;a++)this.multipleSelection[a].is_online="offline"===t?0:1,l+=this.multipleSelection[a].id+" ";Object(i.b)({type:t,ids:l}).then(function(t){e.multipleSelection=[],e.$message.success(t.data.data.message),e.$router.go(0)})},reset:function(t){var e=this;Object(i.e)(t).then(function(t){e.$message.success("重置成功")})}}},s=(n("v66d"),n("KHd+")),r=Object(s.a)(o,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("div",{staticClass:"filter-container"},[n("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"搜素"},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.handleFilter(e):null}},model:{value:t.listQuery.filter.value,callback:function(e){t.$set(t.listQuery.filter,"value",e)},expression:"listQuery.filter.value"}}),t._v(" "),n("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"搜索字段",clearable:""},model:{value:t.listQuery.filter.key,callback:function(e){t.$set(t.listQuery.filter,"key",e)},expression:"listQuery.filter.key"}},t._l(t.SearchTypeOptions,function(t){return n("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})})),t._v(" "),n("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.handleFilter}},[t._v("搜索")]),t._v(" "),n("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:t.handleCreate}},[t._v("创建\n ")]),t._v(" "),n("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(e){t.handleOfflineOrOnline("offline")}}},[t._v("下线\n ")]),t._v(" "),n("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(e){t.handleOfflineOrOnline("online")}}},[t._v("上线\n ")])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":t.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"账号ID"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("router-link",{staticClass:"link-type",attrs:{to:"/account/edit/"+e.row.id}},[n("span",[t._v(t._s(e.row.id))])])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"用户名"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.username))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"邮箱"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.email))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"是否在线"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-tag",{attrs:{type:t._f("isOnlineFilter")(e.row.is_online)}},[t._v(t._s(1==e.row.is_online?"是":"否"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(n){t.reset(e.row)}}},[t._v("重置密码")])]}}])})],1),t._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticStyle:{"margin-left":"250px"},attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){t.$set(t.listQuery,"page",e)},"update:limit":function(e){t.$set(t.listQuery,"limit",e)},pagination:t.getList}})],1)},[],!1,null,"7af7e800",null);r.options.__file="list.vue";e.default=r.exports},v66d:function(t,e,n){"use strict";var i=n("j9z5");n.n(i).a}}]);
\ No newline at end of file
This diff is collapsed.
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2fd3"],{"5xsC":function(t,e,i){"use strict";i.r(e);var n=i("ESsw"),l=i("Mz3J"),a=i("ZySA"),o={name:"PickList",components:{Pagination:l.a},filters:{isOnlineFilter:function(t){return{1:"success",0:"info"}[t]},genderFilter:function(t){return{"男":"success","女":"info","全部":"danger"}[t]}},directives:{waves:a.a},data:function(){return{list:null,total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{page:1,limit:10,filter:{value:"",key:"",is_online:""}},BooleanTypeOptions:[{key:1,display_name:"是"},{key:0,display_name:"否"}],SearchTypeOptions:[{key:"id",display_name:"ID"},{key:"name",display_name:"pick名称"}]}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(n.h)(this.listQuery).then(function(e){t.list=e.data.data.data,t.total=e.data.data.total,t.listLoading=!1})},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.listQuery.limit=t,this.getList()},handleCurrentChange:function(t){this.listQuery.page=t,this.getList()},handleOfflineOrOnline:function(t){var e=this,i=this.multipleSelection.length,l="";this.del_list=this.del_list.concat(this.multipleSelection);for(var a=0;a<i;a++)this.multipleSelection[a].is_online="offline"===t?0:1,l+=this.multipleSelection[a].id+" ";Object(n.c)({type:t,ids:l}).then(function(t){e.multipleSelection=[],e.$message.success(t.data.data.message)})},handleFilter:function(){this.listQuery.page=1,this.getList()},handleCreate:function(){this.$router.push("/pick/create")}}},r=(i("QS8L"),i("KHd+")),s=Object(r.a)(o,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"搜素"},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.handleFilter(e):null}},model:{value:t.listQuery.filter.value,callback:function(e){t.$set(t.listQuery.filter,"value",e)},expression:"listQuery.filter.value"}}),t._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"搜索字段",clearable:""},model:{value:t.listQuery.filter.key,callback:function(e){t.$set(t.listQuery.filter,"key",e)},expression:"listQuery.filter.key"}},t._l(t.SearchTypeOptions,function(t){return i("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})})),t._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"上线",clearable:""},model:{value:t.listQuery.filter.is_online,callback:function(e){t.$set(t.listQuery.filter,"is_online",e)},expression:"listQuery.filter.is_online"}},t._l(t.BooleanTypeOptions,function(t){return i("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})})),t._v(" "),i("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.handleFilter}},[t._v("搜索")]),t._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:t.handleCreate}},[t._v("创建")]),t._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(e){t.handleOfflineOrOnline("offline")}}},[t._v("下线")]),t._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(e){t.handleOfflineOrOnline("online")}}},[t._v("上线")])],1),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"pickID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("router-link",{staticClass:"link-type",attrs:{to:{path:"/pick/edit/"+e.row.id,query:{pick_type:e.row.pick_type_origin}}}},[i("span",[t._v(t._s(e.row.id))])])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"pick名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.name))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"pick简介"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.desc))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"pick用户"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.user_nums))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"pick属性"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.pick_type))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"性别"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-tag",{attrs:{type:t._f("genderFilter")(e.row.gender)}},[t._v(t._s(e.row.gender))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"地区"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.region))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"是否在线"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-tag",{attrs:{type:t._f("isOnlineFilter")(e.row.is_online)}},[t._v(t._s(1==e.row.is_online?"是":"否"))])]}}])})],1),t._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticStyle:{"margin-left":"250px"},attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){t.$set(t.listQuery,"page",e)},"update:limit":function(e){t.$set(t.listQuery,"limit",e)},pagination:t.getList}})],1)},[],!1,null,"4d92cdb2",null);s.options.__file="list.vue";e.default=s.exports},ESsw:function(t,e,i){"use strict";i.d(e,"h",function(){return l}),i.d(e,"c",function(){return a}),i.d(e,"b",function(){return o}),i.d(e,"j",function(){return r}),i.d(e,"k",function(){return s}),i.d(e,"i",function(){return c}),i.d(e,"a",function(){return u}),i.d(e,"e",function(){return d}),i.d(e,"d",function(){return p}),i.d(e,"f",function(){return f}),i.d(e,"g",function(){return m});var n=i("t3Un");function l(t){return Object(n.a)({url:"/api/pick/list",method:"get",params:t})}function a(t){return console.log(t),Object(n.a)({url:"/api/pick/list/update",method:"post",data:t})}function o(t){return Object(n.a)({url:"/api/pick/create",method:"post",data:t})}function r(t){return Object(n.a)({url:"/api/pick/detail",method:"get",params:{id:t}})}function s(t){return Object(n.a)({url:"/api/pick/topic/list",method:"get",params:t})}function c(t){return Object(n.a)({url:"/api/pick/celebrity/list",method:"get",params:t})}function u(t){return Object(n.a)({url:"/api/pick/add_fake_pick_nums",method:"post",data:t})}function d(t){return Object(n.a)({url:"/api/pick/topic",method:"post",data:t})}function p(t){return Object(n.a)({url:"/api/pick/celebrity",method:"post",data:t})}function f(t){return Object(n.a)({url:"/api/pick/del_celebrity",method:"post",data:t})}function m(t){return Object(n.a)({url:"/api/pick/del_topic",method:"post",data:t})}},QS8L:function(t,e,i){"use strict";var n=i("jGV+");i.n(n).a},Y5bG:function(t,e,i){"use strict";i.d(e,"a",function(){return l}),Math.easeInOutQuad=function(t,e,i,n){return(t/=n/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e};var n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function l(t,e,i){var l=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,a=t-l,o=0;e=void 0===e?500:e;!function t(){o+=20,function(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}(Math.easeInOutQuad(o,l,a,e)),o<e?n(t):i&&"function"==typeof i&&i()}()}},ZySA:function(t,e,i){"use strict";var n=i("P2sY"),l=i.n(n),a=(i("jUE0"),{bind:function(t,e){t.addEventListener("click",function(i){var n=l()({},e.value),a=l()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},n),o=a.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),s=o.querySelector(".waves-ripple");switch(s?s.className="waves-ripple":((s=document.createElement("span")).className="waves-ripple",s.style.height=s.style.width=Math.max(r.width,r.height)+"px",o.appendChild(s)),a.type){case"center":s.style.top=r.height/2-s.offsetHeight/2+"px",s.style.left=r.width/2-s.offsetWidth/2+"px";break;default:s.style.top=(i.pageY-r.top-s.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",s.style.left=(i.pageX-r.left-s.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return s.style.backgroundColor=a.color,s.className="waves-ripple z-active",!1}},!1)}}),o=function(t){t.directive("waves",a)};window.Vue&&(window.waves=a,Vue.use(o)),a.install=o;e.a=a},"jGV+":function(t,e,i){},jUE0:function(t,e,i){}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3199"],{"0qyJ":function(t,e,a){},"6x9P":function(t,e,a){},AFcf:function(t,e,a){"use strict";var n=a("6x9P");a.n(n).a},CBPX:function(t,e,a){"use strict";var n=a("piJ4");a.n(n).a},GVxz:function(t,e,a){"use strict";var n=a("0qyJ");a.n(n).a},lAbF:function(t,e,a){"use strict";a.r(e);var n=a("QbLZ"),i=a.n(n),s=a("L2JU"),r={name:"DashboardAdmin",components:{},data:function(){return{instruction:[{title:"1:本后台系统仅限于运营人员使用。"},{title:"2:运营人员对相关数据请谨慎使用。"}]}}},o=(a("AFcf"),a("KHd+")),c=Object(o.a)(r,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dashboard-editor-container"},[a("el-row",{staticStyle:{background:"#fff",padding:"16px 16px 0","margin-bottom":"32px"}},[a("el-row",{attrs:{gutter:20}},[a("el-card",{staticStyle:{height:"480px"},attrs:{shadow:"hover"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("更美运营后台使用手册及注意事项")])]),t._v(" "),a("el-table",{staticStyle:{width:"100%","font-size":"14px",border:"0"},attrs:{data:t.instruction,"show-header":!1,height:"404"}},[a("el-table-column",{scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"item"},[t._v(t._s(e.row.title))])]}}])})],1)],1)],1)],1)],1)},[],!1,null,"4e4e7308",null);c.options.__file="index.vue";var l=c.exports,d={name:"PanThumb",props:{image:{type:String,required:!0},zIndex:{type:Number,default:1},width:{type:String,default:"150px"},height:{type:String,default:"150px"}}},u=(a("CBPX"),Object(o.a)(d,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"pan-item",style:{zIndex:this.zIndex,height:this.height,width:this.width}},[e("div",{staticClass:"pan-info"},[e("div",{staticClass:"pan-info-roles-container"},[this._t("default")],2)]),this._v(" "),e("img",{staticClass:"pan-thumb",attrs:{src:this.image}})])},[],!1,null,"4178e1ea",null));u.options.__file="index.vue";var h={name:"DashboardEditor",components:{PanThumb:u.exports},data:function(){return{emptyGif:"https://wpimg.wallstcn.com/0e03b7da-db9e-4819-ba10-9016ddfdaed3"}},computed:i()({},Object(s.b)(["name","avatar","roles"]))},f=(a("GVxz"),Object(o.a)(h,function(){this.$createElement;this._self._c;return this._m(0)},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"dashboard-editor-container"},[e("div",{staticClass:" clearfix"},[e("div",{staticClass:"info-container"})]),this._v(" "),e("div")])}],!1,null,"a99b3d02",null));f.options.__file="index.vue";var p={name:"Home",components:{adminDashboard:l,editorDashboard:f.exports},data:function(){return{currentRole:"adminDashboard"}},computed:i()({},Object(s.b)(["roles"])),created:function(){this.roles.includes("staff")||(this.currentRole="adminDashboard")}},m=Object(o.a)(p,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"dashboard-container"},[e(this.currentRole,{tag:"component"})],1)},[],!1,null,null,null);m.options.__file="index.vue";e.default=m.exports},piJ4:function(t,e,a){}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3246"],{"0o2y":function(t,e,a){"use strict";a.d(e,"c",function(){return n}),a.d(e,"b",function(){return s}),a.d(e,"a",function(){return r}),a.d(e,"d",function(){return i});var o=a("t3Un");function n(t){return Object(o.a)({url:"/api/tag/list",method:"get",params:t})}function s(t){return Object(o.a)({url:"/api/tag/list/update",method:"post",data:t})}function r(t){return Object(o.a)({url:"/api/tag/create",method:"post",data:t})}function i(t){return Object(o.a)({url:"/api/tag/detail",method:"get",params:{id:t}})}},EBwg:function(t,e,a){"use strict";var o=a("gDS+"),n=a.n(o),s=a("P2sY"),r=a.n(s),i=a("fL+G"),l=a("Grqa"),c=a("uARZ"),u=a("0o2y"),p=a("gg54"),d=a("7Qib"),m={status:"draft",name:"",description:"",up_tags:[],down_tags:[],tagtypes:[],icon_url:""},g={name:"TagDetail",components:{MDinput:l.a,Sticky:c.a,Upload:i.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this;return{postForm:r()({},m),loading:!1,TagListOptions:[],TagTypeListOptions:[],up_tags:[],down_tags:[],tagtypes:[],uploadType:25,rules:{name:[{validator:function(e,a,o){""===(a=a.trim())?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()},trigger:"blur"}]},tempRoute:{}}},computed:{contentShortLength:function(){return this.postForm.description.length}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=r()({},m);this.tempRoute=r()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(u.d)(t).then(function(t){for(var a=t.data.data.data,o=0;o<a.up_tags.length;o++)e.up_tags.push(a.up_tags[o].id+":"+a.up_tags[o].name);for(var n=0;n<a.down_tags.length;n++)e.down_tags.push(a.down_tags[n].id+":"+a.down_tags[n].name);for(var s=0;s<a.tagtypes.length;s++)e.tagtypes.push(a.tagtypes[s].id+":"+a.tagtypes[s].name);e.postForm=a}).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;for(var a=!1,o=0;o<t.up_tags.length;o++)if(Object(d.c)(t.down_tags,t.up_tags[o])){t.$message.error("上下级标签不能存相同标签"),t.postForm.up_tags=[],t.postForm.down_tags=[],a=!0;break}if(a)return!1;t.postForm.up_tags=n()(t.up_tags),t.postForm.down_tags=n()(t.down_tags),t.postForm.tagtypes=n()(t.tagtypes),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;t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/tag/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},getRemoteTagList:function(t){var e=this;Object(p.e)(t).then(function(t){t.data.data.data&&(e.TagListOptions=t.data.data.data)})},getRemoteTagTypeList:function(t){var e=this;Object(p.f)(t).then(function(t){t.data.data.data&&(e.TagTypeListOptions=t.data.data.data)})}}},f=(a("ujIV"),a("KHd+")),h=Object(f.a)(g,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"}},[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("保存\n ")])],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:"name"}},[a("MDinput",{attrs:{maxlength:100,name:"name",required:""},model:{value:t.postForm.name,callback:function(e){t.$set(t.postForm,"name",e)},expression:"postForm.name"}},[t._v("\n 标签名称\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"postInfo-container"},[a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"标签ID:",prop:"position"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"300px"},attrs:{rows:1,type:"number",disabled:""},model:{value:t.postForm.id,callback:function(e){t.$set(t.postForm,"id",e)},expression:"postForm.id"}})],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"创建时间:",prop:"position"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"300px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.create_time,callback:function(e){t.$set(t.postForm,"create_time",e)},expression:"postForm.create_time"}})],1):t._e()],1)],1)],1)])],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"上级标签:"}},[a("el-select",{staticStyle:{width:"70%"},attrs:{"remote-method":t.getRemoteTagList,filterable:"",remote:"",multiple:"","value-key":"id",placeholder:"搜索标签"},model:{value:t.up_tags,callback:function(e){t.up_tags=e},expression:"up_tags"}},t._l(t.TagListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"下级标签:"}},[a("el-select",{staticStyle:{width:"70%"},attrs:{"remote-method":t.getRemoteTagList,multiple:"",filterable:"",remote:"","reserve-keyword":"",placeholder:"搜索标签",loading:t.loading,"value-key":"id"},model:{value:t.down_tags,callback:function(e){t.down_tags=e},expression:"down_tags"}},t._l(t.TagListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"标签类型:"}},[a("el-select",{staticStyle:{width:"70%"},attrs:{"remote-method":t.getRemoteTagTypeList,filterable:"",remote:"",multiple:"","value-key":"id",placeholder:"搜索类型"},model:{value:t.tagtypes,callback:function(e){t.tagtypes=e},expression:"tagtypes"}},t._l(t.TagTypeListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1)],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"标签简介:",prop:"desc"}},[a("el-input",{staticClass:"article-textarea",attrs:{rows:1,type:"textarea",autosize:"",placeholder:"请输入内容"},model:{value:t.postForm.description,callback:function(e){t.$set(t.postForm,"description",e)},expression:"postForm.description"}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:t.contentShortLength,expression:"contentShortLength"}],staticClass:"word-counter"},[t._v(t._s(t.contentShortLength)+"字")])],1),t._v(" "),a("div",{staticStyle:{"margin-bottom":"20px"}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"帖子图片:",prop:"icon_url"}},[a("span",{model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),a("Upload",{attrs:{uploadType:t.uploadType},model:{value:t.postForm.icon_url,callback:function(e){t.$set(t.postForm,"icon_url",e)},expression:"postForm.icon_url"}})],1)],1)],1)],1)],1)},[],!1,null,"56bd8930",null);h.options.__file="TagDetail.vue";e.a=h.exports},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return n});var o=a("t3Un");function n(){return Object(o.a)({url:"/api/get_token",method:"get"})}},"STa+":function(t,e,a){"use strict";a.r(e);var o={name:"EditTag",components:{TagDetail:a("EBwg").a}},n=a("KHd+"),s=Object(n.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("tag-detail",{attrs:{"is-edit":!1}})},[],!1,null,null,null);s.options.__file="create.vue";e.default=s.exports},"gDS+":function(t,e,a){t.exports={default:a("oh+g"),__esModule:!0}},gg54:function(t,e,a){"use strict";a.d(e,"h",function(){return n}),a.d(e,"c",function(){return s}),a.d(e,"e",function(){return r}),a.d(e,"d",function(){return i}),a.d(e,"b",function(){return l}),a.d(e,"a",function(){return c}),a.d(e,"g",function(){return u}),a.d(e,"f",function(){return p});var o=a("t3Un");function n(t){return Object(o.a)({url:"/api/search/user",method:"get",params:{name:t}})}function s(t){return Object(o.a)({url:"/api/search/group",method:"get",params:{name:t}})}function r(t){return Object(o.a)({url:"/api/search/tag",method:"get",params:{name:t}})}function i(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function l(t){return Object(o.a)({url:"/api/search/city",method:"get",params:{name:t}})}function c(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function u(t){return Object(o.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function p(t){return Object(o.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},iZDU:function(t,e,a){},"oh+g":function(t,e,a){var o=a("WEpk"),n=o.JSON||(o.JSON={stringify:JSON.stringify});t.exports=function(t){return n.stringify.apply(n,arguments)}},ujIV:function(t,e,a){"use strict";var o=a("iZDU");a.n(o).a}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3247"],{"0o2y":function(t,e,a){"use strict";a.d(e,"c",function(){return n}),a.d(e,"b",function(){return s}),a.d(e,"a",function(){return r}),a.d(e,"d",function(){return i});var o=a("t3Un");function n(t){return Object(o.a)({url:"/api/tag/list",method:"get",params:t})}function s(t){return Object(o.a)({url:"/api/tag/list/update",method:"post",data:t})}function r(t){return Object(o.a)({url:"/api/tag/create",method:"post",data:t})}function i(t){return Object(o.a)({url:"/api/tag/detail",method:"get",params:{id:t}})}},EBwg:function(t,e,a){"use strict";var o=a("gDS+"),n=a.n(o),s=a("P2sY"),r=a.n(s),i=a("fL+G"),l=a("Grqa"),c=a("uARZ"),u=a("0o2y"),p=a("gg54"),d=a("7Qib"),m={status:"draft",name:"",description:"",up_tags:[],down_tags:[],tagtypes:[],icon_url:""},g={name:"TagDetail",components:{MDinput:l.a,Sticky:c.a,Upload:i.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this;return{postForm:r()({},m),loading:!1,TagListOptions:[],TagTypeListOptions:[],up_tags:[],down_tags:[],tagtypes:[],uploadType:25,rules:{name:[{validator:function(e,a,o){""===(a=a.trim())?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()},trigger:"blur"}]},tempRoute:{}}},computed:{contentShortLength:function(){return this.postForm.description.length}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=r()({},m);this.tempRoute=r()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(u.d)(t).then(function(t){for(var a=t.data.data.data,o=0;o<a.up_tags.length;o++)e.up_tags.push(a.up_tags[o].id+":"+a.up_tags[o].name);for(var n=0;n<a.down_tags.length;n++)e.down_tags.push(a.down_tags[n].id+":"+a.down_tags[n].name);for(var s=0;s<a.tagtypes.length;s++)e.tagtypes.push(a.tagtypes[s].id+":"+a.tagtypes[s].name);e.postForm=a}).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;for(var a=!1,o=0;o<t.up_tags.length;o++)if(Object(d.c)(t.down_tags,t.up_tags[o])){t.$message.error("上下级标签不能存相同标签"),t.postForm.up_tags=[],t.postForm.down_tags=[],a=!0;break}if(a)return!1;t.postForm.up_tags=n()(t.up_tags),t.postForm.down_tags=n()(t.down_tags),t.postForm.tagtypes=n()(t.tagtypes),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;t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/tag/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},getRemoteTagList:function(t){var e=this;Object(p.e)(t).then(function(t){t.data.data.data&&(e.TagListOptions=t.data.data.data)})},getRemoteTagTypeList:function(t){var e=this;Object(p.f)(t).then(function(t){t.data.data.data&&(e.TagTypeListOptions=t.data.data.data)})}}},f=(a("ujIV"),a("KHd+")),h=Object(f.a)(g,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"}},[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("保存\n ")])],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:"name"}},[a("MDinput",{attrs:{maxlength:100,name:"name",required:""},model:{value:t.postForm.name,callback:function(e){t.$set(t.postForm,"name",e)},expression:"postForm.name"}},[t._v("\n 标签名称\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"postInfo-container"},[a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"标签ID:",prop:"position"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"300px"},attrs:{rows:1,type:"number",disabled:""},model:{value:t.postForm.id,callback:function(e){t.$set(t.postForm,"id",e)},expression:"postForm.id"}})],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"创建时间:",prop:"position"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"300px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.create_time,callback:function(e){t.$set(t.postForm,"create_time",e)},expression:"postForm.create_time"}})],1):t._e()],1)],1)],1)])],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"上级标签:"}},[a("el-select",{staticStyle:{width:"70%"},attrs:{"remote-method":t.getRemoteTagList,filterable:"",remote:"",multiple:"","value-key":"id",placeholder:"搜索标签"},model:{value:t.up_tags,callback:function(e){t.up_tags=e},expression:"up_tags"}},t._l(t.TagListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"下级标签:"}},[a("el-select",{staticStyle:{width:"70%"},attrs:{"remote-method":t.getRemoteTagList,multiple:"",filterable:"",remote:"","reserve-keyword":"",placeholder:"搜索标签",loading:t.loading,"value-key":"id"},model:{value:t.down_tags,callback:function(e){t.down_tags=e},expression:"down_tags"}},t._l(t.TagListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"标签类型:"}},[a("el-select",{staticStyle:{width:"70%"},attrs:{"remote-method":t.getRemoteTagTypeList,filterable:"",remote:"",multiple:"","value-key":"id",placeholder:"搜索类型"},model:{value:t.tagtypes,callback:function(e){t.tagtypes=e},expression:"tagtypes"}},t._l(t.TagTypeListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1)],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"标签简介:",prop:"desc"}},[a("el-input",{staticClass:"article-textarea",attrs:{rows:1,type:"textarea",autosize:"",placeholder:"请输入内容"},model:{value:t.postForm.description,callback:function(e){t.$set(t.postForm,"description",e)},expression:"postForm.description"}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:t.contentShortLength,expression:"contentShortLength"}],staticClass:"word-counter"},[t._v(t._s(t.contentShortLength)+"字")])],1),t._v(" "),a("div",{staticStyle:{"margin-bottom":"20px"}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"帖子图片:",prop:"icon_url"}},[a("span",{model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),a("Upload",{attrs:{uploadType:t.uploadType},model:{value:t.postForm.icon_url,callback:function(e){t.$set(t.postForm,"icon_url",e)},expression:"postForm.icon_url"}})],1)],1)],1)],1)],1)},[],!1,null,"56bd8930",null);h.options.__file="TagDetail.vue";e.a=h.exports},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return n});var o=a("t3Un");function n(){return Object(o.a)({url:"/api/get_token",method:"get"})}},S2fK:function(t,e,a){"use strict";a.r(e);var o={name:"EditTag",components:{TagDetail:a("EBwg").a}},n=a("KHd+"),s=Object(n.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("tag-detail",{attrs:{"is-edit":!0}})},[],!1,null,null,null);s.options.__file="edit.vue";e.default=s.exports},"gDS+":function(t,e,a){t.exports={default:a("oh+g"),__esModule:!0}},gg54:function(t,e,a){"use strict";a.d(e,"h",function(){return n}),a.d(e,"c",function(){return s}),a.d(e,"e",function(){return r}),a.d(e,"d",function(){return i}),a.d(e,"b",function(){return l}),a.d(e,"a",function(){return c}),a.d(e,"g",function(){return u}),a.d(e,"f",function(){return p});var o=a("t3Un");function n(t){return Object(o.a)({url:"/api/search/user",method:"get",params:{name:t}})}function s(t){return Object(o.a)({url:"/api/search/group",method:"get",params:{name:t}})}function r(t){return Object(o.a)({url:"/api/search/tag",method:"get",params:{name:t}})}function i(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function l(t){return Object(o.a)({url:"/api/search/city",method:"get",params:{name:t}})}function c(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function u(t){return Object(o.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function p(t){return Object(o.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},iZDU:function(t,e,a){},"oh+g":function(t,e,a){var o=a("WEpk"),n=o.JSON||(o.JSON={stringify:JSON.stringify});t.exports=function(t){return n.stringify.apply(n,arguments)}},ujIV:function(t,e,a){"use strict";var o=a("iZDU");a.n(o).a}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-38af"],{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
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4130"],{"0o2y":function(t,e,i){"use strict";i.d(e,"c",function(){return l}),i.d(e,"b",function(){return a}),i.d(e,"a",function(){return s}),i.d(e,"d",function(){return o});var n=i("t3Un");function l(t){return Object(n.a)({url:"/api/tag/list",method:"get",params:t})}function a(t){return Object(n.a)({url:"/api/tag/list/update",method:"post",data:t})}function s(t){return Object(n.a)({url:"/api/tag/create",method:"post",data:t})}function o(t){return Object(n.a)({url:"/api/tag/detail",method:"get",params:{id:t}})}},"3vK+":function(t,e,i){},"9rQ3":function(t,e,i){"use strict";var n=i("3vK+");i.n(n).a},Y5bG:function(t,e,i){"use strict";i.d(e,"a",function(){return l}),Math.easeInOutQuad=function(t,e,i,n){return(t/=n/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e};var n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function l(t,e,i){var l=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,a=t-l,s=0;e=void 0===e?500:e;!function t(){s+=20,function(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}(Math.easeInOutQuad(s,l,a,e)),s<e?n(t):i&&"function"==typeof i&&i()}()}},ZySA:function(t,e,i){"use strict";var n=i("P2sY"),l=i.n(n),a=(i("jUE0"),{bind:function(t,e){t.addEventListener("click",function(i){var n=l()({},e.value),a=l()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},n),s=a.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var o=s.getBoundingClientRect(),r=s.querySelector(".waves-ripple");switch(r?r.className="waves-ripple":((r=document.createElement("span")).className="waves-ripple",r.style.height=r.style.width=Math.max(o.width,o.height)+"px",s.appendChild(r)),a.type){case"center":r.style.top=o.height/2-r.offsetHeight/2+"px",r.style.left=o.width/2-r.offsetWidth/2+"px";break;default:r.style.top=(i.pageY-o.top-r.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",r.style.left=(i.pageX-o.left-r.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return r.style.backgroundColor=a.color,r.className="waves-ripple z-active",!1}},!1)}}),s=function(t){t.directive("waves",a)};window.Vue&&(window.waves=a,Vue.use(s)),a.install=s;e.a=a},hqDa:function(t,e,i){"use strict";i.r(e);var n=i("0o2y"),l=i("Mz3J"),a=i("ZySA"),s={name:"TagList",components:{Pagination:l.a},filters:{isOnlineFilter:function(t){return{1:"success",0:"info"}[t]}},directives:{waves:a.a},data:function(){return{list:null,total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{offset:1,limit:10,filter:{value:"",key:"",is_online:"",name:"",type:""}},BooleanTypeOptions:[{key:1,display_name:"是"},{key:0,display_name:"否"}],SearchTypeOptions:[{key:"id",display_name:"ID"},{key:"name",display_name:"标签名称"},{key:"tagtype_name",display_name:"标签类型"}]}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(n.c)(this.listQuery).then(function(e){t.list=e.data.data.data,t.total=e.data.data.total,t.listLoading=!1})},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.listQuery.limit=t,this.getList()},handleCurrentChange:function(t){this.listQuery.offset=t,this.getList()},handleOfflineOrOnline:function(t){var e=this,i=this.multipleSelection.length,l="";this.del_list=this.del_list.concat(this.multipleSelection);for(var a=0;a<i;a++)this.multipleSelection[a].is_online="offline"===t?0:1,l+=this.multipleSelection[a].id+" ";Object(n.b)({type:t,ids:l}).then(function(t){e.multipleSelection=[],e.$message.success(t.data.data.message)})},handleFilter:function(){if(this.listQuery.offset=1,"id"==this.listQuery.filter.key&&!/^\d+$/.test(this.listQuery.filter.value))return this.$message.error("搜索条件不合法, 重新输入"),!1;this.getList()},handleCreate:function(){this.$router.push("/tag/create")}}},o=(i("9rQ3"),i("KHd+")),r=Object(o.a)(s,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"搜素"},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.handleFilter(e):null}},model:{value:t.listQuery.filter.value,callback:function(e){t.$set(t.listQuery.filter,"value",e)},expression:"listQuery.filter.value"}}),t._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"搜索字段",clearable:""},model:{value:t.listQuery.filter.key,callback:function(e){t.$set(t.listQuery.filter,"key",e)},expression:"listQuery.filter.key"}},t._l(t.SearchTypeOptions,function(t){return i("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})})),t._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"上线",clearable:""},model:{value:t.listQuery.filter.is_online,callback:function(e){t.$set(t.listQuery.filter,"is_online",e)},expression:"listQuery.filter.is_online"}},t._l(t.BooleanTypeOptions,function(t){return i("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})})),t._v(" "),i("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.handleFilter}},[t._v("搜索")]),t._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:t.handleCreate}},[t._v("创建")]),t._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(e){t.handleOfflineOrOnline("offline")}}},[t._v("下线")]),t._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(e){t.handleOfflineOrOnline("online")}}},[t._v("上线")])],1),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"标签ID"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("router-link",{staticClass:"link-type",attrs:{to:"/tag/edit/"+e.row.id}},[i("span",[t._v(t._s(e.row.id))])])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"标签名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.name))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"是否在线"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-tag",{attrs:{type:t._f("isOnlineFilter")(e.row.is_online)}},[t._v(t._s(1==e.row.is_online?"是":"否"))])]}}])})],1),t._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticStyle:{"margin-left":"250px"},attrs:{total:t.total,page:t.listQuery.offset,limit:t.listQuery.limit},on:{"update:page":function(e){t.$set(t.listQuery,"offset",e)},"update:limit":function(e){t.$set(t.listQuery,"limit",e)},pagination:t.getList}})],1)},[],!1,null,"06da7b26",null);r.options.__file="list.vue";e.default=r.exports},jUE0:function(t,e,i){}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4316"],{"5Kag":function(e,t,i){},OQMk:function(e,t,i){"use strict";i.r(t);var n=i("gDS+"),l=i.n(n),a=i("QbLZ"),s=i.n(a),r=i("wk8/"),o=i("Mz3J"),u=i("ZySA"),c=i("L2JU"),d={name:"UserList",components:{Pagination:o.a},filters:{isOnlineFilter:function(e){return{1:"success",0:"info"}[e]},genderFilter:function(e){return{"男":"success","女":"info","全部":"danger"}[e]}},directives:{waves:u.a},data:function(){return{adminRole:!0,list:null,total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{page:1,limit:10,filter:{value:"",key:"",is_online:"",is_recommend:""}},ReBooleanTypeOptions:[{key:"1",display_name:"是"},{key:"0",display_name:"否"}],IdentifyTypeOptions:[{key:1,display_name:"组长"},{key:2,display_name:"管理员"},{key:3,display_name:"长老"},{key:4,display_name:"普通群员"}],UserTypeOptions:[{key:"0",display_name:"普通用户"},{key:"1",display_name:"马甲用户"}],SearchTypeOptions:[{key:"id",display_name:"ID"},{key:"user_id",display_name:"用户ID"},{key:"nick_name",display_name:"用户名"},{key:"phone_num",display_name:"联系电话"}]}},created:function(){this.getList()},computed:s()({},Object(c.b)(["roles"])),methods:{getList:function(){var e=this;this.listLoading=!0,this.listQuery.group_id=this.$route.query.group_id,Object(r.c)(this.listQuery).then(function(t){e.list=t.data.data.data,e.total=t.data.data.total,e.listLoading=!1})},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.listQuery.limit=e,this.getList()},handleCurrentChange:function(e){this.listQuery.page=e,this.getList()},handleOfflineOrOnline:function(e){var t=this,i=this.multipleSelection.length,n=[];this.del_list=this.del_list.concat(this.multipleSelection);for(var a=0;a<i;a++)"offline"===e?this.multipleSelection[a].is_online=0:"recommend"===e?this.multipleSelection[a].is_recommend=0:this.multipleSelection[a].is_online=1,n.push(this.multipleSelection[a].user_id);Object(r.a)({type:e,ids:l()(n)}).then(function(e){t.multipleSelection=[],t.$message.success(e.data.data.message),setTimeout(function(){t.$router.go(0)},1500)})},handleFilter:function(){this.listQuery.page=1,this.getList()},handleCreate:function(){this.$router.push("/user/create")}}},p=(i("RivU"),i("KHd+")),f=Object(p.a)(d,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"搜素"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter(t):null}},model:{value:e.listQuery.filter.value,callback:function(t){e.$set(e.listQuery.filter,"value",t)},expression:"listQuery.filter.value"}}),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"搜索字段",clearable:""},model:{value:e.listQuery.filter.key,callback:function(t){e.$set(e.listQuery.filter,"key",t)},expression:"listQuery.filter.key"}},e._l(e.SearchTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"用户身份",clearable:""},model:{value:e.listQuery.filter.user_type,callback:function(t){e.$set(e.listQuery.filter,"user_type",t)},expression:"listQuery.filter.user_type"}},e._l(e.UserTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"推荐",clearable:""},model:{value:e.listQuery.filter.is_recommend,callback:function(t){e.$set(e.listQuery.filter,"is_recommend",t)},expression:"listQuery.filter.is_recommend"}},e._l(e.ReBooleanTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("搜索")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v("创建\n ")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("recommend")}}},[e._v("推荐\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"center"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"ID"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"用户ID ",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:"/user/edit/"+t.row.user_id}},[i("span",[e._v(e._s(t.row.user_id))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"用户名"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.nick_name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"邮箱"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.email))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"关注小组"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:{path:"/group/list/",query:{user_id:t.row.user_id}}}},[i("span",[e._v(e._s(t.row.group_nums))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"帖子数"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:{path:"/topic/list/",query:{user_id:t.row.user_id}}}},[i("span",[e._v(e._s(t.row.topic_nums))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"用户身份"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.user_identify))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"是否推荐"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",{attrs:{type:e._f("isOnlineFilter")(t.row.is_recommend)}},[e._v(e._s(1==t.row.is_recommend?"是":"否"))])]}}])}),e._v("\n is_recommend\n\n ")],1),e._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],staticStyle:{"margin-left":"250px"},attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.limit},on:{"update:page":function(t){e.$set(e.listQuery,"page",t)},"update:limit":function(t){e.$set(e.listQuery,"limit",t)},pagination:e.getList}})],1)},[],!1,null,"152dff15",null);f.options.__file="list.vue";t.default=f.exports},RivU:function(e,t,i){"use strict";var n=i("5Kag");i.n(n).a},Y5bG:function(e,t,i){"use strict";i.d(t,"a",function(){return l}),Math.easeInOutQuad=function(e,t,i,n){return(e/=n/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t};var n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)};function l(e,t,i){var l=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,a=e-l,s=0;t=void 0===t?500:t;!function e(){s+=20,function(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}(Math.easeInOutQuad(s,l,a,t)),s<t?n(e):i&&"function"==typeof i&&i()}()}},ZySA:function(e,t,i){"use strict";var n=i("P2sY"),l=i.n(n),a=(i("jUE0"),{bind:function(e,t){e.addEventListener("click",function(i){var n=l()({},t.value),a=l()({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},n),s=a.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var r=s.getBoundingClientRect(),o=s.querySelector(".waves-ripple");switch(o?o.className="waves-ripple":((o=document.createElement("span")).className="waves-ripple",o.style.height=o.style.width=Math.max(r.width,r.height)+"px",s.appendChild(o)),a.type){case"center":o.style.top=r.height/2-o.offsetHeight/2+"px",o.style.left=r.width/2-o.offsetWidth/2+"px";break;default:o.style.top=(i.pageY-r.top-o.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",o.style.left=(i.pageX-r.left-o.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return o.style.backgroundColor=a.color,o.className="waves-ripple z-active",!1}},!1)}}),s=function(e){e.directive("waves",a)};window.Vue&&(window.waves=a,Vue.use(s)),a.install=s;t.a=a},"gDS+":function(e,t,i){e.exports={default:i("oh+g"),__esModule:!0}},jUE0:function(e,t,i){},"oh+g":function(e,t,i){var n=i("WEpk"),l=n.JSON||(n.JSON={stringify:JSON.stringify});e.exports=function(e){return l.stringify.apply(l,arguments)}},"wk8/":function(e,t,i){"use strict";i.d(t,"c",function(){return l}),i.d(t,"a",function(){return a}),i.d(t,"b",function(){return s}),i.d(t,"d",function(){return r});var n=i("t3Un");function l(e){return Object(n.a)({url:"/api/user/list",method:"get",params:e})}function a(e){return Object(n.a)({url:"/api/user/list/update",method:"post",data:e})}function s(e){return Object(n.a)({url:"/api/user/get",method:"get",params:{id:e}})}function r(e){return Object(n.a)({url:"/api/user/create",method:"post",data:e})}}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-445b"],{"0Fno":function(t,e,i){},"6QIw":function(t,e,i){"use strict";i.d(e,"c",function(){return l}),i.d(e,"b",function(){return a}),i.d(e,"a",function(){return s}),i.d(e,"d",function(){return o});var n=i("t3Un");function l(t){return Object(n.a)({url:"/api/tag/tagtype/list",method:"get",params:t})}function a(t){return Object(n.a)({url:"/api/tag/tagtype/list/update",method:"post",data:t})}function s(t){return Object(n.a)({url:"/api/tag/tagtype/create",method:"post",data:t})}function o(t){return Object(n.a)({url:"/api/tag/tagtype/detail",method:"get",params:{id:t}})}},CBoU:function(t,e,i){"use strict";var n=i("0Fno");i.n(n).a},"GR/h":function(t,e,i){"use strict";i.r(e);var n=i("6QIw"),l=i("Mz3J"),a=i("ZySA"),s={name:"TagTypeList",components:{Pagination:l.a},filters:{isOnlineFilter:function(t){return{1:"success",0:"info"}[t]}},directives:{waves:a.a},data:function(){return{list:null,total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{offset:1,limit:10,filter:{value:"",key:"",is_online:"",name:"",type:""}},BooleanTypeOptions:[{key:1,display_name:"是"},{key:0,display_name:"否"}],SearchTypeOptions:[{key:"id",display_name:"ID"},{key:"name",display_name:"类型名称"}]}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(n.c)(this.listQuery).then(function(e){t.list=e.data.data.data,t.total=e.data.data.total,t.listLoading=!1})},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.listQuery.limit=t,this.getList()},handleCurrentChange:function(t){this.listQuery.offset=t,this.getList()},handleOfflineOrOnline:function(t){var e=this,i=this.multipleSelection.length,l="",a="";this.del_list=this.del_list.concat(this.multipleSelection);for(var s=0;s<i;s++)"offline"===t?(this.multipleSelection[s].is_online=0,a=0):(this.multipleSelection[s].is_online=1,a=1),l+=this.multipleSelection[s].id+" ";Object(n.b)({update:a,ids:l}).then(function(t){e.multipleSelection=[],e.$message.success(t.data.data.message)})},handleFilter:function(){if(this.listQuery.offset=1,"id"==this.listQuery.filter.key&&!/^\d+$/.test(this.listQuery.filter.value))return this.$message.error("搜索条件不合法, 重新输入"),!1;this.getList()},handleCreate:function(){this.$router.push("/tag/tagtype/create")}}},o=(i("CBoU"),i("KHd+")),r=Object(o.a)(s,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"搜素"},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.handleFilter(e):null}},model:{value:t.listQuery.filter.value,callback:function(e){t.$set(t.listQuery.filter,"value",e)},expression:"listQuery.filter.value"}}),t._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"搜索字段",clearable:""},model:{value:t.listQuery.filter.key,callback:function(e){t.$set(t.listQuery.filter,"key",e)},expression:"listQuery.filter.key"}},t._l(t.SearchTypeOptions,function(t){return i("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})})),t._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"上线",clearable:""},model:{value:t.listQuery.filter.is_online,callback:function(e){t.$set(t.listQuery.filter,"is_online",e)},expression:"listQuery.filter.is_online"}},t._l(t.BooleanTypeOptions,function(t){return i("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})})),t._v(" "),i("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.handleFilter}},[t._v("搜索")]),t._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:t.handleCreate}},[t._v("创建")]),t._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(e){t.handleOfflineOrOnline("offline")}}},[t._v("下线")]),t._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(e){t.handleOfflineOrOnline("online")}}},[t._v("上线")])],1),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"标签类型ID"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("router-link",{staticClass:"link-type",attrs:{to:"/tag/tagtype/edit/"+e.row.id}},[i("span",[t._v(t._s(e.row.id))])])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"标签类型名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.name))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"是否在线"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-tag",{attrs:{type:t._f("isOnlineFilter")(e.row.is_online)}},[t._v(t._s(1==e.row.is_online?"是":"否"))])]}}])})],1),t._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticStyle:{"margin-left":"250px"},attrs:{total:t.total,page:t.listQuery.offset,limit:t.listQuery.limit},on:{"update:page":function(e){t.$set(t.listQuery,"offset",e)},"update:limit":function(e){t.$set(t.listQuery,"limit",e)},pagination:t.getList}})],1)},[],!1,null,"22ad4d5b",null);r.options.__file="list.vue";e.default=r.exports},Y5bG:function(t,e,i){"use strict";i.d(e,"a",function(){return l}),Math.easeInOutQuad=function(t,e,i,n){return(t/=n/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e};var n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function l(t,e,i){var l=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,a=t-l,s=0;e=void 0===e?500:e;!function t(){s+=20,function(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}(Math.easeInOutQuad(s,l,a,e)),s<e?n(t):i&&"function"==typeof i&&i()}()}},ZySA:function(t,e,i){"use strict";var n=i("P2sY"),l=i.n(n),a=(i("jUE0"),{bind:function(t,e){t.addEventListener("click",function(i){var n=l()({},e.value),a=l()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},n),s=a.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var o=s.getBoundingClientRect(),r=s.querySelector(".waves-ripple");switch(r?r.className="waves-ripple":((r=document.createElement("span")).className="waves-ripple",r.style.height=r.style.width=Math.max(o.width,o.height)+"px",s.appendChild(r)),a.type){case"center":r.style.top=o.height/2-r.offsetHeight/2+"px",r.style.left=o.width/2-r.offsetWidth/2+"px";break;default:r.style.top=(i.pageY-o.top-r.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",r.style.left=(i.pageX-o.left-r.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return r.style.backgroundColor=a.color,r.className="waves-ripple z-active",!1}},!1)}}),s=function(t){t.directive("waves",a)};window.Vue&&(window.waves=a,Vue.use(s)),a.install=s;e.a=a},jUE0:function(t,e,i){}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4922"],{"2Qwl":function(t,e,a){"use strict";var n=a("P2sY"),r=a.n(n),i=a("Grqa"),o=a("uARZ"),s=a("6QIw"),u=(a("gg54"),a("7Qib"),{status:"draft",name:""}),c={name:"TagTypeDetail",components:{MDinput:i.a,Sticky:o.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this;return{postForm:r()({},u),loading:!1,rules:{name:[{validator:function(e,a,n){""===(a=a.trim())?(t.$message({message:e.field+"为必传项",type:"error"}),n(new Error(e.field+"为必传项"))):n()},trigger:"blur"}]},tempRoute:{}}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=r()({},u);this.tempRoute=r()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(s.d)(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(s.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;t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/tag/tagtype/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})}}},l=(a("LmT8"),a("KHd+")),m=Object(l.a)(c,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"}},[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("保存\n ")])],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:"name"}},[a("MDinput",{attrs:{maxlength:100,name:"name",required:""},model:{value:t.postForm.name,callback:function(e){t.$set(t.postForm,"name",e)},expression:"postForm.name"}},[t._v("\n 标签类型名称\n ")])],1)],1)],1),t._v(" "),a("el-row")],1)],1)],1)},[],!1,null,"ad22feb6",null);m.options.__file="TagTypeDetail.vue";e.a=m.exports},"3avd":function(t,e,a){"use strict";a.r(e);var n={name:"CreateTagType",components:{TagTypeDetail:a("2Qwl").a}},r=a("KHd+"),i=Object(r.a)(n,function(){var t=this.$createElement;return(this._self._c||t)("tag-type-detail",{attrs:{"is-edit":!1}})},[],!1,null,null,null);i.options.__file="create.vue";e.default=i.exports},"6QIw":function(t,e,a){"use strict";a.d(e,"c",function(){return r}),a.d(e,"b",function(){return i}),a.d(e,"a",function(){return o}),a.d(e,"d",function(){return s});var n=a("t3Un");function r(t){return Object(n.a)({url:"/api/tag/tagtype/list",method:"get",params:t})}function i(t){return Object(n.a)({url:"/api/tag/tagtype/list/update",method:"post",data:t})}function o(t){return Object(n.a)({url:"/api/tag/tagtype/create",method:"post",data:t})}function s(t){return Object(n.a)({url:"/api/tag/tagtype/detail",method:"get",params:{id:t}})}},LmT8:function(t,e,a){"use strict";var n=a("PeSC");a.n(n).a},PeSC:function(t,e,a){},gg54:function(t,e,a){"use strict";a.d(e,"h",function(){return r}),a.d(e,"c",function(){return i}),a.d(e,"e",function(){return o}),a.d(e,"d",function(){return s}),a.d(e,"b",function(){return u}),a.d(e,"a",function(){return c}),a.d(e,"g",function(){return l}),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 i(t){return Object(n.a)({url:"/api/search/group",method:"get",params:{name:t}})}function o(t){return Object(n.a)({url:"/api/search/tag",method:"get",params:{name:t}})}function s(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 l(t){return Object(n.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function m(t){return Object(n.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4e44"],{XPyc:function(e,t,i){"use strict";var n=i("yyRt");i.n(n).a},Y5bG:function(e,t,i){"use strict";i.d(t,"a",function(){return l}),Math.easeInOutQuad=function(e,t,i,n){return(e/=n/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t};var n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)};function l(e,t,i){var l=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,a=e-l,s=0;t=void 0===t?500:t;!function e(){s+=20,function(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}(Math.easeInOutQuad(s,l,a,t)),s<t?n(e):i&&"function"==typeof i&&i()}()}},ZySA:function(e,t,i){"use strict";var n=i("P2sY"),l=i.n(n),a=(i("jUE0"),{bind:function(e,t){e.addEventListener("click",function(i){var n=l()({},t.value),a=l()({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},n),s=a.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var o=s.getBoundingClientRect(),r=s.querySelector(".waves-ripple");switch(r?r.className="waves-ripple":((r=document.createElement("span")).className="waves-ripple",r.style.height=r.style.width=Math.max(o.width,o.height)+"px",s.appendChild(r)),a.type){case"center":r.style.top=o.height/2-r.offsetHeight/2+"px",r.style.left=o.width/2-r.offsetWidth/2+"px";break;default:r.style.top=(i.pageY-o.top-r.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",r.style.left=(i.pageX-o.left-r.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return r.style.backgroundColor=a.color,r.className="waves-ripple z-active",!1}},!1)}}),s=function(e){e.directive("waves",a)};window.Vue&&(window.waves=a,Vue.use(s)),a.install=s;t.a=a},deRP:function(e,t,i){"use strict";i.d(t,"b",function(){return l}),i.d(t,"d",function(){return a}),i.d(t,"e",function(){return s}),i.d(t,"a",function(){return o}),i.d(t,"c",function(){return r});var n=i("t3Un");function l(e){return Object(n.a)({url:"/api/celebrity/list",method:"get",params:e})}function a(e){return Object(n.a)({url:"/api/celebrity/create",method:"post",data:e})}function s(e){return Object(n.a)({url:"/api/celebrity/detail",method:"get",params:{id:e}})}function o(e){return Object(n.a)({url:"/api/celebrity//list/update",method:"post",data:e})}function r(e){return Object(n.a)({url:"/api/celebrity/celebrity_related_group_info",method:"get",params:e})}},hg0t:function(e,t,i){"use strict";i.r(t);var n=i("deRP"),l=i("Mz3J"),a=i("ZySA"),s={name:"StartList",components:{Pagination:l.a},directives:{waves:a.a},data:function(){return{list:null,total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{page:0,limit:10,filter:{value:"",key:"",is_online:"",gender:""}},BooleanTypeOptions:[{key:1,display_name:"是"},{key:0,display_name:"否"}],GenderTypeOptions:[{key:0,display_name:"男"},{key:1,display_name:"女"}],SearchTypeOptions:[{key:"id",display_name:"明星ID"},{key:"name",display_name:"明星名称"}]}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(n.b)(this.listQuery).then(function(t){e.list=t.data.data.data,e.total=t.data.data.total,e.listLoading=!1})},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.listQuery.limit=e,this.getList()},handleCurrentChange:function(e){this.listQuery.page=e,this.getList()},handleOfflineOrOnline:function(e){var t=this,i=this.multipleSelection.length,l="";this.del_list=this.del_list.concat(this.multipleSelection);for(var a=0;a<i;a++)this.multipleSelection[a].is_online="offline"===e?0:1,l+=this.multipleSelection[a].id+" ";Object(n.a)({type:e,ids:l}).then(function(e){t.multipleSelection=[],t.$message.success(e.data.data.message),setTimeout(function(){t.$router.go(0)},1300)})},handleFilter:function(){this.listQuery.page=1,this.getList()},handleCreate:function(){this.$router.push("/star/create")}}},o=(i("XPyc"),i("KHd+")),r=Object(o.a)(s,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{placeholder:"搜素"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter(t):null}},model:{value:e.listQuery.filter.value,callback:function(t){e.$set(e.listQuery.filter,"value",t)},expression:"listQuery.filter.value"}}),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"搜索字段",clearable:""},model:{value:e.listQuery.filter.key,callback:function(t){e.$set(e.listQuery.filter,"key",t)},expression:"listQuery.filter.key"}},e._l(e.SearchTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"性别",clearable:""},model:{value:e.listQuery.filter.gender,callback:function(t){e.$set(e.listQuery.filter,"gender",t)},expression:"listQuery.filter.gender"}},e._l(e.GenderTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"上线",clearable:""},model:{value:e.listQuery.filter.is_online,callback:function(t){e.$set(e.listQuery.filter,"is_online",t)},expression:"listQuery.filter.is_online"}},e._l(e.BooleanTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("搜索")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v("创建")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("offline")}}},[e._v("下线")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("online")}}},[e._v("上线")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"center"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"明星ID",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:"/star/edit/"+t.row.id}},[i("span",[e._v(e._s(t.row.id))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"明星名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",[e._v(e._s(0==t.row.gender?"男":"女"))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"城市"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.city.name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"小组数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:{path:"/group/list/",query:{star_id:t.row.id}}}},[i("span",[e._v(e._s(t.row.group_nums))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"是否在线"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",[e._v(e._s(1==t.row.is_online?"是":"否"))])]}}])})],1),e._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],staticStyle:{"margin-left":"250px"},attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.limit},on:{"update:page":function(t){e.$set(e.listQuery,"page",t)},"update:limit":function(t){e.$set(e.listQuery,"limit",t)},pagination:e.getList}})],1)},[],!1,null,"c865e982",null);r.options.__file="list.vue";t.default=r.exports},jUE0:function(e,t,i){},yyRt:function(e,t,i){}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4f34"],{UTJy:function(t,e,n){},Y5bG:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),Math.easeInOutQuad=function(t,e,n,i){return(t/=i/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e};var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function a(t,e,n){var a=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,l=t-a,s=0;e=void 0===e?500:e;!function t(){s+=20,function(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}(Math.easeInOutQuad(s,a,l,e)),s<e?i(t):n&&"function"==typeof n&&n()}()}},"Z+4/":function(t,e,n){"use strict";n.r(e);var i=n("giwc"),a=n("Mz3J"),l=n("ZySA"),s={name:"PushList",components:{Pagination:a.a},directives:{waves:l.a},data:function(){return{list:null,total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{page:0,limit:10,filter:{value:"",key:""}},SearchTypeOptions:[{key:"id",display_name:"推送ID"},{key:"title",display_name:"推送标题"},{key:"content",display_name:"推送内容"}]}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(i.c)(this.listQuery).then(function(e){t.list=e.data.data.data,t.total=e.data.data.total,t.listLoading=!1})},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.listQuery.limit=t,this.getList()},handleCurrentChange:function(t){this.listQuery.page=t,this.getList()},handleFilter:function(){this.listQuery.page=1,this.getList()},handleCreate:function(){this.$router.push("/push/create")}}},o=(n("hBk3"),n("KHd+")),r=Object(o.a)(s,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("div",{staticClass:"filter-container"},[n("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"搜素"},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.handleFilter(e):null}},model:{value:t.listQuery.filter.value,callback:function(e){t.$set(t.listQuery.filter,"value",e)},expression:"listQuery.filter.value"}}),t._v(" "),n("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"搜索字段",clearable:""},model:{value:t.listQuery.filter.key,callback:function(e){t.$set(t.listQuery.filter,"key",e)},expression:"listQuery.filter.key"}},t._l(t.SearchTypeOptions,function(t){return n("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})})),t._v(" "),n("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.handleFilter}},[t._v("搜索")]),t._v(" "),n("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:t.handleCreate}},[t._v("创建")])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":t.handleSelectionChange}},[n("el-table-column",{attrs:{align:"center",label:"推送ID"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("router-link",{staticClass:"link-type",attrs:{to:"/push/edit/"+e.row.id}},[n("span",[t._v(t._s(e.row.id))])])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"推送标题"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.title))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"推送内容"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.content))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"推送时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.push_time))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.create_time))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"创建用户"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.user.name))])]}}])})],1),t._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticStyle:{"margin-left":"250px"},attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){t.$set(t.listQuery,"page",e)},"update:limit":function(e){t.$set(t.listQuery,"limit",e)},pagination:t.getList}})],1)},[],!1,null,"9b558caa",null);r.options.__file="list.vue";e.default=r.exports},ZySA:function(t,e,n){"use strict";var i=n("P2sY"),a=n.n(i),l=(n("jUE0"),{bind:function(t,e){t.addEventListener("click",function(n){var i=a()({},e.value),l=a()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),s=l.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var o=s.getBoundingClientRect(),r=s.querySelector(".waves-ripple");switch(r?r.className="waves-ripple":((r=document.createElement("span")).className="waves-ripple",r.style.height=r.style.width=Math.max(o.width,o.height)+"px",s.appendChild(r)),l.type){case"center":r.style.top=o.height/2-r.offsetHeight/2+"px",r.style.left=o.width/2-r.offsetWidth/2+"px";break;default:r.style.top=(n.pageY-o.top-r.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",r.style.left=(n.pageX-o.left-r.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return r.style.backgroundColor=l.color,r.className="waves-ripple z-active",!1}},!1)}}),s=function(t){t.directive("waves",l)};window.Vue&&(window.waves=l,Vue.use(s)),l.install=s;e.a=l},giwc:function(t,e,n){"use strict";n.d(e,"c",function(){return a}),n.d(e,"a",function(){return l}),n.d(e,"d",function(){return s}),n.d(e,"b",function(){return o});var i=n("t3Un");function a(t){return Object(i.a)({url:"/api/push/list",method:"get",params:t})}function l(t){return Object(i.a)({url:"/api/push/create",method:"post",data:t})}function s(t){return Object(i.a)({url:"/api/push/detail",method:"get",params:{id:t}})}function o(t){return Object(i.a)({url:"/api/push/effect_push",method:"get",params:{id:t}})}},hBk3:function(t,e,n){"use strict";var i=n("UTJy");n.n(i).a},jUE0:function(t,e,n){}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-65da"],{"+mRV":function(t,e,a){"use strict";a.r(e);var n={name:"EditTagType",components:{TagTypeDetail:a("2Qwl").a}},r=a("KHd+"),i=Object(r.a)(n,function(){var t=this.$createElement;return(this._self._c||t)("tag-type-detail",{attrs:{"is-edit":!0}})},[],!1,null,null,null);i.options.__file="edit.vue";e.default=i.exports},"2Qwl":function(t,e,a){"use strict";var n=a("P2sY"),r=a.n(n),i=a("Grqa"),o=a("uARZ"),s=a("6QIw"),u=(a("gg54"),a("7Qib"),{status:"draft",name:""}),c={name:"TagTypeDetail",components:{MDinput:i.a,Sticky:o.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this;return{postForm:r()({},u),loading:!1,rules:{name:[{validator:function(e,a,n){""===(a=a.trim())?(t.$message({message:e.field+"为必传项",type:"error"}),n(new Error(e.field+"为必传项"))):n()},trigger:"blur"}]},tempRoute:{}}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=r()({},u);this.tempRoute=r()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(s.d)(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(s.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;t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/tag/tagtype/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})}}},m=(a("LmT8"),a("KHd+")),l=Object(m.a)(c,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"}},[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("保存\n ")])],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:"name"}},[a("MDinput",{attrs:{maxlength:100,name:"name",required:""},model:{value:t.postForm.name,callback:function(e){t.$set(t.postForm,"name",e)},expression:"postForm.name"}},[t._v("\n 标签类型名称\n ")])],1)],1)],1),t._v(" "),a("el-row")],1)],1)],1)},[],!1,null,"ad22feb6",null);l.options.__file="TagTypeDetail.vue";e.a=l.exports},"6QIw":function(t,e,a){"use strict";a.d(e,"c",function(){return r}),a.d(e,"b",function(){return i}),a.d(e,"a",function(){return o}),a.d(e,"d",function(){return s});var n=a("t3Un");function r(t){return Object(n.a)({url:"/api/tag/tagtype/list",method:"get",params:t})}function i(t){return Object(n.a)({url:"/api/tag/tagtype/list/update",method:"post",data:t})}function o(t){return Object(n.a)({url:"/api/tag/tagtype/create",method:"post",data:t})}function s(t){return Object(n.a)({url:"/api/tag/tagtype/detail",method:"get",params:{id:t}})}},LmT8:function(t,e,a){"use strict";var n=a("PeSC");a.n(n).a},PeSC:function(t,e,a){},gg54:function(t,e,a){"use strict";a.d(e,"h",function(){return r}),a.d(e,"c",function(){return i}),a.d(e,"e",function(){return o}),a.d(e,"d",function(){return s}),a.d(e,"b",function(){return u}),a.d(e,"a",function(){return c}),a.d(e,"g",function(){return m}),a.d(e,"f",function(){return l});var n=a("t3Un");function r(t){return Object(n.a)({url:"/api/search/user",method:"get",params:{name:t}})}function i(t){return Object(n.a)({url:"/api/search/group",method:"get",params:{name:t}})}function o(t){return Object(n.a)({url:"/api/search/tag",method:"get",params:{name:t}})}function s(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}})}function l(t){return Object(n.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}}}]);
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7c81"],{"1yBM":function(e,t,i){"use strict";var n=i("km6n");i.n(n).a},I7qB:function(e,t,i){"use strict";i.d(t,"g",function(){return l}),i.d(t,"d",function(){return a}),i.d(t,"a",function(){return s}),i.d(t,"e",function(){return r}),i.d(t,"f",function(){return o}),i.d(t,"b",function(){return u}),i.d(t,"c",function(){return c});var n=i("t3Un");function l(e){return Object(n.a)({url:"/api/group/list",method:"get",params:e})}function a(e){return Object(n.a)({url:"/api/group/list/update",method:"post",data:e})}function s(e){return Object(n.a)({url:"/api/group/get",method:"get",params:{id:e}})}function r(e){return Object(n.a)({url:"/api/group/create",method:"post",data:e})}function o(e){return Object(n.a)({url:"/api/group/user/list",method:"get",params:e})}function u(e){return Object(n.a)({url:"/api/group/user/get",method:"get",params:{id:e}})}function c(e){return Object(n.a)({url:"/api/group/user/edit_group_identify",method:"post",data:e})}},VM4r:function(e,t,i){"use strict";i.r(t);var n=i("I7qB"),l=i("Mz3J"),a=i("ZySA"),s={name:"GroupList",components:{Pagination:l.a},directives:{waves:a.a},filters:{isOnlineFilter:function(e){return{1:"success",0:"info"}[e]}},data:function(){return{list:null,total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{page:0,limit:10,filter:{value:"",key:"",is_online:"",is_recommend:""}},SearchTypeOptions:[{key:"id",display_name:"小组ID"},{key:"name",display_name:"小组名称"}],OnlineTypeOptions:[{key:0,display_name:"否"},{key:1,display_name:"是"}],recommendTypeOptions:[{key:0,display_name:"否"},{key:1,display_name:"是"}]}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,this.listQuery.star_id=this.$route.query.star_id||"",this.listQuery.user_id=this.$route.query.user_id||"",Object(n.g)(this.listQuery).then(function(t){e.list=t.data.data.data,e.total=t.data.data.total,e.listLoading=!1})},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.listQuery.limit=e,this.getList()},handleCurrentChange:function(e){this.listQuery.page=e,this.getList()},handleFilter:function(){this.listQuery.page=1,this.getList()},handleCreate:function(){this.$router.push("/group/create")},handleOfflineOrOnline:function(e){var t=this,i=this.multipleSelection.length,l="";this.del_list=this.del_list.concat(this.multipleSelection);for(var a=0;a<i;a++)"offline"===e?this.multipleSelection[a].is_online=0:"is_recommend"==e?this.multipleSelection[a].is_recommend=1:this.multipleSelection[a].is_online=1,l+=this.multipleSelection[a].id+" ";Object(n.d)({type:e,ids:l}).then(function(e){t.multipleSelection=[],t.$message.success(e.data.data.message),setTimeout(function(){t.$router.go(0)},1e3)})}}},r=(i("1yBM"),i("KHd+")),o=Object(r.a)(s,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"搜素"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter(t):null}},model:{value:e.listQuery.filter.value,callback:function(t){e.$set(e.listQuery.filter,"value",t)},expression:"listQuery.filter.value"}}),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"搜索字段",clearable:""},model:{value:e.listQuery.filter.key,callback:function(t){e.$set(e.listQuery.filter,"key",t)},expression:"listQuery.filter.key"}},e._l(e.SearchTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"是否在线",clearable:""},model:{value:e.listQuery.filter.is_online,callback:function(t){e.$set(e.listQuery.filter,"is_online",t)},expression:"listQuery.filter.is_online"}},e._l(e.OnlineTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"是否推荐",clearable:""},model:{value:e.listQuery.filter.is_recommend,callback:function(t){e.$set(e.listQuery.filter,"is_recommend",t)},expression:"listQuery.filter.is_recommend"}},e._l(e.recommendTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("搜索")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v("创建")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("offline")}}},[e._v("下线")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("online")}}},[e._v("上线")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("is_recommend")}}},[e._v("推荐")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"center"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"小组ID "},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:"/group/edit/"+t.row.id}},[i("span",[e._v(e._s(t.row.id))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"小组名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"小组简介"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.description))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"明星数"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.star_nums))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"用户数"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:{path:"/user/list/",query:{group_id:t.row.id}}}},[i("span",[e._v(e._s(t.row.user_nums))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"帖子数"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:{path:"/topic/list/",query:{group_id:t.row.id}}}},[i("span",[e._v(e._s(t.row.topic_nums))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"组长"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.creator.name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"是否在线"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",{attrs:{type:e._f("isOnlineFilter")(t.row.is_online)}},[e._v(e._s(1==t.row.is_online?"是":"否"))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"是否推荐"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",{attrs:{type:e._f("isOnlineFilter")(t.row.is_recommend)}},[e._v(e._s(1==t.row.is_recommend?"是":"否"))])]}}])})],1),e._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],staticStyle:{"margin-left":"150px"},attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.limit},on:{"update:page":function(t){e.$set(e.listQuery,"page",t)},"update:limit":function(t){e.$set(e.listQuery,"limit",t)},pagination:e.getList}})],1)},[],!1,null,"dd551fe6",null);o.options.__file="list.vue";t.default=o.exports},Y5bG:function(e,t,i){"use strict";i.d(t,"a",function(){return l}),Math.easeInOutQuad=function(e,t,i,n){return(e/=n/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t};var n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)};function l(e,t,i){var l=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,a=e-l,s=0;t=void 0===t?500:t;!function e(){s+=20,function(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}(Math.easeInOutQuad(s,l,a,t)),s<t?n(e):i&&"function"==typeof i&&i()}()}},ZySA:function(e,t,i){"use strict";var n=i("P2sY"),l=i.n(n),a=(i("jUE0"),{bind:function(e,t){e.addEventListener("click",function(i){var n=l()({},t.value),a=l()({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},n),s=a.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var r=s.getBoundingClientRect(),o=s.querySelector(".waves-ripple");switch(o?o.className="waves-ripple":((o=document.createElement("span")).className="waves-ripple",o.style.height=o.style.width=Math.max(r.width,r.height)+"px",s.appendChild(o)),a.type){case"center":o.style.top=r.height/2-o.offsetHeight/2+"px",o.style.left=r.width/2-o.offsetWidth/2+"px";break;default:o.style.top=(i.pageY-r.top-o.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",o.style.left=(i.pageX-r.left-o.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return o.style.backgroundColor=a.color,o.className="waves-ripple z-active",!1}},!1)}}),s=function(e){e.directive("waves",a)};window.Vue&&(window.waves=a,Vue.use(s)),a.install=s;t.a=a},jUE0:function(e,t,i){},km6n:function(e,t,i){}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-8114"],{"Jkq+":function(e,t,i){"use strict";i.r(t);var l=i("XB8m"),n=i("Mz3J"),a=i("ZySA"),s={name:"FaceStarList",components:{Pagination:n.a},directives:{waves:a.a},filters:{isOnlineFilter:function(e){return{1:"success",0:"info"}[e]}},data:function(){return{list:null,total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{page:0,limit:10,filter:{sex:"",is_online:""}},BooleanTypeOptions:[{key:1,display_name:"是"},{key:0,display_name:"否"}],SexTypeOptions:[{key:1,display_name:"男"},{key:0,display_name:"女"}],SearchTypeOptions:[{key:"name",display_name:"明星名"}]}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(l.d)(this.listQuery).then(function(t){console.log(t.data.data.data),e.list=t.data.data.data,e.total=t.data.data.total,e.listLoading=!1})},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.listQuery.limit=e,this.getList()},handleCurrentChange:function(e){this.listQuery.page=e,this.getList()},handleCreate:function(){this.$router.push("/star/face/create")},handleOfflineOrOnline:function(e){var t=this,i=this.multipleSelection.length,n="";this.del_list=this.del_list.concat(this.multipleSelection);for(var a=0;a<i;a++)this.multipleSelection[a].is_online="offline"===e?0:1,n+=this.multipleSelection[a].id+" ";Object(l.a)({type:e,ids:n}).then(function(e){t.multipleSelection=[],t.$message.success(e.data.data.message),t.$router.go(0)})},handleFilter:function(){this.listQuery.page=1,this.getList()}}},o=(i("omuh"),i("KHd+")),r=Object(o.a)(s,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"搜素"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter(t):null}},model:{value:e.listQuery.filter.value,callback:function(t){e.$set(e.listQuery.filter,"value",t)},expression:"listQuery.filter.value"}}),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"搜索字段",clearable:""},model:{value:e.listQuery.filter.key,callback:function(t){e.$set(e.listQuery.filter,"key",t)},expression:"listQuery.filter.key"}},e._l(e.SearchTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"是否在线",clearable:""},model:{value:e.listQuery.filter.is_online,callback:function(t){e.$set(e.listQuery.filter,"is_online",t)},expression:"listQuery.filter.is_online"}},e._l(e.BooleanTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"性别",clearable:""},model:{value:e.listQuery.filter.sex,callback:function(t){e.$set(e.listQuery.filter,"sex",t)},expression:"listQuery.filter.sex"}},e._l(e.SexTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("搜索")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v("创建\n ")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("offline")}}},[e._v("下线\n ")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("online")}}},[e._v("上线\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"center"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"账号ID"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:"/star/face/edit/"+t.row.id}},[i("span",[e._v(e._s(t.row.id))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"明星名"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",{attrs:{type:t.row.sex}},[e._v(e._s(1==t.row.sex?"男":"女"))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"原图"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.ordinary_image_url))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"UV图"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.modeling_uv_url))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"模型"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.modeling_obj_url))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"是否在线"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",{attrs:{type:e._f("isOnlineFilter")(t.row.is_online)}},[e._v(e._s(1==t.row.is_online?"是":"否"))])]}}])})],1),e._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],staticStyle:{"margin-left":"250px"},attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.limit},on:{"update:page":function(t){e.$set(e.listQuery,"page",t)},"update:limit":function(t){e.$set(e.listQuery,"limit",t)},pagination:e.getList}})],1)},[],!1,null,"52433b64",null);r.options.__file="list.vue";t.default=r.exports},XB8m:function(e,t,i){"use strict";i.d(t,"b",function(){return n}),i.d(t,"d",function(){return a}),i.d(t,"a",function(){return s}),i.d(t,"c",function(){return o});var l=i("t3Un");function n(e){return Object(l.a)({url:"/api/face/star/create",method:"post",data:e})}function a(e){return Object(l.a)({url:"/api/face/star/list",method:"get",params:e})}function s(e){return console.log(e),Object(l.a)({url:"/api/face/star/list/update",method:"post",data:e})}function o(e){return Object(l.a)({url:"/api/face/star/detail",method:"get",params:{id:e}})}},Y5bG:function(e,t,i){"use strict";i.d(t,"a",function(){return n}),Math.easeInOutQuad=function(e,t,i,l){return(e/=l/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t};var l=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)};function n(e,t,i){var n=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,a=e-n,s=0;t=void 0===t?500:t;!function e(){s+=20,function(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}(Math.easeInOutQuad(s,n,a,t)),s<t?l(e):i&&"function"==typeof i&&i()}()}},ZySA:function(e,t,i){"use strict";var l=i("P2sY"),n=i.n(l),a=(i("jUE0"),{bind:function(e,t){e.addEventListener("click",function(i){var l=n()({},t.value),a=n()({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},l),s=a.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var o=s.getBoundingClientRect(),r=s.querySelector(".waves-ripple");switch(r?r.className="waves-ripple":((r=document.createElement("span")).className="waves-ripple",r.style.height=r.style.width=Math.max(o.width,o.height)+"px",s.appendChild(r)),a.type){case"center":r.style.top=o.height/2-r.offsetHeight/2+"px",r.style.left=o.width/2-r.offsetWidth/2+"px";break;default:r.style.top=(i.pageY-o.top-r.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",r.style.left=(i.pageX-o.left-r.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return r.style.backgroundColor=a.color,r.className="waves-ripple z-active",!1}},!1)}}),s=function(e){e.directive("waves",a)};window.Vue&&(window.waves=a,Vue.use(s)),a.install=s;t.a=a},jUE0:function(e,t,i){},omuh:function(e,t,i){"use strict";var l=i("p/Mn");i.n(l).a},"p/Mn":function(e,t,i){}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-862b"],{Eqwe:function(t,a,i){},"UUO+":function(t,a,i){"use strict";i.r(a);var e=i("zGwZ"),s=i.n(e),r={name:"Page401",data:function(){return{errGif:s.a+"?"+ +new Date,ewizardClap:"https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646",dialogVisible:!1}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:"/dashboard"}):this.$router.go(-1)}}},n=(i("j6/K"),i("KHd+")),l=Object(n.a)(r,function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"errPage-container"},[i("el-button",{staticClass:"pan-back-btn",attrs:{icon:"arrow-left"},on:{click:t.back}},[t._v("返回")]),t._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("h1",{staticClass:"text-jumbo text-ginormous"},[t._v("Oops!")]),t._v("\n gif来源"),i("a",{attrs:{href:"https://zh.airbnb.com/",target:"_blank"}},[t._v("airbnb")]),t._v(" 页面\n "),i("h2",[t._v("你没有权限去该页面")]),t._v(" "),i("h6",[t._v("如有不满请联系你领导")]),t._v(" "),i("ul",{staticClass:"list-unstyled"},[i("li",[t._v("或者你可以去:")]),t._v(" "),i("li",{staticClass:"link-type"},[i("router-link",{attrs:{to:"/dashboard"}},[t._v("回首页")])],1),t._v(" "),i("li",{staticClass:"link-type"},[i("a",{attrs:{href:"https://www.taobao.com/"}},[t._v("随便看看")])]),t._v(" "),i("li",[i("a",{attrs:{href:"#"},on:{click:function(a){a.preventDefault(),t.dialogVisible=!0}}},[t._v("点我看图")])])])]),t._v(" "),i("el-col",{attrs:{span:12}},[i("img",{attrs:{src:t.errGif,width:"313",height:"428",alt:"Girl has dropped her ice cream."}})])],1),t._v(" "),i("el-dialog",{attrs:{visible:t.dialogVisible,title:"随便看"},on:{"update:visible":function(a){t.dialogVisible=a}}},[i("img",{staticClass:"pan-img",attrs:{src:t.ewizardClap}})])],1)},[],!1,null,"24c0cb68",null);l.options.__file="401.vue";a.default=l.exports},"j6/K":function(t,a,i){"use strict";var e=i("Eqwe");i.n(e).a},zGwZ:function(t,a,i){t.exports=i.p+"static/img/401.089007e.gif"}}]);
\ No newline at end of file
This diff is collapsed.
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-b5f3"],{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})}},WBRP:function(t,e,a){},Yfch:function(t,e,a){"use strict"},Ytwa:function(t,e,a){"use strict";var r=a("P2sY"),n=a.n(r),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,r){""===(a=a.trim())?(t.$message({message:e.field+"为必传项",type:"error"}),r(new Error(e.field+"为必传项"))):r()};return{postForm:n()({},c),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"}]},isShow:!1}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=n()({},c);this.tempRoute=n()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(i.c)(t).then(function(t){e.postForm=t.data.data.data,e.isShow=!0}).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){if(500==e.data.data.code)return t.$notify({title:"失败",message:e.data.data.message,type:"error",duration:2e3}),t.loading=!1,!1;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.h)(t).then(function(t){t.data.items&&(e.userListOptions=t.data.items.map(function(t){return t.name}))})}}},l=(a("iCGk"),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.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,"2504740e",null);p.options.__file="AccountDetail.vue";e.a=p.exports},gg54:function(t,e,a){"use strict";a.d(e,"h",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,"g",function(){return m}),a.d(e,"f",function(){return l});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}})}function l(t){return Object(r.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},iCGk:function(t,e,a){"use strict";var r=a("WBRP");a.n(r).a}}]);
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
var api = require('./api')
//
// const target = 'http://doctor.test.env'
// const target = 'http://172.30.8.231:8000'
const target = 'http://172.30.8.156:10000'
const target = 'http://172.30.8.131:8000'
// const target = 'http://192.168.1.9:8000'
// 可以修改请求内容
......
......@@ -63,3 +63,11 @@ export function topicSearch(name) {
params: { name }
})
}
export function tagTypeSearch(name) {
return request({
url: 'api/search/tagtype',
method: 'get',
params: { name }
})
}
import request from '@/utils/request'
export function fetchList(query) {
return request({
url: '/api/tag/tagtype/list',
method: 'get',
params: query
})
}
export function OffLineOrOnLine(data) {
return request({
url: '/api/tag/tagtype/list/update',
method: 'post',
data
})
}
export function CreateTagType(data) {
return request({
url: '/api/tag/tagtype/create',
method: 'post',
data
})
}
export function fetchTagTypeDetail(id) {
return request({
url: '/api/tag/tagtype/detail',
method: 'get',
params: { id }
})
}
......@@ -29,7 +29,27 @@ const TagRouter = {
name: 'EditTag',
meta: {title: '编辑标签', noCache: true},
hidden: true
}
},
{
path: 'tagtype/list',
component: () => import('@/views/tag_type/list'),
name: 'TagTypeList',
meta: {title: '标签类型列表', icon: 'list'}
},
{
path: 'tagtype/create',
component: () => import('@/views/tag_type/create'),
name: 'CreateTagType',
meta: {title: '创建标签类型', icon: 'edit'},
hidden: true
},
{
path: 'tagtype/edit/:id(\\d+)',
component: () => import('@/views/tag_type/edit'),
name: 'EditTagType',
meta: {title: '编辑标签类型', noCache: true},
hidden: true
},
]
}
......
......@@ -71,11 +71,30 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label-width="75px" label="标签类型:" class="postInfo-container-item">
<el-select v-model="tagtypes" :remote-method="getRemoteTagTypeList" filterable remote multiple
value-key="id"
placeholder="搜索类型" style="width: 70%">
<el-option v-for="(item,index) in TagTypeListOptions" :key="item+index" :label="item"
:value="item"/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-form-item style="margin-bottom: 40px;" label-width="75px" label="标签简介:" prop="desc">
<el-input :rows="1" v-model="postForm.description" type="textarea" class="article-textarea" autosize
placeholder="请输入内容"/>
<span v-show="contentShortLength" class="word-counter">{{ contentShortLength }}</span>
</el-form-item>
<div style="margin-bottom: 20px">
<el-form-item style="margin-bottom: 40px;" label-width="75px" label="帖子图片:" prop="icon_url">
<span v-model="uploadType"></span>
<Upload v-model="postForm.icon_url" :uploadType="uploadType"/>
</el-form-item>
</div>
</div>
</el-form>
......@@ -83,34 +102,13 @@
</template>
<script>
import Upload from '@/components/Upload/singleImage3'
import MDinput from '@/components/MDinput'
import Sticky from '@/components/Sticky' // 粘性header组件
import {fetchTagDetail, CreateTag} from '@/api/tag'
import {tagSearch} from '@/api/remoteSearch'
import {isInArray, removeByvale} from "@/utils";
import {tagSearch, tagTypeSearch} from '@/api/remoteSearch'
import {isInArray} from "@/utils";
function Assembledata(target, source) {
var region_data = []
for (var i = 0; i < target.length; i++) {
if (isInArray(source, target[i]['name'])) {
region_data.push(target[i]['id'])
removeByvale(source, target[i]['name']);
}
}
region_data.push(...source)
return region_data.join(',')
}
function removeNull(parkingList) {
for (let i = 0; i < parkingList.length; i++) {
if (parkingList[i] == '' || parkingList[i] == null || typeof(parkingList[i]) == undefined) {
parkingList.splice(i, 1);
i = i - 1;
}
}
return parkingList
}
const defaultForm = {
status: 'draft',
......@@ -118,11 +116,13 @@
description: '',
up_tags: [],
down_tags: [],
tagtypes: [],
icon_url: '',
}
export default {
name: 'TagDetail',
components: {MDinput, Sticky},
components: {MDinput, Sticky, Upload},
props: {
isEdit: {
type: Boolean,
......@@ -146,16 +146,15 @@
postForm: Object.assign({}, defaultForm),
loading: false,
TagListOptions: [],
TagTypeListOptions: [],
up_tags: [],
down_tags: [],
tagtypes: [],
uploadType: 25,
rules: {
name: [{validator: validateRequire, trigger: 'blur'}],
},
tempRoute: {},
temparray: {
'up_tags': [],
'down_tags': [],
}
}
},
computed: {
......@@ -184,6 +183,9 @@
for (let i = 0; i < rep.down_tags.length; i++) {
this.down_tags.push(rep.down_tags[i]['id'] + ':' + rep.down_tags[i]['name'])
}
for (let i = 0;i < rep.tagtypes.length; i++){
this.tagtypes.push(rep.tagtypes[i]['id'] + ':' + rep.tagtypes[i]['name'])
}
this.postForm = rep
}).catch(err => {
console.log(err)
......@@ -209,8 +211,8 @@
}
this.postForm.up_tags = JSON.stringify(this.up_tags)
this.postForm.down_tags = JSON.stringify(this.down_tags);
this.postForm.tagtypes = JSON.stringify(this.tagtypes);
CreateTag(this.postForm).then(response => {
console.log()
if (response.data.data.code == 500) {
this.$notify({
title: '失败',
......@@ -255,6 +257,12 @@
this.TagListOptions = response.data.data.data
})
},
getRemoteTagTypeList(query) {
tagTypeSearch(query).then(response => {
if (!response.data.data.data) return
this.TagTypeListOptions = response.data.data.data
})
}
}
}
</script>
......
......@@ -30,7 +30,7 @@
</el-table-column>
<el-table-column align="center" label="线">
<el-table-column align="center" label="是否在线">
<template slot-scope="scope">
<el-tag :type="scope.row.is_online | isOnlineFilter">{{ scope.row.is_online==1 ? '是' : '否' }}</el-tag>
</template>
......@@ -86,6 +86,7 @@ export default {
SearchTypeOptions:[
{'key': 'id', 'display_name': 'ID'},
{'key': 'name', 'display_name': '标签名称'},
{'key': 'tagtype_name', 'display_name': '标签类型'},
]
}
},
......
<template>
<div class="createPost-container">
<el-form ref="postForm" :model="postForm" :rules="rules" class="form-container">
<sticky :class-name="'sub-navbar'">
<el-button v-loading="loading" style="margin-left: 10px;" type="success" @click="submitForm">保存
</el-button>
</sticky>
<div class="createPost-main-container">
<el-row>
<el-col :span="24">
<el-form-item style="margin-bottom: 40px;" prop="name">
<MDinput v-model="postForm.name" :maxlength="100" name="name" required>
标签类型名称
</MDinput>
</el-form-item>
</el-col>
</el-row>
<el-row>
</el-row>
</div>
</el-form>
</div>
</template>
<script>
import MDinput from '@/components/MDinput'
import Sticky from '@/components/Sticky' // 粘性header组件
import {fetchTagTypeDetail, CreateTagType} from '@/api/tagtype'
import {tagSearch} from '@/api/remoteSearch'
import {isInArray, removeByvale} from "@/utils";
const defaultForm = {
status: 'draft',
name: '',
}
export default {
name: 'TagTypeDetail',
components: {MDinput, Sticky},
props: {
isEdit: {
type: Boolean,
default: false
}
},
data() {
const validateRequire = (rule, value, callback) => {
value = value.trim()
if (value === '') {
this.$message({
message: rule.field + '为必传项',
type: 'error'
})
callback(new Error(rule.field + '为必传项'))
} else {
callback()
}
}
return {
postForm: Object.assign({}, defaultForm),
loading: false,
rules: {
name: [{validator: validateRequire, trigger: 'blur'}],
},
tempRoute: {},
}
},
created() {
if (this.isEdit) {
const id = this.$route.params && this.$route.params.id
this.fetchData(id)
} else {
this.postForm = Object.assign({}, defaultForm)
}
this.tempRoute = Object.assign({}, this.$route)
},
methods: {
fetchData(id) {
fetchTagTypeDetail(id).then(response => {
this.postForm = response.data.data.data
}).catch(err => {
console.log(err)
})
},
submitForm() {
this.$refs.postForm.validate(valid => {
if (valid) {
this.loading = true;
CreateTagType(this.postForm).then(response => {
if (response.data.data.code == 500) {
this.$notify({
title: '失败',
message: response.data.data.message,
type: 'error',
duration: 2000
})
this.loading = false
return false
}
this.$notify({
title: '成功',
message: response.data.data.message,
type: 'success',
duration: 2000
})
setTimeout(() => {
this.$router.push('/tag/tagtype/list')
}, 1000)
}).catch(err => {
this.$notify({
title: '失败',
message: '操作失败',
type: 'danger',
duration: 2000
})
});
this.postForm.status = 'published'
this.loading = false
} else {
console.log('error submit!!')
return false
}
})
},
}
}
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
@import "src/styles/mixin.scss";
.createPost-container {
position: relative;
.createPost-main-container {
padding: 40px 45px 20px 50px;
.postInfo-container {
position: relative;
@include clearfix;
margin-bottom: 10px;
.postInfo-container-item {
float: left;
}
}
.editor-container {
min-height: 500px;
margin: 0 0 30px;
.editor-upload-btn-container {
text-align: right;
margin-right: 10px;
.editor-upload-btn {
display: inline-block;
}
}
}
}
.word-counter {
width: 40px;
position: absolute;
right: -10px;
top: 0px;
}
}
</style>
<template>
<tag-type-detail :is-edit="false"/>
</template>
<script>
import TagTypeDetail from './components/TagTypeDetail'
export default {
name: 'CreateTagType',
components: { TagTypeDetail }
}
</script>
<template>
<tag-type-detail :is-edit="true"/>
</template>
<script>
import TagTypeDetail from './components/TagTypeDetail'
export default {
name: 'EditTagType',
components: { TagTypeDetail }
}
</script>
<template>
<div class="app-container">
<div class="filter-container">
<el-input :placeholder="'搜素'" v-model="listQuery.filter.value" style="width: 150px;" class="filter-item" @keyup.enter.native="handleFilter"/>
<el-select v-model="listQuery.filter.key" :placeholder="'搜索字段'" clearable class="filter-item" style="width: 110px">
<el-option v-for="item in SearchTypeOptions" :key="item.key" :label="item.display_name" :value="item.key"/>
</el-select>
<el-select v-model="listQuery.filter.is_online" :placeholder="'上线'" clearable class="filter-item" style="width: 100px">
<el-option v-for="item in BooleanTypeOptions" :key="item.key" :label="item.display_name" :value="item.key"/>
</el-select>
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">搜索</el-button>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="handleCreate">创建</el-button>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="handleOfflineOrOnline('offline')">下线</el-button>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="handleOfflineOrOnline('online')">上线</el-button>
</div>
<el-table v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%" ref="multipleTable" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center"></el-table-column>
<el-table-column align="center" label="标签类型ID" >
<template slot-scope="scope">
<router-link :to="'/tag/tagtype/edit/'+scope.row.id" class="link-type">
<span>{{ scope.row.id }}</span>
</router-link>
</template>
</el-table-column>
<el-table-column align="center" label="标签类型名称">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="是否在线">
<template slot-scope="scope">
<el-tag :type="scope.row.is_online | isOnlineFilter">{{ scope.row.is_online==1 ? '是' : '否' }}</el-tag>
</template>
</el-table-column>
</el-table>
<pagination v-show="total>0" :total="total" :page.sync="listQuery.offset" :limit.sync="listQuery.limit" style="margin-left: 250px;" @pagination="getList" />
</div>
</template>
<script>
import { fetchList, OffLineOrOnLine } from '@/api/tagtype'
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
import waves from '@/directive/waves'
export default {
name: 'TagTypeList',
components: { Pagination },
filters: {
isOnlineFilter(status) {
const statusMap = {
1: 'success',
0: 'info',
}
return statusMap[status]
},
},
directives: { waves },
data() {
return {
list: null,
total: 0,
listLoading: true,
multipleSelection: [],
del_list: [],
listQuery: {
offset: 1,
limit: 10,
filter: {
value: '',
key: '',
is_online: '',
name: '',
type:'',
},
},
BooleanTypeOptions: [
{'key': 1, 'display_name': '是'},
{'key': 0, 'display_name': '否'}
],
SearchTypeOptions:[
{'key': 'id', 'display_name': 'ID'},
{'key': 'name', 'display_name': '类型名称'},
]
}
},
created() {
this.getList()
},
methods: {
getList() {
this.listLoading = true
fetchList(this.listQuery).then(response => {
this.list = response.data.data.data
this.total = response.data.data.total
this.listLoading = false
})
},
handleSelectionChange(val) {
this.multipleSelection = val;
},
handleSizeChange(val) {
this.listQuery.limit = val
this.getList()
},
handleCurrentChange(val) {
this.listQuery.offset = val
this.getList()
},
handleOfflineOrOnline(val){
const length = this.multipleSelection.length;
let str = '';
var update = ''
this.del_list = this.del_list.concat(this.multipleSelection);
for (let i = 0; i < length; i++) {
if (val === 'offline'){
this.multipleSelection[i].is_online = 0
update = 0;
}else{
this.multipleSelection[i].is_online = 1
update = 1;
}
str += this.multipleSelection[i].id + ' ';
}
OffLineOrOnLine({update:update, ids:str}).then(response => {
this.multipleSelection = [];
this.$message.success(response.data.data.message);
})
},
handleFilter() {
this.listQuery.offset = 1
if (this.listQuery.filter.key == 'id' && !/^\d+$/.test(this.listQuery.filter.value)){
this.$message.error("搜索条件不合法, 重新输入")
return false;
}
this.getList()
},
handleCreate() {
this.$router.push('/tag/tagtype/create')
}
}
}
</script>
<style scoped>
.edit-input {
padding-right: 100px;
}
.cancel-btn {
position: absolute;
right: 15px;
top: 10px;
}
</style>
......@@ -10,7 +10,11 @@
<el-row :gutter="20">
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>帖子相关</span>
<div style="float: left; text-align: center;">
帖子相关
</div>
</div>
<el-row>
<el-col :span="24">
......@@ -103,6 +107,9 @@
</div>
</el-col>
</el-row>
<el-form-item label-width="75px" label="人工减分:" class="postInfo-container-item" style="margin-bottom: 20px">
<el-input v-model="postForm.drop_score" type="number" style="width: 80%"/>
</el-form-item>
<el-form-item style="margin-bottom: 20px" label-width="75px" label="是否在线:">
<el-radio-group v-model="postForm.is_online">
<el-radio :label="1"></el-radio>
......@@ -306,6 +313,7 @@
star: '',
is_puppet: '',
is_online: 0,
drop_score: 0,
}
export default {
......
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