Commit 9e00d60a authored by 陈伟's avatar 陈伟

Merge branch 'feature/1.3_backend' into 'dev'

Feature/1.3 backend

See merge request !40
parents fb7029a9 72945e6b
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# __author__ = "chenwei" # __author__ = "chenwei"
# Date: 2018/11/16 # Date: 2018/11/16
import json
from django.conf import settings from django.conf import settings
from utils.base import APIView from utils.base import APIView
from utils.user_util import make_password_own from utils.user_util import make_password_own
...@@ -21,13 +22,8 @@ class AccountList(APIView): ...@@ -21,13 +22,8 @@ class AccountList(APIView):
return data return data
def post(self, request): def post(self, request):
ids = request.POST.get('ids', '').split() ids = json.loads(request.POST.get('ids', '[]'))
type = request.POST.get('type', '') updates = json.loads(request.POST.get('updates', '{}'))
updates = {}
if type == 'offline':
updates['is_online'] = 0
else:
updates['is_online'] = 1
try: try:
self.rpc['venus/sun/account/batch/update'](updates=updates, ids=ids).unwrap() self.rpc['venus/sun/account/batch/update'](updates=updates, ids=ids).unwrap()
except Exception as e: except Exception as e:
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# __author__ = "chenwei" # __author__ = "chenwei"
# Date: 2018/12/11 # Date: 2018/12/11
import json
from utils.base import APIView from utils.base import APIView
from utils.logger import error_logger from utils.logger import error_logger
...@@ -60,15 +61,9 @@ class StarListView(APIView): ...@@ -60,15 +61,9 @@ class StarListView(APIView):
return data return data
def post(self, request): def post(self, request):
ids = request.POST.get('ids', '').split() ids = json.loads(request.POST.get('ids', '[]'))
tp = request.POST.get('type', '') updates = json.loads(request.POST.get('updates', '{}'))
updates = {}
if tp == 'offline':
updates['is_online'] = 0
else:
updates['is_online'] = 1
try: try:
self.rpc['mercury/face/batch/update'](ids=ids, updates=updates).unwrap() self.rpc['mercury/face/batch/update'](ids=ids, updates=updates).unwrap()
except Exception as e: except Exception as e:
......
...@@ -27,15 +27,8 @@ class GroupListView(APIView): ...@@ -27,15 +27,8 @@ class GroupListView(APIView):
return data return data
def post(self, request): def post(self, request):
ids = request.POST.get('ids', '').split() ids = json.loads(request.POST.get('ids', '[]'))
type = request.POST.get('type') updates = json.loads(request.POST.get('updates', '{}'))
updates = {}
if type == 'offline':
updates['is_online'] = False
elif type == 'is_recommend':
updates['is_recommend'] = True
else:
updates['is_online'] = True
try: try:
self.rpc['venus/sun/group/batch/update'](updates=updates, ids=ids).unwrap() self.rpc['venus/sun/group/batch/update'](updates=updates, ids=ids).unwrap()
except Exception as e: except Exception as e:
......
...@@ -22,15 +22,8 @@ class PickListView(APIView): ...@@ -22,15 +22,8 @@ class PickListView(APIView):
return data return data
def post(self, request): def post(self, request):
ids = request.POST.get('ids', '').split() ids = json.loads(request.POST.get('ids', '[]'))
type = request.POST.get('type', '') updates = json.loads(request.POST.get('updates', '{}'))
updates = {}
if type == 'offline':
updates['is_online'] = 0
else:
updates['is_online'] = 1
try: try:
self.rpc['venus/sun/pick/batch/update'](updates=updates, ids=ids).unwrap() self.rpc['venus/sun/pick/batch/update'](updates=updates, ids=ids).unwrap()
except Exception as e: except Exception as e:
...@@ -54,7 +47,7 @@ class UpdateOrCreateView(APIView): ...@@ -54,7 +47,7 @@ class UpdateOrCreateView(APIView):
def post(self, request): def post(self, request):
id = request.POST.get('id', '') id = request.POST.get('id', '')
pick_group_ids = list(set(map(lambda x: x.split(":")[0], json.loads(request.POST.get('pick_group', '[]'))))) pick_group_ids = list(set(map(lambda x: x.split(":")[0], json.loads(request.POST.get('pick_group', '[]')))))
city_ids = list(set(map(lambda x: x.split(":")[0], json.loads(request.POST.get('city', '[]'))))) country_ids = list(set(map(lambda x: x.split(':')[0], json.loads(request.POST.get('country', '[]')))))
position = request.POST.get('position') position = request.POST.get('position')
gender = request.POST.get('gender') gender = request.POST.get('gender')
pick_type = request.POST.get('pick_type') pick_type = request.POST.get('pick_type')
...@@ -84,7 +77,7 @@ class UpdateOrCreateView(APIView): ...@@ -84,7 +77,7 @@ class UpdateOrCreateView(APIView):
'name': request.POST.get('name'), 'name': request.POST.get('name'),
'desc': request.POST.get('desc'), 'desc': request.POST.get('desc'),
'gender': data_dict['gender'] if id else gender, 'gender': data_dict['gender'] if id else gender,
'region': city_ids, 'country_ids': country_ids,
'pick_type': data_dict['pick_type'] if id else pick_type, 'pick_type': data_dict['pick_type'] if id else pick_type,
'pick_group': pick_group_ids, 'pick_group': pick_group_ids,
'is_online': int(request.POST.get('is_online')), 'is_online': int(request.POST.get('is_online')),
......
...@@ -21,15 +21,9 @@ class CelebrityListView(APIView): ...@@ -21,15 +21,9 @@ class CelebrityListView(APIView):
return data return data
def post(self, request): def post(self, request):
ids = request.POST.get('ids', '').split() ids = json.loads(request.POST.get('ids', '[]'))
type = request.POST.get('type', '') updates = json.loads(request.POST.get('updates', '{}'))
updates = {}
if type == 'offline':
updates['is_online'] = 0
else:
updates['is_online'] = 1
try: try:
self.rpc['venus/sun/celebrity/batch/update'](updates=updates, ids=ids).unwrap() self.rpc['venus/sun/celebrity/batch/update'](updates=updates, ids=ids).unwrap()
except Exception as e: except Exception as e:
......
...@@ -21,13 +21,8 @@ class TagListView(APIView): ...@@ -21,13 +21,8 @@ class TagListView(APIView):
return data return data
def post(self, request): def post(self, request):
ids = request.POST.get('ids', '').split() ids = json.loads(request.POST.get('ids', '[]'))
type = request.POST.get('type', '') updates = json.loads(request.POST.get('updates', '{}'))
updates = {}
if type == 'offline':
updates['is_online'] = False
else:
updates['is_online'] = True
try: try:
self.rpc['venus/sun/tag/batch/update'](updates=updates, ids=ids).unwrap() self.rpc['venus/sun/tag/batch/update'](updates=updates, ids=ids).unwrap()
except Exception as e: except Exception as e:
...@@ -87,12 +82,8 @@ class TagTypeListView(APIView): ...@@ -87,12 +82,8 @@ class TagTypeListView(APIView):
return data return data
def post(self, request): def post(self, request):
ids = request.POST.get('ids', '').split() ids = json.loads(request.POST.get('ids', '[]'))
update = int(request.POST.get('update', '')) updates = json.loads(request.POST.get('updates', '{}'))
updates = {
'is_online': bool(update)
}
try: try:
self.rpc['venus/sun/tag/tagtype/batch/update'](updates=updates, ids=ids).unwrap() self.rpc['venus/sun/tag/tagtype/batch/update'](updates=updates, ids=ids).unwrap()
......
...@@ -15,12 +15,18 @@ class TopicListView(APIView): ...@@ -15,12 +15,18 @@ class TopicListView(APIView):
offset = int(request.GET.get('page', 0)) offset = int(request.GET.get('page', 0))
limit = int(request.GET.get('limit', 10)) limit = int(request.GET.get('limit', 10))
filter = self.handle_filter(request.GET.get('filter', "")) filter = self.handle_filter(request.GET.get('filter', ""))
sort_params = request.GET.getlist('sort[]')
if user_id: if user_id:
filter.update({'user_id': user_id}) filter.update({'user_id': user_id})
if group_id: if group_id:
filter.update({'group_id': group_id}) filter.update({'group_id': group_id})
try: try:
data = self.rpc['venus/sun/topic/list'](offset=(offset - 1) * limit, limit=limit, filters=filter).unwrap() data = self.rpc['venus/sun/topic/list'](
offset=(offset - 1) * limit,
limit=limit,
filters=filter,
sort_params=sort_params
).unwrap()
except Exception as e: except Exception as e:
error_logger.error(u'获取帖子列表失败%s', e) error_logger.error(u'获取帖子列表失败%s', e)
raise raise
...@@ -111,15 +117,12 @@ class ReplyCreate(APIView): ...@@ -111,15 +117,12 @@ class ReplyCreate(APIView):
class TopicListBatchUpdate(APIView): class TopicListBatchUpdate(APIView):
def post(self, request): def post(self, request):
ids = request.POST.get('ids', '').split() ids = json.loads(request.POST.get('ids', '[]'))
type = request.POST.get('type') updates = json.loads(request.POST.get('updates', '{}'))
updates = {} extra = json.loads(request.POST.get('extra', '{}'))
if type == 'offline':
updates['is_online'] = False
else:
updates['is_online'] = True
try: try:
self.rpc['venus/sun/topic/batch/update'](updates=updates, ids=ids).unwrap() self.rpc['venus/sun/topic/batch/update'](updates=updates, ids=ids, extra=extra).unwrap()
except Exception as e: except Exception as e:
error_logger.error(u'批量更新帖子失败%s', e) error_logger.error(u'批量更新帖子失败%s', e)
raise raise
......
...@@ -27,14 +27,7 @@ class UserListView(APIView): ...@@ -27,14 +27,7 @@ class UserListView(APIView):
def post(self, request): def post(self, request):
ids = json.loads(request.POST.get('ids', '[]')) ids = json.loads(request.POST.get('ids', '[]'))
type = request.POST.get('type', '') updates = json.loads(request.POST.get('updates', '{}'))
updates = {}
if type == 'recommend':
updates['is_recommend'] = 1
else:
pass
try: try:
self.rpc['venus/sun/user/batch/update'](updates=updates, ids=ids).unwrap() self.rpc['venus/sun/user/batch/update'](updates=updates, ids=ids).unwrap()
except Exception as e: except Exception as e:
......
<!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.e8091cad.css rel=stylesheet><link href=/static/css/chunk-libs.825f9043.css rel=stylesheet><link href=/static/css/app.a0140e91.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(n){function e(e){for(var u,t,h=e[0],r=e[1],d=e[2],k=0,b=[];k<h.length;k++)t=h[k],a[t]&&b.push(a[t][0]),a[t]=0;for(u in r)Object.prototype.hasOwnProperty.call(r,u)&&(n[u]=r[u]);for(o&&o(e);b.length;)b.shift()();return f.push.apply(f,d||[]),c()}function c(){for(var n,e=0;e<f.length;e++){for(var c=f[e],u=!0,t=1;t<c.length;t++){var r=c[t];0!==a[r]&&(u=!1)}u&&(f.splice(e--,1),n=h(h.s=c[0]))}return n}var u={},t={runtime:0},a={runtime:0},f=[];function h(e){if(u[e])return u[e].exports;var c=u[e]={i:e,l:!1,exports:{}};return n[e].call(c.exports,c,c.exports,h),c.l=!0,c.exports}h.e=function(n){var e=[];t[n]?e.push(t[n]):0!==t[n]&&{"chunk-4d21":1,"chunk-99f0":1,"chunk-afdb":1,"chunk-b58b":1,"chunk-commons":1,"chunk-059d":1,"chunk-07e4":1,"chunk-0814":1,"chunk-0b5f":1,"chunk-0e47":1,"chunk-169f":1,"chunk-1fb4":1,"chunk-2ada":1,"chunk-3b2d":1,"chunk-496d":1,"chunk-515c":1,"chunk-545a":1,"chunk-56a3":1,"chunk-6006":1,"chunk-659d":1,"chunk-5c0f":1,"chunk-6a71":1,"chunk-70b8":1,"chunk-b1c8":1,"chunk-6f28":1,"chunk-6f36":1,"chunk-75fb":1,"chunk-768f":1,"chunk-7845":1,"chunk-7c23":1,"chunk-7d58":1,"chunk-a2a7":1,"chunk-a570":1,"chunk-e917":1,"chunk-f39a":1,"chunk-fd33":1,"chunk-ddcf":1}[n]&&e.push(t[n]=new Promise(function(e,c){for(var u="static/css/"+({"chunk-commons":"chunk-commons"}[n]||n)+"."+{"7zzA":"31d6cfe0",JEtC:"31d6cfe0","chunk-4d21":"edc879c0","chunk-99f0":"2cb13940","chunk-afdb":"069c376d","chunk-b58b":"79629c97","chunk-commons":"22bf0e90","chunk-059d":"6690256b","chunk-07e4":"e62fadde",Q2Zf:"31d6cfe0",ZMmy:"31d6cfe0","chunk-0814":"877d5d6d","chunk-0b5f":"6fa34439","chunk-0e47":"b42b6636","chunk-169f":"b42b6636","chunk-1fb4":"90a1b745","chunk-2ada":"f97e31da","chunk-3b2d":"0cd4fa43","chunk-496d":"90a1b745","chunk-515c":"4c4f48e2","chunk-545a":"dd56b712","chunk-56a3":"7634f3f2","chunk-6006":"6fa34439","chunk-659d":"a613de32","chunk-5c0f":"a8b15ea3","chunk-6a71":"baf75f62",SoCV:"31d6cfe0",VwWe:"31d6cfe0","chunk-70b8":"aff3634a","chunk-b1c8":"aff3634a","chunk-6f28":"76f2387e","chunk-6f36":"4c5c1b36","chunk-75fb":"f97e31da","chunk-768f":"f082b957","chunk-7845":"107d05b5","/P8B":"31d6cfe0",Gbeq:"31d6cfe0","chunk-7c23":"4c4f48e2","chunk-7d58":"4b839e5e","chunk-a2a7":"76f2387e","chunk-a570":"877d5d6d","chunk-e917":"01715219","chunk-f39a":"3462f5dd","chunk-fd33":"1f68d2ca","chunk-ddcf":"cfa3a855"}[n]+".css",t=h.p+u,a=document.getElementsByTagName("link"),f=0;f<a.length;f++){var r=(k=a[f]).getAttribute("data-href")||k.getAttribute("href");if("stylesheet"===k.rel&&(r===u||r===t))return e()}var d=document.getElementsByTagName("style");for(f=0;f<d.length;f++){var k;if((r=(k=d[f]).getAttribute("data-href"))===u||r===t)return e()}var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onload=e,o.onerror=function(e){var u=e&&e.target&&e.target.src||t,a=new Error("Loading CSS chunk "+n+" failed.\n("+u+")");a.request=u,c(a)},o.href=t,document.getElementsByTagName("head")[0].appendChild(o)}).then(function(){t[n]=0}));var c=a[n];if(0!==c)if(c)e.push(c[2]);else{var u=new Promise(function(e,u){c=a[n]=[e,u]});e.push(c[2]=u);var f,r=document.getElementsByTagName("head")[0],d=document.createElement("script");d.charset="utf-8",d.timeout=120,h.nc&&d.setAttribute("nonce",h.nc),d.src=function(n){return h.p+"static/js/"+({"chunk-commons":"chunk-commons"}[n]||n)+"."+{"7zzA":"acd9b7e4",JEtC:"d582661d","chunk-4d21":"046675d7","chunk-99f0":"340f2985","chunk-afdb":"f15e873d","chunk-b58b":"a9b37905","chunk-commons":"2a406300","chunk-059d":"5a68493c","chunk-07e4":"2220a660",Q2Zf:"159a6cad",ZMmy:"fbf2ec27","chunk-0814":"bdbc6d7d","chunk-0b5f":"0c650a17","chunk-0e47":"84dec055","chunk-169f":"63c3a990","chunk-1fb4":"8d606702","chunk-2ada":"26b80907","chunk-3b2d":"81c2e4ee","chunk-496d":"29577dfc","chunk-515c":"c943019f","chunk-545a":"ec15b99c","chunk-56a3":"78c0fa98","chunk-6006":"3f97a34a","chunk-659d":"758af730","chunk-5c0f":"ca8382de","chunk-6a71":"79117560",SoCV:"49bd7f8a",VwWe:"37520311","chunk-70b8":"f4169e87","chunk-b1c8":"999e3ed0","chunk-6f28":"9e7edea1","chunk-6f36":"790a982d","chunk-75fb":"3fe299f0","chunk-768f":"a5c746c4","chunk-7845":"dbda252d","/P8B":"7f6807b2",Gbeq:"42306eb5","chunk-7c23":"581dbf71","chunk-7d58":"3eed1caf","chunk-a2a7":"117e4fa9","chunk-a570":"bc8d3f3c","chunk-e917":"40e86246","chunk-f39a":"3eae3382","chunk-fd33":"d7da9c96","chunk-ddcf":"4e39e698"}[n]+".js"}(n),f=function(e){d.onerror=d.onload=null,clearTimeout(k);var c=a[n];if(0!==c){if(c){var u=e&&("load"===e.type?"missing":e.type),t=e&&e.target&&e.target.src,f=new Error("Loading chunk "+n+" failed.\n("+u+": "+t+")");f.type=u,f.request=t,c[1](f)}a[n]=void 0}};var k=setTimeout(function(){f({type:"timeout",target:d})},12e4);d.onerror=d.onload=f,r.appendChild(d)}return Promise.all(e)},h.m=n,h.c=u,h.d=function(n,e,c){h.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:c})},h.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},h.t=function(n,e){if(1&e&&(n=h(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var c=Object.create(null);if(h.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var u in n)h.d(c,u,function(e){return n[e]}.bind(null,u));return c},h.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return h.d(e,"a",e),e},h.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},h.p="/",h.oe=function(n){throw console.error(n),n};var r=window.webpackJsonp=window.webpackJsonp||[],d=r.push.bind(r);r.push=e,r=r.slice();for(var k=0;k<r.length;k++)e(r[k]);var o=d;c()}([]);</script><script src=/static/js/chunk-elementUI.0b8d1800.js></script><script src=/static/js/chunk-libs.028865ab.js></script><script src=/static/js/app.c42e9c3d.js></script></body></html> <!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.e8091cad.css rel=stylesheet><link href=/static/css/chunk-libs.825f9043.css rel=stylesheet><link href=/static/css/app.a0140e91.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(n){function c(c){for(var u,t,f=c[0],r=c[1],d=c[2],k=0,b=[];k<f.length;k++)t=f[k],a[t]&&b.push(a[t][0]),a[t]=0;for(u in r)Object.prototype.hasOwnProperty.call(r,u)&&(n[u]=r[u]);for(o&&o(c);b.length;)b.shift()();return h.push.apply(h,d||[]),e()}function e(){for(var n,c=0;c<h.length;c++){for(var e=h[c],u=!0,t=1;t<e.length;t++){var r=e[t];0!==a[r]&&(u=!1)}u&&(h.splice(c--,1),n=f(f.s=e[0]))}return n}var u={},t={runtime:0},a={runtime:0},h=[];function f(c){if(u[c])return u[c].exports;var e=u[c]={i:c,l:!1,exports:{}};return n[c].call(e.exports,e,e.exports,f),e.l=!0,e.exports}f.e=function(n){var c=[];t[n]?c.push(t[n]):0!==t[n]&&{"chunk-4d21":1,"chunk-99f0":1,"chunk-afdb":1,"chunk-b58b":1,"chunk-commons":1,"chunk-059d":1,"chunk-0814":1,"chunk-0b5f":1,"chunk-0e47":1,"chunk-12c1":1,"chunk-13cb":1,"chunk-169f":1,"chunk-1fb4":1,"chunk-2ada":1,"chunk-366e":1,"chunk-438a":1,"chunk-496d":1,"chunk-4f37":1,"chunk-4f86":1,"chunk-515c":1,"chunk-5675":1,"chunk-5e3b":1,"chunk-6006":1,"chunk-61ee":1,"chunk-659d":1,"chunk-5c0f":1,"chunk-6a71":1,"chunk-70b8":1,"chunk-b1c8":1,"chunk-6f28":1,"chunk-75fb":1,"chunk-7c23":1,"chunk-7f1d":1,"chunk-a2a7":1,"chunk-a570":1,"chunk-d3a7":1,"chunk-ddcf":1}[n]&&c.push(t[n]=new Promise(function(c,e){for(var u="static/css/"+({"chunk-commons":"chunk-commons"}[n]||n)+"."+{"7zzA":"31d6cfe0",JEtC:"31d6cfe0","chunk-4d21":"edc879c0","chunk-99f0":"2cb13940","chunk-afdb":"069c376d","chunk-b58b":"79629c97","chunk-commons":"a93bab1c","chunk-059d":"6690256b","chunk-0814":"877d5d6d","chunk-0b5f":"6fa34439","chunk-0e47":"b42b6636","chunk-12c1":"3d07938a","chunk-13cb":"893a6b67","chunk-169f":"b42b6636","chunk-1fb4":"90a1b745","chunk-2ada":"f97e31da","chunk-366e":"f3b30e27","chunk-438a":"ff7f6ac8","chunk-496d":"90a1b745","chunk-4f37":"8b68c420","chunk-4f86":"94e51369","chunk-515c":"4c4f48e2","chunk-5675":"d2cc064a","chunk-5e3b":"7431cc5f","chunk-6006":"6fa34439","chunk-61ee":"d56e7a3d","chunk-659d":"a613de32","chunk-5c0f":"a8b15ea3","chunk-6a71":"baf75f62",SoCV:"31d6cfe0",VwWe:"31d6cfe0","chunk-70b8":"aff3634a","chunk-b1c8":"aff3634a","chunk-6f28":"76f2387e","chunk-75fb":"f97e31da","chunk-7c23":"4c4f48e2","chunk-7f1d":"107d05b5","/P8B":"31d6cfe0",Gbeq:"31d6cfe0","chunk-a2a7":"76f2387e","chunk-a570":"877d5d6d","chunk-d3a7":"57a7c2d4",Q2Zf:"31d6cfe0",ZMmy:"31d6cfe0","chunk-ddcf":"cfa3a855"}[n]+".css",t=f.p+u,a=document.getElementsByTagName("link"),h=0;h<a.length;h++){var r=(k=a[h]).getAttribute("data-href")||k.getAttribute("href");if("stylesheet"===k.rel&&(r===u||r===t))return c()}var d=document.getElementsByTagName("style");for(h=0;h<d.length;h++){var k;if((r=(k=d[h]).getAttribute("data-href"))===u||r===t)return c()}var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onload=c,o.onerror=function(c){var u=c&&c.target&&c.target.src||t,a=new Error("Loading CSS chunk "+n+" failed.\n("+u+")");a.request=u,e(a)},o.href=t,document.getElementsByTagName("head")[0].appendChild(o)}).then(function(){t[n]=0}));var e=a[n];if(0!==e)if(e)c.push(e[2]);else{var u=new Promise(function(c,u){e=a[n]=[c,u]});c.push(e[2]=u);var h,r=document.getElementsByTagName("head")[0],d=document.createElement("script");d.charset="utf-8",d.timeout=120,f.nc&&d.setAttribute("nonce",f.nc),d.src=function(n){return f.p+"static/js/"+({"chunk-commons":"chunk-commons"}[n]||n)+"."+{"7zzA":"acd9b7e4",JEtC:"d582661d","chunk-4d21":"046675d7","chunk-99f0":"340f2985","chunk-afdb":"f15e873d","chunk-b58b":"a9b37905","chunk-commons":"ba181541","chunk-059d":"5a68493c","chunk-0814":"bdbc6d7d","chunk-0b5f":"0c650a17","chunk-0e47":"51665ab1","chunk-12c1":"4162084d","chunk-13cb":"8570b7a7","chunk-169f":"be1e0fa9","chunk-1fb4":"14139e95","chunk-2ada":"4b433059","chunk-366e":"c500e438","chunk-438a":"0ccabd41","chunk-496d":"4e79015d","chunk-4f37":"896bff3d","chunk-4f86":"99076aae","chunk-515c":"8eeb0ed3","chunk-5675":"415d1f8d","chunk-5e3b":"1510696f","chunk-6006":"3f97a34a","chunk-61ee":"165c6019","chunk-659d":"758af730","chunk-5c0f":"ca8382de","chunk-6a71":"bd7fa17b",SoCV:"49bd7f8a",VwWe:"37520311","chunk-70b8":"f4169e87","chunk-b1c8":"999e3ed0","chunk-6f28":"631c51da","chunk-75fb":"4f33f854","chunk-7c23":"d77f983c","chunk-7f1d":"5f80b54a","/P8B":"7f6807b2",Gbeq:"42306eb5","chunk-a2a7":"8c69f1d1","chunk-a570":"bc8d3f3c","chunk-d3a7":"04dfa9ed",Q2Zf:"159a6cad",ZMmy:"fbf2ec27","chunk-ddcf":"4e39e698"}[n]+".js"}(n),h=function(c){d.onerror=d.onload=null,clearTimeout(k);var e=a[n];if(0!==e){if(e){var u=c&&("load"===c.type?"missing":c.type),t=c&&c.target&&c.target.src,h=new Error("Loading chunk "+n+" failed.\n("+u+": "+t+")");h.type=u,h.request=t,e[1](h)}a[n]=void 0}};var k=setTimeout(function(){h({type:"timeout",target:d})},12e4);d.onerror=d.onload=h,r.appendChild(d)}return Promise.all(c)},f.m=n,f.c=u,f.d=function(n,c,e){f.o(n,c)||Object.defineProperty(n,c,{enumerable:!0,get:e})},f.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},f.t=function(n,c){if(1&c&&(n=f(n)),8&c)return n;if(4&c&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(f.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&c&&"string"!=typeof n)for(var u in n)f.d(e,u,function(c){return n[c]}.bind(null,u));return e},f.n=function(n){var c=n&&n.__esModule?function(){return n.default}:function(){return n};return f.d(c,"a",c),c},f.o=function(n,c){return Object.prototype.hasOwnProperty.call(n,c)},f.p="/",f.oe=function(n){throw console.error(n),n};var r=window.webpackJsonp=window.webpackJsonp||[],d=r.push.bind(r);r.push=c,r=r.slice();for(var k=0;k<r.length;k++)c(r[k]);var o=d;e()}([]);</script><script src=/static/js/chunk-elementUI.0b8d1800.js></script><script src=/static/js/chunk-libs.028865ab.js></script><script src=/static/js/app.b84b139f.js></script></body></html>
\ No newline at end of file \ No newline at end of file
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.edit-input[data-v-7af7e800]{padding-right:100px}.cancel-btn[data-v-7af7e800]{position:absolute;right:15px;top:10px} .waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.edit-input[data-v-52896988]{padding-right:100px}.cancel-btn[data-v-52896988]{position:absolute;right:15px;top:10px}
\ No newline at end of file \ No newline at end of file
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.edit-input[data-v-22ad4d5b]{padding-right:100px}.cancel-btn[data-v-22ad4d5b]{position:absolute;right:15px;top:10px} .waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.edit-input[data-v-b0b5900a]{padding-right:100px}.cancel-btn[data-v-b0b5900a]{position:absolute;right:15px;top:10px}
\ No newline at end of file \ No newline at end of file
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.edit-input[data-v-4d92cdb2]{padding-right:100px}.cancel-btn[data-v-4d92cdb2]{position:absolute;right:15px;top:10px} .waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.edit-input[data-v-621cf677]{padding-right:100px}.cancel-btn[data-v-621cf677]{position:absolute;right:15px;top:10px}
\ No newline at end of file \ No newline at end of file
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.edit-input[data-v-dd551fe6]{padding-right:100px}.cancel-btn[data-v-dd551fe6]{position:absolute;right:15px;top:10px} .waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.edit-input[data-v-0185cc6d]{padding-right:100px}.cancel-btn[data-v-0185cc6d]{position:absolute;right:15px;top:10px}
\ No newline at end of file \ No newline at end of file
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.edit-input[data-v-76b0aca6]{padding-right:100px}.cancel-btn[data-v-76b0aca6]{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-38b2a7f7]{padding-right:100px}.cancel-btn[data-v-38b2a7f7]{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-3b081dd4]{padding-right:100px}.cancel-btn[data-v-3b081dd4]{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-0d106f8e]{padding-right:100px}.cancel-btn[data-v-0d106f8e]{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
.pagination-container[data-v-b7be0e7e]{background:#fff;padding:32px 16px}.pagination-container.hidden[data-v-b7be0e7e]{display:none}.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}.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}.dropzone[data-v-0c499238]{border:2px solid #e5e5e5;font-family:Roboto,sans-serif;color:#777;-webkit-transition:background-color .2s linear;transition:background-color .2s linear;padding:5px}.dropzone[data-v-0c499238]:hover{background-color:#f6f6f6}i[data-v-0c499238]{color:#ccc}.dropzone .dz-image img[data-v-0c499238]{width:100%;height:100%}.dropzone input[name=file][data-v-0c499238]{display:none}.dropzone .dz-preview .dz-image[data-v-0c499238]{border-radius:0}.dropzone .dz-preview:hover .dz-image img[data-v-0c499238]{-webkit-transform:none;transform:none;-webkit-filter:none;width:100%;height:100%}.dropzone .dz-preview .dz-details[data-v-0c499238]{bottom:0;top:0;color:#fff;background-color:rgba(33,150,243,.8);-webkit-transition:opacity .2s linear;transition:opacity .2s linear;text-align:left}.dropzone .dz-preview .dz-details .dz-filename span[data-v-0c499238],.dropzone .dz-preview .dz-details .dz-size span[data-v-0c499238]{background-color:transparent}.dropzone .dz-preview .dz-details .dz-filename:not(:hover) span[data-v-0c499238]{border:none}.dropzone .dz-preview .dz-details .dz-filename:hover span[data-v-0c499238]{background-color:transparent;border:none}.dropzone .dz-preview .dz-remove[data-v-0c499238]{position:absolute;z-index:30;color:#fff;margin-left:15px;padding:10px;top:inherit;bottom:15px;border:2px solid #fff;text-decoration:none;text-transform:uppercase;font-size:.8rem;font-weight:800;letter-spacing:1.1px;opacity:0}.dropzone .dz-preview:hover .dz-remove[data-v-0c499238]{opacity:1}.dropzone .dz-preview .dz-error-mark[data-v-0c499238],.dropzone .dz-preview .dz-success-mark[data-v-0c499238]{margin-left:-40px;margin-top:-50px}.dropzone .dz-preview .dz-error-mark i[data-v-0c499238],.dropzone .dz-preview .dz-success-mark i[data-v-0c499238]{color:#fff;font-size:5rem}.editor-slide-upload[data-v-39480e6e]{margin-bottom:20px}.editor-slide-upload[data-v-39480e6e] .el-upload--picture-card{width:100%}.tinymce-container[data-v-261f5e1f]{position:relative}.tinymce-container[data-v-261f5e1f] .mce-fullscreen{z-index:10000}.tinymce-textarea[data-v-261f5e1f]{visibility:hidden;z-index:-1}.editor-custom-btn-container[data-v-261f5e1f]{position:absolute;right:4px;top:4px}.fullscreen .editor-custom-btn-container[data-v-261f5e1f]{z-index:10000;position:fixed}.editor-upload-btn[data-v-261f5e1f]{display:inline-block} .pagination-container[data-v-83b2352c]{background:#fff;padding:32px 16px}.pagination-container.hidden[data-v-83b2352c]{display:none}.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}.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}.dropzone[data-v-0c499238]{border:2px solid #e5e5e5;font-family:Roboto,sans-serif;color:#777;-webkit-transition:background-color .2s linear;transition:background-color .2s linear;padding:5px}.dropzone[data-v-0c499238]:hover{background-color:#f6f6f6}i[data-v-0c499238]{color:#ccc}.dropzone .dz-image img[data-v-0c499238]{width:100%;height:100%}.dropzone input[name=file][data-v-0c499238]{display:none}.dropzone .dz-preview .dz-image[data-v-0c499238]{border-radius:0}.dropzone .dz-preview:hover .dz-image img[data-v-0c499238]{-webkit-transform:none;transform:none;-webkit-filter:none;width:100%;height:100%}.dropzone .dz-preview .dz-details[data-v-0c499238]{bottom:0;top:0;color:#fff;background-color:rgba(33,150,243,.8);-webkit-transition:opacity .2s linear;transition:opacity .2s linear;text-align:left}.dropzone .dz-preview .dz-details .dz-filename span[data-v-0c499238],.dropzone .dz-preview .dz-details .dz-size span[data-v-0c499238]{background-color:transparent}.dropzone .dz-preview .dz-details .dz-filename:not(:hover) span[data-v-0c499238]{border:none}.dropzone .dz-preview .dz-details .dz-filename:hover span[data-v-0c499238]{background-color:transparent;border:none}.dropzone .dz-preview .dz-remove[data-v-0c499238]{position:absolute;z-index:30;color:#fff;margin-left:15px;padding:10px;top:inherit;bottom:15px;border:2px solid #fff;text-decoration:none;text-transform:uppercase;font-size:.8rem;font-weight:800;letter-spacing:1.1px;opacity:0}.dropzone .dz-preview:hover .dz-remove[data-v-0c499238]{opacity:1}.dropzone .dz-preview .dz-error-mark[data-v-0c499238],.dropzone .dz-preview .dz-success-mark[data-v-0c499238]{margin-left:-40px;margin-top:-50px}.dropzone .dz-preview .dz-error-mark i[data-v-0c499238],.dropzone .dz-preview .dz-success-mark i[data-v-0c499238]{color:#fff;font-size:5rem}.editor-slide-upload[data-v-39480e6e]{margin-bottom:20px}.editor-slide-upload[data-v-39480e6e] .el-upload--picture-card{width:100%}.tinymce-container[data-v-261f5e1f]{position:relative}.tinymce-container[data-v-261f5e1f] .mce-fullscreen{z-index:10000}.tinymce-textarea[data-v-261f5e1f]{visibility:hidden;z-index:-1}.editor-custom-btn-container[data-v-261f5e1f]{position:absolute;right:4px;top:4px}.fullscreen .editor-custom-btn-container[data-v-261f5e1f]{z-index:10000;position:fixed}.editor-upload-btn[data-v-261f5e1f]{display:inline-block}
\ No newline at end of file \ No newline at end of file
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.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} .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-94c41de8]{position:relative}.createPost-container .createPost-main-container[data-v-94c41de8]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-94c41de8]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-94c41de8]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-94c41de8]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-94c41de8]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-94c41de8]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-94c41de8]{display:inline-block}.createPost-container .word-counter[data-v-94c41de8]{width:40px;position:absolute;right:-10px;top:0}.edit-input[data-v-94c41de8]{padding-right:100px}.cancel-btn[data-v-94c41de8]{position:absolute;right:15px;top:10px}
\ No newline at end of file \ No newline at end of file
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.edit-input[data-v-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-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-c865e982]{padding-right:100px}.cancel-btn[data-v-c865e982]{position:absolute;right:15px;top:10px}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-07e4"],{"5myA":function(t,e,i){"use strict";var a=i("sppW");i.n(a).a},ESsw:function(t,e,i){"use strict";i.d(e,"h",function(){return n}),i.d(e,"c",function(){return o}),i.d(e,"b",function(){return s}),i.d(e,"j",function(){return r}),i.d(e,"k",function(){return l}),i.d(e,"i",function(){return c}),i.d(e,"a",function(){return p}),i.d(e,"e",function(){return u}),i.d(e,"d",function(){return d}),i.d(e,"f",function(){return m}),i.d(e,"g",function(){return f});var a=i("t3Un");function n(t){return Object(a.a)({url:"/api/pick/list",method:"get",params:t})}function o(t){return console.log(t),Object(a.a)({url:"/api/pick/list/update",method:"post",data:t})}function s(t){return Object(a.a)({url:"/api/pick/create",method:"post",data:t})}function r(t){return Object(a.a)({url:"/api/pick/detail",method:"get",params:{id:t}})}function l(t){return Object(a.a)({url:"/api/pick/topic/list",method:"get",params:t})}function c(t){return Object(a.a)({url:"/api/pick/celebrity/list",method:"get",params:t})}function p(t){return Object(a.a)({url:"/api/pick/add_fake_pick_nums",method:"post",data:t})}function u(t){return Object(a.a)({url:"/api/pick/topic",method:"post",data:t})}function d(t){return Object(a.a)({url:"/api/pick/celebrity",method:"post",data:t})}function m(t){return Object(a.a)({url:"/api/pick/del_celebrity",method:"post",data:t})}function f(t){return Object(a.a)({url:"/api/pick/del_topic",method:"post",data:t})}},Y5bG:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),Math.easeInOutQuad=function(t,e,i,a){return(t/=a/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e};var a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function n(t,e,i){var n=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,o=t-n,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,n,o,e)),s<e?a(t):i&&"function"==typeof i&&i()}()}},ZySA:function(t,e,i){"use strict";var a=i("P2sY"),n=i.n(a),o=(i("jUE0"),{bind:function(t,e){t.addEventListener("click",function(i){var a=n()({},e.value),o=n()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},a),s=o.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var r=s.getBoundingClientRect(),l=s.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":((l=document.createElement("span")).className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",s.appendChild(l)),o.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(i.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(i.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=o.color,l.className="waves-ripple z-active",!1}},!1)}}),s=function(t){t.directive("waves",o)};window.Vue&&(window.waves=o,Vue.use(s)),o.install=s;e.a=o},"gDS+":function(t,e,i){t.exports={default:i("oh+g"),__esModule:!0}},gg54:function(t,e,i){"use strict";i.d(e,"h",function(){return n}),i.d(e,"c",function(){return o}),i.d(e,"e",function(){return s}),i.d(e,"d",function(){return r}),i.d(e,"b",function(){return l}),i.d(e,"a",function(){return c}),i.d(e,"g",function(){return p}),i.d(e,"f",function(){return u});var a=i("t3Un");function n(t){return Object(a.a)({url:"/api/search/user",method:"get",params:{name:t}})}function o(t){return Object(a.a)({url:"/api/search/group",method:"get",params:{name:t}})}function s(t){return Object(a.a)({url:"/api/search/tag",method:"get",params:t})}function r(t){return Object(a.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function l(t){return Object(a.a)({url:"/api/search/city",method:"get",params:{name:t}})}function c(t){return Object(a.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function p(t){return Object(a.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function u(t){return Object(a.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},jUE0:function(t,e,i){},"oh+g":function(t,e,i){var a=i("WEpk"),n=a.JSON||(a.JSON={stringify:JSON.stringify});t.exports=function(t){return n.stringify.apply(n,arguments)}},sppW:function(t,e,i){},tThj:function(t,e,i){"use strict";var a=i("m1cH"),n=i.n(a),o=i("gDS+"),s=i.n(o),r=i("P2sY"),l=i.n(r),c=i("Grqa"),p=i("uARZ"),u=i("Mz3J"),d=i("ZySA"),m=i("ESsw"),f=i("gg54"),_=(i("7Qib"),{status:"draft",name:"",desc:"",gender:"",city:[],pick_group:[],pick_type:"",position:"",is_online:0}),h={name:"PickDetail",components:{MDinput:c.a,Sticky:p.a,Pagination:u.a},directives:{waves:d.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,i,a){""===i?(t.$message({message:e.field+"为必传项",type:"error"}),a(new Error(e.field+"为必传项"))):a()};return{postForm:l()({},_),loading:!1,city:[],pick_group:[],pick_type_origin:"",celebrity_id:"",topic_id:"",del_list:[],regionListOptions:[],groupListOptions:[],celebrityListOptions:[],topicListOptions:[],GenderTypeOptions:[{key:2,display_name:"全部"},{key:0,display_name:"男"},{key:1,display_name:"女"}],PickTypeOptions:[{key:1,display_name:"明星打榜"},{key:0,display_name:"PICK帖子"}],rules:{name:[{validator:e,trigger:"blur"}],desc:[{validator:e,trigger:"blur"}],gender:[{validator:e,trigger:"blur"}],city:[{validator:e,trigger:"blur"}],pick_type:[{validator:e,trigger:"blur"}],position:[{validator:e,trigger:"blur"}]},tempRoute:{},listQuery:{id:"",pick_type:"",page:1,limit:10,filter:{}},list:null,total:0,listLoading:!0,origin_len:0,topic_ids:[],celebrity_ids:[],new_ids:[],del_ids:[]}},computed:{contentShortLength:function(){return this.postForm.desc.length},data:function(){var t=this;return this.list.filter(function(e){for(var i=!1,a=0;a<t.del_list.length;a++)if(e.topic_id==t.del_list[a].topic_id){i=!0;break}if(!i)return e})}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t),this.getList()}else this.postForm=l()({},_);this.tempRoute=l()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(m.j)(t).then(function(t){for(var i=t.data.data.data,a=0;a<i.pick_group.length;a++)e.pick_group.push(i.pick_group[a].id+":"+i.pick_group[a].name);for(var n=0;n<i.region.length;n++)e.city.push(i.region[n].id+":"+i.region[n].name);e.postForm=i,e.listQuery.pick_type=i.pick_type_origin}).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,t.postForm.city=s()(t.city),t.postForm.pick_group=s()(t.pick_group),Object(m.b)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/pick/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},getRemoteCityList:function(t){var e=this;Object(f.b)(t).then(function(t){t.data.data.data&&(e.regionListOptions=t.data.data.data)})},getRemoteGroupList:function(t){var e=this;Object(f.c)(t).then(function(t){t.data.data.data&&(e.groupListOptions=t.data.data.data)})},getRemoteTopicList:function(t){var e=this;Object(f.g)(t).then(function(t){t.data.data.data&&(e.topicListOptions=t.data.data.data)})},getRemoteCelebrityList:function(t){var e=this;Object(f.a)(t).then(function(t){t.data.data.data&&(e.celebrityListOptions=t.data.data.data)})},handleSelectionChange:function(t){this.multipleSelection=t},getList:function(){var t=this;this.listLoading=!0,this.listQuery.id=this.$route.params&&this.$route.params.id,"1"===this.$route.query.pick_type?Object(m.i)(this.listQuery).then(function(e){var i=e.data.data.data;t.list=i.map(function(e){return t.$set(e,"edit",!1),e.original_fake_pick_nums=e.fake_pick_nums,e}),t.total=e.data.data.total,t.origin_len=e.data.data.total,t.listLoading=!1}):Object(m.k)(this.listQuery).then(function(e){var i=e.data.data.data;t.list=i.map(function(e){return t.$set(e,"edit",!1),e.original_fake_pick_nums=e.fake_pick_nums,e}),t.total=e.data.data.total,t.origin_len=e.data.data.total,t.listLoading=!1})},cancelEdit:function(t){t.fake_pick_nums=t.original_fake_pick_nums,t.edit=!1,this.$message({message:"取消成功",type:"warning"})},confirmEdit:function(t){var e=this.$route.params&&this.$route.params.id;t.edit=!1,t.original_fake_pick_nums=t.fake_pick_nums,t.pick_id=e,this.$message({message:"添加成功",type:"success"}),Object(m.a)(t).then(function(t){}).catch(function(t){})},append:function(){var t=this;if(0==this.postForm.pick_type_origin){if(""==this.topic_id)return this.$message.error("请输入搜索内容~~"),this.topic_id="",!1;var e={topic_id:this.topic_id,pick_id:this.postForm.id};Object(m.e)(e).then(function(e){t.$message.success(e.data.data.message)}),this.topic_id="",setTimeout(function(){t.$router.go(0)},1300)}else if(1==this.postForm.pick_type_origin){if(""==this.celebrity_id)return this.$message.error("请输入搜索内容~~"),this.celebrity_id="",!1;var i={celebrity_id:this.celebrity_id,pick_id:this.postForm.id};Object(m.d)(i).then(function(e){t.$message.success(e.data.data.message)}),this.celebrity_id="",setTimeout(function(){t.$router.go(0)},1300)}},del:function(){var t,e=this;this.total=this.origin_len-this.del_list.length;var i=[];if((t=this.del_list).push.apply(t,n()(this.multipleSelection)),0==this.postForm.pick_type_origin){for(var a=0;a<this.multipleSelection.length;a++)i.push(this.multipleSelection[a].topic_id);var o={del_ids:s()(i),pick_id:this.postForm.id};Object(m.g)(o).then(function(t){e.$message.success("操作成功"),setTimeout(function(){e.$router.go(0)},1300)})}else{for(var r=0;r<this.multipleSelection.length;r++)i.push(this.multipleSelection[r].celebrity_id);var l={del_ids:s()(i),pick_id:this.postForm.id};Object(m.f)(l).then(function(t){e.$message.success("操作成功"),setTimeout(function(){e.$router.go(0)},1300)})}}}},g=(i("5myA"),i("KHd+")),y=Object(g.a)(h,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"createPost-container"},[i("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[i("sticky",{attrs:{"class-name":"sub-navbar"}},[i("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(" "),i("div",{staticClass:"createPost-main-container"},[i("el-row",{attrs:{gutter:20}},[i("el-card",{staticClass:"box-card"},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[t._v("pick相关")])]),t._v(" "),i("el-row",[i("el-col",{attrs:{span:24}},[i("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"name"}},[i("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 pick名称\n ")])],1),t._v(" "),i("div",{staticClass:"postInfo-container"},[i("el-row",[i("el-col",{attrs:{span:8}},[i("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"45px",label:"性别:",prop:"gender"}},[i("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"120px"},attrs:{placeholder:"性别:",clearable:""},model:{value:t.postForm.gender,callback:function(e){t.$set(t.postForm,"gender",e)},expression:"postForm.gender"}},t._l(t.GenderTypeOptions,function(t){return i("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1)],1),t._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"60px",label:"属性:",prop:"pick_type"}},[t.isEdit?i("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"120px"},attrs:{placeholder:"属性:",clearable:"",disabled:""},model:{value:t.postForm.pick_type,callback:function(e){t.$set(t.postForm,"pick_type",e)},expression:"postForm.pick_type"}},t._l(t.PickTypeOptions,function(t){return i("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})})):i("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"120px"},attrs:{placeholder:"属性:",clearable:""},model:{value:t.postForm.pick_type,callback:function(e){t.$set(t.postForm,"pick_type",e)},expression:"postForm.pick_type"}},t._l(t.PickTypeOptions,function(t){return i("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1)],1),t._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"45px",label:"位置:",prop:"position"}},[i("el-input",{staticClass:"article-textarea",staticStyle:{width:"120px"},attrs:{rows:1,type:"number",placeholder:"请输入内容"},model:{value:t.postForm.position,callback:function(e){t.$set(t.postForm,"position",e)},expression:"postForm.position"}})],1)],1)],1)],1)],1)],1),t._v(" "),i("el-row",[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"postInfo-container"},[i("el-row",[i("el-col",{attrs:{span:8}},[t.isEdit?i("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"45px",label:"pickid:",prop:"id"}},[i("el-input",{staticClass:"article-textarea",staticStyle:{width:"120px"},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(" "),i("el-col",{attrs:{span:8}},[t.isEdit?i("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"pick用户:",prop:"user_nums"}},[i("el-input",{staticClass:"article-textarea",staticStyle:{width:"120px"},attrs:{rows:1,type:"number",disabled:""},model:{value:t.postForm.user_nums,callback:function(e){t.$set(t.postForm,"user_nums",e)},expression:"postForm.user_nums"}})],1):t._e()],1),t._v(" "),i("el-col",{attrs:{span:8}},[t.isEdit?i("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"85px",label:"创建时间:",prop:"create_time"}},[i("el-input",{staticClass:"article-textarea",staticStyle:{width:"170px"},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(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"45px",label:"城市:",prop:"city"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{"remote-method":t.getRemoteCityList,filterable:"",remote:"",multiple:"","value-key":"id",placeholder:"搜索地区"},model:{value:t.city,callback:function(e){t.city=e},expression:"city"}},t._l(t.regionListOptions,function(t,e){return i("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1)],1),t._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"45px",label:"小组:",prop:"pick_group"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{"remote-method":t.getRemoteGroupList,multiple:"",filterable:"",remote:"","reserve-keyword":"",clearable:"",placeholder:"搜索小组",loading:t.loading,"value-key":"id"},model:{value:t.pick_group,callback:function(e){t.pick_group=e},expression:"pick_group"}},t._l(t.groupListOptions,function(t,e){return i("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1)],1)],1),t._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"45px",label:"简介:",prop:"desc"}},[i("el-input",{staticClass:"article-textarea",attrs:{rows:1,type:"textarea",autosize:"",placeholder:"请输入内容"},model:{value:t.postForm.desc,callback:function(e){t.$set(t.postForm,"desc",e)},expression:"postForm.desc"}}),t._v(" "),i("span",{directives:[{name:"show",rawName:"v-show",value:t.contentShortLength,expression:"contentShortLength"}],staticClass:"word-counter"},[t._v(t._s(t.contentShortLength)+"字")])],1),t._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"是否在线:"}},[i("el-radio-group",{model:{value:t.postForm.is_online,callback:function(e){t.$set(t.postForm,"is_online",e)},expression:"postForm.is_online"}},[i("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),i("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1)],1)],1),t._v(" "),1==this.postForm.pick_type_origin&&this.isEdit?i("el-row",{staticStyle:{"margin-top":"50px"},attrs:{gutter:20}},[i("el-card",{staticClass:"box-card"},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[t._v("pick明星相关")])]),t._v(" "),i("div",{staticStyle:{"margin-bottom":"50px"}},[i("div",{staticClass:"filter-container"}),t._v(" "),i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.data,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:"/star/edit/"+e.row.celebrity_id}},[i("span",[t._v(t._s(e.row.celebrity_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.celebrity_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.pick_nums))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center","min-width":"100",label:"添加pick值"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.edit?[i("el-input",{staticClass:"edit-input",attrs:{type:"number",size:"small"},model:{value:e.row.fake_pick_nums,callback:function(i){t.$set(e.row,"fake_pick_nums",i)},expression:"scope.row.fake_pick_nums"}}),t._v(" "),i("el-button",{staticClass:"cancel-btn",attrs:{size:"small",icon:"el-icon-refresh",type:"warning"},on:{click:function(i){t.cancelEdit(e.row)}}},[t._v("取消\n ")])]:i("span",[t._v(t._s(e.row.fake_pick_nums))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"操作",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.edit?i("el-button",{attrs:{type:"success",size:"small",icon:"el-icon-circle-check-outline"},on:{click:function(i){t.confirmEdit(e.row)}}},[t._v("确认\n ")]):i("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-edit"},on:{click:function(t){e.row.edit=!e.row.edit}}},[t._v("添加\n ")])]}}])})],1),t._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticStyle:{"margin-left":"150px"},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):t._e(),t._v(" "),0==this.postForm.pick_type_origin&&this.isEdit?i("el-row",{staticStyle:{"margin-top":"50px"},attrs:{gutter:20}},[i("el-card",{staticClass:"box-card"},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[t._v("pick帖子相关")])]),t._v(" "),i("div",{staticStyle:{"margin-bottom":"50px"}},[i("div",{staticClass:"filter-container"}),t._v(" "),i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.data,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:"/topic/edit/"+e.row.topic_id}},[i("span",[t._v(t._s(e.row.topic_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.topic_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.pick_nums))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center","min-width":"100",label:"添加pick值"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.edit?[i("el-input",{staticClass:"edit-input",attrs:{type:"number",size:"small"},model:{value:e.row.fake_pick_nums,callback:function(i){t.$set(e.row,"fake_pick_nums",i)},expression:"scope.row.fake_pick_nums"}}),t._v(" "),i("el-button",{staticClass:"cancel-btn",attrs:{size:"small",icon:"el-icon-refresh",type:"warning"},on:{click:function(i){t.cancelEdit(e.row)}}},[t._v("取消\n ")])]:i("span",[t._v(t._s(e.row.fake_pick_nums))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"操作",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.edit?i("el-button",{attrs:{type:"success",size:"small",icon:"el-icon-circle-check-outline"},on:{click:function(i){t.confirmEdit(e.row)}}},[t._v("确认\n ")]):i("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-edit"},on:{click:function(t){e.row.edit=!e.row.edit}}},[t._v("添加\n ")])]}}])})],1),t._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticStyle:{"margin-left":"150px"},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):t._e()],1)],1)],1)},[],!1,null,"263b1825",null);y.options.__file="PickDetail.vue";e.a=y.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0e47"],{"+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})}}},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},"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: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}})}}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0e47"],{"+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,"i",function(){return r}),a.d(e,"d",function(){return i}),a.d(e,"c",function(){return o}),a.d(e,"f",function(){return s}),a.d(e,"e",function(){return u}),a.d(e,"b",function(){return c}),a.d(e,"a",function(){return m}),a.d(e,"h",function(){return l}),a.d(e,"g",function(){return d});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/country",method:"get",params:{name:t}})}function s(t){return Object(n.a)({url:"/api/search/tag",method:"get",params:t})}function u(t){return Object(n.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function c(t){return Object(n.a)({url:"/api/search/city",method:"get",params:{name:t}})}function m(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 d(t){return Object(n.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}}}]);
\ No newline at end of file \ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-12c1"],{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},axm7:function(e,t,i){"use strict";var n=i("hTJx");i.n(n).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})}},"gDS+":function(e,t,i){e.exports={default:i("oh+g"),__esModule:!0}},hTJx:function(e,t,i){},hg0t:function(e,t,i){"use strict";i.r(t);var n=i("gDS+"),l=i.n(n),a=i("deRP"),s=i("Mz3J"),o=i("ZySA"),r={name:"StartList",components:{Pagination:s.a},directives:{waves:o.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(a.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,n=[],s={};this.del_list=this.del_list.concat(this.multipleSelection);for(var o=0;o<i;o++)"offline"===e?(this.multipleSelection[o].is_online=0,s.is_online=0):(this.multipleSelection[o].is_online=1,s.is_online=1),n.push(this.multipleSelection[o].id);Object(a.a)({updates:l()(s),ids:l()(n)}).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")}}},c=(i("axm7"),i("KHd+")),u=Object(c.a)(r,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,"52896988",null);u.options.__file="list.vue";t.default=u.exports},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)}}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-13cb"],{"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}})}},G4Vu:function(t,e,i){},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},eKzh:function(t,e,i){"use strict";var n=i("G4Vu");i.n(n).a},"gDS+":function(t,e,i){t.exports={default:i("oh+g"),__esModule:!0}},hqDa:function(t,e,i){"use strict";i.r(e);var n=i("gDS+"),l=i.n(n),a=i("0o2y"),s=i("Mz3J"),o=i("ZySA"),r={name:"TagList",components:{Pagination:s.a},filters:{isOnlineFilter:function(t){return{1:"success",0:"info"}[t]}},directives:{waves:o.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(a.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,n=[],s={};this.del_list=this.del_list.concat(this.multipleSelection);for(var o=0;o<i;o++)"offline"===t?(this.multipleSelection[o].is_online=0,s.is_online=0):(this.multipleSelection[o].is_online=1,s.is_online=1),n.push(this.multipleSelection[o].id);Object(a.b)({updates:l()(s),ids:l()(n)}).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")}}},c=(i("eKzh"),i("KHd+")),u=Object(c.a)(r,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,"b0b5900a",null);u.options.__file="list.vue";e.default=u.exports},jUE0:function(t,e,i){},"oh+g":function(t,e,i){var n=i("WEpk"),l=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return l.stringify.apply(l,arguments)}}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-169f"],{"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: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}})}}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-169f"],{"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},"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,"i",function(){return r}),a.d(e,"d",function(){return i}),a.d(e,"c",function(){return o}),a.d(e,"f",function(){return s}),a.d(e,"e",function(){return u}),a.d(e,"b",function(){return c}),a.d(e,"a",function(){return m}),a.d(e,"h",function(){return l}),a.d(e,"g",function(){return p});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/country",method:"get",params:{name:t}})}function s(t){return Object(n.a)({url:"/api/search/tag",method:"get",params:t})}function u(t){return Object(n.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function c(t){return Object(n.a)({url:"/api/search/city",method:"get",params:{name:t}})}function m(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 p(t){return Object(n.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}}}]);
\ No newline at end of file \ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1fb4"],{"0o2y":function(t,e,a){"use strict";a.d(e,"c",function(){return s}),a.d(e,"b",function(){return r}),a.d(e,"a",function(){return n}),a.d(e,"d",function(){return i});var o=a("t3Un");function s(t){return Object(o.a)({url:"/api/tag/list",method:"get",params:t})}function r(t){return Object(o.a)({url:"/api/tag/list/update",method:"post",data:t})}function n(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+"),s=a.n(o),r=a("P2sY"),n=a.n(r),i=a("fL+G"),l=a("Grqa"),p=a("uARZ"),c=a("0o2y"),u=a("gg54"),m=a("7Qib"),d={status:"draft",name:"",description:"",up_tags:[],down_tags:[],tagtypes:[],icon_url:"",platform:0},g={name:"TagDetail",components:{MDinput:l.a,Sticky:p.a,Upload:i.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this;return{postForm:n()({},d),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:{},TagLevelOptions:[{key:0,display_name:"系统级"},{key:1,display_name:"用户级"}],query:{}}},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=n()({},d);this.tempRoute=n()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(c.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 s=0;s<a.down_tags.length;s++)e.down_tags.push(a.down_tags[s].id+":"+a.down_tags[s].name);for(var r=0;r<a.tagtypes.length;r++)e.tagtypes.push(a.tagtypes[r].id+":"+a.tagtypes[r].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(m.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=s()(t.up_tags),t.postForm.down_tags=s()(t.down_tags),t.postForm.tagtypes=s()(t.tagtypes),Object(c.a)(t.postForm).then(function(e){if(500==e.data.data.code)return t.$notify({title:"失败",message:e.data.data.message,type:"error",duration:2e3}),t.loading=!1,!1;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;this.query.name=t,this.query.platform=this.postForm.platform,Object(u.e)(this.query).then(function(t){t.data.data.data&&(e.TagListOptions=t.data.data.data)})},getRemoteTagTypeList:function(t){var e=this;Object(u.f)(t).then(function(t){t.data.data.data&&(e.TagTypeListOptions=t.data.data.data)})}}},f=(a("rL2R"),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),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"标签等级:"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"70%"},attrs:{placeholder:"标签等级:",clearable:"",disabled:this.isEdit},model:{value:t.postForm.platform,callback:function(e){t.$set(t.postForm,"platform",e)},expression:"postForm.platform"}},t._l(t.TagLevelOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],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,"651d4a5c",null);h.options.__file="TagDetail.vue";e.a=h.exports},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return s});var o=a("t3Un");function s(){return Object(o.a)({url:"/api/get_token",method:"get"})}},OvVr:function(t,e,a){},S2fK:function(t,e,a){"use strict";a.r(e);var o={name:"EditTag",components:{TagDetail:a("EBwg").a}},s=a("KHd+"),r=Object(s.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("tag-detail",{attrs:{"is-edit":!0}})},[],!1,null,null,null);r.options.__file="edit.vue";e.default=r.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 s}),a.d(e,"c",function(){return r}),a.d(e,"e",function(){return n}),a.d(e,"d",function(){return i}),a.d(e,"b",function(){return l}),a.d(e,"a",function(){return p}),a.d(e,"g",function(){return c}),a.d(e,"f",function(){return u});var o=a("t3Un");function s(t){return Object(o.a)({url:"/api/search/user",method:"get",params:{name:t}})}function r(t){return Object(o.a)({url:"/api/search/group",method:"get",params:{name:t}})}function n(t){return Object(o.a)({url:"/api/search/tag",method:"get",params: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 p(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function c(t){return Object(o.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function u(t){return Object(o.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},"oh+g":function(t,e,a){var o=a("WEpk"),s=o.JSON||(o.JSON={stringify:JSON.stringify});t.exports=function(t){return s.stringify.apply(s,arguments)}},rL2R:function(t,e,a){"use strict";var o=a("OvVr");a.n(o).a}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1fb4"],{"0o2y":function(t,e,a){"use strict";a.d(e,"c",function(){return r}),a.d(e,"b",function(){return s}),a.d(e,"a",function(){return n}),a.d(e,"d",function(){return i});var o=a("t3Un");function r(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 n(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+"),r=a.n(o),s=a("P2sY"),n=a.n(s),i=a("fL+G"),l=a("Grqa"),c=a("uARZ"),p=a("0o2y"),u=a("gg54"),m=a("7Qib"),d={status:"draft",name:"",description:"",up_tags:[],down_tags:[],tagtypes:[],icon_url:"",platform:0},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:n()({},d),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:{},TagLevelOptions:[{key:0,display_name:"系统级"},{key:1,display_name:"用户级"}],query:{}}},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=n()({},d);this.tempRoute=n()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(p.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 r=0;r<a.down_tags.length;r++)e.down_tags.push(a.down_tags[r].id+":"+a.down_tags[r].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(m.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=r()(t.up_tags),t.postForm.down_tags=r()(t.down_tags),t.postForm.tagtypes=r()(t.tagtypes),Object(p.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;this.query.name=t,this.query.platform=this.postForm.platform,Object(u.f)(this.query).then(function(t){t.data.data.data&&(e.TagListOptions=t.data.data.data)})},getRemoteTagTypeList:function(t){var e=this;Object(u.g)(t).then(function(t){t.data.data.data&&(e.TagTypeListOptions=t.data.data.data)})}}},f=(a("rL2R"),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),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"标签等级:"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"70%"},attrs:{placeholder:"标签等级:",clearable:"",disabled:this.isEdit},model:{value:t.postForm.platform,callback:function(e){t.$set(t.postForm,"platform",e)},expression:"postForm.platform"}},t._l(t.TagLevelOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],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,"651d4a5c",null);h.options.__file="TagDetail.vue";e.a=h.exports},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return r});var o=a("t3Un");function r(){return Object(o.a)({url:"/api/get_token",method:"get"})}},OvVr:function(t,e,a){},S2fK:function(t,e,a){"use strict";a.r(e);var o={name:"EditTag",components:{TagDetail:a("EBwg").a}},r=a("KHd+"),s=Object(r.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,"i",function(){return r}),a.d(e,"d",function(){return s}),a.d(e,"c",function(){return n}),a.d(e,"f",function(){return i}),a.d(e,"e",function(){return l}),a.d(e,"b",function(){return c}),a.d(e,"a",function(){return p}),a.d(e,"h",function(){return u}),a.d(e,"g",function(){return m});var o=a("t3Un");function r(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 n(t){return Object(o.a)({url:"/api/search/country",method:"get",params:{name:t}})}function i(t){return Object(o.a)({url:"/api/search/tag",method:"get",params:t})}function l(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function c(t){return Object(o.a)({url:"/api/search/city",method:"get",params:{name:t}})}function p(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 m(t){return Object(o.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},"oh+g":function(t,e,a){var o=a("WEpk"),r=o.JSON||(o.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},rL2R:function(t,e,a){"use strict";var o=a("OvVr");a.n(o).a}}]);
\ No newline at end of file \ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2ada"],{MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return r});var o=a("t3Un");function r(){return Object(o.a)({url:"/api/get_token",method:"get"})}},QoC7:function(t,e,a){"use strict";var o=a("r+UL");a.n(o).a},Y5bG:function(t,e,a){"use strict";a.d(e,"a",function(){return r}),Math.easeInOutQuad=function(t,e,a,o){return(t/=o/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e};var o=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function r(t,e,a){var r=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,i=t-r,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,r,i,e)),s<e?o(t):a&&"function"==typeof a&&a()}()}},Yfch:function(t,e,a){"use strict"},ZySA:function(t,e,a){"use strict";var o=a("P2sY"),r=a.n(o),i=(a("jUE0"),{bind:function(t,e){t.addEventListener("click",function(a){var o=r()({},e.value),i=r()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},o),s=i.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var n=s.getBoundingClientRect(),l=s.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":((l=document.createElement("span")).className="waves-ripple",l.style.height=l.style.width=Math.max(n.width,n.height)+"px",s.appendChild(l)),i.type){case"center":l.style.top=n.height/2-l.offsetHeight/2+"px",l.style.left=n.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(a.pageY-n.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(a.pageX-n.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=i.color,l.className="waves-ripple z-active",!1}},!1)}}),s=function(t){t.directive("waves",i)};window.Vue&&(window.waves=i,Vue.use(s)),i.install=s;e.a=i},"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 r}),a.d(e,"c",function(){return i}),a.d(e,"e",function(){return s}),a.d(e,"d",function(){return n}),a.d(e,"b",function(){return l}),a.d(e,"a",function(){return c}),a.d(e,"g",function(){return p}),a.d(e,"f",function(){return u});var o=a("t3Un");function r(t){return Object(o.a)({url:"/api/search/user",method:"get",params:{name:t}})}function i(t){return Object(o.a)({url:"/api/search/group",method:"get",params:{name:t}})}function s(t){return Object(o.a)({url:"/api/search/tag",method:"get",params:t})}function n(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 p(t){return Object(o.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function u(t){return Object(o.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},ipnt:function(t,e,a){"use strict";var o=a("gDS+"),r=a.n(o),i=a("P2sY"),s=a.n(i),n=a("glbJ"),l=a("fL+G"),c=a("Grqa"),p=a("uARZ"),u=a("ZySA"),d=a("Mz3J"),m=(a("Yfch"),a("wk8/")),f=a("gg54"),b={status:"draft",uploadType:"",is_recommend:0,user_id:"",create_time:"",topic_nums:0,password:"",avatar:"",nick_name:"",gender:"",tags:[],is_puppet:1,city:""},g={name:"UserDetail",components:{Tinymce:n.a,MDinput:c.a,Upload:l.a,Sticky:p.a,Pagination:d.a},directives:{waves:u.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,o){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()};return{postForm:s()({},b),loading:!1,city:"",tags:[],rules:{nick_name:[{validator:e,trigger:"blur"}],avatar:[{validator:e,trigger:"blur"}]},tempRoute:{},GenderTypeOptions:[{key:0,display_name:"男"},{key:1,display_name:"女"}],regionListOptions:[],tagListOptions:[],uploadType:99,isdisabledFn:!1,query:{}}},computed:{lang:function(){return this.$store.getters.language}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=s()({},b);this.tempRoute=s()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(m.b)(t).then(function(t){var a=t.data.data;e.postForm=t.data.data,t.data.data.city.id&&t.data.data.city.name?e.city=t.data.data.city.id+":"+t.data.data.city.name:e.city="";for(var o=0;o<a.tag_list.length;o++)e.tags.push(a.tag_list[o].id+":"+a.tag_list[o].name)}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){return e?(t.loading=!0,""===t.city?(t.$message.error("城市必填~"),t.loading=!1,!1):(console.log(t.postForm.gender),""===t.postForm.gender?(t.$message.error("性别必填~"),t.loading=!1,!1):(t.isdisabledFn=!0,t.postForm.city=t.city,t.postForm.tags=r()(t.tags),Object(m.d)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/user/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",void(t.loading=!1)))):(console.log("error submit!!"),!1)})},getRemoteCityList:function(t){var e=this;Object(f.b)(t).then(function(t){t.data.data.data&&(e.regionListOptions=t.data.data.data)})},getRemoteTagList:function(t){var e=this;this.query.name=t,Object(f.e)(this.query).then(function(t){t.data.data.data&&(e.tagListOptions=t.data.data.data)})}}},h=(a("QoC7"),a("KHd+")),y=Object(h.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 "+t.postForm.status}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success",disabled:t.isdisabledFn},on:{click:t.submitForm}},[t._v("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",{attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("用户相关")])]),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:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",disabled:""},model:{value:t.postForm.user_id,callback:function(e){t.$set(t.postForm,"user_id",e)},expression:"postForm.user_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:"注册时间:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{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),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"帖子:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",disabled:""},model:{value:t.postForm.topic_nums,callback:function(e){t.$set(t.postForm,"topic_nums",e)},expression:"postForm.topic_nums"}})],1):t._e()],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*用户名:",prop:"nick_name"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text"},model:{value:t.postForm.nick_name,callback:function(e){t.$set(t.postForm,"nick_name",e)},expression:"postForm.nick_name"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"电话:",prop:"phone"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text"},model:{value:t.postForm.phone,callback:function(e){t.$set(t.postForm,"phone",e)},expression:"postForm.phone"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"邮箱:",prop:"email"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text"},model:{value:t.postForm.email,callback:function(e){t.$set(t.postForm,"email",e)},expression:"postForm.email"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{"label-width":"75px",label:"*性别:",prop:"gender"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"230px"},attrs:{placeholder:"性别:",clearable:""},model:{value:t.postForm.gender,callback:function(e){t.$set(t.postForm,"gender",e)},expression:"postForm.gender"}},t._l(t.GenderTypeOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{"label-width":"75px",label:"*城市:"}},[a("el-select",{staticStyle:{width:"230px"},attrs:{"remote-method":t.getRemoteCityList,filterable:"",remote:"",clearable:"","value-key":"id",placeholder:"搜索城市"},model:{value:t.city,callback:function(e){t.city=e},expression:"city"}},t._l(t.regionListOptions,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:24}},[a("el-form-item",{attrs:{"label-width":"75px",label:"标签:"}},[a("el-select",{staticStyle:{width:"720px"},attrs:{"remote-method":t.getRemoteTagList,filterable:"",remote:"",clearable:"",multiple:"","value-key":"id",placeholder:"搜索标签"},model:{value:t.tags,callback:function(e){t.tags=e},expression:"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",{staticStyle:{"margin-bottom":"20px","margin-left":"10px"},attrs:{"label-width":"75px",label:"马甲号:"}},[a("el-radio-group",{model:{value:t.postForm.is_puppet,callback:function(e){t.$set(t.postForm,"is_puppet",e)},expression:"postForm.is_puppet"}},[a("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px","margin-left":"10px"},attrs:{"label-width":"75px",label:"推荐:"}},[a("el-radio-group",{model:{value:t.postForm.is_recommend,callback:function(e){t.$set(t.postForm,"is_recommend",e)},expression:"postForm.is_recommend"}},[a("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1)],1)],1)],1)])],1),t._v(" "),a("div",{staticStyle:{"margin-bottom":"20px"}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"85px",label:"*用户头像:",prop:"avatar"}},[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.avatar,callback:function(e){t.$set(t.postForm,"avatar",e)},expression:"postForm.avatar"}})],1)],1)],1)],1)],1)],1)],1)},[],!1,null,"f6de4cc0",null);y.options.__file="UserDetail.vue";e.a=y.exports},jUE0:function(t,e,a){},"oh+g":function(t,e,a){var o=a("WEpk"),r=o.JSON||(o.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},"r+UL":function(t,e,a){},"wk8/":function(t,e,a){"use strict";a.d(e,"c",function(){return r}),a.d(e,"a",function(){return i}),a.d(e,"b",function(){return s}),a.d(e,"d",function(){return n});var o=a("t3Un");function r(t){return Object(o.a)({url:"/api/user/list",method:"get",params:t})}function i(t){return Object(o.a)({url:"/api/user/list/update",method:"post",data:t})}function s(t){return Object(o.a)({url:"/api/user/get",method:"get",params:{id:t}})}function n(t){return Object(o.a)({url:"/api/user/create",method:"post",data:t})}},x10K:function(t,e,a){"use strict";a.r(e);var o={name:"CreateUser",components:{UserDetail:a("ipnt").a}},r=a("KHd+"),i=Object(r.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("user-detail",{attrs:{"is-edit":!1}})},[],!1,null,null,null);i.options.__file="create.vue";e.default=i.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2ada"],{MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return r});var o=a("t3Un");function r(){return Object(o.a)({url:"/api/get_token",method:"get"})}},QoC7:function(t,e,a){"use strict";var o=a("r+UL");a.n(o).a},Y5bG:function(t,e,a){"use strict";a.d(e,"a",function(){return r}),Math.easeInOutQuad=function(t,e,a,o){return(t/=o/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e};var o=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function r(t,e,a){var r=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,i=t-r,n=0;e=void 0===e?500:e;!function t(){n+=20,function(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}(Math.easeInOutQuad(n,r,i,e)),n<e?o(t):a&&"function"==typeof a&&a()}()}},Yfch:function(t,e,a){"use strict"},ZySA:function(t,e,a){"use strict";var o=a("P2sY"),r=a.n(o),i=(a("jUE0"),{bind:function(t,e){t.addEventListener("click",function(a){var o=r()({},e.value),i=r()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},o),n=i.ele;if(n){n.style.position="relative",n.style.overflow="hidden";var s=n.getBoundingClientRect(),l=n.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":((l=document.createElement("span")).className="waves-ripple",l.style.height=l.style.width=Math.max(s.width,s.height)+"px",n.appendChild(l)),i.type){case"center":l.style.top=s.height/2-l.offsetHeight/2+"px",l.style.left=s.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(a.pageY-s.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(a.pageX-s.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=i.color,l.className="waves-ripple z-active",!1}},!1)}}),n=function(t){t.directive("waves",i)};window.Vue&&(window.waves=i,Vue.use(n)),i.install=n;e.a=i},"gDS+":function(t,e,a){t.exports={default:a("oh+g"),__esModule:!0}},gg54:function(t,e,a){"use strict";a.d(e,"i",function(){return r}),a.d(e,"d",function(){return i}),a.d(e,"c",function(){return n}),a.d(e,"f",function(){return s}),a.d(e,"e",function(){return l}),a.d(e,"b",function(){return c}),a.d(e,"a",function(){return p}),a.d(e,"h",function(){return u}),a.d(e,"g",function(){return d});var o=a("t3Un");function r(t){return Object(o.a)({url:"/api/search/user",method:"get",params:{name:t}})}function i(t){return Object(o.a)({url:"/api/search/group",method:"get",params:{name:t}})}function n(t){return Object(o.a)({url:"/api/search/country",method:"get",params:{name:t}})}function s(t){return Object(o.a)({url:"/api/search/tag",method:"get",params:t})}function l(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function c(t){return Object(o.a)({url:"/api/search/city",method:"get",params:{name:t}})}function p(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 d(t){return Object(o.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},ipnt:function(t,e,a){"use strict";var o=a("gDS+"),r=a.n(o),i=a("P2sY"),n=a.n(i),s=a("glbJ"),l=a("fL+G"),c=a("Grqa"),p=a("uARZ"),u=a("ZySA"),d=a("Mz3J"),m=(a("Yfch"),a("wk8/")),f=a("gg54"),b={status:"draft",uploadType:"",is_recommend:0,user_id:"",create_time:"",topic_nums:0,password:"",avatar:"",nick_name:"",gender:"",tags:[],is_puppet:1,city:""},g={name:"UserDetail",components:{Tinymce:s.a,MDinput:c.a,Upload:l.a,Sticky:p.a,Pagination:d.a},directives:{waves:u.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,o){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()};return{postForm:n()({},b),loading:!1,city:"",tags:[],rules:{nick_name:[{validator:e,trigger:"blur"}],avatar:[{validator:e,trigger:"blur"}]},tempRoute:{},GenderTypeOptions:[{key:0,display_name:"男"},{key:1,display_name:"女"}],regionListOptions:[],tagListOptions:[],uploadType:99,isdisabledFn:!1,query:{}}},computed:{lang:function(){return this.$store.getters.language}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=n()({},b);this.tempRoute=n()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(m.b)(t).then(function(t){var a=t.data.data;e.postForm=t.data.data,t.data.data.city.id&&t.data.data.city.name?e.city=t.data.data.city.id+":"+t.data.data.city.name:e.city="";for(var o=0;o<a.tag_list.length;o++)e.tags.push(a.tag_list[o].id+":"+a.tag_list[o].name)}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){return e?(t.loading=!0,""===t.city?(t.$message.error("城市必填~"),t.loading=!1,!1):(console.log(t.postForm.gender),""===t.postForm.gender?(t.$message.error("性别必填~"),t.loading=!1,!1):(t.isdisabledFn=!0,t.postForm.city=t.city,t.postForm.tags=r()(t.tags),Object(m.d)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/user/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",void(t.loading=!1)))):(console.log("error submit!!"),!1)})},getRemoteCityList:function(t){var e=this;Object(f.b)(t).then(function(t){t.data.data.data&&(e.regionListOptions=t.data.data.data)})},getRemoteTagList:function(t){var e=this;this.query.name=t,Object(f.f)(this.query).then(function(t){t.data.data.data&&(e.tagListOptions=t.data.data.data)})}}},h=(a("QoC7"),a("KHd+")),y=Object(h.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 "+t.postForm.status}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success",disabled:t.isdisabledFn},on:{click:t.submitForm}},[t._v("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",{attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("用户相关")])]),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:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",disabled:""},model:{value:t.postForm.user_id,callback:function(e){t.$set(t.postForm,"user_id",e)},expression:"postForm.user_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:"注册时间:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{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),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"帖子:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",disabled:""},model:{value:t.postForm.topic_nums,callback:function(e){t.$set(t.postForm,"topic_nums",e)},expression:"postForm.topic_nums"}})],1):t._e()],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*用户名:",prop:"nick_name"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text"},model:{value:t.postForm.nick_name,callback:function(e){t.$set(t.postForm,"nick_name",e)},expression:"postForm.nick_name"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"电话:",prop:"phone"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text"},model:{value:t.postForm.phone,callback:function(e){t.$set(t.postForm,"phone",e)},expression:"postForm.phone"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"邮箱:",prop:"email"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text"},model:{value:t.postForm.email,callback:function(e){t.$set(t.postForm,"email",e)},expression:"postForm.email"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{"label-width":"75px",label:"*性别:",prop:"gender"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"230px"},attrs:{placeholder:"性别:",clearable:""},model:{value:t.postForm.gender,callback:function(e){t.$set(t.postForm,"gender",e)},expression:"postForm.gender"}},t._l(t.GenderTypeOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{"label-width":"75px",label:"*城市:"}},[a("el-select",{staticStyle:{width:"230px"},attrs:{"remote-method":t.getRemoteCityList,filterable:"",remote:"",clearable:"","value-key":"id",placeholder:"搜索城市"},model:{value:t.city,callback:function(e){t.city=e},expression:"city"}},t._l(t.regionListOptions,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:24}},[a("el-form-item",{attrs:{"label-width":"75px",label:"标签:"}},[a("el-select",{staticStyle:{width:"720px"},attrs:{"remote-method":t.getRemoteTagList,filterable:"",remote:"",clearable:"",multiple:"","value-key":"id",placeholder:"搜索标签"},model:{value:t.tags,callback:function(e){t.tags=e},expression:"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",{staticStyle:{"margin-bottom":"20px","margin-left":"10px"},attrs:{"label-width":"75px",label:"马甲号:"}},[a("el-radio-group",{model:{value:t.postForm.is_puppet,callback:function(e){t.$set(t.postForm,"is_puppet",e)},expression:"postForm.is_puppet"}},[a("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px","margin-left":"10px"},attrs:{"label-width":"75px",label:"推荐:"}},[a("el-radio-group",{model:{value:t.postForm.is_recommend,callback:function(e){t.$set(t.postForm,"is_recommend",e)},expression:"postForm.is_recommend"}},[a("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1)],1)],1)],1)])],1),t._v(" "),a("div",{staticStyle:{"margin-bottom":"20px"}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"85px",label:"*用户头像:",prop:"avatar"}},[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.avatar,callback:function(e){t.$set(t.postForm,"avatar",e)},expression:"postForm.avatar"}})],1)],1)],1)],1)],1)],1)],1)},[],!1,null,"f6de4cc0",null);y.options.__file="UserDetail.vue";e.a=y.exports},jUE0:function(t,e,a){},"oh+g":function(t,e,a){var o=a("WEpk"),r=o.JSON||(o.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},"r+UL":function(t,e,a){},"wk8/":function(t,e,a){"use strict";a.d(e,"c",function(){return r}),a.d(e,"a",function(){return i}),a.d(e,"b",function(){return n}),a.d(e,"d",function(){return s});var o=a("t3Un");function r(t){return Object(o.a)({url:"/api/user/list",method:"get",params:t})}function i(t){return Object(o.a)({url:"/api/user/list/update",method:"post",data:t})}function n(t){return Object(o.a)({url:"/api/user/get",method:"get",params:{id:t}})}function s(t){return Object(o.a)({url:"/api/user/create",method:"post",data:t})}},x10K:function(t,e,a){"use strict";a.r(e);var o={name:"CreateUser",components:{UserDetail:a("ipnt").a}},r=a("KHd+"),i=Object(r.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("user-detail",{attrs:{"is-edit":!1}})},[],!1,null,null,null);i.options.__file="create.vue";e.default=i.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-366e"],{QsvU:function(t,e,n){"use strict";var i=n("qSlx");n.n(i).a},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 s}),n.d(e,"c",function(){return o}),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 s(t){return Object(i.a)({url:"/api/account/create",method:"post",data:t})}function o(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,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?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),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=(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=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},"gDS+":function(t,e,n){t.exports={default:n("oh+g"),__esModule:!0}},jUE0:function(t,e,n){},"oh+g":function(t,e,n){var i=n("WEpk"),l=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return l.stringify.apply(l,arguments)}},qSlx:function(t,e,n){},siTO:function(t,e,n){"use strict";n.r(e);var i=n("gDS+"),l=n.n(i),a=n("VyMG"),s=n("Mz3J"),o=n("ZySA"),r={name:"UserList",components:{Pagination:s.a},directives:{waves:o.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(a.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,i=[],s={};this.del_list=this.del_list.concat(this.multipleSelection);for(var o=0;o<n;o++)"offline"===t?(this.multipleSelection[o].is_online=0,s.is_online=0):(this.multipleSelection[o].is_online=1,s.is_online=1),i.push(this.multipleSelection[o].id);Object(a.b)({updates:l()(s),ids:l()(i)}).then(function(t){e.multipleSelection=[],e.$message.success(t.data.data.message),e.$router.go(0)})},reset:function(t){var e=this;Object(a.e)(t).then(function(t){e.$message.success("重置成功")})}}},c=(n("QsvU"),n("KHd+")),u=Object(c.a)(r,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,"621cf677",null);u.options.__file="list.vue";e.default=u.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3b2d"],{"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-438a"],{"6ClW":function(e,t,i){"use strict";i.r(t);var l=i("gDS+"),n=i.n(l),s=i("D6yg"),a=i("Mz3J"),o=i("ZySA"),r={name:"TopicList",components:{Pagination:a.a},filters:{isOnlineFilter:function(e){return{1:"success",0:"info"}[e]},genderFilter:function(e){return{"男":"success","女":"info","全部":"danger"}[e]}},directives:{waves:o.a},data:function(){return{list:null,total:0,pageSize:[10,30,50,100,250],listLoading:!0,multipleSelection:[],del_list:[],listQuery:{page:0,limit:10,filter:{value:"",key:"",is_online:"",complaints__isnull:"",user__is_puppet:"",content_level:""},sort:["-id"]},BooleanTypeOptions:[{key:1,display_name:"是"},{key:0,display_name:"否"}],ReBooleanTypeOptions:[{key:"0",display_name:"是"},{key:"1",display_name:"否"}],SearchTypeOptions:[{key:"id",display_name:"帖子ID"},{key:"content",display_name:"帖子内容"},{key:"group__name",display_name:"小组"}],ContentLevelTypeOptions:[{key:0,display_name:"未审核"},{key:1,display_name:"星级一"},{key:2,display_name:"星级二"},{key:3,display_name:"星级三"},{key:4,display_name:"星级四"},{key:5,display_name:"星级五"}],dialogFormVisible:!1,is_click:!1,dialogStatus:"",select_start_time:"",select_end_time:""}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,this.listQuery.user_id=this.$route.query.user_id||"",this.listQuery.group_id=this.$route.query.group_id||"",Object(s.e)(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=[],a={};this.del_list=this.del_list.concat(this.multipleSelection);for(var o=0;o<i;o++)"offline"===e?(this.multipleSelection[o].is_online=0,a.is_online=0):(this.multipleSelection[o].is_online=1,a.is_online=1),l.push(this.multipleSelection[o].id);Object(s.b)({updates:n()(a),ids:n()(l)}).then(function(e){t.multipleSelection=[],t.$message.success(e.data.data.message),t.$router.go(0)})},handleFilter:function(){this.listQuery.page=1,this.getList()},handleCreate:function(){this.$router.push("/topic/create")},sortChange:function(e){var t=e.prop,i=e.order;"id"===t&&this.sortByID(i)},sortByID:function(e){var t,i;"ascending"===e?(this.listQuery.sort.shift(),(t=this.listQuery.sort).push.apply(t,["id"])):(this.listQuery.sort.shift(),(i=this.listQuery.sort).push.apply(i,["-id"]));this.handleFilter()},batchUpdate:function(){this.dialogFormVisible=!0,this.reset()},updateData:function(){var e=this,t=this.multipleSelection.length,i=[],l={},a={};this.del_list=this.del_list.concat(this.multipleSelection);for(var o=0;o<t;o++)this.multipleSelection[o].is_online=1,l.is_online=1,i.push(this.multipleSelection[o].id);t||this.$message.error("请先勾选帖子ID,再进行后续操作....."),this.select_start_time&&this.select_end_time||this.$message.error("起始时间或者结束时间不能为空....."),this.select_start_time>this.select_end_time&&this.$message.error("起始时间不能小于结束时间....."),a.start_time=this.select_start_time,a.end_time=this.select_end_time,Object(s.b)({updates:n()(l),ids:n()(i),extra:n()(a)}).then(function(t){e.multipleSelection=[],e.$message.success(t.data.data.message),e.$router.go(0),e.dialogFormVisible=!1})},reset:function(){this.select_start_time="",this.select_end_time=""}}},c=(i("H24S"),i("KHd+")),u=Object(c.a)(r,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:"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-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"举报",clearable:""},model:{value:e.listQuery.filter.complaints__isnull,callback:function(t){e.$set(e.listQuery.filter,"complaints__isnull",t)},expression:"listQuery.filter.complaints__isnull"}},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-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"马甲",clearable:""},model:{value:e.listQuery.filter.is_puppet,callback:function(t){e.$set(e.listQuery.filter,"is_puppet",t)},expression:"listQuery.filter.is_puppet"}},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:"100px"},attrs:{placeholder:"帖子星级",clearable:""},model:{value:e.listQuery.filter.content_level,callback:function(t){e.$set(e.listQuery.filter,"content_level",t)},expression:"listQuery.filter.content_level"}},e._l(e.ContentLevelTypeOptions,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:e.batchUpdate}},[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,"sort-change":e.sortChange}},[i("el-table-column",{attrs:{type:"selection",align:"center"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"帖子ID ",sortable:"custom","min-width":"85px",prop:"id"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:"/topic/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.user.name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"帖子详情","min-width":"300px;"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.content))])]}}])}),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.newly_reply))])]}}])}),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.group.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.update_time))])]}}])}),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.reported_time?t.row.reported_time:"无"))])]}}])}),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.content_level))])]}}])}),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":"150px"},attrs:{total:e.total,page:e.listQuery.page,pageSizes:e.pageSize,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}}),e._v(" "),i("el-dialog",{attrs:{visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[i("label",[e._v("发帖时间:  ")]),e._v(" "),i("el-date-picker",{staticStyle:{width:"230px"},attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"起始时间"},model:{value:e.select_start_time,callback:function(t){e.select_start_time=t},expression:"select_start_time "}}),e._v("  ----  \n "),i("el-date-picker",{staticStyle:{width:"230px"},attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"结束时间"},model:{value:e.select_end_time,callback:function(t){e.select_end_time=t},expression:"select_end_time "}}),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary",disabled:this.is_click},on:{click:function(t){e.updateData()}}},[e._v("确认")])],1)],1)],1)},[],!1,null,"0185cc6d",null);u.options.__file="list.vue";t.default=u.exports},"8+HU":function(e,t,i){},D6yg:function(e,t,i){"use strict";i.d(t,"e",function(){return n}),i.d(t,"b",function(){return s}),i.d(t,"c",function(){return a}),i.d(t,"g",function(){return o}),i.d(t,"d",function(){return r}),i.d(t,"f",function(){return c}),i.d(t,"a",function(){return u});var l=i("t3Un");function n(e){return Object(l.a)({url:"/api/topic/list",method:"get",params:e})}function s(e){return Object(l.a)({url:"/api/topic/batch_update",method:"post",data:e})}function a(e){return Object(l.a)({url:"/api/topic/reply/create",method:"post",data:e})}function o(e){return Object(l.a)({url:"/api/topic/detail",method:"get",params:{id:e}})}function r(e){return Object(l.a)({url:"/api/topic/create",method:"post",data:e})}function c(e){return Object(l.a)({url:"/api/topic/reply/list",method:"get",params:e})}function u(e){return Object(l.a)({url:"/api/topic/reply/batch_delete",method:"post",data:e})}},H24S:function(e,t,i){"use strict";var l=i("8+HU");i.n(l).a},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,s=e-n,a=0;t=void 0===t?500:t;!function e(){a+=20,function(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}(Math.easeInOutQuad(a,n,s,t)),a<t?l(e):i&&"function"==typeof i&&i()}()}},ZySA:function(e,t,i){"use strict";var l=i("P2sY"),n=i.n(l),s=(i("jUE0"),{bind:function(e,t){e.addEventListener("click",function(i){var l=n()({},t.value),s=n()({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},l),a=s.ele;if(a){a.style.position="relative",a.style.overflow="hidden";var o=a.getBoundingClientRect(),r=a.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",a.appendChild(r)),s.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=s.color,r.className="waves-ripple z-active",!1}},!1)}}),a=function(e){e.directive("waves",s)};window.Vue&&(window.waves=s,Vue.use(a)),s.install=a;t.a=s},"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 l=i("WEpk"),n=l.JSON||(l.JSON={stringify:JSON.stringify});e.exports=function(e){return n.stringify.apply(n,arguments)}}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-496d"],{"0o2y":function(t,e,a){"use strict";a.d(e,"c",function(){return s}),a.d(e,"b",function(){return r}),a.d(e,"a",function(){return n}),a.d(e,"d",function(){return i});var o=a("t3Un");function s(t){return Object(o.a)({url:"/api/tag/list",method:"get",params:t})}function r(t){return Object(o.a)({url:"/api/tag/list/update",method:"post",data:t})}function n(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+"),s=a.n(o),r=a("P2sY"),n=a.n(r),i=a("fL+G"),l=a("Grqa"),c=a("uARZ"),p=a("0o2y"),u=a("gg54"),m=a("7Qib"),d={status:"draft",name:"",description:"",up_tags:[],down_tags:[],tagtypes:[],icon_url:"",platform:0},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:n()({},d),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:{},TagLevelOptions:[{key:0,display_name:"系统级"},{key:1,display_name:"用户级"}],query:{}}},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=n()({},d);this.tempRoute=n()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(p.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 s=0;s<a.down_tags.length;s++)e.down_tags.push(a.down_tags[s].id+":"+a.down_tags[s].name);for(var r=0;r<a.tagtypes.length;r++)e.tagtypes.push(a.tagtypes[r].id+":"+a.tagtypes[r].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(m.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=s()(t.up_tags),t.postForm.down_tags=s()(t.down_tags),t.postForm.tagtypes=s()(t.tagtypes),Object(p.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;this.query.name=t,this.query.platform=this.postForm.platform,Object(u.e)(this.query).then(function(t){t.data.data.data&&(e.TagListOptions=t.data.data.data)})},getRemoteTagTypeList:function(t){var e=this;Object(u.f)(t).then(function(t){t.data.data.data&&(e.TagTypeListOptions=t.data.data.data)})}}},f=(a("rL2R"),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),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"标签等级:"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"70%"},attrs:{placeholder:"标签等级:",clearable:"",disabled:this.isEdit},model:{value:t.postForm.platform,callback:function(e){t.$set(t.postForm,"platform",e)},expression:"postForm.platform"}},t._l(t.TagLevelOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],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,"651d4a5c",null);h.options.__file="TagDetail.vue";e.a=h.exports},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return s});var o=a("t3Un");function s(){return Object(o.a)({url:"/api/get_token",method:"get"})}},OvVr:function(t,e,a){},"STa+":function(t,e,a){"use strict";a.r(e);var o={name:"EditTag",components:{TagDetail:a("EBwg").a}},s=a("KHd+"),r=Object(s.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("tag-detail",{attrs:{"is-edit":!1}})},[],!1,null,null,null);r.options.__file="create.vue";e.default=r.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 s}),a.d(e,"c",function(){return r}),a.d(e,"e",function(){return n}),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 p}),a.d(e,"f",function(){return u});var o=a("t3Un");function s(t){return Object(o.a)({url:"/api/search/user",method:"get",params:{name:t}})}function r(t){return Object(o.a)({url:"/api/search/group",method:"get",params:{name:t}})}function n(t){return Object(o.a)({url:"/api/search/tag",method:"get",params: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 p(t){return Object(o.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function u(t){return Object(o.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},"oh+g":function(t,e,a){var o=a("WEpk"),s=o.JSON||(o.JSON={stringify:JSON.stringify});t.exports=function(t){return s.stringify.apply(s,arguments)}},rL2R:function(t,e,a){"use strict";var o=a("OvVr");a.n(o).a}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-496d"],{"0o2y":function(t,e,a){"use strict";a.d(e,"c",function(){return r}),a.d(e,"b",function(){return s}),a.d(e,"a",function(){return n}),a.d(e,"d",function(){return i});var o=a("t3Un");function r(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 n(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+"),r=a.n(o),s=a("P2sY"),n=a.n(s),i=a("fL+G"),l=a("Grqa"),c=a("uARZ"),p=a("0o2y"),u=a("gg54"),m=a("7Qib"),d={status:"draft",name:"",description:"",up_tags:[],down_tags:[],tagtypes:[],icon_url:"",platform:0},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:n()({},d),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:{},TagLevelOptions:[{key:0,display_name:"系统级"},{key:1,display_name:"用户级"}],query:{}}},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=n()({},d);this.tempRoute=n()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(p.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 r=0;r<a.down_tags.length;r++)e.down_tags.push(a.down_tags[r].id+":"+a.down_tags[r].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(m.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=r()(t.up_tags),t.postForm.down_tags=r()(t.down_tags),t.postForm.tagtypes=r()(t.tagtypes),Object(p.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;this.query.name=t,this.query.platform=this.postForm.platform,Object(u.f)(this.query).then(function(t){t.data.data.data&&(e.TagListOptions=t.data.data.data)})},getRemoteTagTypeList:function(t){var e=this;Object(u.g)(t).then(function(t){t.data.data.data&&(e.TagTypeListOptions=t.data.data.data)})}}},f=(a("rL2R"),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),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"标签等级:"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"70%"},attrs:{placeholder:"标签等级:",clearable:"",disabled:this.isEdit},model:{value:t.postForm.platform,callback:function(e){t.$set(t.postForm,"platform",e)},expression:"postForm.platform"}},t._l(t.TagLevelOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],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,"651d4a5c",null);h.options.__file="TagDetail.vue";e.a=h.exports},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return r});var o=a("t3Un");function r(){return Object(o.a)({url:"/api/get_token",method:"get"})}},OvVr:function(t,e,a){},"STa+":function(t,e,a){"use strict";a.r(e);var o={name:"EditTag",components:{TagDetail:a("EBwg").a}},r=a("KHd+"),s=Object(r.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,"i",function(){return r}),a.d(e,"d",function(){return s}),a.d(e,"c",function(){return n}),a.d(e,"f",function(){return i}),a.d(e,"e",function(){return l}),a.d(e,"b",function(){return c}),a.d(e,"a",function(){return p}),a.d(e,"h",function(){return u}),a.d(e,"g",function(){return m});var o=a("t3Un");function r(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 n(t){return Object(o.a)({url:"/api/search/country",method:"get",params:{name:t}})}function i(t){return Object(o.a)({url:"/api/search/tag",method:"get",params:t})}function l(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function c(t){return Object(o.a)({url:"/api/search/city",method:"get",params:{name:t}})}function p(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 m(t){return Object(o.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},"oh+g":function(t,e,a){var o=a("WEpk"),r=o.JSON||(o.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},rL2R:function(t,e,a){"use strict";var o=a("OvVr");a.n(o).a}}]);
\ No newline at end of file \ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4f37"],{"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}})}},"7lzh":function(t,e,i){"use strict";var n=i("EPzy");i.n(n).a},EPzy:function(t,e,i){},"GR/h":function(t,e,i){"use strict";i.r(e);var n=i("gDS+"),l=i.n(n),a=i("6QIw"),s=i("Mz3J"),o=i("ZySA"),r={name:"TagTypeList",components:{Pagination:s.a},filters:{isOnlineFilter:function(t){return{1:"success",0:"info"}[t]}},directives:{waves:o.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(a.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,n=[];this.del_list=this.del_list.concat(this.multipleSelection);for(var s=0;s<i;s++)"offline"===t?(this.multipleSelection[s].is_online=0,"".is_online=0):(this.multipleSelection[s].is_online=1,"".is_online=0),n.push(this.multipleSelection[s].id);Object(a.b)({updates:l()(""),ids:l()(n)}).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")}}},c=(i("7lzh"),i("KHd+")),u=Object(c.a)(r,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,"76b0aca6",null);u.options.__file="list.vue";e.default=u.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},"gDS+":function(t,e,i){t.exports={default:i("oh+g"),__esModule:!0}},jUE0:function(t,e,i){},"oh+g":function(t,e,i){var n=i("WEpk"),l=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return l.stringify.apply(l,arguments)}}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4f86"],{"5nKQ":function(t,e,n){"use strict";var i=n("EMnK");n.n(i).a},"5xsC":function(t,e,n){"use strict";n.r(e);var i=n("gDS+"),l=n.n(i),a=n("ESsw"),o=n("Mz3J"),r=n("ZySA"),s={name:"PickList",components:{Pagination:o.a},filters:{isOnlineFilter:function(t){return{1:"success",0:"info"}[t]},genderFilter:function(t){return{"男":"success","女":"info","全部":"danger"}[t]}},directives:{waves:r.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(a.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,n=this.multipleSelection.length,i={};this.del_list=this.del_list.concat(this.multipleSelection);for(var o=0;o<n;o++)"offline"===t?(this.multipleSelection[o].is_online=0,i.is_online=0):(this.multipleSelection[o].is_online=1,i.is_online=1),str+=this.multipleSelection[o].id+" ";Object(a.c)({updates:l()(i),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")}}},c=(n("5nKQ"),n("KHd+")),u=Object(c.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-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 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("创建")]),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("下线")]),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("上线")])],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:"pickID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("router-link",{staticClass:"link-type",attrs:{to:{path:"/pick/edit/"+e.row.id,query:{pick_type:e.row.pick_type_origin}}}},[n("span",[t._v(t._s(e.row.id))])])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"pick名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.name))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"pick简介"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.desc))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"pick用户"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.user_nums))])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"pick属性"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.pick_type))])]}}])}),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("genderFilter")(e.row.gender)}},[t._v(t._s(e.row.gender))])]}}])}),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.country))])]}}])}),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?"是":"否"))])]}}])})],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,"38b2a7f7",null);u.options.__file="list.vue";e.default=u.exports},EMnK:function(t,e,n){},ESsw:function(t,e,n){"use strict";n.d(e,"h",function(){return l}),n.d(e,"c",function(){return a}),n.d(e,"b",function(){return o}),n.d(e,"j",function(){return r}),n.d(e,"k",function(){return s}),n.d(e,"i",function(){return c}),n.d(e,"a",function(){return u}),n.d(e,"e",function(){return d}),n.d(e,"d",function(){return p}),n.d(e,"f",function(){return f}),n.d(e,"g",function(){return m});var i=n("t3Un");function l(t){return Object(i.a)({url:"/api/pick/list",method:"get",params:t})}function a(t){return console.log(t),Object(i.a)({url:"/api/pick/list/update",method:"post",data:t})}function o(t){return Object(i.a)({url:"/api/pick/create",method:"post",data:t})}function r(t){return Object(i.a)({url:"/api/pick/detail",method:"get",params:{id:t}})}function s(t){return Object(i.a)({url:"/api/pick/topic/list",method:"get",params:t})}function c(t){return Object(i.a)({url:"/api/pick/celebrity/list",method:"get",params:t})}function u(t){return Object(i.a)({url:"/api/pick/add_fake_pick_nums",method:"post",data:t})}function d(t){return Object(i.a)({url:"/api/pick/topic",method:"post",data:t})}function p(t){return Object(i.a)({url:"/api/pick/celebrity",method:"post",data:t})}function f(t){return Object(i.a)({url:"/api/pick/del_celebrity",method:"post",data:t})}function m(t){return Object(i.a)({url:"/api/pick/del_topic",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 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=(n.pageY-r.top-s.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",s.style.left=(n.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},"gDS+":function(t,e,n){t.exports={default:n("oh+g"),__esModule:!0}},jUE0:function(t,e,n){},"oh+g":function(t,e,n){var i=n("WEpk"),l=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return l.stringify.apply(l,arguments)}}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-515c"],{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: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}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-515c"],{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.i)(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,"i",function(){return n}),a.d(e,"d",function(){return o}),a.d(e,"c",function(){return s}),a.d(e,"f",function(){return i}),a.d(e,"e",function(){return u}),a.d(e,"b",function(){return c}),a.d(e,"a",function(){return m}),a.d(e,"h",function(){return l}),a.d(e,"g",function(){return p});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/country",method:"get",params:{name:t}})}function i(t){return Object(r.a)({url:"/api/search/tag",method:"get",params:t})}function u(t){return Object(r.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function c(t){return Object(r.a)({url:"/api/search/city",method:"get",params:{name:t}})}function m(t){return Object(r.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function l(t){return Object(r.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function p(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 \ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-545a"],{"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-5675"],{"04wF":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"),c=i("ZySA"),u=i("L2JU"),d={name:"UserList",components:{Pagination:o.a},filters:{isOnlineFilter:function(e){return{true:"success",false:"info"}[e]},genderFilter:function(e){return{"男":"success","女":"info","全部":"danger"}[e]}},directives:{waves:c.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(u.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=[],a={};this.del_list=this.del_list.concat(this.multipleSelection);for(var s=0;s<i;s++)"offline"===e?(this.multipleSelection[s].is_online=0,a.is_online=0):"recommend"===e?(this.multipleSelection[s].is_recommend=0,a.is_recommend=0):(this.multipleSelection[s].is_online=1,a.is_online=1),n.push(this.multipleSelection[s].user_id);Object(r.a)({updates:l()(a),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("a6Nq"),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 ")]),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 ")]),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("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("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("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?"是":"否")+"\n ")])]}}])}),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,"3b081dd4",null);f.options.__file="list.vue";t.default=f.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},a6Nq:function(e,t,i){"use strict";var n=i("04wF");i.n(n).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-56a3"],{"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-5e3b"],{"4brh":function(e,t,i){},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("gDS+"),l=i.n(n),a=i("I7qB"),s=i("Mz3J"),r=i("ZySA"),o={name:"GroupList",components:{Pagination:s.a},directives:{waves:r.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(a.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,n=[],s={};this.del_list=this.del_list.concat(this.multipleSelection);for(var r=0;r<i;r++)"offline"===e?(this.multipleSelection[r].is_online=0,s.is_online=0):"is_recommend"==e?(this.multipleSelection[r].is_recommend=1,s.is_recommend=1):(this.multipleSelection[r].is_online=1,s.is_online=1),n.push(this.multipleSelection[r].id);Object(a.d)({updates:l()(s),ids:l()(n)}).then(function(e){t.multipleSelection=[],t.$message.success(e.data.data.message),setTimeout(function(){t.$router.go(0)},1e3)})}}},u=(i("aR8q"),i("KHd+")),c=Object(u.a)(o,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,"0d106f8e",null);c.options.__file="list.vue";t.default=c.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},aR8q:function(e,t,i){"use strict";var n=i("4brh");i.n(n).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)}}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-61ee"],{"Jkq+":function(e,t,i){"use strict";i.r(t);var n=i("gDS+"),l=i.n(n),a=i("XB8m"),s=i("Mz3J"),o=i("ZySA"),r={name:"FaceStarList",components:{Pagination:s.a},directives:{waves:o.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(a.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=[],s={};this.del_list=this.del_list.concat(this.multipleSelection);for(var o=0;o<i;o++)"offline"===e?(this.multipleSelection[o].is_online=0,s.is_online=0):(this.multipleSelection[o].is_online=1,s.is_online=1),n.push(this.multipleSelection[o].id);Object(a.a)({updates:l()(s),ids:l()(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()}}},c=(i("vQbs"),i("KHd+")),u=Object(c.a)(r,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,"0a2a10e6",null);u.options.__file="list.vue";t.default=u.exports},XB8m:function(e,t,i){"use strict";i.d(t,"b",function(){return l}),i.d(t,"d",function(){return a}),i.d(t,"a",function(){return s}),i.d(t,"c",function(){return o});var n=i("t3Un");function l(e){return Object(n.a)({url:"/api/face/star/create",method:"post",data:e})}function a(e){return Object(n.a)({url:"/api/face/star/list",method:"get",params:e})}function s(e){return console.log(e),Object(n.a)({url:"/api/face/star/list/update",method:"post",data:e})}function o(e){return Object(n.a)({url:"/api/face/star/detail",method:"get",params:{id:e}})}},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},eMxj:function(e,t,i){},"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)}},vQbs:function(e,t,i){"use strict";var n=i("eMxj");i.n(n).a}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6f28"],{"2X8+":function(t,e,a){"use strict";a.r(e);var i={name:"EditStar",components:{StarDetail:a("g/UI").a}},n=a("KHd+"),r=Object(n.a)(i,function(){var t=this.$createElement;return(this._self._c||t)("star-detail",{attrs:{"is-edit":!0}})},[],!1,null,null,null);r.options.__file="edit.vue";e.default=r.exports},I7qB:function(t,e,a){"use strict";a.d(e,"g",function(){return n}),a.d(e,"d",function(){return r}),a.d(e,"a",function(){return o}),a.d(e,"e",function(){return s}),a.d(e,"f",function(){return l}),a.d(e,"b",function(){return u}),a.d(e,"c",function(){return c});var i=a("t3Un");function n(t){return Object(i.a)({url:"/api/group/list",method:"get",params:t})}function r(t){return Object(i.a)({url:"/api/group/list/update",method:"post",data:t})}function o(t){return Object(i.a)({url:"/api/group/get",method:"get",params:{id:t}})}function s(t){return Object(i.a)({url:"/api/group/create",method:"post",data:t})}function l(t){return Object(i.a)({url:"/api/group/user/list",method:"get",params:t})}function u(t){return Object(i.a)({url:"/api/group/user/get",method:"get",params:{id:t}})}function c(t){return Object(i.a)({url:"/api/group/user/edit_group_identify",method:"post",data:t})}},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return n});var i=a("t3Un");function n(){return Object(i.a)({url:"/api/get_token",method:"get"})}},U9p6:function(t,e,a){"use strict";var i=a("acJy");a.n(i).a},Y5bG:function(t,e,a){"use strict";a.d(e,"a",function(){return n}),Math.easeInOutQuad=function(t,e,a,i){return(t/=i/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e};var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function n(t,e,a){var n=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,r=t-n,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,n,r,e)),o<e?i(t):a&&"function"==typeof a&&a()}()}},ZySA:function(t,e,a){"use strict";var i=a("P2sY"),n=a.n(i),r=(a("jUE0"),{bind:function(t,e){t.addEventListener("click",function(a){var i=n()({},e.value),r=n()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=r.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var s=o.getBoundingClientRect(),l=o.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":((l=document.createElement("span")).className="waves-ripple",l.style.height=l.style.width=Math.max(s.width,s.height)+"px",o.appendChild(l)),r.type){case"center":l.style.top=s.height/2-l.offsetHeight/2+"px",l.style.left=s.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(a.pageY-s.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(a.pageX-s.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=r.color,l.className="waves-ripple z-active",!1}},!1)}}),o=function(t){t.directive("waves",r)};window.Vue&&(window.waves=r,Vue.use(o)),r.install=o;e.a=r},acJy:function(t,e,a){},deRP:function(t,e,a){"use strict";a.d(e,"b",function(){return n}),a.d(e,"d",function(){return r}),a.d(e,"e",function(){return o}),a.d(e,"a",function(){return s}),a.d(e,"c",function(){return l});var i=a("t3Un");function n(t){return Object(i.a)({url:"/api/celebrity/list",method:"get",params:t})}function r(t){return Object(i.a)({url:"/api/celebrity/create",method:"post",data:t})}function o(t){return Object(i.a)({url:"/api/celebrity/detail",method:"get",params:{id:t}})}function s(t){return Object(i.a)({url:"/api/celebrity//list/update",method:"post",data:t})}function l(t){return Object(i.a)({url:"/api/celebrity/celebrity_related_group_info",method:"get",params:t})}},"g/UI":function(t,e,a){"use strict";var i=a("m1cH"),n=a.n(i),r=a("gDS+"),o=a.n(r),s=a("P2sY"),l=a.n(s),u=a("fL+G"),c=a("Grqa"),p=a("uARZ"),d=a("ZySA"),m=a("Mz3J"),f=a("deRP"),g=a("I7qB"),h=a("gg54"),b=a("7Qib"),v={status:"draft",name:"",id:"",gender:"",city:"",is_online:0,description:"",avatar:"",groups:[]},y={name:"StarDetail",components:{MDinput:c.a,Upload:u.a,Sticky:p.a,Pagination:m.a},directives:{waves:d.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,i){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),i(new Error(e.field+"为必传项"))):i()};return{postForm:l()({},v),loading:!1,groupListOptions:[],temp_group_ids:"",group_ids:[],city:"",rules:{name:[{validator:e,trigger:"blur"}],gender:[{validator:e,trigger:"blur"}],avatar:[{validator:e,trigger:"blur"}]},GenderTypeOptions:[{key:0,display_name:"男"},{key:1,display_name:"女"}],tempRoute:{},regionListOptions:[],uploadType:99,list:[],tableData:[],total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{id:"",page:0,limit:10}}},computed:{contentShortLength:function(){return this.postForm.description.length},lang:function(){return this.$store.getters.language},data:function(){var t=this;return this.tableData.filter(function(e){for(var a=!1,i=0;i<t.del_list.length;i++)if(e.id==t.del_list[i].id){a=!0;break}if(!a)return e})}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t),this.getList()}else this.postForm=l()({},v);this.tempRoute=l()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(f.e)(t).then(function(t){var a=t.data.data.data;e.postForm=a,a.city.id&&a.city.name?e.city=a.city.id+":"+a.city.name:e.city=""}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){return e?(t.loading=!0,""==t.city?(t.$message.error("城市必填"),t.loading=!1,!1):(t.postForm.groups=o()(t.group_ids),t.postForm.city=t.city,Object(f.d)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/star/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",void(t.loading=!1))):(console.log("error submit!!"),!1)})},getRemoteGroupList:function(t){var e=this;Object(h.c)(t).then(function(t){t.data.data.data&&(e.groupListOptions=t.data.data.data)})},getRemoteCityList:function(t){var e=this;Object(h.b)(t).then(function(t){t.data.data.data&&(e.regionListOptions=t.data.data.data)})},appendUser:function(){var t=this;if(!this.temp_group_ids)return this.$message.error("还没输入小组呢~~"),this.temp_group_ids="",!1;Object(g.a)(this.temp_group_ids).then(function(e){e.data.data&&(t.tableData.push(e.data.data),t.total=t.tableData.length)}),this.group_ids.push(this.temp_group_ids),this.temp_group_ids=""},delUser:function(){var t,e=[],a=[],i=[];(t=this.del_list).push.apply(t,n()(this.multipleSelection));for(var r=0;r<this.tableData.length;r++)e.push(this.tableData[r].id+":"+this.tableData[r].name);for(var o=0;o<this.multipleSelection.length;o++)i.push(this.multipleSelection[o].id+":"+this.multipleSelection[o].name);for(var s=0;s<e.length;s++)Object(b.c)(i,e[s])||a.push(e[s]);this.group_ids=a},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.listQuery.limit=t,this.getList()},handleCurrentChange:function(t){this.listQuery.page=t,this.getList()},getList:function(){var t=this;this.listLoading=!0,this.listQuery.id=this.$route.params&&this.$route.params.id,Object(f.c)(this.listQuery).then(function(e){for(var a=e.data.data.data,i=0;i<a.length;i++)t.group_ids.push(a[i].id+":"+a[i].name);t.tableData=e.data.data.data,t.total=e.data.data.total,t.listLoading=!1})}}},_=(a("U9p6"),a("KHd+")),w=Object(_.a)(y,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("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",{attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("明星相关")])]),t._v(" "),a("div",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},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),t._v(" "),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:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",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:"创建时间:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",placeholder:"请输入内容",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),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"用户数:"}},[a("el-input",{staticStyle:{width:"220px"},attrs:{type:"number",disabled:""},model:{value:t.postForm.user_nums,callback:function(e){t.$set(t.postForm,"user_nums",e)},expression:"postForm.user_nums"}})],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:"帖子数:"}},[a("el-input",{staticStyle:{width:"220px"},attrs:{type:"number",disabled:""},model:{value:t.postForm.topic_nums,callback:function(e){t.$set(t.postForm,"topic_nums",e)},expression:"postForm.topic_nums"}})],1):t._e()],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"小组数:"}},[a("el-input",{staticStyle:{width:"220px"},attrs:{type:"number",disabled:""},model:{value:t.postForm.group_nums,callback:function(e){t.$set(t.postForm,"group_nums",e)},expression:"postForm.group_nums"}})],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:12}})],1)],1)],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-left":"10px"},attrs:{"label-width":"75px",label:"性别:",prop:"gender"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"220px"},attrs:{placeholder:"性别:",clearable:"",disabled:this.isEdit},model:{value:t.postForm.gender,callback:function(e){t.$set(t.postForm,"gender",e)},expression:"postForm.gender"}},t._l(t.GenderTypeOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-left":"10px"},attrs:{"label-width":"75px",label:"城市:",prop:"city"}},[a("el-select",{staticStyle:{width:"220px"},attrs:{"remote-method":t.getRemoteCityList,filterable:"",remote:"",clearable:"","value-key":"id",placeholder:"搜索地区"},model:{value:t.city,callback:function(e){t.city=e},expression:"city"}},t._l(t.regionListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"20px","margin-left":"10px"},attrs:{"label-width":"75px",label:"是否在线:"}},[a("el-radio-group",{model:{value:t.postForm.is_online,callback:function(e){t.$set(t.postForm,"is_online",e)},expression:"postForm.is_online"}},[a("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"20px","margin-left":"10px"},attrs:{"label-width":"75px",label:"明星简介:"}},[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","margin-left":"10px"}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"明星头像:",prop:"avatar"}},[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.avatar,callback:function(e){t.$set(t.postForm,"avatar",e)},expression:"postForm.avatar"}})],1)],1)],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"50px"},attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("小组相关")])]),t._v(" "),a("div",{staticStyle:{"margin-bottom":"50px"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticStyle:{width:"220px"},attrs:{"remote-method":t.getRemoteGroupList,filterable:"",remote:"",clearable:"","value-key":"id",placeholder:"小组"},model:{value:t.temp_group_ids,callback:function(e){t.temp_group_ids=e},expression:"temp_group_ids"}},t._l(t.groupListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})})),t._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:t.appendUser}},[t._v("添加\n ")]),t._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-delete"},on:{click:t.delUser}},[t._v("移除\n ")])],1),t._v(" "),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.data,border:"",fit:"","highlight-current-row":""},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"小组ID "},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{staticClass:"link-type",attrs:{to:"/group/edit/"+e.row.id}},[a("span",[t._v(t._s(e.row.id))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"小组名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"小组简介"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.description))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"用户数"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.user_nums))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"帖子数"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.topic_nums))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"组长"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.creator.name))])]}}])})],1),t._v(" "),a("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)],1)],1)],1)},[],!1,null,"807900ca",null);w.options.__file="StarDetail.vue";e.a=w.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 r}),a.d(e,"e",function(){return o}),a.d(e,"d",function(){return s}),a.d(e,"b",function(){return l}),a.d(e,"a",function(){return u}),a.d(e,"g",function(){return c}),a.d(e,"f",function(){return p});var i=a("t3Un");function n(t){return Object(i.a)({url:"/api/search/user",method:"get",params:{name:t}})}function r(t){return Object(i.a)({url:"/api/search/group",method:"get",params:{name:t}})}function o(t){return Object(i.a)({url:"/api/search/tag",method:"get",params:t})}function s(t){return Object(i.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function l(t){return Object(i.a)({url:"/api/search/city",method:"get",params:{name:t}})}function u(t){return Object(i.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function c(t){return Object(i.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function p(t){return Object(i.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},jUE0:function(t,e,a){},"oh+g":function(t,e,a){var i=a("WEpk"),n=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return n.stringify.apply(n,arguments)}}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6f28"],{"2X8+":function(t,e,a){"use strict";a.r(e);var i={name:"EditStar",components:{StarDetail:a("g/UI").a}},n=a("KHd+"),r=Object(n.a)(i,function(){var t=this.$createElement;return(this._self._c||t)("star-detail",{attrs:{"is-edit":!0}})},[],!1,null,null,null);r.options.__file="edit.vue";e.default=r.exports},I7qB:function(t,e,a){"use strict";a.d(e,"g",function(){return n}),a.d(e,"d",function(){return r}),a.d(e,"a",function(){return o}),a.d(e,"e",function(){return s}),a.d(e,"f",function(){return l}),a.d(e,"b",function(){return u}),a.d(e,"c",function(){return c});var i=a("t3Un");function n(t){return Object(i.a)({url:"/api/group/list",method:"get",params:t})}function r(t){return Object(i.a)({url:"/api/group/list/update",method:"post",data:t})}function o(t){return Object(i.a)({url:"/api/group/get",method:"get",params:{id:t}})}function s(t){return Object(i.a)({url:"/api/group/create",method:"post",data:t})}function l(t){return Object(i.a)({url:"/api/group/user/list",method:"get",params:t})}function u(t){return Object(i.a)({url:"/api/group/user/get",method:"get",params:{id:t}})}function c(t){return Object(i.a)({url:"/api/group/user/edit_group_identify",method:"post",data:t})}},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return n});var i=a("t3Un");function n(){return Object(i.a)({url:"/api/get_token",method:"get"})}},U9p6:function(t,e,a){"use strict";var i=a("acJy");a.n(i).a},Y5bG:function(t,e,a){"use strict";a.d(e,"a",function(){return n}),Math.easeInOutQuad=function(t,e,a,i){return(t/=i/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e};var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function n(t,e,a){var n=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,r=t-n,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,n,r,e)),o<e?i(t):a&&"function"==typeof a&&a()}()}},ZySA:function(t,e,a){"use strict";var i=a("P2sY"),n=a.n(i),r=(a("jUE0"),{bind:function(t,e){t.addEventListener("click",function(a){var i=n()({},e.value),r=n()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=r.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var s=o.getBoundingClientRect(),l=o.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":((l=document.createElement("span")).className="waves-ripple",l.style.height=l.style.width=Math.max(s.width,s.height)+"px",o.appendChild(l)),r.type){case"center":l.style.top=s.height/2-l.offsetHeight/2+"px",l.style.left=s.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(a.pageY-s.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(a.pageX-s.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=r.color,l.className="waves-ripple z-active",!1}},!1)}}),o=function(t){t.directive("waves",r)};window.Vue&&(window.waves=r,Vue.use(o)),r.install=o;e.a=r},acJy:function(t,e,a){},deRP:function(t,e,a){"use strict";a.d(e,"b",function(){return n}),a.d(e,"d",function(){return r}),a.d(e,"e",function(){return o}),a.d(e,"a",function(){return s}),a.d(e,"c",function(){return l});var i=a("t3Un");function n(t){return Object(i.a)({url:"/api/celebrity/list",method:"get",params:t})}function r(t){return Object(i.a)({url:"/api/celebrity/create",method:"post",data:t})}function o(t){return Object(i.a)({url:"/api/celebrity/detail",method:"get",params:{id:t}})}function s(t){return Object(i.a)({url:"/api/celebrity//list/update",method:"post",data:t})}function l(t){return Object(i.a)({url:"/api/celebrity/celebrity_related_group_info",method:"get",params:t})}},"g/UI":function(t,e,a){"use strict";var i=a("m1cH"),n=a.n(i),r=a("gDS+"),o=a.n(r),s=a("P2sY"),l=a.n(s),u=a("fL+G"),c=a("Grqa"),p=a("uARZ"),d=a("ZySA"),m=a("Mz3J"),f=a("deRP"),h=a("I7qB"),g=a("gg54"),b=a("7Qib"),v={status:"draft",name:"",id:"",gender:"",city:"",is_online:0,description:"",avatar:"",groups:[]},y={name:"StarDetail",components:{MDinput:c.a,Upload:u.a,Sticky:p.a,Pagination:m.a},directives:{waves:d.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,i){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),i(new Error(e.field+"为必传项"))):i()};return{postForm:l()({},v),loading:!1,groupListOptions:[],temp_group_ids:"",group_ids:[],city:"",rules:{name:[{validator:e,trigger:"blur"}],gender:[{validator:e,trigger:"blur"}],avatar:[{validator:e,trigger:"blur"}]},GenderTypeOptions:[{key:0,display_name:"男"},{key:1,display_name:"女"}],tempRoute:{},regionListOptions:[],uploadType:99,list:[],tableData:[],total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{id:"",page:0,limit:10}}},computed:{contentShortLength:function(){return this.postForm.description.length},lang:function(){return this.$store.getters.language},data:function(){var t=this;return this.tableData.filter(function(e){for(var a=!1,i=0;i<t.del_list.length;i++)if(e.id==t.del_list[i].id){a=!0;break}if(!a)return e})}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t),this.getList()}else this.postForm=l()({},v);this.tempRoute=l()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(f.e)(t).then(function(t){var a=t.data.data.data;e.postForm=a,a.city.id&&a.city.name?e.city=a.city.id+":"+a.city.name:e.city=""}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){return e?(t.loading=!0,""==t.city?(t.$message.error("城市必填"),t.loading=!1,!1):(t.postForm.groups=o()(t.group_ids),t.postForm.city=t.city,Object(f.d)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/star/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",void(t.loading=!1))):(console.log("error submit!!"),!1)})},getRemoteGroupList:function(t){var e=this;Object(g.d)(t).then(function(t){t.data.data.data&&(e.groupListOptions=t.data.data.data)})},getRemoteCityList:function(t){var e=this;Object(g.b)(t).then(function(t){t.data.data.data&&(e.regionListOptions=t.data.data.data)})},appendUser:function(){var t=this;if(!this.temp_group_ids)return this.$message.error("还没输入小组呢~~"),this.temp_group_ids="",!1;Object(h.a)(this.temp_group_ids).then(function(e){e.data.data&&(t.tableData.push(e.data.data),t.total=t.tableData.length)}),this.group_ids.push(this.temp_group_ids),this.temp_group_ids=""},delUser:function(){var t,e=[],a=[],i=[];(t=this.del_list).push.apply(t,n()(this.multipleSelection));for(var r=0;r<this.tableData.length;r++)e.push(this.tableData[r].id+":"+this.tableData[r].name);for(var o=0;o<this.multipleSelection.length;o++)i.push(this.multipleSelection[o].id+":"+this.multipleSelection[o].name);for(var s=0;s<e.length;s++)Object(b.c)(i,e[s])||a.push(e[s]);this.group_ids=a},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.listQuery.limit=t,this.getList()},handleCurrentChange:function(t){this.listQuery.page=t,this.getList()},getList:function(){var t=this;this.listLoading=!0,this.listQuery.id=this.$route.params&&this.$route.params.id,Object(f.c)(this.listQuery).then(function(e){for(var a=e.data.data.data,i=0;i<a.length;i++)t.group_ids.push(a[i].id+":"+a[i].name);t.tableData=e.data.data.data,t.total=e.data.data.total,t.listLoading=!1})}}},_=(a("U9p6"),a("KHd+")),w=Object(_.a)(y,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("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",{attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("明星相关")])]),t._v(" "),a("div",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},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),t._v(" "),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:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",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:"创建时间:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",placeholder:"请输入内容",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),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"用户数:"}},[a("el-input",{staticStyle:{width:"220px"},attrs:{type:"number",disabled:""},model:{value:t.postForm.user_nums,callback:function(e){t.$set(t.postForm,"user_nums",e)},expression:"postForm.user_nums"}})],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:"帖子数:"}},[a("el-input",{staticStyle:{width:"220px"},attrs:{type:"number",disabled:""},model:{value:t.postForm.topic_nums,callback:function(e){t.$set(t.postForm,"topic_nums",e)},expression:"postForm.topic_nums"}})],1):t._e()],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"小组数:"}},[a("el-input",{staticStyle:{width:"220px"},attrs:{type:"number",disabled:""},model:{value:t.postForm.group_nums,callback:function(e){t.$set(t.postForm,"group_nums",e)},expression:"postForm.group_nums"}})],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:12}})],1)],1)],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-left":"10px"},attrs:{"label-width":"75px",label:"性别:",prop:"gender"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"220px"},attrs:{placeholder:"性别:",clearable:"",disabled:this.isEdit},model:{value:t.postForm.gender,callback:function(e){t.$set(t.postForm,"gender",e)},expression:"postForm.gender"}},t._l(t.GenderTypeOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-left":"10px"},attrs:{"label-width":"75px",label:"城市:",prop:"city"}},[a("el-select",{staticStyle:{width:"220px"},attrs:{"remote-method":t.getRemoteCityList,filterable:"",remote:"",clearable:"","value-key":"id",placeholder:"搜索地区"},model:{value:t.city,callback:function(e){t.city=e},expression:"city"}},t._l(t.regionListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"20px","margin-left":"10px"},attrs:{"label-width":"75px",label:"是否在线:"}},[a("el-radio-group",{model:{value:t.postForm.is_online,callback:function(e){t.$set(t.postForm,"is_online",e)},expression:"postForm.is_online"}},[a("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"20px","margin-left":"10px"},attrs:{"label-width":"75px",label:"明星简介:"}},[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","margin-left":"10px"}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"明星头像:",prop:"avatar"}},[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.avatar,callback:function(e){t.$set(t.postForm,"avatar",e)},expression:"postForm.avatar"}})],1)],1)],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"50px"},attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("小组相关")])]),t._v(" "),a("div",{staticStyle:{"margin-bottom":"50px"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticStyle:{width:"220px"},attrs:{"remote-method":t.getRemoteGroupList,filterable:"",remote:"",clearable:"","value-key":"id",placeholder:"小组"},model:{value:t.temp_group_ids,callback:function(e){t.temp_group_ids=e},expression:"temp_group_ids"}},t._l(t.groupListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})})),t._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:t.appendUser}},[t._v("添加\n ")]),t._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-delete"},on:{click:t.delUser}},[t._v("移除\n ")])],1),t._v(" "),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.data,border:"",fit:"","highlight-current-row":""},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"小组ID "},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{staticClass:"link-type",attrs:{to:"/group/edit/"+e.row.id}},[a("span",[t._v(t._s(e.row.id))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"小组名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"小组简介"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.description))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"用户数"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.user_nums))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"帖子数"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.topic_nums))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"组长"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.creator.name))])]}}])})],1),t._v(" "),a("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)],1)],1)],1)},[],!1,null,"807900ca",null);w.options.__file="StarDetail.vue";e.a=w.exports},"gDS+":function(t,e,a){t.exports={default:a("oh+g"),__esModule:!0}},gg54:function(t,e,a){"use strict";a.d(e,"i",function(){return n}),a.d(e,"d",function(){return r}),a.d(e,"c",function(){return o}),a.d(e,"f",function(){return s}),a.d(e,"e",function(){return l}),a.d(e,"b",function(){return u}),a.d(e,"a",function(){return c}),a.d(e,"h",function(){return p}),a.d(e,"g",function(){return d});var i=a("t3Un");function n(t){return Object(i.a)({url:"/api/search/user",method:"get",params:{name:t}})}function r(t){return Object(i.a)({url:"/api/search/group",method:"get",params:{name:t}})}function o(t){return Object(i.a)({url:"/api/search/country",method:"get",params:{name:t}})}function s(t){return Object(i.a)({url:"/api/search/tag",method:"get",params:t})}function l(t){return Object(i.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function u(t){return Object(i.a)({url:"/api/search/city",method:"get",params:{name:t}})}function c(t){return Object(i.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function p(t){return Object(i.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function d(t){return Object(i.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},jUE0:function(t,e,a){},"oh+g":function(t,e,a){var i=a("WEpk"),n=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return n.stringify.apply(n,arguments)}}}]);
\ No newline at end of file \ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6f36"],{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
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-75fb"],{"00Qp":function(t,e,a){"use strict";a.r(e);var o={name:"EditUser",components:{UserDetail:a("ipnt").a}},r=a("KHd+"),i=Object(r.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("user-detail",{attrs:{"is-edit":!0}})},[],!1,null,null,null);i.options.__file="edit.vue";e.default=i.exports},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return r});var o=a("t3Un");function r(){return Object(o.a)({url:"/api/get_token",method:"get"})}},QoC7:function(t,e,a){"use strict";var o=a("r+UL");a.n(o).a},Y5bG:function(t,e,a){"use strict";a.d(e,"a",function(){return r}),Math.easeInOutQuad=function(t,e,a,o){return(t/=o/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e};var o=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function r(t,e,a){var r=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,i=t-r,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,r,i,e)),s<e?o(t):a&&"function"==typeof a&&a()}()}},Yfch:function(t,e,a){"use strict"},ZySA:function(t,e,a){"use strict";var o=a("P2sY"),r=a.n(o),i=(a("jUE0"),{bind:function(t,e){t.addEventListener("click",function(a){var o=r()({},e.value),i=r()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},o),s=i.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var n=s.getBoundingClientRect(),l=s.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":((l=document.createElement("span")).className="waves-ripple",l.style.height=l.style.width=Math.max(n.width,n.height)+"px",s.appendChild(l)),i.type){case"center":l.style.top=n.height/2-l.offsetHeight/2+"px",l.style.left=n.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(a.pageY-n.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(a.pageX-n.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=i.color,l.className="waves-ripple z-active",!1}},!1)}}),s=function(t){t.directive("waves",i)};window.Vue&&(window.waves=i,Vue.use(s)),i.install=s;e.a=i},"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 r}),a.d(e,"c",function(){return i}),a.d(e,"e",function(){return s}),a.d(e,"d",function(){return n}),a.d(e,"b",function(){return l}),a.d(e,"a",function(){return c}),a.d(e,"g",function(){return p}),a.d(e,"f",function(){return u});var o=a("t3Un");function r(t){return Object(o.a)({url:"/api/search/user",method:"get",params:{name:t}})}function i(t){return Object(o.a)({url:"/api/search/group",method:"get",params:{name:t}})}function s(t){return Object(o.a)({url:"/api/search/tag",method:"get",params:t})}function n(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 p(t){return Object(o.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function u(t){return Object(o.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},ipnt:function(t,e,a){"use strict";var o=a("gDS+"),r=a.n(o),i=a("P2sY"),s=a.n(i),n=a("glbJ"),l=a("fL+G"),c=a("Grqa"),p=a("uARZ"),u=a("ZySA"),d=a("Mz3J"),m=(a("Yfch"),a("wk8/")),f=a("gg54"),b={status:"draft",uploadType:"",is_recommend:0,user_id:"",create_time:"",topic_nums:0,password:"",avatar:"",nick_name:"",gender:"",tags:[],is_puppet:1,city:""},g={name:"UserDetail",components:{Tinymce:n.a,MDinput:c.a,Upload:l.a,Sticky:p.a,Pagination:d.a},directives:{waves:u.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,o){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()};return{postForm:s()({},b),loading:!1,city:"",tags:[],rules:{nick_name:[{validator:e,trigger:"blur"}],avatar:[{validator:e,trigger:"blur"}]},tempRoute:{},GenderTypeOptions:[{key:0,display_name:"男"},{key:1,display_name:"女"}],regionListOptions:[],tagListOptions:[],uploadType:99,isdisabledFn:!1,query:{}}},computed:{lang:function(){return this.$store.getters.language}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=s()({},b);this.tempRoute=s()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(m.b)(t).then(function(t){var a=t.data.data;e.postForm=t.data.data,t.data.data.city.id&&t.data.data.city.name?e.city=t.data.data.city.id+":"+t.data.data.city.name:e.city="";for(var o=0;o<a.tag_list.length;o++)e.tags.push(a.tag_list[o].id+":"+a.tag_list[o].name)}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){return e?(t.loading=!0,""===t.city?(t.$message.error("城市必填~"),t.loading=!1,!1):(console.log(t.postForm.gender),""===t.postForm.gender?(t.$message.error("性别必填~"),t.loading=!1,!1):(t.isdisabledFn=!0,t.postForm.city=t.city,t.postForm.tags=r()(t.tags),Object(m.d)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/user/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",void(t.loading=!1)))):(console.log("error submit!!"),!1)})},getRemoteCityList:function(t){var e=this;Object(f.b)(t).then(function(t){t.data.data.data&&(e.regionListOptions=t.data.data.data)})},getRemoteTagList:function(t){var e=this;this.query.name=t,Object(f.e)(this.query).then(function(t){t.data.data.data&&(e.tagListOptions=t.data.data.data)})}}},h=(a("QoC7"),a("KHd+")),y=Object(h.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 "+t.postForm.status}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success",disabled:t.isdisabledFn},on:{click:t.submitForm}},[t._v("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",{attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("用户相关")])]),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:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",disabled:""},model:{value:t.postForm.user_id,callback:function(e){t.$set(t.postForm,"user_id",e)},expression:"postForm.user_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:"注册时间:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{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),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"帖子:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",disabled:""},model:{value:t.postForm.topic_nums,callback:function(e){t.$set(t.postForm,"topic_nums",e)},expression:"postForm.topic_nums"}})],1):t._e()],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*用户名:",prop:"nick_name"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text"},model:{value:t.postForm.nick_name,callback:function(e){t.$set(t.postForm,"nick_name",e)},expression:"postForm.nick_name"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"电话:",prop:"phone"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text"},model:{value:t.postForm.phone,callback:function(e){t.$set(t.postForm,"phone",e)},expression:"postForm.phone"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"邮箱:",prop:"email"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text"},model:{value:t.postForm.email,callback:function(e){t.$set(t.postForm,"email",e)},expression:"postForm.email"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{"label-width":"75px",label:"*性别:",prop:"gender"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"230px"},attrs:{placeholder:"性别:",clearable:""},model:{value:t.postForm.gender,callback:function(e){t.$set(t.postForm,"gender",e)},expression:"postForm.gender"}},t._l(t.GenderTypeOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{"label-width":"75px",label:"*城市:"}},[a("el-select",{staticStyle:{width:"230px"},attrs:{"remote-method":t.getRemoteCityList,filterable:"",remote:"",clearable:"","value-key":"id",placeholder:"搜索城市"},model:{value:t.city,callback:function(e){t.city=e},expression:"city"}},t._l(t.regionListOptions,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:24}},[a("el-form-item",{attrs:{"label-width":"75px",label:"标签:"}},[a("el-select",{staticStyle:{width:"720px"},attrs:{"remote-method":t.getRemoteTagList,filterable:"",remote:"",clearable:"",multiple:"","value-key":"id",placeholder:"搜索标签"},model:{value:t.tags,callback:function(e){t.tags=e},expression:"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",{staticStyle:{"margin-bottom":"20px","margin-left":"10px"},attrs:{"label-width":"75px",label:"马甲号:"}},[a("el-radio-group",{model:{value:t.postForm.is_puppet,callback:function(e){t.$set(t.postForm,"is_puppet",e)},expression:"postForm.is_puppet"}},[a("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px","margin-left":"10px"},attrs:{"label-width":"75px",label:"推荐:"}},[a("el-radio-group",{model:{value:t.postForm.is_recommend,callback:function(e){t.$set(t.postForm,"is_recommend",e)},expression:"postForm.is_recommend"}},[a("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1)],1)],1)],1)])],1),t._v(" "),a("div",{staticStyle:{"margin-bottom":"20px"}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"85px",label:"*用户头像:",prop:"avatar"}},[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.avatar,callback:function(e){t.$set(t.postForm,"avatar",e)},expression:"postForm.avatar"}})],1)],1)],1)],1)],1)],1)],1)},[],!1,null,"f6de4cc0",null);y.options.__file="UserDetail.vue";e.a=y.exports},jUE0:function(t,e,a){},"oh+g":function(t,e,a){var o=a("WEpk"),r=o.JSON||(o.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},"r+UL":function(t,e,a){},"wk8/":function(t,e,a){"use strict";a.d(e,"c",function(){return r}),a.d(e,"a",function(){return i}),a.d(e,"b",function(){return s}),a.d(e,"d",function(){return n});var o=a("t3Un");function r(t){return Object(o.a)({url:"/api/user/list",method:"get",params:t})}function i(t){return Object(o.a)({url:"/api/user/list/update",method:"post",data:t})}function s(t){return Object(o.a)({url:"/api/user/get",method:"get",params:{id:t}})}function n(t){return Object(o.a)({url:"/api/user/create",method:"post",data:t})}}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-75fb"],{"00Qp":function(t,e,a){"use strict";a.r(e);var o={name:"EditUser",components:{UserDetail:a("ipnt").a}},r=a("KHd+"),i=Object(r.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("user-detail",{attrs:{"is-edit":!0}})},[],!1,null,null,null);i.options.__file="edit.vue";e.default=i.exports},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return r});var o=a("t3Un");function r(){return Object(o.a)({url:"/api/get_token",method:"get"})}},QoC7:function(t,e,a){"use strict";var o=a("r+UL");a.n(o).a},Y5bG:function(t,e,a){"use strict";a.d(e,"a",function(){return r}),Math.easeInOutQuad=function(t,e,a,o){return(t/=o/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e};var o=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function r(t,e,a){var r=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,i=t-r,n=0;e=void 0===e?500:e;!function t(){n+=20,function(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}(Math.easeInOutQuad(n,r,i,e)),n<e?o(t):a&&"function"==typeof a&&a()}()}},Yfch:function(t,e,a){"use strict"},ZySA:function(t,e,a){"use strict";var o=a("P2sY"),r=a.n(o),i=(a("jUE0"),{bind:function(t,e){t.addEventListener("click",function(a){var o=r()({},e.value),i=r()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},o),n=i.ele;if(n){n.style.position="relative",n.style.overflow="hidden";var s=n.getBoundingClientRect(),l=n.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":((l=document.createElement("span")).className="waves-ripple",l.style.height=l.style.width=Math.max(s.width,s.height)+"px",n.appendChild(l)),i.type){case"center":l.style.top=s.height/2-l.offsetHeight/2+"px",l.style.left=s.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(a.pageY-s.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(a.pageX-s.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=i.color,l.className="waves-ripple z-active",!1}},!1)}}),n=function(t){t.directive("waves",i)};window.Vue&&(window.waves=i,Vue.use(n)),i.install=n;e.a=i},"gDS+":function(t,e,a){t.exports={default:a("oh+g"),__esModule:!0}},gg54:function(t,e,a){"use strict";a.d(e,"i",function(){return r}),a.d(e,"d",function(){return i}),a.d(e,"c",function(){return n}),a.d(e,"f",function(){return s}),a.d(e,"e",function(){return l}),a.d(e,"b",function(){return c}),a.d(e,"a",function(){return p}),a.d(e,"h",function(){return u}),a.d(e,"g",function(){return d});var o=a("t3Un");function r(t){return Object(o.a)({url:"/api/search/user",method:"get",params:{name:t}})}function i(t){return Object(o.a)({url:"/api/search/group",method:"get",params:{name:t}})}function n(t){return Object(o.a)({url:"/api/search/country",method:"get",params:{name:t}})}function s(t){return Object(o.a)({url:"/api/search/tag",method:"get",params:t})}function l(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function c(t){return Object(o.a)({url:"/api/search/city",method:"get",params:{name:t}})}function p(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 d(t){return Object(o.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},ipnt:function(t,e,a){"use strict";var o=a("gDS+"),r=a.n(o),i=a("P2sY"),n=a.n(i),s=a("glbJ"),l=a("fL+G"),c=a("Grqa"),p=a("uARZ"),u=a("ZySA"),d=a("Mz3J"),m=(a("Yfch"),a("wk8/")),f=a("gg54"),b={status:"draft",uploadType:"",is_recommend:0,user_id:"",create_time:"",topic_nums:0,password:"",avatar:"",nick_name:"",gender:"",tags:[],is_puppet:1,city:""},g={name:"UserDetail",components:{Tinymce:s.a,MDinput:c.a,Upload:l.a,Sticky:p.a,Pagination:d.a},directives:{waves:u.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,o){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()};return{postForm:n()({},b),loading:!1,city:"",tags:[],rules:{nick_name:[{validator:e,trigger:"blur"}],avatar:[{validator:e,trigger:"blur"}]},tempRoute:{},GenderTypeOptions:[{key:0,display_name:"男"},{key:1,display_name:"女"}],regionListOptions:[],tagListOptions:[],uploadType:99,isdisabledFn:!1,query:{}}},computed:{lang:function(){return this.$store.getters.language}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=n()({},b);this.tempRoute=n()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(m.b)(t).then(function(t){var a=t.data.data;e.postForm=t.data.data,t.data.data.city.id&&t.data.data.city.name?e.city=t.data.data.city.id+":"+t.data.data.city.name:e.city="";for(var o=0;o<a.tag_list.length;o++)e.tags.push(a.tag_list[o].id+":"+a.tag_list[o].name)}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){return e?(t.loading=!0,""===t.city?(t.$message.error("城市必填~"),t.loading=!1,!1):(console.log(t.postForm.gender),""===t.postForm.gender?(t.$message.error("性别必填~"),t.loading=!1,!1):(t.isdisabledFn=!0,t.postForm.city=t.city,t.postForm.tags=r()(t.tags),Object(m.d)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/user/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",void(t.loading=!1)))):(console.log("error submit!!"),!1)})},getRemoteCityList:function(t){var e=this;Object(f.b)(t).then(function(t){t.data.data.data&&(e.regionListOptions=t.data.data.data)})},getRemoteTagList:function(t){var e=this;this.query.name=t,Object(f.f)(this.query).then(function(t){t.data.data.data&&(e.tagListOptions=t.data.data.data)})}}},h=(a("QoC7"),a("KHd+")),y=Object(h.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 "+t.postForm.status}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success",disabled:t.isdisabledFn},on:{click:t.submitForm}},[t._v("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",{attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("用户相关")])]),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:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",disabled:""},model:{value:t.postForm.user_id,callback:function(e){t.$set(t.postForm,"user_id",e)},expression:"postForm.user_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:"注册时间:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{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),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"帖子:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",disabled:""},model:{value:t.postForm.topic_nums,callback:function(e){t.$set(t.postForm,"topic_nums",e)},expression:"postForm.topic_nums"}})],1):t._e()],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*用户名:",prop:"nick_name"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text"},model:{value:t.postForm.nick_name,callback:function(e){t.$set(t.postForm,"nick_name",e)},expression:"postForm.nick_name"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"电话:",prop:"phone"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text"},model:{value:t.postForm.phone,callback:function(e){t.$set(t.postForm,"phone",e)},expression:"postForm.phone"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"邮箱:",prop:"email"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text"},model:{value:t.postForm.email,callback:function(e){t.$set(t.postForm,"email",e)},expression:"postForm.email"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{"label-width":"75px",label:"*性别:",prop:"gender"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"230px"},attrs:{placeholder:"性别:",clearable:""},model:{value:t.postForm.gender,callback:function(e){t.$set(t.postForm,"gender",e)},expression:"postForm.gender"}},t._l(t.GenderTypeOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{"label-width":"75px",label:"*城市:"}},[a("el-select",{staticStyle:{width:"230px"},attrs:{"remote-method":t.getRemoteCityList,filterable:"",remote:"",clearable:"","value-key":"id",placeholder:"搜索城市"},model:{value:t.city,callback:function(e){t.city=e},expression:"city"}},t._l(t.regionListOptions,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:24}},[a("el-form-item",{attrs:{"label-width":"75px",label:"标签:"}},[a("el-select",{staticStyle:{width:"720px"},attrs:{"remote-method":t.getRemoteTagList,filterable:"",remote:"",clearable:"",multiple:"","value-key":"id",placeholder:"搜索标签"},model:{value:t.tags,callback:function(e){t.tags=e},expression:"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",{staticStyle:{"margin-bottom":"20px","margin-left":"10px"},attrs:{"label-width":"75px",label:"马甲号:"}},[a("el-radio-group",{model:{value:t.postForm.is_puppet,callback:function(e){t.$set(t.postForm,"is_puppet",e)},expression:"postForm.is_puppet"}},[a("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px","margin-left":"10px"},attrs:{"label-width":"75px",label:"推荐:"}},[a("el-radio-group",{model:{value:t.postForm.is_recommend,callback:function(e){t.$set(t.postForm,"is_recommend",e)},expression:"postForm.is_recommend"}},[a("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1)],1)],1)],1)])],1),t._v(" "),a("div",{staticStyle:{"margin-bottom":"20px"}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"85px",label:"*用户头像:",prop:"avatar"}},[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.avatar,callback:function(e){t.$set(t.postForm,"avatar",e)},expression:"postForm.avatar"}})],1)],1)],1)],1)],1)],1)],1)},[],!1,null,"f6de4cc0",null);y.options.__file="UserDetail.vue";e.a=y.exports},jUE0:function(t,e,a){},"oh+g":function(t,e,a){var o=a("WEpk"),r=o.JSON||(o.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},"r+UL":function(t,e,a){},"wk8/":function(t,e,a){"use strict";a.d(e,"c",function(){return r}),a.d(e,"a",function(){return i}),a.d(e,"b",function(){return n}),a.d(e,"d",function(){return s});var o=a("t3Un");function r(t){return Object(o.a)({url:"/api/user/list",method:"get",params:t})}function i(t){return Object(o.a)({url:"/api/user/list/update",method:"post",data:t})}function n(t){return Object(o.a)({url:"/api/user/get",method:"get",params:{id:t}})}function s(t){return Object(o.a)({url:"/api/user/create",method:"post",data:t})}}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-768f"],{"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-7845"],{I7qB:function(t,e,a){"use strict";a.d(e,"g",function(){return r}),a.d(e,"d",function(){return n}),a.d(e,"a",function(){return s}),a.d(e,"e",function(){return o}),a.d(e,"f",function(){return l}),a.d(e,"b",function(){return u}),a.d(e,"c",function(){return c});var i=a("t3Un");function r(t){return Object(i.a)({url:"/api/group/list",method:"get",params:t})}function n(t){return Object(i.a)({url:"/api/group/list/update",method:"post",data:t})}function s(t){return Object(i.a)({url:"/api/group/get",method:"get",params:{id:t}})}function o(t){return Object(i.a)({url:"/api/group/create",method:"post",data:t})}function l(t){return Object(i.a)({url:"/api/group/user/list",method:"get",params:t})}function u(t){return Object(i.a)({url:"/api/group/user/get",method:"get",params:{id:t}})}function c(t){return Object(i.a)({url:"/api/group/user/edit_group_identify",method:"post",data:t})}},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return r});var i=a("t3Un");function r(){return Object(i.a)({url:"/api/get_token",method:"get"})}},Y5bG:function(t,e,a){"use strict";a.d(e,"a",function(){return r}),Math.easeInOutQuad=function(t,e,a,i){return(t/=i/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e};var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function r(t,e,a){var r=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,n=t-r,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,r,n,e)),s<e?i(t):a&&"function"==typeof a&&a()}()}},ZySA:function(t,e,a){"use strict";var i=a("P2sY"),r=a.n(i),n=(a("jUE0"),{bind:function(t,e){t.addEventListener("click",function(a){var i=r()({},e.value),n=r()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),s=n.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var o=s.getBoundingClientRect(),l=s.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":((l=document.createElement("span")).className="waves-ripple",l.style.height=l.style.width=Math.max(o.width,o.height)+"px",s.appendChild(l)),n.type){case"center":l.style.top=o.height/2-l.offsetHeight/2+"px",l.style.left=o.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(a.pageY-o.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(a.pageX-o.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=n.color,l.className="waves-ripple z-active",!1}},!1)}}),s=function(t){t.directive("waves",n)};window.Vue&&(window.waves=n,Vue.use(s)),n.install=s;e.a=n},"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 r}),a.d(e,"c",function(){return n}),a.d(e,"e",function(){return s}),a.d(e,"d",function(){return o}),a.d(e,"b",function(){return l}),a.d(e,"a",function(){return u}),a.d(e,"g",function(){return c}),a.d(e,"f",function(){return p});var i=a("t3Un");function r(t){return Object(i.a)({url:"/api/search/user",method:"get",params:{name:t}})}function n(t){return Object(i.a)({url:"/api/search/group",method:"get",params:{name:t}})}function s(t){return Object(i.a)({url:"/api/search/tag",method:"get",params:t})}function o(t){return Object(i.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function l(t){return Object(i.a)({url:"/api/search/city",method:"get",params:{name:t}})}function u(t){return Object(i.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function c(t){return Object(i.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function p(t){return Object(i.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},jUE0:function(t,e,a){},lWpZ:function(t,e,a){},oRVZ:function(t,e,a){"use strict";var i=a("m1cH"),r=a.n(i),n=a("gDS+"),s=a.n(n),o=a("P2sY"),l=a.n(o),u=a("Grqa"),c=a("fL+G"),p=a("uARZ"),d=a("ZySA"),m=a("Mz3J"),f=a("7Qib"),h=a("I7qB"),g=a("gg54"),_={status:"draft",name:"",description:"",id:void 0,user_nums:0,user:"",star:[],icon:"",is_online:0,is_recommend:0,group_users:[]},v=[{key:0,display_name:"创始人"},{key:1,display_name:"长老"},{key:2,display_name:"用户"},{key:3,display_name:"访客"}],b=v.reduce(function(t,e){return t[e.key]=e.display_name,t},{}),y={name:"GroupDetail",components:{MDinput:u.a,Sticky:p.a,Pagination:m.a,Upload:c.a},directives:{waves:d.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,i){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),i(new Error(e.field+"为必传项"))):i()};return{postForm:l()({},_),loading:!1,rules:{name:[{validator:e,trigger:"blur"}],icon:[{validator:e,trigger:"blur"}]},user:"",star:[],temp_user_ids:"",group_users:[],group_identify:"",tempRoute:{},uploadType:98,starListOptions:[],userListOptions:[],list:null,tableData:[],del_list:[],total:0,listLoading:!0,multipleSelection:[],listQuery:{page:0,limit:10,filter:{value:"",key:""}},GroupIndentify:v}},computed:{contentShortLength:function(){return this.postForm.description.length},data:function(){var t=this;return this.tableData.filter(function(e){for(var a=!1,i=0;i<t.del_list.length;i++)if(e.user_id==t.del_list[i].user_id){a=!0;break}if(!a)return e})}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t),this.getList()}else this.postForm=l()({},_);this.tempRoute=l()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(h.a)(t).then(function(t){var a=t.data.data;e.postForm=t.data.data,a.creator.id&&a.creator.name?e.user=a.creator.id+":"+a.creator.name:e.user="";for(var i=0;i<a.star.length;i++)e.star.push(a.star[i].id+":"+a.star[i].name)}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){return e?(t.loading=!0,""===t.user?(t.$message.error("小组组长必须填"),t.loading=!1,!1):(t.postForm.user=t.user,t.postForm.star=s()(t.star),t.postForm.group_users=s()(t.group_users),Object(h.e)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/group/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",void(t.loading=!1))):(console.log("error submit!!"),!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()},appendUser:function(){var t=this;if(""==this.temp_user_ids)return this.$message.error("还没输入用户呢~~"),this.temp_user_ids="",!1;for(var e=parseInt(this.temp_user_ids.split(":")[0]),a=0;a<this.tableData.length;a++)if(e==this.tableData[a].user_id)return this.$message.error("存在同样数据, 请勿重复操作"),this.temp_user_ids="",!1;Object(h.b)(this.temp_user_ids).then(function(e){var a;e.data.data&&(e.data.data[0].user_id?((a=t.tableData).push.apply(a,r()(e.data.data)),t.total=t.tableData.length,t.group_users.push(t.temp_user_ids),t.temp_user_ids=""):t.$message.error("这条数据错误, 请换条数据"))})},delUser:function(){for(var t,e=[],a=[],i=[],n=0;n<this.multipleSelection.length;n++)if("管理员"===this.multipleSelection[n].group_identify)return this.$message.error("请先更换管理员,在进行移除操作~"),!1;(t=this.del_list).push.apply(t,r()(this.multipleSelection));for(var s=0;s<this.tableData.length;s++)e.push(this.tableData[s].user_id+":"+this.tableData[s].nick_name);for(var o=0;o<this.multipleSelection.length;o++)i.push(this.multipleSelection[o].user_id+":"+this.multipleSelection[o].nick_name);for(var l=0;l<e.length;l++)Object(f.c)(i,e[l])||a.push(e[l]);this.group_users=a},getList:function(){var t=this;this.listLoading=!0,this.listQuery.id=this.$route.params&&this.$route.params.id,Object(h.f)(this.listQuery).then(function(e){var a=e.data.data.data;t.total=e.data.data.total,t.tableData=e.data.data.data.map(function(e){return t.$set(e,"edit",!1),e.original_group_identify=e.group_identify,e});for(var i=0;i<a.length;i++)t.group_users.push(a[i].user_id+":"+a[i].nick_name);t.listLoading=!1})},getRemoteUserList:function(t){var e=this;Object(g.h)(t).then(function(t){t.data.data.data&&(e.userListOptions=t.data.data.data)})},getRemoteStarList:function(t){var e=this;Object(g.d)(t).then(function(t){t.data.data.data&&(e.starListOptions=t.data.data.data)})},cancelEdit:function(t){t.group_identify=t.original_group_identify,t.edit=!1,this.$message({message:"取消成功",type:"warning"})},confirmEdit:function(t){var e=this;t.edit=!1,t.original_group_identify=t.group_identify,t.group_identify=b[t.group_identify],t.group_id=this.postForm.id,this.$message({message:"修改成功",type:"success"}),Object(h.c)(t).then(function(t){setTimeout(function(){e.$router.go(0)},1e3)}).catch(function(t){})}}},w=(a("zoNY"),a("KHd+")),k=Object(w.a)(y,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("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",{attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("小组相关")])]),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},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),t._v(" "),a("div",{staticClass:"postInfo-container"},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"明星称号:"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{"remote-method":t.getRemoteStarList,filterable:"",remote:"",multiple:"",clearable:"","reserve-keyword":"","value-key":"id",placeholder:"搜索明星"},model:{value:t.star,callback:function(e){t.star=e},expression:"star"}},t._l(t.starListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"小组组长:",prop:"user"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{"remote-method":t.getRemoteUserList,filterable:"",remote:"",clearable:"","value-key":"id",placeholder:"搜索用户"},model:{value:t.user,callback:function(e){t.user=e},expression:"user"}},t._l(t.userListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"组员数量:",prop:"user_nums"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"number",placeholder:"请输入内容",disabled:""},model:{value:t.postForm.user_nums,callback:function(e){t.$set(t.postForm,"user_nums",e)},expression:"postForm.user_nums"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"下线小组:"}},[a("el-radio-group",{model:{value:t.postForm.is_online,callback:function(e){t.$set(t.postForm,"is_online",e)},expression:"postForm.is_online"}},[a("el-radio",{attrs:{label:0}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("否")])],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"推荐小组:"}},[a("el-radio-group",{model:{value:t.postForm.is_recommend,callback:function(e){t.$set(t.postForm,"is_recommend",e)},expression:"postForm.is_recommend"}},[a("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:8}})],1)],1)],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"小组简介:"}},[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"}},[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,callback:function(e){t.$set(t.postForm,"icon",e)},expression:"postForm.icon"}})],1)],1)],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"50px"},attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("组员相关")])]),t._v(" "),a("div",{staticStyle:{"margin-bottom":"50px"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticStyle:{width:"220px"},attrs:{"remote-method":t.getRemoteUserList,filterable:"",remote:"","value-key":"id",placeholder:"用户"},model:{value:t.temp_user_ids,callback:function(e){t.temp_user_ids=e},expression:"temp_user_ids"}},t._l(t.userListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})})),t._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:t.appendUser}},[t._v("添加\n ")]),t._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-delete"},on:{click:t.delUser}},[t._v("移除\n ")])],1),t._v(" "),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.data,border:"",fit:"","highlight-current-row":""},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"76",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"用户ID "},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{staticClass:"link-type",attrs:{to:"/user/edit/"+e.row.user_id}},[a("span",[t._v(t._s(e.row.user_id))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"用户名"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.nick_name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"联系电话"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.phone))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"发布帖子数"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.topic_nums))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"用户身份"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.user_identify))])]}}])}),t._v(" "),t.isEdit?a("el-table-column",{attrs:{align:"center","min-width":"200px",label:"组内身份"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.edit?[a("el-select",{staticClass:"filter-item edit-select",staticStyle:{width:"160px"},attrs:{placeholder:"组内身份",clearable:""},model:{value:e.row.group_identify,callback:function(a){t.$set(e.row,"group_identify",a)},expression:"scope.row.group_identify"}},t._l(t.GroupIndentify,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})})),t._v(" "),a("el-button",{staticClass:"cancel-btn",attrs:{size:"small",icon:"el-icon-refresh",type:"warning"},on:{click:function(a){t.cancelEdit(e.row)}}},[t._v("取消\n ")])]:a("span",[t._v(t._s(e.row.group_identify))])]}}])}):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.edit?a("el-button",{attrs:{type:"success",size:"small",icon:"el-icon-circle-check-outline"},on:{click:function(a){t.confirmEdit(e.row)}}},[t._v("确认\n ")]):a("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-edit"},on:{click:function(t){e.row.edit=!e.row.edit}}},[t._v("修改\n ")])]}}])})],1),t._v(" "),a("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)],1)],1)],1)},[],!1,null,"9cf1b3fe",null);k.options.__file="GroupDetail.vue";e.a=k.exports},"oh+g":function(t,e,a){var i=a("WEpk"),r=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},zoNY:function(t,e,a){"use strict";var i=a("lWpZ");a.n(i).a}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7c23"],{"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: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}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7c23"],{"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.i)(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,"i",function(){return n}),a.d(e,"d",function(){return o}),a.d(e,"c",function(){return s}),a.d(e,"f",function(){return i}),a.d(e,"e",function(){return u}),a.d(e,"b",function(){return c}),a.d(e,"a",function(){return m}),a.d(e,"h",function(){return l}),a.d(e,"g",function(){return p});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/country",method:"get",params:{name:t}})}function i(t){return Object(r.a)({url:"/api/search/tag",method:"get",params:t})}function u(t){return Object(r.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function c(t){return Object(r.a)({url:"/api/search/city",method:"get",params:{name:t}})}function m(t){return Object(r.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function l(t){return Object(r.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function p(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 \ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7d58"],{"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-7f1d"],{I7qB:function(t,e,a){"use strict";a.d(e,"g",function(){return i}),a.d(e,"d",function(){return n}),a.d(e,"a",function(){return s}),a.d(e,"e",function(){return o}),a.d(e,"f",function(){return l}),a.d(e,"b",function(){return u}),a.d(e,"c",function(){return c});var r=a("t3Un");function i(t){return Object(r.a)({url:"/api/group/list",method:"get",params:t})}function n(t){return Object(r.a)({url:"/api/group/list/update",method:"post",data:t})}function s(t){return Object(r.a)({url:"/api/group/get",method:"get",params:{id:t}})}function o(t){return Object(r.a)({url:"/api/group/create",method:"post",data:t})}function l(t){return Object(r.a)({url:"/api/group/user/list",method:"get",params:t})}function u(t){return Object(r.a)({url:"/api/group/user/get",method:"get",params:{id:t}})}function c(t){return Object(r.a)({url:"/api/group/user/edit_group_identify",method:"post",data:t})}},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return i});var r=a("t3Un");function i(){return Object(r.a)({url:"/api/get_token",method:"get"})}},Y5bG:function(t,e,a){"use strict";a.d(e,"a",function(){return i}),Math.easeInOutQuad=function(t,e,a,r){return(t/=r/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e};var r=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function i(t,e,a){var i=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,n=t-i,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,i,n,e)),s<e?r(t):a&&"function"==typeof a&&a()}()}},ZySA:function(t,e,a){"use strict";var r=a("P2sY"),i=a.n(r),n=(a("jUE0"),{bind:function(t,e){t.addEventListener("click",function(a){var r=i()({},e.value),n=i()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},r),s=n.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var o=s.getBoundingClientRect(),l=s.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":((l=document.createElement("span")).className="waves-ripple",l.style.height=l.style.width=Math.max(o.width,o.height)+"px",s.appendChild(l)),n.type){case"center":l.style.top=o.height/2-l.offsetHeight/2+"px",l.style.left=o.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(a.pageY-o.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(a.pageX-o.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=n.color,l.className="waves-ripple z-active",!1}},!1)}}),s=function(t){t.directive("waves",n)};window.Vue&&(window.waves=n,Vue.use(s)),n.install=s;e.a=n},"gDS+":function(t,e,a){t.exports={default:a("oh+g"),__esModule:!0}},gg54:function(t,e,a){"use strict";a.d(e,"i",function(){return i}),a.d(e,"d",function(){return n}),a.d(e,"c",function(){return s}),a.d(e,"f",function(){return o}),a.d(e,"e",function(){return l}),a.d(e,"b",function(){return u}),a.d(e,"a",function(){return c}),a.d(e,"h",function(){return p}),a.d(e,"g",function(){return d});var r=a("t3Un");function i(t){return Object(r.a)({url:"/api/search/user",method:"get",params:{name:t}})}function n(t){return Object(r.a)({url:"/api/search/group",method:"get",params:{name:t}})}function s(t){return Object(r.a)({url:"/api/search/country",method:"get",params:{name:t}})}function o(t){return Object(r.a)({url:"/api/search/tag",method:"get",params:t})}function l(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 p(t){return Object(r.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function d(t){return Object(r.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},jUE0:function(t,e,a){},lWpZ:function(t,e,a){},oRVZ:function(t,e,a){"use strict";var r=a("m1cH"),i=a.n(r),n=a("gDS+"),s=a.n(n),o=a("P2sY"),l=a.n(o),u=a("Grqa"),c=a("fL+G"),p=a("uARZ"),d=a("ZySA"),m=a("Mz3J"),f=a("7Qib"),h=a("I7qB"),g=a("gg54"),_={status:"draft",name:"",description:"",id:void 0,user_nums:0,user:"",star:[],icon:"",is_online:0,is_recommend:0,group_users:[]},v=[{key:0,display_name:"创始人"},{key:1,display_name:"长老"},{key:2,display_name:"用户"},{key:3,display_name:"访客"}],b=v.reduce(function(t,e){return t[e.key]=e.display_name,t},{}),y={name:"GroupDetail",components:{MDinput:u.a,Sticky:p.a,Pagination:m.a,Upload:c.a},directives:{waves:d.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,r){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),r(new Error(e.field+"为必传项"))):r()};return{postForm:l()({},_),loading:!1,rules:{name:[{validator:e,trigger:"blur"}],icon:[{validator:e,trigger:"blur"}]},user:"",star:[],temp_user_ids:"",group_users:[],group_identify:"",tempRoute:{},uploadType:98,starListOptions:[],userListOptions:[],list:null,tableData:[],del_list:[],total:0,listLoading:!0,multipleSelection:[],listQuery:{page:0,limit:10,filter:{value:"",key:""}},GroupIndentify:v}},computed:{contentShortLength:function(){return this.postForm.description.length},data:function(){var t=this;return this.tableData.filter(function(e){for(var a=!1,r=0;r<t.del_list.length;r++)if(e.user_id==t.del_list[r].user_id){a=!0;break}if(!a)return e})}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t),this.getList()}else this.postForm=l()({},_);this.tempRoute=l()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(h.a)(t).then(function(t){var a=t.data.data;e.postForm=t.data.data,a.creator.id&&a.creator.name?e.user=a.creator.id+":"+a.creator.name:e.user="";for(var r=0;r<a.star.length;r++)e.star.push(a.star[r].id+":"+a.star[r].name)}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){return e?(t.loading=!0,""===t.user?(t.$message.error("小组组长必须填"),t.loading=!1,!1):(t.postForm.user=t.user,t.postForm.star=s()(t.star),t.postForm.group_users=s()(t.group_users),Object(h.e)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/group/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",void(t.loading=!1))):(console.log("error submit!!"),!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()},appendUser:function(){var t=this;if(""==this.temp_user_ids)return this.$message.error("还没输入用户呢~~"),this.temp_user_ids="",!1;for(var e=parseInt(this.temp_user_ids.split(":")[0]),a=0;a<this.tableData.length;a++)if(e==this.tableData[a].user_id)return this.$message.error("存在同样数据, 请勿重复操作"),this.temp_user_ids="",!1;Object(h.b)(this.temp_user_ids).then(function(e){var a;e.data.data&&(e.data.data[0].user_id?((a=t.tableData).push.apply(a,i()(e.data.data)),t.total=t.tableData.length,t.group_users.push(t.temp_user_ids),t.temp_user_ids=""):t.$message.error("这条数据错误, 请换条数据"))})},delUser:function(){for(var t,e=[],a=[],r=[],n=0;n<this.multipleSelection.length;n++)if("管理员"===this.multipleSelection[n].group_identify)return this.$message.error("请先更换管理员,在进行移除操作~"),!1;(t=this.del_list).push.apply(t,i()(this.multipleSelection));for(var s=0;s<this.tableData.length;s++)e.push(this.tableData[s].user_id+":"+this.tableData[s].nick_name);for(var o=0;o<this.multipleSelection.length;o++)r.push(this.multipleSelection[o].user_id+":"+this.multipleSelection[o].nick_name);for(var l=0;l<e.length;l++)Object(f.c)(r,e[l])||a.push(e[l]);this.group_users=a},getList:function(){var t=this;this.listLoading=!0,this.listQuery.id=this.$route.params&&this.$route.params.id,Object(h.f)(this.listQuery).then(function(e){var a=e.data.data.data;t.total=e.data.data.total,t.tableData=e.data.data.data.map(function(e){return t.$set(e,"edit",!1),e.original_group_identify=e.group_identify,e});for(var r=0;r<a.length;r++)t.group_users.push(a[r].user_id+":"+a[r].nick_name);t.listLoading=!1})},getRemoteUserList:function(t){var e=this;Object(g.i)(t).then(function(t){t.data.data.data&&(e.userListOptions=t.data.data.data)})},getRemoteStarList:function(t){var e=this;Object(g.e)(t).then(function(t){t.data.data.data&&(e.starListOptions=t.data.data.data)})},cancelEdit:function(t){t.group_identify=t.original_group_identify,t.edit=!1,this.$message({message:"取消成功",type:"warning"})},confirmEdit:function(t){var e=this;t.edit=!1,t.original_group_identify=t.group_identify,t.group_identify=b[t.group_identify],t.group_id=this.postForm.id,this.$message({message:"修改成功",type:"success"}),Object(h.c)(t).then(function(t){setTimeout(function(){e.$router.go(0)},1e3)}).catch(function(t){})}}},w=(a("zoNY"),a("KHd+")),k=Object(w.a)(y,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("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",{attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("小组相关")])]),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},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),t._v(" "),a("div",{staticClass:"postInfo-container"},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"明星称号:"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{"remote-method":t.getRemoteStarList,filterable:"",remote:"",multiple:"",clearable:"","reserve-keyword":"","value-key":"id",placeholder:"搜索明星"},model:{value:t.star,callback:function(e){t.star=e},expression:"star"}},t._l(t.starListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"小组组长:",prop:"user"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{"remote-method":t.getRemoteUserList,filterable:"",remote:"",clearable:"","value-key":"id",placeholder:"搜索用户"},model:{value:t.user,callback:function(e){t.user=e},expression:"user"}},t._l(t.userListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"组员数量:",prop:"user_nums"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"number",placeholder:"请输入内容",disabled:""},model:{value:t.postForm.user_nums,callback:function(e){t.$set(t.postForm,"user_nums",e)},expression:"postForm.user_nums"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"下线小组:"}},[a("el-radio-group",{model:{value:t.postForm.is_online,callback:function(e){t.$set(t.postForm,"is_online",e)},expression:"postForm.is_online"}},[a("el-radio",{attrs:{label:0}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("否")])],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"推荐小组:"}},[a("el-radio-group",{model:{value:t.postForm.is_recommend,callback:function(e){t.$set(t.postForm,"is_recommend",e)},expression:"postForm.is_recommend"}},[a("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:8}})],1)],1)],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"小组简介:"}},[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"}},[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,callback:function(e){t.$set(t.postForm,"icon",e)},expression:"postForm.icon"}})],1)],1)],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"50px"},attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("组员相关")])]),t._v(" "),a("div",{staticStyle:{"margin-bottom":"50px"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticStyle:{width:"220px"},attrs:{"remote-method":t.getRemoteUserList,filterable:"",remote:"","value-key":"id",placeholder:"用户"},model:{value:t.temp_user_ids,callback:function(e){t.temp_user_ids=e},expression:"temp_user_ids"}},t._l(t.userListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})})),t._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:t.appendUser}},[t._v("添加\n ")]),t._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-delete"},on:{click:t.delUser}},[t._v("移除\n ")])],1),t._v(" "),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.data,border:"",fit:"","highlight-current-row":""},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"76",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"用户ID "},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{staticClass:"link-type",attrs:{to:"/user/edit/"+e.row.user_id}},[a("span",[t._v(t._s(e.row.user_id))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"用户名"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.nick_name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"联系电话"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.phone))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"发布帖子数"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.topic_nums))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"用户身份"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.user_identify))])]}}])}),t._v(" "),t.isEdit?a("el-table-column",{attrs:{align:"center","min-width":"200px",label:"组内身份"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.edit?[a("el-select",{staticClass:"filter-item edit-select",staticStyle:{width:"160px"},attrs:{placeholder:"组内身份",clearable:""},model:{value:e.row.group_identify,callback:function(a){t.$set(e.row,"group_identify",a)},expression:"scope.row.group_identify"}},t._l(t.GroupIndentify,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})})),t._v(" "),a("el-button",{staticClass:"cancel-btn",attrs:{size:"small",icon:"el-icon-refresh",type:"warning"},on:{click:function(a){t.cancelEdit(e.row)}}},[t._v("取消\n ")])]:a("span",[t._v(t._s(e.row.group_identify))])]}}])}):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.edit?a("el-button",{attrs:{type:"success",size:"small",icon:"el-icon-circle-check-outline"},on:{click:function(a){t.confirmEdit(e.row)}}},[t._v("确认\n ")]):a("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-edit"},on:{click:function(t){e.row.edit=!e.row.edit}}},[t._v("修改\n ")])]}}])})],1),t._v(" "),a("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)],1)],1)],1)},[],!1,null,"9cf1b3fe",null);k.options.__file="GroupDetail.vue";e.a=k.exports},"oh+g":function(t,e,a){var r=a("WEpk"),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},zoNY:function(t,e,a){"use strict";var r=a("lWpZ");a.n(r).a}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-a2a7"],{I7qB:function(t,e,a){"use strict";a.d(e,"g",function(){return r}),a.d(e,"d",function(){return n}),a.d(e,"a",function(){return o}),a.d(e,"e",function(){return s}),a.d(e,"f",function(){return l}),a.d(e,"b",function(){return u}),a.d(e,"c",function(){return c});var i=a("t3Un");function r(t){return Object(i.a)({url:"/api/group/list",method:"get",params:t})}function n(t){return Object(i.a)({url:"/api/group/list/update",method:"post",data:t})}function o(t){return Object(i.a)({url:"/api/group/get",method:"get",params:{id:t}})}function s(t){return Object(i.a)({url:"/api/group/create",method:"post",data:t})}function l(t){return Object(i.a)({url:"/api/group/user/list",method:"get",params:t})}function u(t){return Object(i.a)({url:"/api/group/user/get",method:"get",params:{id:t}})}function c(t){return Object(i.a)({url:"/api/group/user/edit_group_identify",method:"post",data:t})}},Knv1:function(t,e,a){"use strict";a.r(e);var i={name:"CreateStar",components:{StarDetail:a("g/UI").a}},r=a("KHd+"),n=Object(r.a)(i,function(){var t=this.$createElement;return(this._self._c||t)("star-detail",{attrs:{"is-edit":!1}})},[],!1,null,null,null);n.options.__file="create.vue";e.default=n.exports},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return r});var i=a("t3Un");function r(){return Object(i.a)({url:"/api/get_token",method:"get"})}},U9p6:function(t,e,a){"use strict";var i=a("acJy");a.n(i).a},Y5bG:function(t,e,a){"use strict";a.d(e,"a",function(){return r}),Math.easeInOutQuad=function(t,e,a,i){return(t/=i/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e};var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function r(t,e,a){var r=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,n=t-r,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,r,n,e)),o<e?i(t):a&&"function"==typeof a&&a()}()}},ZySA:function(t,e,a){"use strict";var i=a("P2sY"),r=a.n(i),n=(a("jUE0"),{bind:function(t,e){t.addEventListener("click",function(a){var i=r()({},e.value),n=r()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=n.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var s=o.getBoundingClientRect(),l=o.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":((l=document.createElement("span")).className="waves-ripple",l.style.height=l.style.width=Math.max(s.width,s.height)+"px",o.appendChild(l)),n.type){case"center":l.style.top=s.height/2-l.offsetHeight/2+"px",l.style.left=s.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(a.pageY-s.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(a.pageX-s.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=n.color,l.className="waves-ripple z-active",!1}},!1)}}),o=function(t){t.directive("waves",n)};window.Vue&&(window.waves=n,Vue.use(o)),n.install=o;e.a=n},acJy:function(t,e,a){},deRP:function(t,e,a){"use strict";a.d(e,"b",function(){return r}),a.d(e,"d",function(){return n}),a.d(e,"e",function(){return o}),a.d(e,"a",function(){return s}),a.d(e,"c",function(){return l});var i=a("t3Un");function r(t){return Object(i.a)({url:"/api/celebrity/list",method:"get",params:t})}function n(t){return Object(i.a)({url:"/api/celebrity/create",method:"post",data:t})}function o(t){return Object(i.a)({url:"/api/celebrity/detail",method:"get",params:{id:t}})}function s(t){return Object(i.a)({url:"/api/celebrity//list/update",method:"post",data:t})}function l(t){return Object(i.a)({url:"/api/celebrity/celebrity_related_group_info",method:"get",params:t})}},"g/UI":function(t,e,a){"use strict";var i=a("m1cH"),r=a.n(i),n=a("gDS+"),o=a.n(n),s=a("P2sY"),l=a.n(s),u=a("fL+G"),c=a("Grqa"),p=a("uARZ"),d=a("ZySA"),m=a("Mz3J"),f=a("deRP"),g=a("I7qB"),h=a("gg54"),b=a("7Qib"),v={status:"draft",name:"",id:"",gender:"",city:"",is_online:0,description:"",avatar:"",groups:[]},y={name:"StarDetail",components:{MDinput:c.a,Upload:u.a,Sticky:p.a,Pagination:m.a},directives:{waves:d.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,i){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),i(new Error(e.field+"为必传项"))):i()};return{postForm:l()({},v),loading:!1,groupListOptions:[],temp_group_ids:"",group_ids:[],city:"",rules:{name:[{validator:e,trigger:"blur"}],gender:[{validator:e,trigger:"blur"}],avatar:[{validator:e,trigger:"blur"}]},GenderTypeOptions:[{key:0,display_name:"男"},{key:1,display_name:"女"}],tempRoute:{},regionListOptions:[],uploadType:99,list:[],tableData:[],total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{id:"",page:0,limit:10}}},computed:{contentShortLength:function(){return this.postForm.description.length},lang:function(){return this.$store.getters.language},data:function(){var t=this;return this.tableData.filter(function(e){for(var a=!1,i=0;i<t.del_list.length;i++)if(e.id==t.del_list[i].id){a=!0;break}if(!a)return e})}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t),this.getList()}else this.postForm=l()({},v);this.tempRoute=l()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(f.e)(t).then(function(t){var a=t.data.data.data;e.postForm=a,a.city.id&&a.city.name?e.city=a.city.id+":"+a.city.name:e.city=""}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){return e?(t.loading=!0,""==t.city?(t.$message.error("城市必填"),t.loading=!1,!1):(t.postForm.groups=o()(t.group_ids),t.postForm.city=t.city,Object(f.d)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/star/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",void(t.loading=!1))):(console.log("error submit!!"),!1)})},getRemoteGroupList:function(t){var e=this;Object(h.c)(t).then(function(t){t.data.data.data&&(e.groupListOptions=t.data.data.data)})},getRemoteCityList:function(t){var e=this;Object(h.b)(t).then(function(t){t.data.data.data&&(e.regionListOptions=t.data.data.data)})},appendUser:function(){var t=this;if(!this.temp_group_ids)return this.$message.error("还没输入小组呢~~"),this.temp_group_ids="",!1;Object(g.a)(this.temp_group_ids).then(function(e){e.data.data&&(t.tableData.push(e.data.data),t.total=t.tableData.length)}),this.group_ids.push(this.temp_group_ids),this.temp_group_ids=""},delUser:function(){var t,e=[],a=[],i=[];(t=this.del_list).push.apply(t,r()(this.multipleSelection));for(var n=0;n<this.tableData.length;n++)e.push(this.tableData[n].id+":"+this.tableData[n].name);for(var o=0;o<this.multipleSelection.length;o++)i.push(this.multipleSelection[o].id+":"+this.multipleSelection[o].name);for(var s=0;s<e.length;s++)Object(b.c)(i,e[s])||a.push(e[s]);this.group_ids=a},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.listQuery.limit=t,this.getList()},handleCurrentChange:function(t){this.listQuery.page=t,this.getList()},getList:function(){var t=this;this.listLoading=!0,this.listQuery.id=this.$route.params&&this.$route.params.id,Object(f.c)(this.listQuery).then(function(e){for(var a=e.data.data.data,i=0;i<a.length;i++)t.group_ids.push(a[i].id+":"+a[i].name);t.tableData=e.data.data.data,t.total=e.data.data.total,t.listLoading=!1})}}},_=(a("U9p6"),a("KHd+")),w=Object(_.a)(y,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("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",{attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("明星相关")])]),t._v(" "),a("div",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},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),t._v(" "),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:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",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:"创建时间:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",placeholder:"请输入内容",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),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"用户数:"}},[a("el-input",{staticStyle:{width:"220px"},attrs:{type:"number",disabled:""},model:{value:t.postForm.user_nums,callback:function(e){t.$set(t.postForm,"user_nums",e)},expression:"postForm.user_nums"}})],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:"帖子数:"}},[a("el-input",{staticStyle:{width:"220px"},attrs:{type:"number",disabled:""},model:{value:t.postForm.topic_nums,callback:function(e){t.$set(t.postForm,"topic_nums",e)},expression:"postForm.topic_nums"}})],1):t._e()],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"小组数:"}},[a("el-input",{staticStyle:{width:"220px"},attrs:{type:"number",disabled:""},model:{value:t.postForm.group_nums,callback:function(e){t.$set(t.postForm,"group_nums",e)},expression:"postForm.group_nums"}})],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:12}})],1)],1)],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-left":"10px"},attrs:{"label-width":"75px",label:"性别:",prop:"gender"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"220px"},attrs:{placeholder:"性别:",clearable:"",disabled:this.isEdit},model:{value:t.postForm.gender,callback:function(e){t.$set(t.postForm,"gender",e)},expression:"postForm.gender"}},t._l(t.GenderTypeOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-left":"10px"},attrs:{"label-width":"75px",label:"城市:",prop:"city"}},[a("el-select",{staticStyle:{width:"220px"},attrs:{"remote-method":t.getRemoteCityList,filterable:"",remote:"",clearable:"","value-key":"id",placeholder:"搜索地区"},model:{value:t.city,callback:function(e){t.city=e},expression:"city"}},t._l(t.regionListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"20px","margin-left":"10px"},attrs:{"label-width":"75px",label:"是否在线:"}},[a("el-radio-group",{model:{value:t.postForm.is_online,callback:function(e){t.$set(t.postForm,"is_online",e)},expression:"postForm.is_online"}},[a("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"20px","margin-left":"10px"},attrs:{"label-width":"75px",label:"明星简介:"}},[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","margin-left":"10px"}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"明星头像:",prop:"avatar"}},[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.avatar,callback:function(e){t.$set(t.postForm,"avatar",e)},expression:"postForm.avatar"}})],1)],1)],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"50px"},attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("小组相关")])]),t._v(" "),a("div",{staticStyle:{"margin-bottom":"50px"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticStyle:{width:"220px"},attrs:{"remote-method":t.getRemoteGroupList,filterable:"",remote:"",clearable:"","value-key":"id",placeholder:"小组"},model:{value:t.temp_group_ids,callback:function(e){t.temp_group_ids=e},expression:"temp_group_ids"}},t._l(t.groupListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})})),t._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:t.appendUser}},[t._v("添加\n ")]),t._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-delete"},on:{click:t.delUser}},[t._v("移除\n ")])],1),t._v(" "),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.data,border:"",fit:"","highlight-current-row":""},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"小组ID "},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{staticClass:"link-type",attrs:{to:"/group/edit/"+e.row.id}},[a("span",[t._v(t._s(e.row.id))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"小组名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"小组简介"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.description))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"用户数"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.user_nums))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"帖子数"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.topic_nums))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"组长"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.creator.name))])]}}])})],1),t._v(" "),a("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)],1)],1)],1)},[],!1,null,"807900ca",null);w.options.__file="StarDetail.vue";e.a=w.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 r}),a.d(e,"c",function(){return n}),a.d(e,"e",function(){return o}),a.d(e,"d",function(){return s}),a.d(e,"b",function(){return l}),a.d(e,"a",function(){return u}),a.d(e,"g",function(){return c}),a.d(e,"f",function(){return p});var i=a("t3Un");function r(t){return Object(i.a)({url:"/api/search/user",method:"get",params:{name:t}})}function n(t){return Object(i.a)({url:"/api/search/group",method:"get",params:{name:t}})}function o(t){return Object(i.a)({url:"/api/search/tag",method:"get",params:t})}function s(t){return Object(i.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function l(t){return Object(i.a)({url:"/api/search/city",method:"get",params:{name:t}})}function u(t){return Object(i.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function c(t){return Object(i.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function p(t){return Object(i.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},jUE0:function(t,e,a){},"oh+g":function(t,e,a){var i=a("WEpk"),r=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-a2a7"],{I7qB:function(t,e,a){"use strict";a.d(e,"g",function(){return r}),a.d(e,"d",function(){return n}),a.d(e,"a",function(){return o}),a.d(e,"e",function(){return s}),a.d(e,"f",function(){return l}),a.d(e,"b",function(){return u}),a.d(e,"c",function(){return c});var i=a("t3Un");function r(t){return Object(i.a)({url:"/api/group/list",method:"get",params:t})}function n(t){return Object(i.a)({url:"/api/group/list/update",method:"post",data:t})}function o(t){return Object(i.a)({url:"/api/group/get",method:"get",params:{id:t}})}function s(t){return Object(i.a)({url:"/api/group/create",method:"post",data:t})}function l(t){return Object(i.a)({url:"/api/group/user/list",method:"get",params:t})}function u(t){return Object(i.a)({url:"/api/group/user/get",method:"get",params:{id:t}})}function c(t){return Object(i.a)({url:"/api/group/user/edit_group_identify",method:"post",data:t})}},Knv1:function(t,e,a){"use strict";a.r(e);var i={name:"CreateStar",components:{StarDetail:a("g/UI").a}},r=a("KHd+"),n=Object(r.a)(i,function(){var t=this.$createElement;return(this._self._c||t)("star-detail",{attrs:{"is-edit":!1}})},[],!1,null,null,null);n.options.__file="create.vue";e.default=n.exports},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return r});var i=a("t3Un");function r(){return Object(i.a)({url:"/api/get_token",method:"get"})}},U9p6:function(t,e,a){"use strict";var i=a("acJy");a.n(i).a},Y5bG:function(t,e,a){"use strict";a.d(e,"a",function(){return r}),Math.easeInOutQuad=function(t,e,a,i){return(t/=i/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e};var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function r(t,e,a){var r=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,n=t-r,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,r,n,e)),o<e?i(t):a&&"function"==typeof a&&a()}()}},ZySA:function(t,e,a){"use strict";var i=a("P2sY"),r=a.n(i),n=(a("jUE0"),{bind:function(t,e){t.addEventListener("click",function(a){var i=r()({},e.value),n=r()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),o=n.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var s=o.getBoundingClientRect(),l=o.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":((l=document.createElement("span")).className="waves-ripple",l.style.height=l.style.width=Math.max(s.width,s.height)+"px",o.appendChild(l)),n.type){case"center":l.style.top=s.height/2-l.offsetHeight/2+"px",l.style.left=s.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(a.pageY-s.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(a.pageX-s.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=n.color,l.className="waves-ripple z-active",!1}},!1)}}),o=function(t){t.directive("waves",n)};window.Vue&&(window.waves=n,Vue.use(o)),n.install=o;e.a=n},acJy:function(t,e,a){},deRP:function(t,e,a){"use strict";a.d(e,"b",function(){return r}),a.d(e,"d",function(){return n}),a.d(e,"e",function(){return o}),a.d(e,"a",function(){return s}),a.d(e,"c",function(){return l});var i=a("t3Un");function r(t){return Object(i.a)({url:"/api/celebrity/list",method:"get",params:t})}function n(t){return Object(i.a)({url:"/api/celebrity/create",method:"post",data:t})}function o(t){return Object(i.a)({url:"/api/celebrity/detail",method:"get",params:{id:t}})}function s(t){return Object(i.a)({url:"/api/celebrity//list/update",method:"post",data:t})}function l(t){return Object(i.a)({url:"/api/celebrity/celebrity_related_group_info",method:"get",params:t})}},"g/UI":function(t,e,a){"use strict";var i=a("m1cH"),r=a.n(i),n=a("gDS+"),o=a.n(n),s=a("P2sY"),l=a.n(s),u=a("fL+G"),c=a("Grqa"),p=a("uARZ"),d=a("ZySA"),m=a("Mz3J"),f=a("deRP"),h=a("I7qB"),g=a("gg54"),b=a("7Qib"),v={status:"draft",name:"",id:"",gender:"",city:"",is_online:0,description:"",avatar:"",groups:[]},y={name:"StarDetail",components:{MDinput:c.a,Upload:u.a,Sticky:p.a,Pagination:m.a},directives:{waves:d.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,i){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),i(new Error(e.field+"为必传项"))):i()};return{postForm:l()({},v),loading:!1,groupListOptions:[],temp_group_ids:"",group_ids:[],city:"",rules:{name:[{validator:e,trigger:"blur"}],gender:[{validator:e,trigger:"blur"}],avatar:[{validator:e,trigger:"blur"}]},GenderTypeOptions:[{key:0,display_name:"男"},{key:1,display_name:"女"}],tempRoute:{},regionListOptions:[],uploadType:99,list:[],tableData:[],total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{id:"",page:0,limit:10}}},computed:{contentShortLength:function(){return this.postForm.description.length},lang:function(){return this.$store.getters.language},data:function(){var t=this;return this.tableData.filter(function(e){for(var a=!1,i=0;i<t.del_list.length;i++)if(e.id==t.del_list[i].id){a=!0;break}if(!a)return e})}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t),this.getList()}else this.postForm=l()({},v);this.tempRoute=l()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(f.e)(t).then(function(t){var a=t.data.data.data;e.postForm=a,a.city.id&&a.city.name?e.city=a.city.id+":"+a.city.name:e.city=""}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){return e?(t.loading=!0,""==t.city?(t.$message.error("城市必填"),t.loading=!1,!1):(t.postForm.groups=o()(t.group_ids),t.postForm.city=t.city,Object(f.d)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/star/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",void(t.loading=!1))):(console.log("error submit!!"),!1)})},getRemoteGroupList:function(t){var e=this;Object(g.d)(t).then(function(t){t.data.data.data&&(e.groupListOptions=t.data.data.data)})},getRemoteCityList:function(t){var e=this;Object(g.b)(t).then(function(t){t.data.data.data&&(e.regionListOptions=t.data.data.data)})},appendUser:function(){var t=this;if(!this.temp_group_ids)return this.$message.error("还没输入小组呢~~"),this.temp_group_ids="",!1;Object(h.a)(this.temp_group_ids).then(function(e){e.data.data&&(t.tableData.push(e.data.data),t.total=t.tableData.length)}),this.group_ids.push(this.temp_group_ids),this.temp_group_ids=""},delUser:function(){var t,e=[],a=[],i=[];(t=this.del_list).push.apply(t,r()(this.multipleSelection));for(var n=0;n<this.tableData.length;n++)e.push(this.tableData[n].id+":"+this.tableData[n].name);for(var o=0;o<this.multipleSelection.length;o++)i.push(this.multipleSelection[o].id+":"+this.multipleSelection[o].name);for(var s=0;s<e.length;s++)Object(b.c)(i,e[s])||a.push(e[s]);this.group_ids=a},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.listQuery.limit=t,this.getList()},handleCurrentChange:function(t){this.listQuery.page=t,this.getList()},getList:function(){var t=this;this.listLoading=!0,this.listQuery.id=this.$route.params&&this.$route.params.id,Object(f.c)(this.listQuery).then(function(e){for(var a=e.data.data.data,i=0;i<a.length;i++)t.group_ids.push(a[i].id+":"+a[i].name);t.tableData=e.data.data.data,t.total=e.data.data.total,t.listLoading=!1})}}},_=(a("U9p6"),a("KHd+")),w=Object(_.a)(y,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("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",{attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("明星相关")])]),t._v(" "),a("div",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},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),t._v(" "),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:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",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:"创建时间:"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",placeholder:"请输入内容",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),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"用户数:"}},[a("el-input",{staticStyle:{width:"220px"},attrs:{type:"number",disabled:""},model:{value:t.postForm.user_nums,callback:function(e){t.$set(t.postForm,"user_nums",e)},expression:"postForm.user_nums"}})],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:"帖子数:"}},[a("el-input",{staticStyle:{width:"220px"},attrs:{type:"number",disabled:""},model:{value:t.postForm.topic_nums,callback:function(e){t.$set(t.postForm,"topic_nums",e)},expression:"postForm.topic_nums"}})],1):t._e()],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"小组数:"}},[a("el-input",{staticStyle:{width:"220px"},attrs:{type:"number",disabled:""},model:{value:t.postForm.group_nums,callback:function(e){t.$set(t.postForm,"group_nums",e)},expression:"postForm.group_nums"}})],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:12}})],1)],1)],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-left":"10px"},attrs:{"label-width":"75px",label:"性别:",prop:"gender"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"220px"},attrs:{placeholder:"性别:",clearable:"",disabled:this.isEdit},model:{value:t.postForm.gender,callback:function(e){t.$set(t.postForm,"gender",e)},expression:"postForm.gender"}},t._l(t.GenderTypeOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-left":"10px"},attrs:{"label-width":"75px",label:"城市:",prop:"city"}},[a("el-select",{staticStyle:{width:"220px"},attrs:{"remote-method":t.getRemoteCityList,filterable:"",remote:"",clearable:"","value-key":"id",placeholder:"搜索地区"},model:{value:t.city,callback:function(e){t.city=e},expression:"city"}},t._l(t.regionListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"20px","margin-left":"10px"},attrs:{"label-width":"75px",label:"是否在线:"}},[a("el-radio-group",{model:{value:t.postForm.is_online,callback:function(e){t.$set(t.postForm,"is_online",e)},expression:"postForm.is_online"}},[a("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"20px","margin-left":"10px"},attrs:{"label-width":"75px",label:"明星简介:"}},[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","margin-left":"10px"}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"明星头像:",prop:"avatar"}},[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.avatar,callback:function(e){t.$set(t.postForm,"avatar",e)},expression:"postForm.avatar"}})],1)],1)],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"50px"},attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("小组相关")])]),t._v(" "),a("div",{staticStyle:{"margin-bottom":"50px"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticStyle:{width:"220px"},attrs:{"remote-method":t.getRemoteGroupList,filterable:"",remote:"",clearable:"","value-key":"id",placeholder:"小组"},model:{value:t.temp_group_ids,callback:function(e){t.temp_group_ids=e},expression:"temp_group_ids"}},t._l(t.groupListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t,value:t}})})),t._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:t.appendUser}},[t._v("添加\n ")]),t._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-delete"},on:{click:t.delUser}},[t._v("移除\n ")])],1),t._v(" "),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.data,border:"",fit:"","highlight-current-row":""},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"小组ID "},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{staticClass:"link-type",attrs:{to:"/group/edit/"+e.row.id}},[a("span",[t._v(t._s(e.row.id))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"小组名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"小组简介"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.description))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"用户数"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.user_nums))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"帖子数"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.topic_nums))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"组长"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.creator.name))])]}}])})],1),t._v(" "),a("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)],1)],1)],1)},[],!1,null,"807900ca",null);w.options.__file="StarDetail.vue";e.a=w.exports},"gDS+":function(t,e,a){t.exports={default:a("oh+g"),__esModule:!0}},gg54:function(t,e,a){"use strict";a.d(e,"i",function(){return r}),a.d(e,"d",function(){return n}),a.d(e,"c",function(){return o}),a.d(e,"f",function(){return s}),a.d(e,"e",function(){return l}),a.d(e,"b",function(){return u}),a.d(e,"a",function(){return c}),a.d(e,"h",function(){return p}),a.d(e,"g",function(){return d});var i=a("t3Un");function r(t){return Object(i.a)({url:"/api/search/user",method:"get",params:{name:t}})}function n(t){return Object(i.a)({url:"/api/search/group",method:"get",params:{name:t}})}function o(t){return Object(i.a)({url:"/api/search/country",method:"get",params:{name:t}})}function s(t){return Object(i.a)({url:"/api/search/tag",method:"get",params:t})}function l(t){return Object(i.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function u(t){return Object(i.a)({url:"/api/search/city",method:"get",params:{name:t}})}function c(t){return Object(i.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function p(t){return Object(i.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function d(t){return Object(i.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},jUE0:function(t,e,a){},"oh+g":function(t,e,a){var i=a("WEpk"),r=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}}}]);
\ No newline at end of file \ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-commons"],{"19de":function(e,t,i){},"4Gb4":function(e,t,i){"use strict";var n=i("GbIF");i.n(n).a},"5z5A":function(e,t,i){"use strict";var n=i("Pp9f");i.n(n).a},"79La":function(e,t,i){"use strict";var n=i("U6US");i.n(n).a},"9TPh":function(e,t,i){"use strict";var n=i("eeMe"),a=i.n(n);i("e8E5");a.a.autoDiscover=!1;var l={props:{id:{type:String,required:!0},url:{type:String,required:!0},clickable:{type:Boolean,default:!0},defaultMsg:{type:String,default:"上传图片"},acceptedFiles:{type:String,default:""},thumbnailHeight:{type:Number,default:100},thumbnailWidth:{type:Number,default:100},showRemoveLink:{type:Boolean,default:!0},maxFilesize:{type:Number,default:2},maxFiles:{type:Number,default:3},type:{type:Number,default:99},autoProcessQueue:{type:Boolean,default:!0},useCustomDropzoneOptions:{type:Boolean,default:!1},defaultImg:{default:"",type:[String,Array]},couldPaste:{type:Boolean,default:!1}},data:function(){return{dropzone:"",initOnce:!0}},watch:{defaultImg:function(e){0!==e.length?this.initOnce&&(this.initImages(e),this.initOnce=!1):this.initOnce=!1}},mounted:function(){var e=document.getElementById(this.id),t=this;this.dropzone=new a.a(e,{type:this.type,clickable:this.clickable,thumbnailWidth:this.thumbnailWidth,thumbnailHeight:this.thumbnailHeight,maxFiles:this.maxFiles,maxFilesize:this.maxFilesize,dictRemoveFile:"Remove",addRemoveLinks:this.showRemoveLink,acceptedFiles:this.acceptedFiles,autoProcessQueue:this.autoProcessQueue,dictDefaultMessage:'<i style="margin-top: 3em;display: inline-block" class="material-icons">'+this.defaultMsg+"</i><br>Drop files here to upload",dictMaxFilesExceeded:"只能一个图",previewTemplate:'<div class="dz-preview dz-file-preview"> <div class="dz-image" style="width:'+this.thumbnailWidth+"px;height:"+this.thumbnailHeight+'px" ><img style="width:'+this.thumbnailWidth+"px;height:"+this.thumbnailHeight+'px" data-dz-thumbnail /></div> <div class="dz-details"><div class="dz-size"><span data-dz-size></span></div> <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <i class="material-icons">done</i> </div> <div class="dz-error-mark"><i class="material-icons">error</i></div></div>',init:function(){var e=this,i=t.defaultImg;if(i)if(Array.isArray(i)){if(0===i.length)return;i.map(function(i,n){var a={name:"name"+n,size:12345,url:i};return e.options.addedfile.call(e,a),e.options.thumbnail.call(e,a,i),a.previewElement.classList.add("dz-success"),a.previewElement.classList.add("dz-complete"),t.initOnce=!1,!0})}else{var n={name:"name",size:12345,url:i};this.options.addedfile.call(this,n),this.options.thumbnail.call(this,n,i),n.previewElement.classList.add("dz-success"),n.previewElement.classList.add("dz-complete"),t.initOnce=!1}},accept:function(e,t){t()},sending:function(e,i,n){t.initOnce=!1}}),this.couldPaste&&document.addEventListener("paste",this.pasteImg),this.dropzone.on("success",function(e){t.$emit("dropzone-success",e,t.dropzone.element)}),this.dropzone.on("addedfile",function(e){t.$emit("dropzone-fileAdded",e)}),this.dropzone.on("removedfile",function(e){t.$emit("dropzone-removedFile",e)}),this.dropzone.on("error",function(e,i,n){t.$emit("dropzone-error",e,i,n)}),this.dropzone.on("successmultiple",function(e,i,n){t.$emit("dropzone-successmultiple",e,i,n)})},destroyed:function(){document.removeEventListener("paste",this.pasteImg),this.dropzone.destroy()},methods:{removeAllFiles:function(){this.dropzone.removeAllFiles(!0)},processQueue:function(){this.dropzone.processQueue()},pasteImg:function(e){var t=(e.clipboardData||e.originalEvent.clipboardData).items;"file"===t[0].kind&&this.dropzone.addFile(t[0].getAsFile())},initImages:function(e){var t=this;if(e)if(Array.isArray(e))e.map(function(e,i){var n={name:"name"+i,size:12345,url:e};return t.dropzone.options.addedfile.call(t.dropzone,n),t.dropzone.options.thumbnail.call(t.dropzone,n,e),n.previewElement.classList.add("dz-success"),n.previewElement.classList.add("dz-complete"),!0});else{var i={name:"name",size:12345,url:e};this.dropzone.options.addedfile.call(this.dropzone,i),this.dropzone.options.thumbnail.call(this.dropzone,i,e),i.previewElement.classList.add("dz-success"),i.previewElement.classList.add("dz-complete")}}}},s=(i("Uw9q"),i("KHd+")),o=Object(s.a)(l,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:this.id,staticClass:"dropzone",attrs:{action:this.url,id:this.id}},[t("input",{attrs:{type:"file",name:"file"}})])},[],!1,null,"0c499238",null);o.options.__file="index.vue";t.a=o.exports},AnnO:function(e,t,i){},EiMK:function(e,t,i){},GbIF:function(e,t,i){},Grqa:function(e,t,i){"use strict";var n={name:"MdInput",props:{icon:String,name:String,type:{type:String,default:"text"},value:[String,Number],placeholder:String,readonly:Boolean,disabled:Boolean,min:String,max:String,step:String,minlength:Number,maxlength:Number,required:{type:Boolean,default:!0},autoComplete:{type:String,default:"off"},validateEvent:{type:Boolean,default:!0}},data:function(){return{currentValue:this.value,focus:!1,fillPlaceHolder:null}},computed:{computedClasses:function(){return{"material--active":this.focus,"material--disabled":this.disabled,"material--raised":Boolean(this.focus||this.currentValue)}}},watch:{value:function(e){this.currentValue=e}},methods:{handleModelInput:function(e){var t=e.target.value;this.$emit("input",t),"ElFormItem"===this.$parent.$options.componentName&&this.validateEvent&&this.$parent.$emit("el.form.change",[t]),this.$emit("change",t)},handleMdFocus:function(e){this.focus=!0,this.$emit("focus",e),this.placeholder&&""!==this.placeholder&&(this.fillPlaceHolder=this.placeholder)},handleMdBlur:function(e){this.focus=!1,this.$emit("blur",e),this.fillPlaceHolder=null,"ElFormItem"===this.$parent.$options.componentName&&this.validateEvent&&this.$parent.$emit("el.form.blur",[this.currentValue])}}},a=(i("5z5A"),i("KHd+")),l=Object(a.a)(n,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"material-input__component",class:e.computedClasses},[i("div",{class:{iconClass:e.icon}},[e.icon?i("i",{staticClass:"el-input__icon material-input__icon",class:["el-icon-"+e.icon]}):e._e(),e._v(" "),"email"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autoComplete:e.autoComplete,required:e.required,type:"email"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),"url"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autoComplete:e.autoComplete,required:e.required,type:"url"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),"number"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,step:e.step,readonly:e.readonly,disabled:e.disabled,autoComplete:e.autoComplete,max:e.max,min:e.min,minlength:e.minlength,maxlength:e.maxlength,required:e.required,type:"number"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),"password"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autoComplete:e.autoComplete,max:e.max,min:e.min,required:e.required,type:"password"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),"tel"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autoComplete:e.autoComplete,required:e.required,type:"tel"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),"text"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autoComplete:e.autoComplete,minlength:e.minlength,maxlength:e.maxlength,required:e.required,type:"text"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),i("span",{staticClass:"material-input-bar"}),e._v(" "),i("label",{staticClass:"material-label"},[e._t("default")],2)])])},[],!1,null,"f03f6b9c",null);l.options.__file="index.vue";t.a=l.exports},Mz3J:function(e,t,i){"use strict";var n=i("Y5bG"),a={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:0},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&Object(n.a)(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(n.a)(0,800)}}},l=(i("4Gb4"),i("KHd+")),s=Object(l.a)(a,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[i("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},[],!1,null,"b7be0e7e",null);s.options.__file="index.vue";t.a=s.exports},Pp9f:function(e,t,i){},U6US:function(e,t,i){},Uw9q:function(e,t,i){"use strict";var n=i("AnnO");i.n(n).a},cuLA:function(e,t,i){"use strict";var n=i("19de");i.n(n).a},"fL+G":function(e,t,i){"use strict";var n=i("4d7F"),a=i.n(n),l=i("MSNs"),s={name:"SingleImageUpload3",props:{value:{type:String,default:""},uploadType:{type:Number,default:""}},data:function(){return{tempUrl:"",dataObj:{uploadType:this.uploadType}}},computed:{imageUrl:function(){return this.value}},methods:{rmImage:function(){this.emitInput("")},emitInput:function(e){this.$emit("input",e)},handleImageSuccess:function(e){this.emitInput(e.data.file_url)},handleBeforeUpload:function(){var e=this,t=this;return new a.a(function(i,n){Object(l.a)().then(function(n){var a=n.data.qiniu_key,l=n.data.qiniu_token;t._data.dataObj.token=l,t._data.dataObj.key=a,e.tempUrl=n.data.qiniu_url,i(!0)}).catch(function(e){console.log(e),n(!1)})})}}},o=(i("cuLA"),i("KHd+")),r=Object(o.a)(s,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"image-uploader",attrs:{data:e.dataObj,multiple:!1,"show-file-list":!1,"on-success":e.handleImageSuccess,drag:"",accept:"image/png,image/gif,image/jpg,image/jpeg,*/*","before-upload":e.handleBeforeUpload,action:"/api/file/upload"}},[i("i",{staticClass:"el-icon-upload"}),e._v(" "),i("div",{staticClass:"el-upload__text"},[e._v("将文件拖到此处,或"),i("em",[e._v("点击上传")])])]),e._v(" "),i("div",{staticClass:"image-preview"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.imageUrl.length>1,expression:"imageUrl.length>1"}],staticClass:"image-preview-wrapper"},[i("img",{attrs:{src:e.imageUrl,disabled:!0}}),e._v(" "),i("div",{staticClass:"image-preview-action"},[i("i",{staticClass:"el-icon-delete",on:{click:e.rmImage}})])])])],1)},[],!1,null,"6a571450",null);r.options.__file="singleImage3.vue";t.a=r.exports},glbJ:function(e,t,i){"use strict";var n=i("4d7F"),a=i.n(n),l=i("GQeE"),s=i.n(l),o={name:"EditorSlideUpload",props:{color:{type:String,default:"#1890ff"}},data:function(){return{dialogVisible:!1,listObj:{},fileList:[]}},methods:{checkAllSuccess:function(){var e=this;return s()(this.listObj).every(function(t){return e.listObj[t].hasSuccess})},handleSubmit:function(){var e=this,t=s()(this.listObj).map(function(t){return e.listObj[t]});this.checkAllSuccess()?(this.$emit("successCBK",t),this.listObj={},this.fileList=[],this.dialogVisible=!1):this.$message("请等待所有图片上传成功 或 出现了网络问题,请刷新页面重新上传!")},handleSuccess:function(e,t){for(var i=t.uid,n=s()(this.listObj),a=0,l=n.length;a<l;a++)if(this.listObj[n[a]].uid===i)return this.listObj[n[a]].url=e.files.file,void(this.listObj[n[a]].hasSuccess=!0)},handleRemove:function(e){for(var t=e.uid,i=s()(this.listObj),n=0,a=i.length;n<a;n++)if(this.listObj[i[n]].uid===t)return void delete this.listObj[i[n]]},beforeUpload:function(e){var t=this,i=window.URL||window.webkitURL,n=e.uid;return this.listObj[n]={},new a.a(function(a,l){var s=new Image;s.src=i.createObjectURL(e),s.onload=function(){t.listObj[n]={hasSuccess:!1,uid:e.uid,width:this.width,height:this.height}},a(!0)})}}},r=(i("wn0B"),i("KHd+")),u=Object(r.a)(o,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-container"},[i("el-button",{style:{background:e.color,borderColor:e.color},attrs:{icon:"el-icon-upload",size:"mini",type:"primary"},on:{click:function(t){e.dialogVisible=!0}}},[e._v("上传图片\n ")]),e._v(" "),i("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-upload",{staticClass:"editor-slide-upload",attrs:{multiple:!0,"file-list":e.fileList,"show-file-list":!0,"on-remove":e.handleRemove,"on-success":e.handleSuccess,"before-upload":e.beforeUpload,action:"https://httpbin.org/post","list-type":"picture-card"}},[i("el-button",{attrs:{size:"small",type:"primary"}},[e._v("点击上传")])],1),e._v(" "),i("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("确 定")])],1)],1)},[],!1,null,"39480e6e",null);u.options.__file="editorImage.vue";var d=["advlist anchor autolink autosave code codesample colorpicker colorpicker contextmenu directionality emoticons fullscreen hr image imagetools importcss insertdatetime link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount"],c=["searchreplace bold italic underline strikethrough alignleft aligncenter alignright outdent indent blockquote undo redo removeformat subscript superscript code codesample","hr bullist numlist link image charmap preview anchor pagebreak insertdatetime media table emoticons forecolor backcolor fullscreen"],p={name:"Tinymce",components:{editorImage:u.exports},props:{id:{type:String,default:function(){return"vue-tinymce-"+ +new Date+(1e3*Math.random()).toFixed(0)}},value:{type:String,default:""},toolbar:{type:Array,required:!1,default:function(){return[]}},menubar:{type:String,default:"file edit insert view format table"},height:{type:Number,required:!1,default:360}},data:function(){return{hasChange:!1,hasInit:!1,tinymceId:this.id,fullscreen:!1,languageTypeList:{en:"en",zh:"zh_CN"}}},computed:{language:function(){return this.languageTypeList[this.$store.getters.language]}},watch:{value:function(e){var t=this;!this.hasChange&&this.hasInit&&this.$nextTick(function(){return window.tinymce.get(t.tinymceId).setContent(e||"")})},language:function(){var e=this;this.destroyTinymce(),this.$nextTick(function(){return e.initTinymce()})}},mounted:function(){this.initTinymce()},activated:function(){this.initTinymce()},deactivated:function(){this.destroyTinymce()},destroyed:function(){this.destroyTinymce()},methods:{initTinymce:function(){var e=this,t=this;window.tinymce.init({language:this.language,selector:"#"+this.tinymceId,height:this.height,body_class:"panel-body ",object_resizing:!1,toolbar:this.toolbar.length>0?this.toolbar:c,menubar:this.menubar,plugins:d,end_container_on_empty_block:!0,powerpaste_word_import:"clean",code_dialog_height:450,code_dialog_width:1e3,advlist_bullet_styles:"square",advlist_number_styles:"default",imagetools_cors_hosts:["www.tinymce.com","codepen.io"],default_link_target:"_blank",link_title:!1,nonbreaking_force_tab:!0,init_instance_callback:function(i){t.value&&i.setContent(t.value),t.hasInit=!0,i.on("NodeChange Change KeyUp SetContent",function(){e.hasChange=!0,e.$emit("input",i.getContent())})},setup:function(e){e.on("FullscreenStateChanged",function(e){t.fullscreen=e.state})}})},destroyTinymce:function(){window.tinymce.get(this.tinymceId)&&window.tinymce.get(this.tinymceId).destroy()},setContent:function(e){window.tinymce.get(this.tinymceId).setContent(e)},getContent:function(){window.tinymce.get(this.tinymceId).getContent()},imageSuccessCBK:function(e){var t=this;e.forEach(function(e){window.tinymce.get(t.tinymceId).insertContent('<img class="wscnph" src="'+e.url+'" >')})}}},h=(i("79La"),Object(r.a)(p,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"tinymce-container editor-container",class:{fullscreen:this.fullscreen}},[t("textarea",{staticClass:"tinymce-textarea",attrs:{id:this.tinymceId}}),this._v(" "),t("div",{staticClass:"editor-custom-btn-container"},[t("editorImage",{staticClass:"editor-upload-btn",attrs:{color:"#1890ff"},on:{successCBK:this.imageSuccessCBK}})],1)])},[],!1,null,"261f5e1f",null));h.options.__file="index.vue";t.a=h.exports},uARZ:function(e,t,i){"use strict";var n={name:"Sticky",props:{stickyTop:{type:Number,default:0},zIndex:{type:Number,default:1},className:{type:String,default:""}},data:function(){return{active:!1,position:"",width:void 0,height:void 0,isSticky:!1}},mounted:function(){this.height=this.$el.getBoundingClientRect().height,window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleReize)},activated:function(){this.handleScroll()},destroyed:function(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleReize)},methods:{sticky:function(){this.active||(this.position="fixed",this.active=!0,this.width=this.width+"px",this.isSticky=!0)},reset:function(){this.active&&(this.position="",this.width="auto",this.active=!1,this.isSticky=!1)},handleScroll:function(){this.width=this.$el.getBoundingClientRect().width,this.$el.getBoundingClientRect().top<this.stickyTop?this.sticky():this.reset()},handleReize:function(){this.isSticky&&(this.width=this.$el.getBoundingClientRect().width+"px")}}},a=i("KHd+"),l=Object(a.a)(n,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{style:{height:e.height+"px",zIndex:e.zIndex}},[i("div",{class:e.className,style:{top:e.stickyTop+"px",zIndex:e.zIndex,position:e.position,width:e.width,height:e.height+"px"}},[e._t("default",[i("div")])],2)])},[],!1,null,null,null);l.options.__file="index.vue";t.a=l.exports},wn0B:function(e,t,i){"use strict";var n=i("EiMK");i.n(n).a}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-commons"],{"19de":function(e,t,i){},"5z5A":function(e,t,i){"use strict";var n=i("Pp9f");i.n(n).a},"79La":function(e,t,i){"use strict";var n=i("U6US");i.n(n).a},"9TPh":function(e,t,i){"use strict";var n=i("eeMe"),a=i.n(n);i("e8E5");a.a.autoDiscover=!1;var l={props:{id:{type:String,required:!0},url:{type:String,required:!0},clickable:{type:Boolean,default:!0},defaultMsg:{type:String,default:"上传图片"},acceptedFiles:{type:String,default:""},thumbnailHeight:{type:Number,default:100},thumbnailWidth:{type:Number,default:100},showRemoveLink:{type:Boolean,default:!0},maxFilesize:{type:Number,default:2},maxFiles:{type:Number,default:3},type:{type:Number,default:99},autoProcessQueue:{type:Boolean,default:!0},useCustomDropzoneOptions:{type:Boolean,default:!1},defaultImg:{default:"",type:[String,Array]},couldPaste:{type:Boolean,default:!1}},data:function(){return{dropzone:"",initOnce:!0}},watch:{defaultImg:function(e){0!==e.length?this.initOnce&&(this.initImages(e),this.initOnce=!1):this.initOnce=!1}},mounted:function(){var e=document.getElementById(this.id),t=this;this.dropzone=new a.a(e,{type:this.type,clickable:this.clickable,thumbnailWidth:this.thumbnailWidth,thumbnailHeight:this.thumbnailHeight,maxFiles:this.maxFiles,maxFilesize:this.maxFilesize,dictRemoveFile:"Remove",addRemoveLinks:this.showRemoveLink,acceptedFiles:this.acceptedFiles,autoProcessQueue:this.autoProcessQueue,dictDefaultMessage:'<i style="margin-top: 3em;display: inline-block" class="material-icons">'+this.defaultMsg+"</i><br>Drop files here to upload",dictMaxFilesExceeded:"只能一个图",previewTemplate:'<div class="dz-preview dz-file-preview"> <div class="dz-image" style="width:'+this.thumbnailWidth+"px;height:"+this.thumbnailHeight+'px" ><img style="width:'+this.thumbnailWidth+"px;height:"+this.thumbnailHeight+'px" data-dz-thumbnail /></div> <div class="dz-details"><div class="dz-size"><span data-dz-size></span></div> <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <i class="material-icons">done</i> </div> <div class="dz-error-mark"><i class="material-icons">error</i></div></div>',init:function(){var e=this,i=t.defaultImg;if(i)if(Array.isArray(i)){if(0===i.length)return;i.map(function(i,n){var a={name:"name"+n,size:12345,url:i};return e.options.addedfile.call(e,a),e.options.thumbnail.call(e,a,i),a.previewElement.classList.add("dz-success"),a.previewElement.classList.add("dz-complete"),t.initOnce=!1,!0})}else{var n={name:"name",size:12345,url:i};this.options.addedfile.call(this,n),this.options.thumbnail.call(this,n,i),n.previewElement.classList.add("dz-success"),n.previewElement.classList.add("dz-complete"),t.initOnce=!1}},accept:function(e,t){t()},sending:function(e,i,n){t.initOnce=!1}}),this.couldPaste&&document.addEventListener("paste",this.pasteImg),this.dropzone.on("success",function(e){t.$emit("dropzone-success",e,t.dropzone.element)}),this.dropzone.on("addedfile",function(e){t.$emit("dropzone-fileAdded",e)}),this.dropzone.on("removedfile",function(e){t.$emit("dropzone-removedFile",e)}),this.dropzone.on("error",function(e,i,n){t.$emit("dropzone-error",e,i,n)}),this.dropzone.on("successmultiple",function(e,i,n){t.$emit("dropzone-successmultiple",e,i,n)})},destroyed:function(){document.removeEventListener("paste",this.pasteImg),this.dropzone.destroy()},methods:{removeAllFiles:function(){this.dropzone.removeAllFiles(!0)},processQueue:function(){this.dropzone.processQueue()},pasteImg:function(e){var t=(e.clipboardData||e.originalEvent.clipboardData).items;"file"===t[0].kind&&this.dropzone.addFile(t[0].getAsFile())},initImages:function(e){var t=this;if(e)if(Array.isArray(e))e.map(function(e,i){var n={name:"name"+i,size:12345,url:e};return t.dropzone.options.addedfile.call(t.dropzone,n),t.dropzone.options.thumbnail.call(t.dropzone,n,e),n.previewElement.classList.add("dz-success"),n.previewElement.classList.add("dz-complete"),!0});else{var i={name:"name",size:12345,url:e};this.dropzone.options.addedfile.call(this.dropzone,i),this.dropzone.options.thumbnail.call(this.dropzone,i,e),i.previewElement.classList.add("dz-success"),i.previewElement.classList.add("dz-complete")}}}},s=(i("Uw9q"),i("KHd+")),o=Object(s.a)(l,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:this.id,staticClass:"dropzone",attrs:{action:this.url,id:this.id}},[t("input",{attrs:{type:"file",name:"file"}})])},[],!1,null,"0c499238",null);o.options.__file="index.vue";t.a=o.exports},AnnO:function(e,t,i){},ED2g:function(e,t,i){"use strict";var n=i("qkLl");i.n(n).a},EiMK:function(e,t,i){},Grqa:function(e,t,i){"use strict";var n={name:"MdInput",props:{icon:String,name:String,type:{type:String,default:"text"},value:[String,Number],placeholder:String,readonly:Boolean,disabled:Boolean,min:String,max:String,step:String,minlength:Number,maxlength:Number,required:{type:Boolean,default:!0},autoComplete:{type:String,default:"off"},validateEvent:{type:Boolean,default:!0}},data:function(){return{currentValue:this.value,focus:!1,fillPlaceHolder:null}},computed:{computedClasses:function(){return{"material--active":this.focus,"material--disabled":this.disabled,"material--raised":Boolean(this.focus||this.currentValue)}}},watch:{value:function(e){this.currentValue=e}},methods:{handleModelInput:function(e){var t=e.target.value;this.$emit("input",t),"ElFormItem"===this.$parent.$options.componentName&&this.validateEvent&&this.$parent.$emit("el.form.change",[t]),this.$emit("change",t)},handleMdFocus:function(e){this.focus=!0,this.$emit("focus",e),this.placeholder&&""!==this.placeholder&&(this.fillPlaceHolder=this.placeholder)},handleMdBlur:function(e){this.focus=!1,this.$emit("blur",e),this.fillPlaceHolder=null,"ElFormItem"===this.$parent.$options.componentName&&this.validateEvent&&this.$parent.$emit("el.form.blur",[this.currentValue])}}},a=(i("5z5A"),i("KHd+")),l=Object(a.a)(n,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"material-input__component",class:e.computedClasses},[i("div",{class:{iconClass:e.icon}},[e.icon?i("i",{staticClass:"el-input__icon material-input__icon",class:["el-icon-"+e.icon]}):e._e(),e._v(" "),"email"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autoComplete:e.autoComplete,required:e.required,type:"email"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),"url"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autoComplete:e.autoComplete,required:e.required,type:"url"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),"number"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,step:e.step,readonly:e.readonly,disabled:e.disabled,autoComplete:e.autoComplete,max:e.max,min:e.min,minlength:e.minlength,maxlength:e.maxlength,required:e.required,type:"number"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),"password"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autoComplete:e.autoComplete,max:e.max,min:e.min,required:e.required,type:"password"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),"tel"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autoComplete:e.autoComplete,required:e.required,type:"tel"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),"text"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autoComplete:e.autoComplete,minlength:e.minlength,maxlength:e.maxlength,required:e.required,type:"text"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),e._v(" "),i("span",{staticClass:"material-input-bar"}),e._v(" "),i("label",{staticClass:"material-label"},[e._t("default")],2)])])},[],!1,null,"f03f6b9c",null);l.options.__file="index.vue";t.a=l.exports},Mz3J:function(e,t,i){"use strict";var n=i("Y5bG"),a={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:0},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&Object(n.a)(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(n.a)(0,800)}}},l=(i("ED2g"),i("KHd+")),s=Object(l.a)(a,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[i("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,total:e.total,pageSizes:e.pageSizes},on:{"update:currentPage":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},[],!1,null,"83b2352c",null);s.options.__file="index.vue";t.a=s.exports},Pp9f:function(e,t,i){},U6US:function(e,t,i){},Uw9q:function(e,t,i){"use strict";var n=i("AnnO");i.n(n).a},cuLA:function(e,t,i){"use strict";var n=i("19de");i.n(n).a},"fL+G":function(e,t,i){"use strict";var n=i("4d7F"),a=i.n(n),l=i("MSNs"),s={name:"SingleImageUpload3",props:{value:{type:String,default:""},uploadType:{type:Number,default:""}},data:function(){return{tempUrl:"",dataObj:{uploadType:this.uploadType}}},computed:{imageUrl:function(){return this.value}},methods:{rmImage:function(){this.emitInput("")},emitInput:function(e){this.$emit("input",e)},handleImageSuccess:function(e){this.emitInput(e.data.file_url)},handleBeforeUpload:function(){var e=this,t=this;return new a.a(function(i,n){Object(l.a)().then(function(n){var a=n.data.qiniu_key,l=n.data.qiniu_token;t._data.dataObj.token=l,t._data.dataObj.key=a,e.tempUrl=n.data.qiniu_url,i(!0)}).catch(function(e){console.log(e),n(!1)})})}}},o=(i("cuLA"),i("KHd+")),r=Object(o.a)(s,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"image-uploader",attrs:{data:e.dataObj,multiple:!1,"show-file-list":!1,"on-success":e.handleImageSuccess,drag:"",accept:"image/png,image/gif,image/jpg,image/jpeg,*/*","before-upload":e.handleBeforeUpload,action:"/api/file/upload"}},[i("i",{staticClass:"el-icon-upload"}),e._v(" "),i("div",{staticClass:"el-upload__text"},[e._v("将文件拖到此处,或"),i("em",[e._v("点击上传")])])]),e._v(" "),i("div",{staticClass:"image-preview"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.imageUrl.length>1,expression:"imageUrl.length>1"}],staticClass:"image-preview-wrapper"},[i("img",{attrs:{src:e.imageUrl,disabled:!0}}),e._v(" "),i("div",{staticClass:"image-preview-action"},[i("i",{staticClass:"el-icon-delete",on:{click:e.rmImage}})])])])],1)},[],!1,null,"6a571450",null);r.options.__file="singleImage3.vue";t.a=r.exports},glbJ:function(e,t,i){"use strict";var n=i("4d7F"),a=i.n(n),l=i("GQeE"),s=i.n(l),o={name:"EditorSlideUpload",props:{color:{type:String,default:"#1890ff"}},data:function(){return{dialogVisible:!1,listObj:{},fileList:[]}},methods:{checkAllSuccess:function(){var e=this;return s()(this.listObj).every(function(t){return e.listObj[t].hasSuccess})},handleSubmit:function(){var e=this,t=s()(this.listObj).map(function(t){return e.listObj[t]});this.checkAllSuccess()?(this.$emit("successCBK",t),this.listObj={},this.fileList=[],this.dialogVisible=!1):this.$message("请等待所有图片上传成功 或 出现了网络问题,请刷新页面重新上传!")},handleSuccess:function(e,t){for(var i=t.uid,n=s()(this.listObj),a=0,l=n.length;a<l;a++)if(this.listObj[n[a]].uid===i)return this.listObj[n[a]].url=e.files.file,void(this.listObj[n[a]].hasSuccess=!0)},handleRemove:function(e){for(var t=e.uid,i=s()(this.listObj),n=0,a=i.length;n<a;n++)if(this.listObj[i[n]].uid===t)return void delete this.listObj[i[n]]},beforeUpload:function(e){var t=this,i=window.URL||window.webkitURL,n=e.uid;return this.listObj[n]={},new a.a(function(a,l){var s=new Image;s.src=i.createObjectURL(e),s.onload=function(){t.listObj[n]={hasSuccess:!1,uid:e.uid,width:this.width,height:this.height}},a(!0)})}}},r=(i("wn0B"),i("KHd+")),u=Object(r.a)(o,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-container"},[i("el-button",{style:{background:e.color,borderColor:e.color},attrs:{icon:"el-icon-upload",size:"mini",type:"primary"},on:{click:function(t){e.dialogVisible=!0}}},[e._v("上传图片\n ")]),e._v(" "),i("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-upload",{staticClass:"editor-slide-upload",attrs:{multiple:!0,"file-list":e.fileList,"show-file-list":!0,"on-remove":e.handleRemove,"on-success":e.handleSuccess,"before-upload":e.beforeUpload,action:"https://httpbin.org/post","list-type":"picture-card"}},[i("el-button",{attrs:{size:"small",type:"primary"}},[e._v("点击上传")])],1),e._v(" "),i("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("确 定")])],1)],1)},[],!1,null,"39480e6e",null);u.options.__file="editorImage.vue";var d=["advlist anchor autolink autosave code codesample colorpicker colorpicker contextmenu directionality emoticons fullscreen hr image imagetools importcss insertdatetime link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount"],c=["searchreplace bold italic underline strikethrough alignleft aligncenter alignright outdent indent blockquote undo redo removeformat subscript superscript code codesample","hr bullist numlist link image charmap preview anchor pagebreak insertdatetime media table emoticons forecolor backcolor fullscreen"],p={name:"Tinymce",components:{editorImage:u.exports},props:{id:{type:String,default:function(){return"vue-tinymce-"+ +new Date+(1e3*Math.random()).toFixed(0)}},value:{type:String,default:""},toolbar:{type:Array,required:!1,default:function(){return[]}},menubar:{type:String,default:"file edit insert view format table"},height:{type:Number,required:!1,default:360}},data:function(){return{hasChange:!1,hasInit:!1,tinymceId:this.id,fullscreen:!1,languageTypeList:{en:"en",zh:"zh_CN"}}},computed:{language:function(){return this.languageTypeList[this.$store.getters.language]}},watch:{value:function(e){var t=this;!this.hasChange&&this.hasInit&&this.$nextTick(function(){return window.tinymce.get(t.tinymceId).setContent(e||"")})},language:function(){var e=this;this.destroyTinymce(),this.$nextTick(function(){return e.initTinymce()})}},mounted:function(){this.initTinymce()},activated:function(){this.initTinymce()},deactivated:function(){this.destroyTinymce()},destroyed:function(){this.destroyTinymce()},methods:{initTinymce:function(){var e=this,t=this;window.tinymce.init({language:this.language,selector:"#"+this.tinymceId,height:this.height,body_class:"panel-body ",object_resizing:!1,toolbar:this.toolbar.length>0?this.toolbar:c,menubar:this.menubar,plugins:d,end_container_on_empty_block:!0,powerpaste_word_import:"clean",code_dialog_height:450,code_dialog_width:1e3,advlist_bullet_styles:"square",advlist_number_styles:"default",imagetools_cors_hosts:["www.tinymce.com","codepen.io"],default_link_target:"_blank",link_title:!1,nonbreaking_force_tab:!0,init_instance_callback:function(i){t.value&&i.setContent(t.value),t.hasInit=!0,i.on("NodeChange Change KeyUp SetContent",function(){e.hasChange=!0,e.$emit("input",i.getContent())})},setup:function(e){e.on("FullscreenStateChanged",function(e){t.fullscreen=e.state})}})},destroyTinymce:function(){window.tinymce.get(this.tinymceId)&&window.tinymce.get(this.tinymceId).destroy()},setContent:function(e){window.tinymce.get(this.tinymceId).setContent(e)},getContent:function(){window.tinymce.get(this.tinymceId).getContent()},imageSuccessCBK:function(e){var t=this;e.forEach(function(e){window.tinymce.get(t.tinymceId).insertContent('<img class="wscnph" src="'+e.url+'" >')})}}},h=(i("79La"),Object(r.a)(p,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"tinymce-container editor-container",class:{fullscreen:this.fullscreen}},[t("textarea",{staticClass:"tinymce-textarea",attrs:{id:this.tinymceId}}),this._v(" "),t("div",{staticClass:"editor-custom-btn-container"},[t("editorImage",{staticClass:"editor-upload-btn",attrs:{color:"#1890ff"},on:{successCBK:this.imageSuccessCBK}})],1)])},[],!1,null,"261f5e1f",null));h.options.__file="index.vue";t.a=h.exports},qkLl:function(e,t,i){},uARZ:function(e,t,i){"use strict";var n={name:"Sticky",props:{stickyTop:{type:Number,default:0},zIndex:{type:Number,default:1},className:{type:String,default:""}},data:function(){return{active:!1,position:"",width:void 0,height:void 0,isSticky:!1}},mounted:function(){this.height=this.$el.getBoundingClientRect().height,window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleReize)},activated:function(){this.handleScroll()},destroyed:function(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleReize)},methods:{sticky:function(){this.active||(this.position="fixed",this.active=!0,this.width=this.width+"px",this.isSticky=!0)},reset:function(){this.active&&(this.position="",this.width="auto",this.active=!1,this.isSticky=!1)},handleScroll:function(){this.width=this.$el.getBoundingClientRect().width,this.$el.getBoundingClientRect().top<this.stickyTop?this.sticky():this.reset()},handleReize:function(){this.isSticky&&(this.width=this.$el.getBoundingClientRect().width+"px")}}},a=i("KHd+"),l=Object(a.a)(n,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{style:{height:e.height+"px",zIndex:e.zIndex}},[i("div",{class:e.className,style:{top:e.stickyTop+"px",zIndex:e.zIndex,position:e.position,width:e.width,height:e.height+"px"}},[e._t("default",[i("div")])],2)])},[],!1,null,null,null);l.options.__file="index.vue";t.a=l.exports},wn0B:function(e,t,i){"use strict";var n=i("EiMK");i.n(n).a}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-d3a7"],{"3bDi":function(t,e,i){},Cuus:function(t,e,i){"use strict";var a=i("3bDi");i.n(a).a},ESsw:function(t,e,i){"use strict";i.d(e,"h",function(){return n}),i.d(e,"c",function(){return o}),i.d(e,"b",function(){return s}),i.d(e,"j",function(){return r}),i.d(e,"k",function(){return l}),i.d(e,"i",function(){return c}),i.d(e,"a",function(){return p}),i.d(e,"e",function(){return u}),i.d(e,"d",function(){return d}),i.d(e,"f",function(){return m}),i.d(e,"g",function(){return f});var a=i("t3Un");function n(t){return Object(a.a)({url:"/api/pick/list",method:"get",params:t})}function o(t){return console.log(t),Object(a.a)({url:"/api/pick/list/update",method:"post",data:t})}function s(t){return Object(a.a)({url:"/api/pick/create",method:"post",data:t})}function r(t){return Object(a.a)({url:"/api/pick/detail",method:"get",params:{id:t}})}function l(t){return Object(a.a)({url:"/api/pick/topic/list",method:"get",params:t})}function c(t){return Object(a.a)({url:"/api/pick/celebrity/list",method:"get",params:t})}function p(t){return Object(a.a)({url:"/api/pick/add_fake_pick_nums",method:"post",data:t})}function u(t){return Object(a.a)({url:"/api/pick/topic",method:"post",data:t})}function d(t){return Object(a.a)({url:"/api/pick/celebrity",method:"post",data:t})}function m(t){return Object(a.a)({url:"/api/pick/del_celebrity",method:"post",data:t})}function f(t){return Object(a.a)({url:"/api/pick/del_topic",method:"post",data:t})}},Y5bG:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),Math.easeInOutQuad=function(t,e,i,a){return(t/=a/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e};var a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function n(t,e,i){var n=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,o=t-n,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,n,o,e)),s<e?a(t):i&&"function"==typeof i&&i()}()}},ZySA:function(t,e,i){"use strict";var a=i("P2sY"),n=i.n(a),o=(i("jUE0"),{bind:function(t,e){t.addEventListener("click",function(i){var a=n()({},e.value),o=n()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},a),s=o.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var r=s.getBoundingClientRect(),l=s.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":((l=document.createElement("span")).className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",s.appendChild(l)),o.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(i.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(i.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=o.color,l.className="waves-ripple z-active",!1}},!1)}}),s=function(t){t.directive("waves",o)};window.Vue&&(window.waves=o,Vue.use(s)),o.install=s;e.a=o},"gDS+":function(t,e,i){t.exports={default:i("oh+g"),__esModule:!0}},gg54:function(t,e,i){"use strict";i.d(e,"i",function(){return n}),i.d(e,"d",function(){return o}),i.d(e,"c",function(){return s}),i.d(e,"f",function(){return r}),i.d(e,"e",function(){return l}),i.d(e,"b",function(){return c}),i.d(e,"a",function(){return p}),i.d(e,"h",function(){return u}),i.d(e,"g",function(){return d});var a=i("t3Un");function n(t){return Object(a.a)({url:"/api/search/user",method:"get",params:{name:t}})}function o(t){return Object(a.a)({url:"/api/search/group",method:"get",params:{name:t}})}function s(t){return Object(a.a)({url:"/api/search/country",method:"get",params:{name:t}})}function r(t){return Object(a.a)({url:"/api/search/tag",method:"get",params:t})}function l(t){return Object(a.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function c(t){return Object(a.a)({url:"/api/search/city",method:"get",params:{name:t}})}function p(t){return Object(a.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function u(t){return Object(a.a)({url:"/api/search/topic",method:"get",params:{name:t}})}function d(t){return Object(a.a)({url:"api/search/tagtype",method:"get",params:{name:t}})}},jUE0:function(t,e,i){},"oh+g":function(t,e,i){var a=i("WEpk"),n=a.JSON||(a.JSON={stringify:JSON.stringify});t.exports=function(t){return n.stringify.apply(n,arguments)}},tThj:function(t,e,i){"use strict";var a=i("m1cH"),n=i.n(a),o=i("gDS+"),s=i.n(o),r=i("P2sY"),l=i.n(r),c=i("Grqa"),p=i("uARZ"),u=i("Mz3J"),d=i("ZySA"),m=i("ESsw"),f=i("gg54"),_=(i("7Qib"),{status:"draft",name:"",desc:"",gender:"",city:[],country:[],pick_group:[],pick_type:"",position:"",is_online:0}),h={name:"PickDetail",components:{MDinput:c.a,Sticky:p.a,Pagination:u.a},directives:{waves:d.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,i,a){""===i?(t.$message({message:e.field+"为必传项",type:"error"}),a(new Error(e.field+"为必传项"))):a()};return{postForm:l()({},_),loading:!1,city:[],country:[],pick_group:[],pick_type_origin:"",celebrity_id:"",topic_id:"",del_list:[],countryListOptions:[],groupListOptions:[],celebrityListOptions:[],topicListOptions:[],GenderTypeOptions:[{key:2,display_name:"全部"},{key:0,display_name:"男"},{key:1,display_name:"女"}],PickTypeOptions:[{key:1,display_name:"明星打榜"},{key:0,display_name:"PICK帖子"}],rules:{name:[{validator:e,trigger:"blur"}],desc:[{validator:e,trigger:"blur"}],gender:[{validator:e,trigger:"blur"}],city:[{validator:e,trigger:"blur"}],pick_type:[{validator:e,trigger:"blur"}],position:[{validator:e,trigger:"blur"}]},tempRoute:{},listQuery:{id:"",pick_type:"",page:1,limit:10,filter:{}},list:null,total:0,listLoading:!0,origin_len:0,topic_ids:[],celebrity_ids:[],new_ids:[],del_ids:[]}},computed:{contentShortLength:function(){return this.postForm.desc.length},data:function(){var t=this;return this.list.filter(function(e){for(var i=!1,a=0;a<t.del_list.length;a++)if(e.topic_id==t.del_list[a].topic_id){i=!0;break}if(!i)return e})}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t),this.getList()}else this.postForm=l()({},_);this.tempRoute=l()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(m.j)(t).then(function(t){for(var i=t.data.data.data,a=0;a<i.pick_group.length;a++)e.pick_group.push(i.pick_group[a].id+":"+i.pick_group[a].name);for(var n=0;n<i.country.length;n++)e.country.push(i.country[n].id+":"+i.country[n].name);e.postForm=i,e.listQuery.pick_type=i.pick_type_origin}).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,t.postForm.city=s()(t.city),t.postForm.country=s()(t.country),t.postForm.pick_group=s()(t.pick_group),Object(m.b)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/pick/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},getRemoteCountryList:function(t){var e=this;Object(f.c)(t).then(function(t){t.data.data.data&&(e.countryListOptions=t.data.data.data)})},getRemoteGroupList:function(t){var e=this;Object(f.d)(t).then(function(t){t.data.data.data&&(e.groupListOptions=t.data.data.data)})},getRemoteTopicList:function(t){var e=this;Object(f.h)(t).then(function(t){t.data.data.data&&(e.topicListOptions=t.data.data.data)})},getRemoteCelebrityList:function(t){var e=this;Object(f.a)(t).then(function(t){t.data.data.data&&(e.celebrityListOptions=t.data.data.data)})},handleSelectionChange:function(t){this.multipleSelection=t},getList:function(){var t=this;this.listLoading=!0,this.listQuery.id=this.$route.params&&this.$route.params.id,"1"===this.$route.query.pick_type?Object(m.i)(this.listQuery).then(function(e){var i=e.data.data.data;t.list=i.map(function(e){return t.$set(e,"edit",!1),e.original_fake_pick_nums=e.fake_pick_nums,e}),t.total=e.data.data.total,t.origin_len=e.data.data.total,t.listLoading=!1}):Object(m.k)(this.listQuery).then(function(e){var i=e.data.data.data;t.list=i.map(function(e){return t.$set(e,"edit",!1),e.original_fake_pick_nums=e.fake_pick_nums,e}),t.total=e.data.data.total,t.origin_len=e.data.data.total,t.listLoading=!1})},cancelEdit:function(t){t.fake_pick_nums=t.original_fake_pick_nums,t.edit=!1,this.$message({message:"取消成功",type:"warning"})},confirmEdit:function(t){var e=this.$route.params&&this.$route.params.id;t.edit=!1,t.original_fake_pick_nums=t.fake_pick_nums,t.pick_id=e,this.$message({message:"添加成功",type:"success"}),Object(m.a)(t).then(function(t){}).catch(function(t){})},append:function(){var t=this;if(0==this.postForm.pick_type_origin){if(""==this.topic_id)return this.$message.error("请输入搜索内容~~"),this.topic_id="",!1;var e={topic_id:this.topic_id,pick_id:this.postForm.id};Object(m.e)(e).then(function(e){t.$message.success(e.data.data.message)}),this.topic_id="",setTimeout(function(){t.$router.go(0)},1300)}else if(1==this.postForm.pick_type_origin){if(""==this.celebrity_id)return this.$message.error("请输入搜索内容~~"),this.celebrity_id="",!1;var i={celebrity_id:this.celebrity_id,pick_id:this.postForm.id};Object(m.d)(i).then(function(e){t.$message.success(e.data.data.message)}),this.celebrity_id="",setTimeout(function(){t.$router.go(0)},1300)}},del:function(){var t,e=this;this.total=this.origin_len-this.del_list.length;var i=[];if((t=this.del_list).push.apply(t,n()(this.multipleSelection)),0==this.postForm.pick_type_origin){for(var a=0;a<this.multipleSelection.length;a++)i.push(this.multipleSelection[a].topic_id);var o={del_ids:s()(i),pick_id:this.postForm.id};Object(m.g)(o).then(function(t){e.$message.success("操作成功"),setTimeout(function(){e.$router.go(0)},1300)})}else{for(var r=0;r<this.multipleSelection.length;r++)i.push(this.multipleSelection[r].celebrity_id);var l={del_ids:s()(i),pick_id:this.postForm.id};Object(m.f)(l).then(function(t){e.$message.success("操作成功"),setTimeout(function(){e.$router.go(0)},1300)})}}}},g=(i("Cuus"),i("KHd+")),y=Object(g.a)(h,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"createPost-container"},[i("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[i("sticky",{attrs:{"class-name":"sub-navbar"}},[i("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(" "),i("div",{staticClass:"createPost-main-container"},[i("el-row",{attrs:{gutter:20}},[i("el-card",{staticClass:"box-card"},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[t._v("pick相关")])]),t._v(" "),i("el-row",[i("el-col",{attrs:{span:24}},[i("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"name"}},[i("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 pick名称\n ")])],1),t._v(" "),i("div",{staticClass:"postInfo-container"},[i("el-row",[i("el-col",{attrs:{span:8}},[i("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"45px",label:"性别:",prop:"gender"}},[i("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"120px"},attrs:{placeholder:"性别:",clearable:""},model:{value:t.postForm.gender,callback:function(e){t.$set(t.postForm,"gender",e)},expression:"postForm.gender"}},t._l(t.GenderTypeOptions,function(t){return i("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1)],1),t._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"60px",label:"属性:",prop:"pick_type"}},[t.isEdit?i("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"120px"},attrs:{placeholder:"属性:",clearable:"",disabled:""},model:{value:t.postForm.pick_type,callback:function(e){t.$set(t.postForm,"pick_type",e)},expression:"postForm.pick_type"}},t._l(t.PickTypeOptions,function(t){return i("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})})):i("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"120px"},attrs:{placeholder:"属性:",clearable:""},model:{value:t.postForm.pick_type,callback:function(e){t.$set(t.postForm,"pick_type",e)},expression:"postForm.pick_type"}},t._l(t.PickTypeOptions,function(t){return i("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1)],1),t._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"45px",label:"位置:",prop:"position"}},[i("el-input",{staticClass:"article-textarea",staticStyle:{width:"120px"},attrs:{rows:1,type:"number",placeholder:"请输入内容"},model:{value:t.postForm.position,callback:function(e){t.$set(t.postForm,"position",e)},expression:"postForm.position"}})],1)],1)],1)],1)],1)],1),t._v(" "),i("el-row",[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"postInfo-container"},[i("el-row",[i("el-col",{attrs:{span:8}},[t.isEdit?i("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"45px",label:"pickid:",prop:"id"}},[i("el-input",{staticClass:"article-textarea",staticStyle:{width:"120px"},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(" "),i("el-col",{attrs:{span:8}},[t.isEdit?i("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"pick用户:",prop:"user_nums"}},[i("el-input",{staticClass:"article-textarea",staticStyle:{width:"120px"},attrs:{rows:1,type:"number",disabled:""},model:{value:t.postForm.user_nums,callback:function(e){t.$set(t.postForm,"user_nums",e)},expression:"postForm.user_nums"}})],1):t._e()],1),t._v(" "),i("el-col",{attrs:{span:8}},[t.isEdit?i("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"85px",label:"创建时间:",prop:"create_time"}},[i("el-input",{staticClass:"article-textarea",staticStyle:{width:"170px"},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(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"45px",label:"国家:",prop:"country"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{"remote-method":t.getRemoteCountryList,filterable:"",remote:"",multiple:"","value-key":"id",placeholder:"搜索国家"},model:{value:t.country,callback:function(e){t.country=e},expression:"country"}},t._l(t.countryListOptions,function(t,e){return i("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1)],1),t._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"45px",label:"小组:",prop:"pick_group"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{"remote-method":t.getRemoteGroupList,multiple:"",filterable:"",remote:"","reserve-keyword":"",clearable:"",placeholder:"搜索小组",loading:t.loading,"value-key":"id"},model:{value:t.pick_group,callback:function(e){t.pick_group=e},expression:"pick_group"}},t._l(t.groupListOptions,function(t,e){return i("el-option",{key:t+e,attrs:{label:t,value:t}})}))],1)],1)],1),t._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"45px",label:"简介:",prop:"desc"}},[i("el-input",{staticClass:"article-textarea",attrs:{rows:1,type:"textarea",autosize:"",placeholder:"请输入内容"},model:{value:t.postForm.desc,callback:function(e){t.$set(t.postForm,"desc",e)},expression:"postForm.desc"}}),t._v(" "),i("span",{directives:[{name:"show",rawName:"v-show",value:t.contentShortLength,expression:"contentShortLength"}],staticClass:"word-counter"},[t._v(t._s(t.contentShortLength)+"字")])],1),t._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"是否在线:"}},[i("el-radio-group",{model:{value:t.postForm.is_online,callback:function(e){t.$set(t.postForm,"is_online",e)},expression:"postForm.is_online"}},[i("el-radio",{attrs:{label:1}},[t._v("是")]),t._v(" "),i("el-radio",{attrs:{label:0}},[t._v("否")])],1)],1)],1)],1),t._v(" "),1==this.postForm.pick_type_origin&&this.isEdit?i("el-row",{staticStyle:{"margin-top":"50px"},attrs:{gutter:20}},[i("el-card",{staticClass:"box-card"},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[t._v("pick明星相关")])]),t._v(" "),i("div",{staticStyle:{"margin-bottom":"50px"}},[i("div",{staticClass:"filter-container"}),t._v(" "),i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.data,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:"/star/edit/"+e.row.celebrity_id}},[i("span",[t._v(t._s(e.row.celebrity_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.celebrity_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.pick_nums))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center","min-width":"100",label:"添加pick值"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.edit?[i("el-input",{staticClass:"edit-input",attrs:{type:"number",size:"small"},model:{value:e.row.fake_pick_nums,callback:function(i){t.$set(e.row,"fake_pick_nums",i)},expression:"scope.row.fake_pick_nums"}}),t._v(" "),i("el-button",{staticClass:"cancel-btn",attrs:{size:"small",icon:"el-icon-refresh",type:"warning"},on:{click:function(i){t.cancelEdit(e.row)}}},[t._v("取消\n ")])]:i("span",[t._v(t._s(e.row.fake_pick_nums))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"操作",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.edit?i("el-button",{attrs:{type:"success",size:"small",icon:"el-icon-circle-check-outline"},on:{click:function(i){t.confirmEdit(e.row)}}},[t._v("确认\n ")]):i("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-edit"},on:{click:function(t){e.row.edit=!e.row.edit}}},[t._v("添加\n ")])]}}])})],1),t._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticStyle:{"margin-left":"150px"},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):t._e(),t._v(" "),0==this.postForm.pick_type_origin&&this.isEdit?i("el-row",{staticStyle:{"margin-top":"50px"},attrs:{gutter:20}},[i("el-card",{staticClass:"box-card"},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[t._v("pick帖子相关")])]),t._v(" "),i("div",{staticStyle:{"margin-bottom":"50px"}},[i("div",{staticClass:"filter-container"}),t._v(" "),i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.data,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:"/topic/edit/"+e.row.topic_id}},[i("span",[t._v(t._s(e.row.topic_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.topic_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.pick_nums))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center","min-width":"100",label:"添加pick值"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.edit?[i("el-input",{staticClass:"edit-input",attrs:{type:"number",size:"small"},model:{value:e.row.fake_pick_nums,callback:function(i){t.$set(e.row,"fake_pick_nums",i)},expression:"scope.row.fake_pick_nums"}}),t._v(" "),i("el-button",{staticClass:"cancel-btn",attrs:{size:"small",icon:"el-icon-refresh",type:"warning"},on:{click:function(i){t.cancelEdit(e.row)}}},[t._v("取消\n ")])]:i("span",[t._v(t._s(e.row.fake_pick_nums))])]}}])}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"操作",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.edit?i("el-button",{attrs:{type:"success",size:"small",icon:"el-icon-circle-check-outline"},on:{click:function(i){t.confirmEdit(e.row)}}},[t._v("确认\n ")]):i("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-edit"},on:{click:function(t){e.row.edit=!e.row.edit}}},[t._v("添加\n ")])]}}])})],1),t._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticStyle:{"margin-left":"150px"},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):t._e()],1)],1)],1)},[],!1,null,"94c41de8",null);y.options.__file="PickDetail.vue";e.a=y.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-e917"],{"6ClW":function(e,t,l){"use strict";l.r(t);var i=l("D6yg"),n=l("Mz3J"),a=l("ZySA"),s={name:"TopicList",components:{Pagination:n.a},filters:{isOnlineFilter:function(e){return{1:"success",0:"info"}[e]},genderFilter:function(e){return{"男":"success","女":"info","全部":"danger"}[e]}},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:"",complaints__isnull:"",user__is_puppet:"",content_level:""}},BooleanTypeOptions:[{key:1,display_name:"是"},{key:0,display_name:"否"}],ReBooleanTypeOptions:[{key:"0",display_name:"是"},{key:"1",display_name:"否"}],SearchTypeOptions:[{key:"id",display_name:"帖子ID"},{key:"content",display_name:"帖子内容"},{key:"group__name",display_name:"小组"}],ContentLevelTypeOptions:[{key:0,display_name:"未审核"},{key:1,display_name:"星级一"},{key:2,display_name:"星级二"},{key:3,display_name:"星级三"},{key:4,display_name:"星级四"},{key:5,display_name:"星级五"}]}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,this.listQuery.user_id=this.$route.query.user_id||"",this.listQuery.group_id=this.$route.query.group_id||"",Object(i.e)(this.listQuery).then(function(t){console.log(t.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()},handleOfflineOrOnline:function(e){var t=this,l=this.multipleSelection.length,n="";this.del_list=this.del_list.concat(this.multipleSelection);for(var a=0;a<l;a++)this.multipleSelection[a].is_online="offline"===e?0:1,n+=this.multipleSelection[a].id+" ";Object(i.b)({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()},handleCreate:function(){this.$router.push("/topic/create")}}},o=(l("srV9"),l("KHd+")),r=Object(o.a)(s,function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"app-container"},[l("div",{staticClass:"filter-container"},[l("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(" "),l("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 l("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),l("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 l("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),l("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"举报",clearable:""},model:{value:e.listQuery.filter.complaints__isnull,callback:function(t){e.$set(e.listQuery.filter,"complaints__isnull",t)},expression:"listQuery.filter.complaints__isnull"}},e._l(e.ReBooleanTypeOptions,function(e){return l("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),l("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"马甲",clearable:""},model:{value:e.listQuery.filter.is_puppet,callback:function(t){e.$set(e.listQuery.filter,"is_puppet",t)},expression:"listQuery.filter.is_puppet"}},e._l(e.BooleanTypeOptions,function(e){return l("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),l("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"帖子星级",clearable:""},model:{value:e.listQuery.filter.content_level,callback:function(t){e.$set(e.listQuery.filter,"content_level",t)},expression:"listQuery.filter.content_level"}},e._l(e.ContentLevelTypeOptions,function(e){return l("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),l("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(" "),l("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v("创建")]),e._v(" "),l("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(" "),l("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(" "),l("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}},[l("el-table-column",{attrs:{type:"selection",align:"center"}}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"帖子ID "},scopedSlots:e._u([{key:"default",fn:function(t){return[l("router-link",{staticClass:"link-type",attrs:{to:"/topic/edit/"+t.row.id}},[l("span",[e._v(e._s(t.row.id))])])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.user.name))])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"帖子详情"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.content))])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"最新回复"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.newly_reply))])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"小组"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.group.name))])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"更新时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.update_time))])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"举报时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.reported_time?t.row.reported_time:"无"))])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"帖子星级"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(t.row.content_level))])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"是否在线"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-tag",{attrs:{type:e._f("isOnlineFilter")(t.row.is_online)}},[e._v(e._s(1===t.row.is_online?"是":"否"))])]}}])})],1),e._v(" "),l("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,"2a07d99e",null);r.options.__file="list.vue";t.default=r.exports},D6yg:function(e,t,l){"use strict";l.d(t,"e",function(){return n}),l.d(t,"b",function(){return a}),l.d(t,"c",function(){return s}),l.d(t,"g",function(){return o}),l.d(t,"d",function(){return r}),l.d(t,"f",function(){return c}),l.d(t,"a",function(){return u});var i=l("t3Un");function n(e){return Object(i.a)({url:"/api/topic/list",method:"get",params:e})}function a(e){return Object(i.a)({url:"/api/topic/batch_update",method:"post",data:e})}function s(e){return Object(i.a)({url:"/api/topic/reply/create",method:"post",data:e})}function o(e){return Object(i.a)({url:"/api/topic/detail",method:"get",params:{id:e}})}function r(e){return Object(i.a)({url:"/api/topic/create",method:"post",data:e})}function c(e){return Object(i.a)({url:"/api/topic/reply/list",method:"get",params:e})}function u(e){return Object(i.a)({url:"/api/topic/reply/batch_delete",method:"post",data:e})}},XA3k:function(e,t,l){},Y5bG:function(e,t,l){"use strict";l.d(t,"a",function(){return n}),Math.easeInOutQuad=function(e,t,l,i){return(e/=i/2)<1?l/2*e*e+t:-l/2*(--e*(e-2)-1)+t};var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)};function n(e,t,l){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?i(e):l&&"function"==typeof l&&l()}()}},ZySA:function(e,t,l){"use strict";var i=l("P2sY"),n=l.n(i),a=(l("jUE0"),{bind:function(e,t){e.addEventListener("click",function(l){var i=n()({},t.value),a=n()({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),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=(l.pageY-o.top-r.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",r.style.left=(l.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,l){},srV9:function(e,t,l){"use strict";var i=l("XA3k");l.n(i).a}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-f39a"],{"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-fd33"],{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
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
:page-size.sync="pageSize" :page-size.sync="pageSize"
:layout="layout" :layout="layout"
:total="total" :total="total"
:pageSizes="pageSizes"
v-bind="$attrs" v-bind="$attrs"
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange"/> @current-change="handleCurrentChange"/>
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<div> <div>
<input ref="excel-upload-input" class="excel-upload-input" type="file" accept=".xlsx, .xls" @change="handleClick"> <input ref="excel-upload-input" class="excel-upload-input" type="file" accept=".xlsx, .xls" @change="handleClick">
<div class="drop" @drop="handleDrop" @dragover="handleDragover" @dragenter="handleDragover"> <div class="drop" @drop="handleDrop" @dragover="handleDragover" @dragenter="handleDragover">
Drop excel file here or 文件拖至此处
<el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="handleUpload">Browse</el-button> <el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="handleUpload">点我上传</el-button>
</div> </div>
</div> </div>
</template> </template>
......
...@@ -138,17 +138,20 @@ ...@@ -138,17 +138,20 @@
}, },
handleOfflineOrOnline(val) { handleOfflineOrOnline(val) {
const length = this.multipleSelection.length; const length = this.multipleSelection.length;
let str = ''; var ids = []
var updates = {}
this.del_list = this.del_list.concat(this.multipleSelection); this.del_list = this.del_list.concat(this.multipleSelection);
for (let i = 0; i < length; i++) { for (let i = 0; i < length; i++) {
if (val === 'offline') { if (val === 'offline') {
this.multipleSelection[i].is_online = 0 this.multipleSelection[i].is_online = 0
updates['is_online'] = 0
} else { } else {
this.multipleSelection[i].is_online = 1 this.multipleSelection[i].is_online = 1
updates['is_online'] = 1
} }
str += this.multipleSelection[i].id + ' '; ids.push(this.multipleSelection[i].id)
} }
OffLineOrOnLine({type: val, ids: str}).then(response => { OffLineOrOnLine({updates: JSON.stringify(updates), ids: JSON.stringify(ids)}).then(response => {
this.multipleSelection = []; this.multipleSelection = [];
this.$message.success(response.data.data.message); this.$message.success(response.data.data.message);
this.$router.go(0) this.$router.go(0)
......
...@@ -198,17 +198,20 @@ export default { ...@@ -198,17 +198,20 @@ export default {
}, },
handleOfflineOrOnline(val) { handleOfflineOrOnline(val) {
const length = this.multipleSelection.length const length = this.multipleSelection.length
let str = '' var ids = []
var updates = {}
this.del_list = this.del_list.concat(this.multipleSelection) this.del_list = this.del_list.concat(this.multipleSelection)
for (let i = 0; i < length; i++) { for (let i = 0; i < length; i++) {
if (val === 'offline') { if (val === 'offline') {
this.multipleSelection[i].is_online = 0 this.multipleSelection[i].is_online = 0
updates['is_online'] = 0
} else { } else {
this.multipleSelection[i].is_online = 1 this.multipleSelection[i].is_online = 1
updates['is_online'] = 1
} }
str += this.multipleSelection[i].id + ' ' ids.push(this.multipleSelection[i].id)
} }
OffLineOrOnLine({ type: val, ids: str }).then(response => { OffLineOrOnLine({updates: JSON.stringify(updates), ids: JSON.stringify(ids)}).then(response => {
this.multipleSelection = [] this.multipleSelection = []
this.$message.success(response.data.data.message) this.$message.success(response.data.data.message)
this.$router.go(0) this.$router.go(0)
......
...@@ -172,20 +172,24 @@ export default { ...@@ -172,20 +172,24 @@ export default {
}, },
handleOfflineOrOnline(val){ handleOfflineOrOnline(val){
const length = this.multipleSelection.length; const length = this.multipleSelection.length;
let str = ''; var ids = []
var updates = {}
this.del_list = this.del_list.concat(this.multipleSelection); this.del_list = this.del_list.concat(this.multipleSelection);
for (let i = 0; i < length; i++) { for (let i = 0; i < length; i++) {
if (val === 'offline'){ if (val === 'offline'){
this.multipleSelection[i].is_online = 0 this.multipleSelection[i].is_online = 0
updates['is_online'] = 0
}else if (val == 'is_recommend'){ }else if (val == 'is_recommend'){
this.multipleSelection[i].is_recommend = 1 this.multipleSelection[i].is_recommend = 1
updates['is_recommend'] = 1
} }
else{ else{
this.multipleSelection[i].is_online = 1 this.multipleSelection[i].is_online = 1
updates['is_online'] = 1
} }
str += this.multipleSelection[i].id + ' '; ids.push(this.multipleSelection[i].id)
} }
OffLineOrOnLine({type:val, ids:str}).then(response => { OffLineOrOnLine({updates: JSON.stringify(updates), ids: JSON.stringify(ids)}).then(response => {
this.multipleSelection = []; this.multipleSelection = [];
this.$message.success(response.data.data.message); this.$message.success(response.data.data.message);
......
...@@ -90,11 +90,11 @@ ...@@ -90,11 +90,11 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label-width="45px" label="城市:" class="postInfo-container-item" prop="city"> <el-form-item label-width="45px" label="国家:" class="postInfo-container-item" prop="country">
<el-select v-model="city" :remote-method="getRemoteCityList" filterable remote multiple <el-select v-model="country" :remote-method="getRemoteCountryList" filterable remote multiple
value-key="id" value-key="id"
placeholder="搜索地区" style="width: 100%"> placeholder="搜索国家" style="width: 100%">
<el-option v-for="(item,index) in regionListOptions" :key="item+index" :label="item" <el-option v-for="(item,index) in countryListOptions" :key="item+index" :label="item"
:value="item"/> :value="item"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -306,7 +306,7 @@ ...@@ -306,7 +306,7 @@
delPickTopic, delPickTopic,
delPickCelebrity delPickCelebrity
} from '@/api/pick' } from '@/api/pick'
import {groupSearch, citySearch, celebritySearch, topicSearch} from '@/api/remoteSearch' import {groupSearch, citySearch, celebritySearch, topicSearch, countrySearch} from '@/api/remoteSearch'
import {isInArray, removeByvale} from "@/utils"; import {isInArray, removeByvale} from "@/utils";
const defaultForm = { const defaultForm = {
...@@ -315,6 +315,7 @@ ...@@ -315,6 +315,7 @@
desc: '', desc: '',
gender: '', gender: '',
city: [], city: [],
country: [],
pick_group: [], pick_group: [],
pick_type: '', pick_type: '',
position: '', position: '',
...@@ -347,6 +348,7 @@ ...@@ -347,6 +348,7 @@
postForm: Object.assign({}, defaultForm), postForm: Object.assign({}, defaultForm),
loading: false, loading: false,
city: [], city: [],
country: [],
pick_group: [], pick_group: [],
...@@ -355,7 +357,7 @@ ...@@ -355,7 +357,7 @@
celebrity_id: '', celebrity_id: '',
topic_id: '', topic_id: '',
del_list: [], del_list: [],
regionListOptions: [], countryListOptions: [],
groupListOptions: [], groupListOptions: [],
celebrityListOptions: [], celebrityListOptions: [],
topicListOptions: [], topicListOptions: [],
...@@ -433,10 +435,8 @@ ...@@ -433,10 +435,8 @@
for (let i = 0; i < rep.pick_group.length; i++) { for (let i = 0; i < rep.pick_group.length; i++) {
this.pick_group.push(rep.pick_group[i]['id'] + ':' + rep.pick_group[i]['name']) this.pick_group.push(rep.pick_group[i]['id'] + ':' + rep.pick_group[i]['name'])
} }
for (let i = 0; i < rep.country.length; i++) {
this.country.push(rep.country[i]['id'] + ':' + rep.country[i]['name'])
for (let i = 0; i < rep.region.length; i++) {
this.city.push(rep.region[i]['id'] + ':' + rep.region[i]['name'])
} }
this.postForm = rep this.postForm = rep
...@@ -451,6 +451,7 @@ ...@@ -451,6 +451,7 @@
this.loading = true; this.loading = true;
this.postForm.city = JSON.stringify(this.city); this.postForm.city = JSON.stringify(this.city);
this.postForm.country = JSON.stringify(this.country)
this.postForm.pick_group = JSON.stringify(this.pick_group); this.postForm.pick_group = JSON.stringify(this.pick_group);
CreatePick(this.postForm).then(response => { CreatePick(this.postForm).then(response => {
...@@ -482,10 +483,10 @@ ...@@ -482,10 +483,10 @@
} }
}) })
}, },
getRemoteCityList(query) { getRemoteCountryList(query){
citySearch(query).then(response => { countrySearch(query).then(response =>{
if (!response.data.data.data) return if (!response.data.data.data) return
this.regionListOptions = response.data.data.data this.countryListOptions = response.data.data.data
}) })
}, },
getRemoteGroupList(query) { getRemoteGroupList(query) {
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<el-table-column align="center" label="地区"> <el-table-column align="center" label="地区">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.region }}</span> <span>{{ scope.row.country }}</span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -149,17 +149,20 @@ export default { ...@@ -149,17 +149,20 @@ export default {
}, },
handleOfflineOrOnline(val){ handleOfflineOrOnline(val){
const length = this.multipleSelection.length; const length = this.multipleSelection.length;
let str = ''; var ids = []
var updates = {}
this.del_list = this.del_list.concat(this.multipleSelection); this.del_list = this.del_list.concat(this.multipleSelection);
for (let i = 0; i < length; i++) { for (let i = 0; i < length; i++) {
if (val === 'offline'){ if (val === 'offline'){
this.multipleSelection[i].is_online = 0 this.multipleSelection[i].is_online = 0
updates['is_online'] = 0
}else{ }else{
this.multipleSelection[i].is_online = 1 this.multipleSelection[i].is_online = 1
updates['is_online'] = 1
} }
str += this.multipleSelection[i].id + ' '; str += this.multipleSelection[i].id + ' ';
} }
OffLineOrOnLine({type:val, ids:str}).then(response => { OffLineOrOnLine({updates: JSON.stringify(updates), ids: JSON.stringify(ids)}).then(response => {
this.multipleSelection = []; this.multipleSelection = [];
this.$message.success(response.data.data.message); this.$message.success(response.data.data.message);
}) })
......
...@@ -130,17 +130,20 @@ export default { ...@@ -130,17 +130,20 @@ export default {
}, },
handleOfflineOrOnline(val){ handleOfflineOrOnline(val){
const length = this.multipleSelection.length; const length = this.multipleSelection.length;
let str = ''; var ids = []
var updates = {}
this.del_list = this.del_list.concat(this.multipleSelection); this.del_list = this.del_list.concat(this.multipleSelection);
for (let i = 0; i < length; i++) { for (let i = 0; i < length; i++) {
if (val === 'offline'){ if (val === 'offline'){
this.multipleSelection[i].is_online = 0 this.multipleSelection[i].is_online = 0
updates['is_online'] = 0
}else{ }else{
this.multipleSelection[i].is_online = 1 this.multipleSelection[i].is_online = 1
updates['is_online'] = 1
} }
str += this.multipleSelection[i].id + ' '; ids.push(this.multipleSelection[i].id)
} }
OffLineOrOnLine({type:val, ids:str}).then(response => { OffLineOrOnLine({updates: JSON.stringify(updates), ids: JSON.stringify(ids)}).then(response => {
this.multipleSelection = []; this.multipleSelection = [];
this.$message.success(response.data.data.message); this.$message.success(response.data.data.message);
setTimeout(() => { setTimeout(() => {
......
...@@ -115,17 +115,20 @@ export default { ...@@ -115,17 +115,20 @@ export default {
}, },
handleOfflineOrOnline(val){ handleOfflineOrOnline(val){
const length = this.multipleSelection.length; const length = this.multipleSelection.length;
let str = ''; var ids = []
var updates = {}
this.del_list = this.del_list.concat(this.multipleSelection); this.del_list = this.del_list.concat(this.multipleSelection);
for (let i = 0; i < length; i++) { for (let i = 0; i < length; i++) {
if (val === 'offline'){ if (val === 'offline'){
this.multipleSelection[i].is_online = 0 this.multipleSelection[i].is_online = 0
updates['is_online'] = 0
}else{ }else{
this.multipleSelection[i].is_online = 1 this.multipleSelection[i].is_online = 1
updates['is_online'] = 1
} }
str += this.multipleSelection[i].id + ' '; ids.push(this.multipleSelection[i].id)
} }
OffLineOrOnLine({type:val, ids:str}).then(response => { OffLineOrOnLine({updates: JSON.stringify(updates), ids: JSON.stringify(ids)}).then(response => {
this.multipleSelection = []; this.multipleSelection = [];
this.$message.success(response.data.data.message); this.$message.success(response.data.data.message);
}) })
......
...@@ -114,20 +114,20 @@ export default { ...@@ -114,20 +114,20 @@ export default {
}, },
handleOfflineOrOnline(val){ handleOfflineOrOnline(val){
const length = this.multipleSelection.length; const length = this.multipleSelection.length;
let str = ''; var ids = [];
var update = '' var updates = ''
this.del_list = this.del_list.concat(this.multipleSelection); this.del_list = this.del_list.concat(this.multipleSelection);
for (let i = 0; i < length; i++) { for (let i = 0; i < length; i++) {
if (val === 'offline'){ if (val === 'offline'){
this.multipleSelection[i].is_online = 0 this.multipleSelection[i].is_online = 0
update = 0; updates['is_online'] = 0
}else{ }else{
this.multipleSelection[i].is_online = 1 this.multipleSelection[i].is_online = 1
update = 1; updates['is_online'] = 0
} }
str += this.multipleSelection[i].id + ' '; ids.push(this.multipleSelection[i].id)
} }
OffLineOrOnLine({update:update, ids:str}).then(response => { OffLineOrOnLine({updates: JSON.stringify(updates), ids: JSON.stringify(ids)}).then(response => {
this.multipleSelection = []; this.multipleSelection = [];
this.$message.success(response.data.data.message); this.$message.success(response.data.data.message);
}) })
......
...@@ -23,10 +23,11 @@ ...@@ -23,10 +23,11 @@
<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="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('offline')">下线</el-button>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="handleOfflineOrOnline('online')">上线</el-button> <el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="handleOfflineOrOnline('online')">上线</el-button>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="batchUpdate" >批量上线</el-button>
</div> </div>
<el-table v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%" ref="multipleTable" @selection-change="handleSelectionChange"> <el-table v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%" ref="multipleTable" @selection-change="handleSelectionChange" @sort-change="sortChange">
<el-table-column type="selection" align="center"></el-table-column> <el-table-column type="selection" align="center"></el-table-column>
<el-table-column align="center" label="帖子ID " > <el-table-column align="center" label="帖子ID " sortable="custom" min-width="85px" prop="id">
<template slot-scope="scope"> <template slot-scope="scope">
<router-link :to="'/topic/edit/'+scope.row.id" class="link-type"> <router-link :to="'/topic/edit/'+scope.row.id" class="link-type">
<span>{{ scope.row.id }}</span> <span>{{ scope.row.id }}</span>
...@@ -40,7 +41,7 @@ ...@@ -40,7 +41,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="帖子详情"> <el-table-column align="center" label="帖子详情" min-width="300px;">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.content }}</span> <span>{{ scope.row.content }}</span>
</template> </template>
...@@ -85,8 +86,29 @@ ...@@ -85,8 +86,29 @@
</el-table> </el-table>
<pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" style="margin-left: 150px;" @pagination="getList" /> <pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :pageSizes="pageSize" :limit.sync="listQuery.limit" style="margin-left: 150px;" @pagination="getList" />
<el-dialog :visible.sync="dialogFormVisible">
<label>发帖时间:&nbsp;&nbsp;</label>
<el-date-picker
v-model="select_start_time "
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="起始时间"
style="width: 230px"
/>&nbsp;&nbsp;----&nbsp;&nbsp;
<el-date-picker
v-model="select_end_time "
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="结束时间"
style="width: 230px"
/>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false">取消</el-button>
<el-button type="primary" @click="updateData()" :disabled="this.is_click">确认</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
...@@ -120,6 +142,7 @@ export default { ...@@ -120,6 +142,7 @@ export default {
return { return {
list: null, list: null,
total: 0, total: 0,
pageSize: [10, 30, 50, 100, 250],
listLoading: true, listLoading: true,
multipleSelection: [], multipleSelection: [],
del_list: [], del_list: [],
...@@ -134,6 +157,7 @@ export default { ...@@ -134,6 +157,7 @@ export default {
user__is_puppet: '', user__is_puppet: '',
content_level: '' content_level: ''
}, },
sort: ['-id', ]
}, },
BooleanTypeOptions: [ BooleanTypeOptions: [
{'key': 1, 'display_name': '是'}, {'key': 1, 'display_name': '是'},
...@@ -156,6 +180,11 @@ export default { ...@@ -156,6 +180,11 @@ export default {
{'key': 4, 'display_name': '星级四'}, {'key': 4, 'display_name': '星级四'},
{'key': 5, 'display_name': '星级五'}, {'key': 5, 'display_name': '星级五'},
], ],
dialogFormVisible: false,
is_click: false,
dialogStatus: '',
select_start_time: '',
select_end_time: ''
} }
}, },
created() { created() {
...@@ -167,7 +196,6 @@ export default { ...@@ -167,7 +196,6 @@ export default {
this.listQuery.user_id = this.$route.query.user_id || '' this.listQuery.user_id = this.$route.query.user_id || ''
this.listQuery.group_id = this.$route.query.group_id || '' this.listQuery.group_id = this.$route.query.group_id || ''
fetchList(this.listQuery).then(response => { fetchList(this.listQuery).then(response => {
console.log(response.data.data)
this.list = response.data.data.data this.list = response.data.data.data
this.total = response.data.data.total this.total = response.data.data.total
this.listLoading = false this.listLoading = false
...@@ -186,17 +214,20 @@ export default { ...@@ -186,17 +214,20 @@ export default {
}, },
handleOfflineOrOnline(val){ handleOfflineOrOnline(val){
const length = this.multipleSelection.length; const length = this.multipleSelection.length;
let str = ''; var ids = []
var updates = {}
this.del_list = this.del_list.concat(this.multipleSelection); this.del_list = this.del_list.concat(this.multipleSelection);
for (let i = 0; i < length; i++) { for (let i = 0; i < length; i++) {
if (val === 'offline'){ if (val === 'offline'){
this.multipleSelection[i].is_online = 0 this.multipleSelection[i].is_online = 0
updates['is_online'] = 0
} else{ } else{
this.multipleSelection[i].is_online = 1 this.multipleSelection[i].is_online = 1
updates['is_online'] = 1
} }
str += this.multipleSelection[i].id + ' '; ids.push(this.multipleSelection[i].id)
} }
OffLineOrOnLine({type:val, ids:str}).then(response => { OffLineOrOnLine({updates: JSON.stringify(updates), ids: JSON.stringify(ids)}).then(response => {
this.multipleSelection = []; this.multipleSelection = [];
this.$message.success(response.data.data.message); this.$message.success(response.data.data.message);
this.$router.go(0) this.$router.go(0)
...@@ -208,6 +239,60 @@ export default { ...@@ -208,6 +239,60 @@ export default {
}, },
handleCreate() { handleCreate() {
this.$router.push('/topic/create') this.$router.push('/topic/create')
},
sortChange(data){
const {prop, order} = data
if (prop === 'id'){
this.sortByID(order)
}
},
sortByID(order){
if (order === 'ascending'){
this.listQuery.sort.shift()
this.listQuery.sort.push(...['id'])
}else{
this.listQuery.sort.shift()
this.listQuery.sort.push(...['-id'])
}
this.handleFilter()
},
batchUpdate(){
this.dialogFormVisible = true;
this.reset()
},
updateData(){
const length = this.multipleSelection.length;
var ids = []
var updates = {}
var extra_info = {}
this.del_list = this.del_list.concat(this.multipleSelection);
for (let i = 0; i < length; i++) {
this.multipleSelection[i].is_online = 1
updates['is_online'] = 1
ids.push(this.multipleSelection[i].id)
}
if (!length){
this.$message.error('请先勾选帖子ID,再进行后续操作.....')
}
if (!this.select_start_time || !this.select_end_time){
this.$message.error('起始时间或者结束时间不能为空.....')
}
if (this.select_start_time > this.select_end_time){
this.$message.error('起始时间不能小于结束时间.....')
}
extra_info['start_time'] = this.select_start_time
extra_info['end_time'] = this.select_end_time
OffLineOrOnLine({updates: JSON.stringify(updates), ids: JSON.stringify(ids), extra: JSON.stringify(extra_info)}).then(response => {
this.multipleSelection = [];
this.$message.success(response.data.data.message);
this.$router.go(0)
this.dialogFormVisible = false;
})
},
reset(){
this.select_start_time = ''
this.select_end_time = ''
} }
} }
} }
......
...@@ -11,9 +11,6 @@ ...@@ -11,9 +11,6 @@
style="width: 110px"> style="width: 110px">
<el-option v-for="item in UserTypeOptions" :key="item.key" :label="item.display_name" :value="item.key"/> <el-option v-for="item in UserTypeOptions" :key="item.key" :label="item.display_name" :value="item.key"/>
</el-select> </el-select>
<!--<el-select v-model="listQuery.filter.group_type" :placeholder="'组内身份'" clearable class="filter-item" style="width: 110px">-->
<!--<el-option v-for="item in IdentifyTypeOptions" :key="item.key" :label="item.display_name" :value="item.key"/>-->
<!--</el-select>-->
<el-select v-model="listQuery.filter.is_recommend" :placeholder="'推荐'" clearable class="filter-item" <el-select v-model="listQuery.filter.is_recommend" :placeholder="'推荐'" clearable class="filter-item"
style="width: 100px"> style="width: 100px">
<el-option v-for="item in ReBooleanTypeOptions" :key="item.key" :label="item.display_name" :value="item.key"/> <el-option v-for="item in ReBooleanTypeOptions" :key="item.key" :label="item.display_name" :value="item.key"/>
...@@ -25,6 +22,15 @@ ...@@ -25,6 +22,15 @@
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" <el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit"
@click="handleOfflineOrOnline('recommend')">推荐 @click="handleOfflineOrOnline('recommend')">推荐
</el-button> </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>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit"
@click="handleOfflineOrOnline('online')">上线
</el-button>
</div> </div>
<el-table v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%" <el-table v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%"
ref="multipleTable" @selection-change="handleSelectionChange"> ref="multipleTable" @selection-change="handleSelectionChange">
...@@ -50,9 +56,9 @@ ...@@ -50,9 +56,9 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="联系电话"> <el-table-column align="center" label="是否在线">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.phone }}</span> <el-tag :type="scope.row.is_online | isOnlineFilter">{{ scope.row.is_online==true ? '是' : '否' }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
...@@ -79,12 +85,6 @@ ...@@ -79,12 +85,6 @@
</template> </template>
</el-table-column> </el-table-column>
<!--<el-table-column width="150px" align="center" label="组内身份">-->
<!--<template slot-scope="scope">-->
<!--<span>{{ scope.row.group_identify }}</span>-->
<!--</template>-->
<!--</el-table-column>-->
<el-table-column align="center" label="用户身份"> <el-table-column align="center" label="用户身份">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.user_identify }}</span> <span>{{ scope.row.user_identify }}</span>
...@@ -93,7 +93,8 @@ ...@@ -93,7 +93,8 @@
<el-table-column align="center" label="是否推荐"> <el-table-column align="center" label="是否推荐">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="scope.row.is_recommend | isOnlineFilter">{{ scope.row.is_recommend==1 ? '是' : '否' }}</el-tag> <el-tag :type="scope.row.is_recommend | isOnlineFilter">{{ scope.row.is_recommend==true ? '是' : '否' }}
</el-tag>
</template> </template>
</el-table-column> </el-table-column>
is_recommend is_recommend
...@@ -110,7 +111,7 @@ ...@@ -110,7 +111,7 @@
import {fetchList, OffLineOrOnLine} from '@/api/user' import {fetchList, OffLineOrOnLine} from '@/api/user'
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
import waves from '@/directive/waves' import waves from '@/directive/waves'
import { mapGetters } from 'vuex' import {mapGetters} from 'vuex'
export default { export default {
name: 'UserList', name: 'UserList',
...@@ -118,8 +119,8 @@ ...@@ -118,8 +119,8 @@
filters: { filters: {
isOnlineFilter(status) { isOnlineFilter(status) {
const statusMap = { const statusMap = {
1: 'success', true: 'success',
0: 'info', false: 'info',
} }
return statusMap[status] return statusMap[status]
}, },
...@@ -205,23 +206,27 @@ ...@@ -205,23 +206,27 @@
handleOfflineOrOnline(val) { handleOfflineOrOnline(val) {
const length = this.multipleSelection.length; const length = this.multipleSelection.length;
var ids = []; var ids = [];
var updates = {};
this.del_list = this.del_list.concat(this.multipleSelection); this.del_list = this.del_list.concat(this.multipleSelection);
for (let i = 0; i < length; i++) { for (let i = 0; i < length; i++) {
if (val === 'offline') { if (val === 'offline') {
this.multipleSelection[i].is_online = 0 this.multipleSelection[i].is_online = 0
updates['is_online'] = 0
} else if (val === 'recommend') { } else if (val === 'recommend') {
this.multipleSelection[i].is_recommend = 0 this.multipleSelection[i].is_recommend = 0
updates['is_recommend'] = 0
} else { } else {
this.multipleSelection[i].is_online = 1 this.multipleSelection[i].is_online = 1
updates['is_online'] = 1
} }
ids.push(this.multipleSelection[i].user_id) ids.push(this.multipleSelection[i].user_id)
} }
OffLineOrOnLine({type: val, ids: JSON.stringify(ids)}).then(response => { OffLineOrOnLine({updates: JSON.stringify(updates), ids: JSON.stringify(ids)}).then(response => {
this.multipleSelection = []; this.multipleSelection = [];
this.$message.success(response.data.data.message); this.$message.success(response.data.data.message);
setTimeout(() => { setTimeout(() => {
this.$router.go(0) this.$router.go(0)
}, 1500) }, 1500)
}) })
}, },
handleFilter() { handleFilter() {
......
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