Commit 67e9bb67 authored by 许俊鹏's avatar 许俊鹏

处理冲突

parents 1d460986 e972be54
......@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
# __author__ = "chenwei"
# Date: 2018/11/16
import json
from django.conf import settings
from utils.base import APIView
from utils.user_util import make_password_own
......@@ -21,13 +22,8 @@ class AccountList(APIView):
return data
def post(self, request):
ids = request.POST.get('ids', '').split()
type = request.POST.get('type', '')
updates = {}
if type == 'offline':
updates['is_online'] = 0
else:
updates['is_online'] = 1
ids = json.loads(request.POST.get('ids', '[]'))
updates = json.loads(request.POST.get('updates', '{}'))
try:
self.rpc['venus/sun/account/batch/update'](updates=updates, ids=ids).unwrap()
except Exception as e:
......
......@@ -3,6 +3,7 @@
# __author__ = "chenwei"
# Date: 2018/12/11
import json
from utils.base import APIView
from utils.logger import error_logger
......@@ -60,15 +61,9 @@ class StarListView(APIView):
return data
def post(self, request):
ids = request.POST.get('ids', '').split()
tp = request.POST.get('type', '')
ids = json.loads(request.POST.get('ids', '[]'))
updates = json.loads(request.POST.get('updates', '{}'))
updates = {}
if tp == 'offline':
updates['is_online'] = 0
else:
updates['is_online'] = 1
try:
self.rpc['mercury/face/batch/update'](ids=ids, updates=updates).unwrap()
except Exception as e:
......
......@@ -27,15 +27,8 @@ class GroupListView(APIView):
return data
def post(self, request):
ids = request.POST.get('ids', '').split()
type = request.POST.get('type')
updates = {}
if type == 'offline':
updates['is_online'] = False
elif type == 'is_recommend':
updates['is_recommend'] = True
else:
updates['is_online'] = True
ids = json.loads(request.POST.get('ids', '[]'))
updates = json.loads(request.POST.get('updates', '{}'))
try:
self.rpc['venus/sun/group/batch/update'](updates=updates, ids=ids).unwrap()
except Exception as e:
......
......@@ -22,15 +22,8 @@ class PickListView(APIView):
return data
def post(self, request):
ids = request.POST.get('ids', '').split()
type = request.POST.get('type', '')
updates = {}
if type == 'offline':
updates['is_online'] = 0
else:
updates['is_online'] = 1
ids = json.loads(request.POST.get('ids', '[]'))
updates = json.loads(request.POST.get('updates', '{}'))
try:
self.rpc['venus/sun/pick/batch/update'](updates=updates, ids=ids).unwrap()
except Exception as e:
......@@ -54,7 +47,7 @@ class UpdateOrCreateView(APIView):
def post(self, request):
id = request.POST.get('id', '')
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')
gender = request.POST.get('gender')
pick_type = request.POST.get('pick_type')
......@@ -84,7 +77,7 @@ class UpdateOrCreateView(APIView):
'name': request.POST.get('name'),
'desc': request.POST.get('desc'),
'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_group': pick_group_ids,
'is_online': int(request.POST.get('is_online')),
......
......@@ -21,15 +21,9 @@ class CelebrityListView(APIView):
return data
def post(self, request):
ids = request.POST.get('ids', '').split()
type = request.POST.get('type', '')
ids = json.loads(request.POST.get('ids', '[]'))
updates = json.loads(request.POST.get('updates', '{}'))
updates = {}
if type == 'offline':
updates['is_online'] = 0
else:
updates['is_online'] = 1
try:
self.rpc['venus/sun/celebrity/batch/update'](updates=updates, ids=ids).unwrap()
except Exception as e:
......
......@@ -21,13 +21,8 @@ class TagListView(APIView):
return data
def post(self, request):
ids = request.POST.get('ids', '').split()
type = request.POST.get('type', '')
updates = {}
if type == 'offline':
updates['is_online'] = False
else:
updates['is_online'] = True
ids = json.loads(request.POST.get('ids', '[]'))
updates = json.loads(request.POST.get('updates', '{}'))
try:
self.rpc['venus/sun/tag/batch/update'](updates=updates, ids=ids).unwrap()
except Exception as e:
......@@ -87,12 +82,8 @@ class TagTypeListView(APIView):
return data
def post(self, request):
ids = request.POST.get('ids', '').split()
update = int(request.POST.get('update', ''))
updates = {
'is_online': bool(update)
}
ids = json.loads(request.POST.get('ids', '[]'))
updates = json.loads(request.POST.get('updates', '{}'))
try:
self.rpc['venus/sun/tag/tagtype/batch/update'](updates=updates, ids=ids).unwrap()
......
......@@ -15,12 +15,18 @@ class TopicListView(APIView):
offset = int(request.GET.get('page', 0))
limit = int(request.GET.get('limit', 10))
filter = self.handle_filter(request.GET.get('filter', ""))
sort_params = request.GET.getlist('sort[]')
if user_id:
filter.update({'user_id': user_id})
if group_id:
filter.update({'group_id': group_id})
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:
error_logger.error(u'获取帖子列表失败%s', e)
raise
......@@ -114,6 +120,7 @@ class TopicListBatchUpdate(APIView):
def post(self, request):
ids = request.POST.get('ids', '').split()
updates = self.handle_filter(request.POST.get('updates', "{}"))
extra = json.loads(request.POST.get('extra', '{}'))
try:
self.rpc['venus/sun/topic/batch/update'](updates=updates, ids=ids).unwrap()
except Exception as e:
......
......@@ -27,14 +27,7 @@ class UserListView(APIView):
def post(self, request):
ids = json.loads(request.POST.get('ids', '[]'))
type = request.POST.get('type', '')
updates = {}
if type == 'recommend':
updates['is_recommend'] = 1
else:
pass
updates = json.loads(request.POST.get('updates', '{}'))
try:
self.rpc['venus/sun/user/batch/update'](updates=updates, ids=ids).unwrap()
except Exception as e:
......
......@@ -28,6 +28,7 @@ from utils.user_util import require_login
from utils.logger import log_error
_EMPTY_OBJECT = object()
......
This diff is collapsed.
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.edit-input[data-v-7af7e800]{padding-right:100px}.cancel-btn[data-v-7af7e800]{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-52896988]{padding-right:100px}.cancel-btn[data-v-52896988]{position:absolute;right:15px;top:10px}
\ No newline at end of file
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.edit-input[data-v-22ad4d5b]{padding-right:100px}.cancel-btn[data-v-22ad4d5b]{position:absolute;right:15px;top:10px}
\ No newline at end of file
.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
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.edit-input[data-v-4d92cdb2]{padding-right:100px}.cancel-btn[data-v-4d92cdb2]{position:absolute;right:15px;top:10px}
\ No newline at end of file
.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-387a0cc9]{padding-right:100px}.cancel-btn[data-v-387a0cc9]{position:absolute;right:15px;top:10px}
\ No newline at end of file
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.edit-input[data-v-dd551fe6]{padding-right:100px}.cancel-btn[data-v-dd551fe6]{position:absolute;right:15px;top:10px}
\ No newline at end of file
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.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
.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-71130a0e]{padding-right:100px}.cancel-btn[data-v-71130a0e]{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-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-0aaea6c6]{padding-right:100px}.cancel-btn[data-v-0aaea6c6]{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
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.createPost-container[data-v-263b1825]{position:relative}.createPost-container .createPost-main-container[data-v-263b1825]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-263b1825]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-263b1825]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-263b1825]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-263b1825]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-263b1825]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-263b1825]{display:inline-block}.createPost-container .word-counter[data-v-263b1825]{width:40px;position:absolute;right:-10px;top:0}.edit-input[data-v-263b1825]{padding-right:100px}.cancel-btn[data-v-263b1825]{position:absolute;right:15px;top:10px}
\ No newline at end of file
.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
.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.
This diff is collapsed.
(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}})}}}]);
\ 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})}}},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
(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}})}}}]);
\ 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})}}},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
This diff is collapsed.
This diff is collapsed.
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2dde"],{"+AeS":function(t,e,i){"use strict";var n=i("4XRr");i.n(n).a},"4XRr":function(t,e,i){},"5xsC":function(t,e,i){"use strict";i.r(e);var n=i("gDS+"),l=i.n(n),a=i("ESsw"),o=i("Mz3J"),r=i("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,i=this.multipleSelection.length,n=[],o={};this.del_list=this.del_list.concat(this.multipleSelection);for(var r=0;r<i;r++)"offline"===t?(this.multipleSelection[r].is_online=0,o.is_online=0):(this.multipleSelection[r].is_online=1,o.is_online=1),n.push(this.multipleSelection[r].id);Object(a.c)({updates:l()(o),ids:l()(n)}).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=(i("+AeS"),i("KHd+")),u=Object(c.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:"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.country))])]}}])}),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,"387a0cc9",null);u.options.__file="list.vue";e.default=u.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})}},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},"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-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
This diff is collapsed.
(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-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-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
This diff is collapsed.
This diff is collapsed.
(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-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
This diff is collapsed.
This diff is collapsed.
(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
This diff is collapsed.
(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
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -6,6 +6,7 @@
:page-size.sync="pageSize"
:layout="layout"
:total="total"
:pageSizes="pageSizes"
v-bind="$attrs"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"/>
......
......@@ -2,8 +2,8 @@
<div>
<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">
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>
</template>
......
......@@ -138,17 +138,20 @@
},
handleOfflineOrOnline(val) {
const length = this.multipleSelection.length;
let str = '';
var ids = []
var updates = {}
this.del_list = this.del_list.concat(this.multipleSelection);
for (let i = 0; i < length; i++) {
if (val === 'offline') {
this.multipleSelection[i].is_online = 0
updates['is_online'] = 0
} else {
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.$message.success(response.data.data.message);
this.$router.go(0)
......
......@@ -198,17 +198,20 @@ export default {
},
handleOfflineOrOnline(val) {
const length = this.multipleSelection.length
let str = ''
var ids = []
var updates = {}
this.del_list = this.del_list.concat(this.multipleSelection)
for (let i = 0; i < length; i++) {
if (val === 'offline') {
this.multipleSelection[i].is_online = 0
updates['is_online'] = 0
} else {
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.$message.success(response.data.data.message)
this.$router.go(0)
......
......@@ -172,20 +172,24 @@ export default {
},
handleOfflineOrOnline(val){
const length = this.multipleSelection.length;
let str = '';
var ids = []
var updates = {}
this.del_list = this.del_list.concat(this.multipleSelection);
for (let i = 0; i < length; i++) {
if (val === 'offline'){
this.multipleSelection[i].is_online = 0
updates['is_online'] = 0
}else if (val == 'is_recommend'){
this.multipleSelection[i].is_recommend = 1
this.multipleSelection[i].is_recommend = 1
updates['is_recommend'] = 1
}
else{
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.$message.success(response.data.data.message);
......
This diff is collapsed.
......@@ -55,7 +55,7 @@
<el-table-column align="center" label="地区">
<template slot-scope="scope">
<span>{{ scope.row.region }}</span>
<span>{{ scope.row.country }}</span>
</template>
</el-table-column>
......@@ -149,17 +149,20 @@ export default {
},
handleOfflineOrOnline(val){
const length = this.multipleSelection.length;
let str = '';
var ids = []
var updates = {}
this.del_list = this.del_list.concat(this.multipleSelection);
for (let i = 0; i < length; i++) {
if (val === 'offline'){
this.multipleSelection[i].is_online = 0
updates['is_online'] = 0
}else{
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.$message.success(response.data.data.message);
})
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment