Commit e1f10e9d authored by Davve's avatar Davve

build

parent 4bc5db6d
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-f111f402]{padding-right:100px}.cancel-btn[data-v-f111f402]{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
.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-450d3606]{position:relative}.createPost-container .createPost-main-container[data-v-450d3606]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-450d3606]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-450d3606]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-450d3606]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-450d3606]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-450d3606]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-450d3606]{display:inline-block}.createPost-container .word-counter[data-v-450d3606]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.createPost-container[data-v-3b28b990]{position:relative}.createPost-container .createPost-main-container[data-v-3b28b990]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-3b28b990]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-3b28b990]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-3b28b990]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-3b28b990]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-3b28b990]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-3b28b990]{display:inline-block}.createPost-container .word-counter[data-v-3b28b990]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.createPost-container[data-v-450d3606]{position:relative}.createPost-container .createPost-main-container[data-v-450d3606]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-450d3606]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-450d3606]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-450d3606]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-450d3606]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-450d3606]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-450d3606]{display:inline-block}.createPost-container .word-counter[data-v-450d3606]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.createPost-container[data-v-3b28b990]{position:relative}.createPost-container .createPost-main-container[data-v-3b28b990]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-3b28b990]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-3b28b990]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-3b28b990]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-3b28b990]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-3b28b990]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-3b28b990]{display:inline-block}.createPost-container .word-counter[data-v-3b28b990]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.createPost-container[data-v-7b332fc6]{position:relative}.createPost-container .createPost-main-container[data-v-7b332fc6]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-7b332fc6]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-7b332fc6]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-7b332fc6]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-7b332fc6]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-7b332fc6]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-7b332fc6]{display:inline-block}.createPost-container .word-counter[data-v-7b332fc6]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.createPost-container[data-v-61f14248]{position:relative}.createPost-container .createPost-main-container[data-v-61f14248]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-61f14248]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-61f14248]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-61f14248]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-61f14248]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-61f14248]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-61f14248]{display:inline-block}.createPost-container .word-counter[data-v-61f14248]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.createPost-container[data-v-7b332fc6]{position:relative}.createPost-container .createPost-main-container[data-v-7b332fc6]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-7b332fc6]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-7b332fc6]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-7b332fc6]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-7b332fc6]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-7b332fc6]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-7b332fc6]{display:inline-block}.createPost-container .word-counter[data-v-7b332fc6]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.createPost-container[data-v-61f14248]{position:relative}.createPost-container .createPost-main-container[data-v-61f14248]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-61f14248]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-61f14248]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-61f14248]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-61f14248]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-61f14248]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-61f14248]{display:inline-block}.createPost-container .word-counter[data-v-61f14248]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1631"],{XPyc:function(e,t,i){"use strict";var n=i("yyRt");i.n(n).a},Y5bG:function(e,t,i){"use strict";i.d(t,"a",function(){return l}),Math.easeInOutQuad=function(e,t,i,n){return(e/=n/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t};var n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)};function l(e,t,i){var l=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,a=e-l,s=0;t=void 0===t?500:t;!function e(){s+=20,function(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}(Math.easeInOutQuad(s,l,a,t)),s<t?n(e):i&&"function"==typeof i&&i()}()}},ZySA:function(e,t,i){"use strict";var n=i("P2sY"),l=i.n(n),a=(i("jUE0"),{bind:function(e,t){e.addEventListener("click",function(i){var n=l()({},t.value),a=l()({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},n),s=a.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var o=s.getBoundingClientRect(),r=s.querySelector(".waves-ripple");switch(r?r.className="waves-ripple":((r=document.createElement("span")).className="waves-ripple",r.style.height=r.style.width=Math.max(o.width,o.height)+"px",s.appendChild(r)),a.type){case"center":r.style.top=o.height/2-r.offsetHeight/2+"px",r.style.left=o.width/2-r.offsetWidth/2+"px";break;default:r.style.top=(i.pageY-o.top-r.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",r.style.left=(i.pageX-o.left-r.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return r.style.backgroundColor=a.color,r.className="waves-ripple z-active",!1}},!1)}}),s=function(e){e.directive("waves",a)};window.Vue&&(window.waves=a,Vue.use(s)),a.install=s;t.a=a},deRP:function(e,t,i){"use strict";i.d(t,"b",function(){return l}),i.d(t,"d",function(){return a}),i.d(t,"e",function(){return s}),i.d(t,"a",function(){return o}),i.d(t,"c",function(){return r});var n=i("t3Un");function l(e){return Object(n.a)({url:"/api/celebrity/list",method:"get",params:e})}function a(e){return Object(n.a)({url:"/api/celebrity/create",method:"post",data:e})}function s(e){return Object(n.a)({url:"/api/celebrity/detail",method:"get",params:{id:e}})}function o(e){return Object(n.a)({url:"/api/celebrity//list/update",method:"post",data:e})}function r(e){return Object(n.a)({url:"/api/celebrity/celebrity_related_group_info",method:"get",params:e})}},hg0t:function(e,t,i){"use strict";i.r(t);var n=i("deRP"),l=i("Mz3J"),a=i("ZySA"),s={name:"StartList",components:{Pagination:l.a},directives:{waves:a.a},data:function(){return{list:null,total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{page:0,limit:10,filter:{value:"",key:"",is_online:"",gender:""}},BooleanTypeOptions:[{key:1,display_name:"是"},{key:0,display_name:"否"}],GenderTypeOptions:[{key:0,display_name:"男"},{key:1,display_name:"女"}],SearchTypeOptions:[{key:"id",display_name:"明星ID"},{key:"name",display_name:"明星名称"}]}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(n.b)(this.listQuery).then(function(t){e.list=t.data.data.data,e.total=t.data.data.total,e.listLoading=!1})},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.listQuery.limit=e,this.getList()},handleCurrentChange:function(e){this.listQuery.page=e,this.getList()},handleOfflineOrOnline:function(e){var t=this,i=this.multipleSelection.length,l="";this.del_list=this.del_list.concat(this.multipleSelection);for(var a=0;a<i;a++)this.multipleSelection[a].is_online="offline"===e?0:1,l+=this.multipleSelection[a].id+" ";Object(n.a)({type:e,ids:l}).then(function(e){t.multipleSelection=[],t.$message.success(e.data.data.message),setTimeout(function(){t.$router.go(0)},1300)})},handleFilter:function(){this.listQuery.page=1,this.getList()},handleCreate:function(){this.$router.push("/star/create")}}},o=(i("XPyc"),i("KHd+")),r=Object(o.a)(s,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{placeholder:"搜素"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter(t):null}},model:{value:e.listQuery.filter.value,callback:function(t){e.$set(e.listQuery.filter,"value",t)},expression:"listQuery.filter.value"}}),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"搜索字段",clearable:""},model:{value:e.listQuery.filter.key,callback:function(t){e.$set(e.listQuery.filter,"key",t)},expression:"listQuery.filter.key"}},e._l(e.SearchTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"性别",clearable:""},model:{value:e.listQuery.filter.gender,callback:function(t){e.$set(e.listQuery.filter,"gender",t)},expression:"listQuery.filter.gender"}},e._l(e.GenderTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"上线",clearable:""},model:{value:e.listQuery.filter.is_online,callback:function(t){e.$set(e.listQuery.filter,"is_online",t)},expression:"listQuery.filter.is_online"}},e._l(e.BooleanTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("搜索")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v("创建")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("offline")}}},[e._v("下线")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("online")}}},[e._v("上线")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"center"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"明星ID",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:"/star/edit/"+t.row.id}},[i("span",[e._v(e._s(t.row.id))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"明星名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",[e._v(e._s(0==t.row.gender?"男":"女"))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"城市"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.city.name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"小组数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:{path:"/group/list/",query:{star_id:t.row.id}}}},[i("span",[e._v(e._s(t.row.group_nums))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"是否在线"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",[e._v(e._s(1==t.row.is_online?"是":"否"))])]}}])})],1),e._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],staticStyle:{"margin-left":"250px"},attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.limit},on:{"update:page":function(t){e.$set(e.listQuery,"page",t)},"update:limit":function(t){e.$set(e.listQuery,"limit",t)},pagination:e.getList}})],1)},[],!1,null,"c865e982",null);r.options.__file="list.vue";t.default=r.exports},jUE0:function(e,t,i){},yyRt:function(e,t,i){}}]);
\ No newline at end of file
This diff is collapsed.
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4c57"],{JmGH:function(e,t,i){},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},deRP:function(e,t,i){"use strict";i.d(t,"b",function(){return n}),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 l=i("t3Un");function n(e){return Object(l.a)({url:"/api/celebrity/list",method:"get",params:e})}function a(e){return Object(l.a)({url:"/api/celebrity/create",method:"post",data:e})}function s(e){return Object(l.a)({url:"/api/celebrity/detail",method:"get",params:{id:e}})}function o(e){return Object(l.a)({url:"/api/celebrity//list/update",method:"post",data:e})}function r(e){return Object(l.a)({url:"/api/celebrity/celebrity_related_group_info",method:"get",params:e})}},hg0t:function(e,t,i){"use strict";i.r(t);var l=i("deRP"),n=i("Mz3J"),a=i("ZySA"),s={name:"StartList",components:{Pagination:n.a},directives:{waves:a.a},data:function(){return{list:null,total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{page:0,limit:10,filter:{value:"",key:"",is_online:"",gender:""}},BooleanTypeOptions:[{key:1,display_name:"是"},{key:0,display_name:"否"}],GenderTypeOptions:[{key:0,display_name:"男"},{key:1,display_name:"女"}],SearchTypeOptions:[{key:"id",display_name:"明星ID"},{key:"name",display_name:"明星名称"}]}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(l.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="";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)})},handleFilter:function(){this.listQuery.page=1,this.getList()},handleCreate:function(){this.$router.push("/star/create")}}},o=(i("w57D"),i("KHd+")),r=Object(o.a)(s,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{placeholder:"搜素"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter(t):null}},model:{value:e.listQuery.filter.value,callback:function(t){e.$set(e.listQuery.filter,"value",t)},expression:"listQuery.filter.value"}}),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"搜索字段",clearable:""},model:{value:e.listQuery.filter.key,callback:function(t){e.$set(e.listQuery.filter,"key",t)},expression:"listQuery.filter.key"}},e._l(e.SearchTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"性别",clearable:""},model:{value:e.listQuery.filter.gender,callback:function(t){e.$set(e.listQuery.filter,"gender",t)},expression:"listQuery.filter.gender"}},e._l(e.GenderTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"上线",clearable:""},model:{value:e.listQuery.filter.is_online,callback:function(t){e.$set(e.listQuery.filter,"is_online",t)},expression:"listQuery.filter.is_online"}},e._l(e.BooleanTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("搜索")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v("创建")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("offline")}}},[e._v("下线")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("online")}}},[e._v("上线")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"center"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"明星ID",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:"/star/edit/"+t.row.id}},[i("span",[e._v(e._s(t.row.id))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"明星名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",[e._v(e._s(0==t.row.gender?"男":"女"))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"城市"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.city.name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"小组数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:{path:"/group/list/",query:{star_id:t.row.id}}}},[i("span",[e._v(e._s(t.row.group_nums))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"是否在线"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",[e._v(e._s(1==t.row.is_online?"是":"否"))])]}}])})],1),e._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],staticStyle:{"margin-left":"250px"},attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.limit},on:{"update:page":function(t){e.$set(e.listQuery,"page",t)},"update:limit":function(t){e.$set(e.listQuery,"limit",t)},pagination:e.getList}})],1)},[],!1,null,"f111f402",null);r.options.__file="list.vue";t.default=r.exports},jUE0:function(e,t,i){},w57D:function(e,t,i){"use strict";var l=i("JmGH");i.n(l).a}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6504"],{"0o2y":function(t,e,a){"use strict";a.d(e,"c",function(){return r}),a.d(e,"b",function(){return s}),a.d(e,"a",function(){return n}),a.d(e,"d",function(){return i});var o=a("t3Un");function r(t){return Object(o.a)({url:"/api/tag/list",method:"get",params:t})}function s(t){return Object(o.a)({url:"/api/tag/list/update",method:"post",data:t})}function n(t){return Object(o.a)({url:"/api/tag/create",method:"post",data:t})}function i(t){return Object(o.a)({url:"/api/tag/detail",method:"get",params:{id:t}})}},"7qcn":function(t,e,a){},EBwg:function(t,e,a){"use strict";var o=a("P2sY"),r=a.n(o),s=a("EJiy"),n=a.n(s),i=a("m1cH"),l=a.n(i),c=a("Grqa"),u=a("uARZ"),p=a("0o2y"),m=a("gg54"),d=a("7Qib");function g(t,e){for(var a=[],o=0;o<t.length;o++)Object(d.c)(e,t[o].name)&&(a.push(t[o].id),Object(d.f)(e,t[o].name));return a.push.apply(a,l()(e)),a.join(",")}function f(t){for(var e=0;e<t.length;e++)""!=t[e]&&null!=t[e]&&void 0!=n()(t[e])||(t.splice(e,1),e-=1);return t}var h={status:"draft",name:"",description:"",up_tags:[],down_tags:[]},b={name:"TagDetail",components:{MDinput:c.a,Sticky:u.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this;return{postForm:r()({},h),loading:!1,TagListOptions:[],rules:{name:[{validator:function(e,a,o){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()},trigger:"blur"}]},tempRoute:{},temparray:{up_tags:[],down_tags:[]}}},computed:{contentShortLength:function(){return this.postForm.description.length}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=r()({},h);this.tempRoute=r()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(p.d)(t).then(function(t){for(var a=t.data.data.data,o=[],r=[],s=0;s<a.up_tags.length;s++)o.push(a.up_tags[s].name),e.temparray.up_tags.push(a.up_tags[s]);for(var n=0;n<a.down_tags.length;n++)r.push(a.down_tags[n].name),e.temparray.down_tags.push(a.down_tags[n]);a.down_tags=r,a.up_tags=o,e.postForm=a,console.log(e.postForm)}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,t.isEdit?(t.postForm.up_tags=g(t.temparray.up_tags,t.postForm.up_tags),t.postForm.down_tags=g(t.temparray.down_tags,t.postForm.down_tags)):(t.postForm.up_tags=t.postForm.up_tags.join(","),t.postForm.down_tags=t.postForm.down_tags.join(","));for(var a=!1,o=f(t.postForm.up_tags.split(",")),r=f(t.postForm.down_tags.split(",")),s=0;s<o.length;s++)if(Object(d.c)(r,o[s])){t.$message.error("上下级标签不能存相同标签"),t.postForm.up_tags=[],t.postForm.down_tags=[],a=!0;break}if(a)return!1;Object(p.a)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/tag/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},getRemoteTagList:function(t){var e=this;Object(m.e)(t).then(function(t){t.data.data.data&&(e.TagListOptions=t.data.data.data)})}}},_=(a("yJqR"),a("KHd+")),v=Object(_.a)(b,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"createPost-container"},[a("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar"}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:t.submitForm}},[t._v("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"name"}},[a("MDinput",{attrs:{maxlength:100,name:"name",required:""},model:{value:t.postForm.name,callback:function(e){t.$set(t.postForm,"name",e)},expression:"postForm.name"}},[t._v("\n 标签名称\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"postInfo-container"},[a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"标签ID:",prop:"position"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"300px"},attrs:{rows:1,type:"number",disabled:""},model:{value:t.postForm.id,callback:function(e){t.$set(t.postForm,"id",e)},expression:"postForm.id"}})],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"创建时间:",prop:"position"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"300px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.create_time,callback:function(e){t.$set(t.postForm,"create_time",e)},expression:"postForm.create_time"}})],1):t._e()],1)],1)],1)])],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"上级标签:"}},[a("el-select",{staticStyle:{width:"70%"},attrs:{"remote-method":t.getRemoteTagList,filterable:"",remote:"",multiple:"","value-key":"id",placeholder:"搜索标签"},model:{value:t.postForm.up_tags,callback:function(e){t.$set(t.postForm,"up_tags",e)},expression:"postForm.up_tags"}},t._l(t.TagListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t.name,value:t.id}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"下级标签:"}},[a("el-select",{staticStyle:{width:"70%"},attrs:{"remote-method":t.getRemoteTagList,multiple:"",filterable:"",remote:"","reserve-keyword":"",placeholder:"搜索标签",loading:t.loading,"value-key":"id"},model:{value:t.postForm.down_tags,callback:function(e){t.$set(t.postForm,"down_tags",e)},expression:"postForm.down_tags"}},t._l(t.TagListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t.name,value:t.id}})}))],1)],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"标签简介:",prop:"desc"}},[a("el-input",{staticClass:"article-textarea",attrs:{rows:1,type:"textarea",autosize:"",placeholder:"请输入内容"},model:{value:t.postForm.description,callback:function(e){t.$set(t.postForm,"description",e)},expression:"postForm.description"}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:t.contentShortLength,expression:"contentShortLength"}],staticClass:"word-counter"},[t._v(t._s(t.contentShortLength)+"字")])],1)],1)],1)],1)},[],!1,null,"61f14248",null);v.options.__file="TagDetail.vue";e.a=v.exports},"STa+":function(t,e,a){"use strict";a.r(e);var o={name:"EditTag",components:{TagDetail:a("EBwg").a}},r=a("KHd+"),s=Object(r.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("tag-detail",{attrs:{"is-edit":!1}})},[],!1,null,null,null);s.options.__file="create.vue";e.default=s.exports},gg54:function(t,e,a){"use strict";a.d(e,"g",function(){return r}),a.d(e,"c",function(){return s}),a.d(e,"e",function(){return n}),a.d(e,"d",function(){return i}),a.d(e,"b",function(){return l}),a.d(e,"a",function(){return c}),a.d(e,"f",function(){return u});var o=a("t3Un");function r(t){return Object(o.a)({url:"/api/search/user",method:"get",params:{name:t}})}function s(t){return Object(o.a)({url:"/api/search/group",method:"get",params:{name:t}})}function n(t){return Object(o.a)({url:"/api/search/tag",method:"get",params:{name:t}})}function i(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function l(t){return Object(o.a)({url:"/api/search/city",method:"get",params:{name:t}})}function c(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function u(t){return Object(o.a)({url:"/api/search/topic",method:"get",params:{name:t}})}},yJqR:function(t,e,a){"use strict";var o=a("7qcn");a.n(o).a}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-65042"],{"0o2y":function(t,e,a){"use strict";a.d(e,"c",function(){return s}),a.d(e,"b",function(){return r}),a.d(e,"a",function(){return n}),a.d(e,"d",function(){return i});var o=a("t3Un");function s(t){return Object(o.a)({url:"/api/tag/list",method:"get",params:t})}function r(t){return Object(o.a)({url:"/api/tag/list/update",method:"post",data:t})}function n(t){return Object(o.a)({url:"/api/tag/create",method:"post",data:t})}function i(t){return Object(o.a)({url:"/api/tag/detail",method:"get",params:{id:t}})}},"7qcn":function(t,e,a){},EBwg:function(t,e,a){"use strict";var o=a("P2sY"),s=a.n(o),r=a("EJiy"),n=a.n(r),i=a("m1cH"),l=a.n(i),c=a("Grqa"),u=a("uARZ"),p=a("0o2y"),m=a("gg54"),d=a("7Qib");function g(t,e){for(var a=[],o=0;o<t.length;o++)Object(d.c)(e,t[o].name)&&(a.push(t[o].id),Object(d.f)(e,t[o].name));return a.push.apply(a,l()(e)),a.join(",")}function f(t){for(var e=0;e<t.length;e++)""!=t[e]&&null!=t[e]&&void 0!=n()(t[e])||(t.splice(e,1),e-=1);return t}var h={status:"draft",name:"",description:"",up_tags:[],down_tags:[]},b={name:"TagDetail",components:{MDinput:c.a,Sticky:u.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this;return{postForm:s()({},h),loading:!1,TagListOptions:[],rules:{name:[{validator:function(e,a,o){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()},trigger:"blur"}]},tempRoute:{},temparray:{up_tags:[],down_tags:[]}}},computed:{contentShortLength:function(){return this.postForm.description.length}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=s()({},h);this.tempRoute=s()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(p.d)(t).then(function(t){for(var a=t.data.data.data,o=[],s=[],r=0;r<a.up_tags.length;r++)o.push(a.up_tags[r].name),e.temparray.up_tags.push(a.up_tags[r]);for(var n=0;n<a.down_tags.length;n++)s.push(a.down_tags[n].name),e.temparray.down_tags.push(a.down_tags[n]);a.down_tags=s,a.up_tags=o,e.postForm=a,console.log(e.postForm)}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,t.isEdit?(t.postForm.up_tags=g(t.temparray.up_tags,t.postForm.up_tags),t.postForm.down_tags=g(t.temparray.down_tags,t.postForm.down_tags)):(t.postForm.up_tags=t.postForm.up_tags.join(","),t.postForm.down_tags=t.postForm.down_tags.join(","));for(var a=!1,o=f(t.postForm.up_tags.split(",")),s=f(t.postForm.down_tags.split(",")),r=0;r<o.length;r++)if(Object(d.c)(s,o[r])){t.$message.error("上下级标签不能存相同标签"),t.postForm.up_tags=[],t.postForm.down_tags=[],a=!0;break}if(a)return!1;Object(p.a)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/tag/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},getRemoteTagList:function(t){var e=this;Object(m.e)(t).then(function(t){t.data.data.data&&(e.TagListOptions=t.data.data.data)})}}},_=(a("yJqR"),a("KHd+")),v=Object(_.a)(b,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"createPost-container"},[a("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar"}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:t.submitForm}},[t._v("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"name"}},[a("MDinput",{attrs:{maxlength:100,name:"name",required:""},model:{value:t.postForm.name,callback:function(e){t.$set(t.postForm,"name",e)},expression:"postForm.name"}},[t._v("\n 标签名称\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"postInfo-container"},[a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"标签ID:",prop:"position"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"300px"},attrs:{rows:1,type:"number",disabled:""},model:{value:t.postForm.id,callback:function(e){t.$set(t.postForm,"id",e)},expression:"postForm.id"}})],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"创建时间:",prop:"position"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"300px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.create_time,callback:function(e){t.$set(t.postForm,"create_time",e)},expression:"postForm.create_time"}})],1):t._e()],1)],1)],1)])],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"上级标签:"}},[a("el-select",{staticStyle:{width:"70%"},attrs:{"remote-method":t.getRemoteTagList,filterable:"",remote:"",multiple:"","value-key":"id",placeholder:"搜索标签"},model:{value:t.postForm.up_tags,callback:function(e){t.$set(t.postForm,"up_tags",e)},expression:"postForm.up_tags"}},t._l(t.TagListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t.name,value:t.id}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"下级标签:"}},[a("el-select",{staticStyle:{width:"70%"},attrs:{"remote-method":t.getRemoteTagList,multiple:"",filterable:"",remote:"","reserve-keyword":"",placeholder:"搜索标签",loading:t.loading,"value-key":"id"},model:{value:t.postForm.down_tags,callback:function(e){t.$set(t.postForm,"down_tags",e)},expression:"postForm.down_tags"}},t._l(t.TagListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t.name,value:t.id}})}))],1)],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"标签简介:",prop:"desc"}},[a("el-input",{staticClass:"article-textarea",attrs:{rows:1,type:"textarea",autosize:"",placeholder:"请输入内容"},model:{value:t.postForm.description,callback:function(e){t.$set(t.postForm,"description",e)},expression:"postForm.description"}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:t.contentShortLength,expression:"contentShortLength"}],staticClass:"word-counter"},[t._v(t._s(t.contentShortLength)+"字")])],1)],1)],1)],1)},[],!1,null,"61f14248",null);v.options.__file="TagDetail.vue";e.a=v.exports},S2fK:function(t,e,a){"use strict";a.r(e);var o={name:"EditTag",components:{TagDetail:a("EBwg").a}},s=a("KHd+"),r=Object(s.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("tag-detail",{attrs:{"is-edit":!0}})},[],!1,null,null,null);r.options.__file="edit.vue";e.default=r.exports},gg54:function(t,e,a){"use strict";a.d(e,"g",function(){return s}),a.d(e,"c",function(){return r}),a.d(e,"e",function(){return n}),a.d(e,"d",function(){return i}),a.d(e,"b",function(){return l}),a.d(e,"a",function(){return c}),a.d(e,"f",function(){return u});var o=a("t3Un");function s(t){return Object(o.a)({url:"/api/search/user",method:"get",params:{name:t}})}function r(t){return Object(o.a)({url:"/api/search/group",method:"get",params:{name:t}})}function n(t){return Object(o.a)({url:"/api/search/tag",method:"get",params:{name:t}})}function i(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function l(t){return Object(o.a)({url:"/api/search/city",method:"get",params:{name:t}})}function c(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function u(t){return Object(o.a)({url:"/api/search/topic",method:"get",params:{name:t}})}},yJqR:function(t,e,a){"use strict";var o=a("7qcn");a.n(o).a}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-b4ce"],{"0o2y":function(t,e,a){"use strict";a.d(e,"c",function(){return s}),a.d(e,"b",function(){return r}),a.d(e,"a",function(){return n}),a.d(e,"d",function(){return i});var o=a("t3Un");function s(t){return Object(o.a)({url:"/api/tag/list",method:"get",params:t})}function r(t){return Object(o.a)({url:"/api/tag/list/update",method:"post",data:t})}function n(t){return Object(o.a)({url:"/api/tag/create",method:"post",data:t})}function i(t){return Object(o.a)({url:"/api/tag/detail",method:"get",params:{id:t}})}},"8heF":function(t,e,a){"use strict";var o=a("h5oc");a.n(o).a},EBwg:function(t,e,a){"use strict";var o=a("P2sY"),s=a.n(o),r=a("EJiy"),n=a.n(r),i=a("m1cH"),l=a.n(i),c=a("Grqa"),u=a("uARZ"),p=a("0o2y"),m=a("gg54"),d=a("7Qib");function g(t,e){for(var a=[],o=0;o<t.length;o++)Object(d.c)(e,t[o].name)&&(a.push(t[o].id),Object(d.f)(e,t[o].name));return a.push.apply(a,l()(e)),a.join(",")}function f(t){for(var e=0;e<t.length;e++)""!=t[e]&&null!=t[e]&&void 0!=n()(t[e])||(t.splice(e,1),e-=1);return t}var h={status:"draft",name:"",description:"",up_tags:[],down_tags:[]},b={name:"TagDetail",components:{MDinput:c.a,Sticky:u.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this;return{postForm:s()({},h),loading:!1,TagListOptions:[],rules:{name:[{validator:function(e,a,o){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()},trigger:"blur"}]},tempRoute:{},temparray:{up_tags:[],down_tags:[]}}},computed:{contentShortLength:function(){return this.postForm.description.length}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=s()({},h);this.tempRoute=s()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(p.d)(t).then(function(t){for(var a=t.data.data.data,o=[],s=[],r=0;r<a.up_tags.length;r++)o.push(a.up_tags[r].name),e.temparray.up_tags.push(a.up_tags[r]);console.log(a.down_tags.length);for(var n=0;n<a.down_tags.length;n++)s.push(a.down_tags[n].name),e.temparray.down_tags.push(a.down_tags[n]);a.down_tags=s,a.up_tags=o,e.postForm=a,console.log(e.postForm)}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,t.isEdit?(t.postForm.up_tags=g(t.temparray.up_tags,t.postForm.up_tags),t.postForm.down_tags=g(t.temparray.down_tags,t.postForm.down_tags)):(t.postForm.up_tags=t.postForm.up_tags.join(","),t.postForm.down_tags=t.postForm.down_tags.join(","));for(var a=!1,o=f(t.postForm.up_tags.split(",")),s=f(t.postForm.down_tags.split(",")),r=0;r<o.length;r++)if(Object(d.c)(s,o[r])){t.$message.error("上下级标签不能存相同标签"),t.postForm.up_tags=[],t.postForm.down_tags=[],a=!0;break}if(a)return!1;Object(p.a)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/tag/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},getRemoteTagList:function(t){var e=this;Object(m.e)(t).then(function(t){t.data.data.data&&(e.TagListOptions=t.data.data.data)})}}},_=(a("8heF"),a("KHd+")),v=Object(_.a)(b,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"createPost-container"},[a("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar"}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:t.submitForm}},[t._v("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"name"}},[a("MDinput",{attrs:{maxlength:100,name:"name",required:""},model:{value:t.postForm.name,callback:function(e){t.$set(t.postForm,"name",e)},expression:"postForm.name"}},[t._v("\n 标签名称\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"postInfo-container"},[a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"标签ID:",prop:"position"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"300px"},attrs:{rows:1,type:"number",disabled:""},model:{value:t.postForm.id,callback:function(e){t.$set(t.postForm,"id",e)},expression:"postForm.id"}})],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"创建时间:",prop:"position"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"300px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.create_time,callback:function(e){t.$set(t.postForm,"create_time",e)},expression:"postForm.create_time"}})],1):t._e()],1)],1)],1)])],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"上级标签:"}},[a("el-select",{staticStyle:{width:"70%"},attrs:{"remote-method":t.getRemoteTagList,filterable:"",remote:"",multiple:"","value-key":"id",placeholder:"搜索标签"},model:{value:t.postForm.up_tags,callback:function(e){t.$set(t.postForm,"up_tags",e)},expression:"postForm.up_tags"}},t._l(t.TagListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t.name,value:t.id}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"下级标签:"}},[a("el-select",{staticStyle:{width:"70%"},attrs:{"remote-method":t.getRemoteTagList,multiple:"",filterable:"",remote:"","reserve-keyword":"",placeholder:"搜索标签",loading:t.loading,"value-key":"id"},model:{value:t.postForm.down_tags,callback:function(e){t.$set(t.postForm,"down_tags",e)},expression:"postForm.down_tags"}},t._l(t.TagListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t.name,value:t.id}})}))],1)],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"标签简介:",prop:"desc"}},[a("el-input",{staticClass:"article-textarea",attrs:{rows:1,type:"textarea",autosize:"",placeholder:"请输入内容"},model:{value:t.postForm.description,callback:function(e){t.$set(t.postForm,"description",e)},expression:"postForm.description"}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:t.contentShortLength,expression:"contentShortLength"}],staticClass:"word-counter"},[t._v(t._s(t.contentShortLength)+"字")])],1)],1)],1)],1)},[],!1,null,"7b332fc6",null);v.options.__file="TagDetail.vue";e.a=v.exports},"STa+":function(t,e,a){"use strict";a.r(e);var o={name:"EditTag",components:{TagDetail:a("EBwg").a}},s=a("KHd+"),r=Object(s.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("tag-detail",{attrs:{"is-edit":!1}})},[],!1,null,null,null);r.options.__file="create.vue";e.default=r.exports},gg54:function(t,e,a){"use strict";a.d(e,"g",function(){return s}),a.d(e,"c",function(){return r}),a.d(e,"e",function(){return n}),a.d(e,"d",function(){return i}),a.d(e,"b",function(){return l}),a.d(e,"a",function(){return c}),a.d(e,"f",function(){return u});var o=a("t3Un");function s(t){return Object(o.a)({url:"/api/search/user",method:"get",params:{name:t}})}function r(t){return Object(o.a)({url:"/api/search/group",method:"get",params:{name:t}})}function n(t){return Object(o.a)({url:"/api/search/tag",method:"get",params:{name:t}})}function i(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function l(t){return Object(o.a)({url:"/api/search/city",method:"get",params:{name:t}})}function c(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function u(t){return Object(o.a)({url:"/api/search/topic",method:"get",params:{name:t}})}},h5oc:function(t,e,a){}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-b4cf"],{"0o2y":function(t,e,a){"use strict";a.d(e,"c",function(){return s}),a.d(e,"b",function(){return r}),a.d(e,"a",function(){return n}),a.d(e,"d",function(){return i});var o=a("t3Un");function s(t){return Object(o.a)({url:"/api/tag/list",method:"get",params:t})}function r(t){return Object(o.a)({url:"/api/tag/list/update",method:"post",data:t})}function n(t){return Object(o.a)({url:"/api/tag/create",method:"post",data:t})}function i(t){return Object(o.a)({url:"/api/tag/detail",method:"get",params:{id:t}})}},"8heF":function(t,e,a){"use strict";var o=a("h5oc");a.n(o).a},EBwg:function(t,e,a){"use strict";var o=a("P2sY"),s=a.n(o),r=a("EJiy"),n=a.n(r),i=a("m1cH"),l=a.n(i),c=a("Grqa"),u=a("uARZ"),p=a("0o2y"),m=a("gg54"),d=a("7Qib");function g(t,e){for(var a=[],o=0;o<t.length;o++)Object(d.c)(e,t[o].name)&&(a.push(t[o].id),Object(d.f)(e,t[o].name));return a.push.apply(a,l()(e)),a.join(",")}function f(t){for(var e=0;e<t.length;e++)""!=t[e]&&null!=t[e]&&void 0!=n()(t[e])||(t.splice(e,1),e-=1);return t}var h={status:"draft",name:"",description:"",up_tags:[],down_tags:[]},b={name:"TagDetail",components:{MDinput:c.a,Sticky:u.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this;return{postForm:s()({},h),loading:!1,TagListOptions:[],rules:{name:[{validator:function(e,a,o){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()},trigger:"blur"}]},tempRoute:{},temparray:{up_tags:[],down_tags:[]}}},computed:{contentShortLength:function(){return this.postForm.description.length}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=s()({},h);this.tempRoute=s()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(p.d)(t).then(function(t){for(var a=t.data.data.data,o=[],s=[],r=0;r<a.up_tags.length;r++)o.push(a.up_tags[r].name),e.temparray.up_tags.push(a.up_tags[r]);console.log(a.down_tags.length);for(var n=0;n<a.down_tags.length;n++)s.push(a.down_tags[n].name),e.temparray.down_tags.push(a.down_tags[n]);a.down_tags=s,a.up_tags=o,e.postForm=a,console.log(e.postForm)}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,t.isEdit?(t.postForm.up_tags=g(t.temparray.up_tags,t.postForm.up_tags),t.postForm.down_tags=g(t.temparray.down_tags,t.postForm.down_tags)):(t.postForm.up_tags=t.postForm.up_tags.join(","),t.postForm.down_tags=t.postForm.down_tags.join(","));for(var a=!1,o=f(t.postForm.up_tags.split(",")),s=f(t.postForm.down_tags.split(",")),r=0;r<o.length;r++)if(Object(d.c)(s,o[r])){t.$message.error("上下级标签不能存相同标签"),t.postForm.up_tags=[],t.postForm.down_tags=[],a=!0;break}if(a)return!1;Object(p.a)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/tag/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},getRemoteTagList:function(t){var e=this;Object(m.e)(t).then(function(t){t.data.data.data&&(e.TagListOptions=t.data.data.data)})}}},_=(a("8heF"),a("KHd+")),v=Object(_.a)(b,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"createPost-container"},[a("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar"}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:t.submitForm}},[t._v("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"name"}},[a("MDinput",{attrs:{maxlength:100,name:"name",required:""},model:{value:t.postForm.name,callback:function(e){t.$set(t.postForm,"name",e)},expression:"postForm.name"}},[t._v("\n 标签名称\n ")])],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"postInfo-container"},[a("el-row",[a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"标签ID:",prop:"position"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"300px"},attrs:{rows:1,type:"number",disabled:""},model:{value:t.postForm.id,callback:function(e){t.$set(t.postForm,"id",e)},expression:"postForm.id"}})],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:12}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"创建时间:",prop:"position"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"300px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.create_time,callback:function(e){t.$set(t.postForm,"create_time",e)},expression:"postForm.create_time"}})],1):t._e()],1)],1)],1)])],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"上级标签:"}},[a("el-select",{staticStyle:{width:"70%"},attrs:{"remote-method":t.getRemoteTagList,filterable:"",remote:"",multiple:"","value-key":"id",placeholder:"搜索标签"},model:{value:t.postForm.up_tags,callback:function(e){t.$set(t.postForm,"up_tags",e)},expression:"postForm.up_tags"}},t._l(t.TagListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t.name,value:t.id}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"75px",label:"下级标签:"}},[a("el-select",{staticStyle:{width:"70%"},attrs:{"remote-method":t.getRemoteTagList,multiple:"",filterable:"",remote:"","reserve-keyword":"",placeholder:"搜索标签",loading:t.loading,"value-key":"id"},model:{value:t.postForm.down_tags,callback:function(e){t.$set(t.postForm,"down_tags",e)},expression:"postForm.down_tags"}},t._l(t.TagListOptions,function(t,e){return a("el-option",{key:t+e,attrs:{label:t.name,value:t.id}})}))],1)],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"标签简介:",prop:"desc"}},[a("el-input",{staticClass:"article-textarea",attrs:{rows:1,type:"textarea",autosize:"",placeholder:"请输入内容"},model:{value:t.postForm.description,callback:function(e){t.$set(t.postForm,"description",e)},expression:"postForm.description"}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:t.contentShortLength,expression:"contentShortLength"}],staticClass:"word-counter"},[t._v(t._s(t.contentShortLength)+"字")])],1)],1)],1)],1)},[],!1,null,"7b332fc6",null);v.options.__file="TagDetail.vue";e.a=v.exports},S2fK:function(t,e,a){"use strict";a.r(e);var o={name:"EditTag",components:{TagDetail:a("EBwg").a}},s=a("KHd+"),r=Object(s.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("tag-detail",{attrs:{"is-edit":!0}})},[],!1,null,null,null);r.options.__file="edit.vue";e.default=r.exports},gg54:function(t,e,a){"use strict";a.d(e,"g",function(){return s}),a.d(e,"c",function(){return r}),a.d(e,"e",function(){return n}),a.d(e,"d",function(){return i}),a.d(e,"b",function(){return l}),a.d(e,"a",function(){return c}),a.d(e,"f",function(){return u});var o=a("t3Un");function s(t){return Object(o.a)({url:"/api/search/user",method:"get",params:{name:t}})}function r(t){return Object(o.a)({url:"/api/search/group",method:"get",params:{name:t}})}function n(t){return Object(o.a)({url:"/api/search/tag",method:"get",params:{name:t}})}function i(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function l(t){return Object(o.a)({url:"/api/search/city",method:"get",params:{name:t}})}function c(t){return Object(o.a)({url:"/api/search/celebrity",method:"get",params:{name:t}})}function u(t){return Object(o.a)({url:"/api/search/topic",method:"get",params:{name:t}})}},h5oc:function(t,e,a){}}]);
\ No newline at end of file
This diff is collapsed.
......@@ -2,7 +2,7 @@ var api = require('./api')
//
// const target = 'http://doctor.test.env'
const target = 'http://172.30.8.231:8000'
// const target = 'http://192.168.1.6:8000'
// const target = 'http://192.168.1.9:8000'
// 可以修改请求内容
const onProxyReq = proxyReq => {}
......
......@@ -62,8 +62,8 @@
<el-col :span="8">
<el-form-item style="margin-bottom: 20px;" label-width="75px" label="下线小组:">
<el-radio-group v-model="postForm.is_online">
<el-radio :label="1"></el-radio>
<el-radio :label="0"></el-radio>
<el-radio :label="0"></el-radio>
<el-radio :label="1"></el-radio>
</el-radio-group>
</el-form-item>
</el-col>
......@@ -99,7 +99,7 @@
</el-card>
</el-row>
<el-row :gutter="20" style="margin-top:50px;">
<el-row :gutter="20" style="margin-top:50px;" >
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>组员相关</span>
......@@ -203,7 +203,7 @@
star: [],
icon: '',
is_online: 0,
is_recommend: 1,
is_recommend: 0,
user_ids: [],
}
......@@ -380,11 +380,16 @@
}
GroupUserDetail(this.temp_user_ids).then(response => {
if (!response.data.data) return
if (!response.data.data[0].user_id){
this.$message.error('这条数据错误, 请换条数据')
return
}
this.tableData.push(...response.data.data)
this.total = this.tableData.length
this.user_ids.push(this.temp_user_ids)
this.temp_user_ids = ''
})
this.user_ids.push(this.temp_user_ids)
this.temp_user_ids = ''
},
delUser() {
let origin_user_ids = [];
......
......@@ -143,7 +143,9 @@ export default {
OffLineOrOnLine({type:val, ids:str}).then(response => {
this.multipleSelection = [];
this.$message.success(response.data.data.message);
setTimeout(() => {
this.$router.go(0)
}, 1300)
})
},
handleFilter() {
......
......@@ -181,7 +181,6 @@
up_temp.push(rep.up_tags[i]['name']);
this.temparray['up_tags'].push(rep.up_tags[i])
}
console.log(rep.down_tags.length)
for (let i = 0; i < rep.down_tags.length; i++) {
down_temp.push(rep.down_tags[i]['name']);
this.temparray['down_tags'].push(rep.down_tags[i])
......
......@@ -62,6 +62,8 @@
<el-option v-for="(item,index) in starListOptions" :key="item+index" :label="item.name"
:value="item.id"/>
</el-select>
</el-form-item>
</el-col>
......@@ -196,7 +198,7 @@
</el-table-column>
<el-table-column align="center" label="评论用户">
<template slot-scope="scope">
<span>{{ scope.row.reply_user.id }}</span>
<span>{{ scope.row.reply_user.name }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="被评论用户">
......@@ -281,6 +283,7 @@
import {postVideo} from '@/api/upload'
import {userSearch, groupSearch, starSearch, tagSearch} from '@/api/remoteSearch'
import {VIDEO_PREFIX} from '@/components/Upload/utils/default'
import { isInArray, removeByvale } from "@/utils";
function Assembledata(target, source) {
var region_data = []
......@@ -291,7 +294,8 @@
}
}
region_data.push(...source)
return region_data.join(',')
return JSON.stringify(region_data)
}
const VIDEO_MAX_SIZE = 100 * 1024 * 1024
......@@ -364,7 +368,7 @@
return date.getTime() <= Date.now();
}
},
response_tags: [],
temp_data: {
star_id: '',
star_name: '',
......@@ -444,6 +448,9 @@
const id = this.$route.params && this.$route.params.id
this.fetchData(id)
this.getList()
getToken().then(response => {
this.video_token = response.data.data.token;
})
} else {
this.postForm = Object.assign({}, defaultForm)
getToken().then(response => {
......@@ -461,15 +468,15 @@
let user = response.data.data.data.user
let tags = response.data.data.data.tags
let temp_tag = []
this.postForm = response.data.data.data
for (let i = 0; i < tags.length; i++) {
temp_tag.push(tags[i].name); // 把每个标签的名称压入
this.temp_data.tag_ids.push(tags[i].id) // 每个标签的ID 压入暂存
this.temp_data.tag_ids.push(tags[i]) // 每个标签的ID 压入暂存
}
this.postForm.tag_ids = temp_tag;
this.edit.hospital_pics = response.data.data.data.topic_images
this.edit.video_url = response.data.data.data.video_url
......@@ -480,9 +487,10 @@
// 回填小组数据
this.temp_data.group_id = group.id
this.postForm.group_name = this.temp_data.group_name = group.name
console.log(group.name)
this.temp_data.user_id = user.id
this.postForm.user_name = this.temp_data.user_name = user.name
this.postForm.is_puppet = user.is_puppet
}).catch(err => {
......@@ -496,20 +504,20 @@
if (this.isEdit) {
this.postForm.tag_ids = Assembledata(this.temp_data.tag_ids, this.postForm.tag_ids)
} else {
this.postForm.tag_ids = JSON.stringify(this.postForm.tag_ids)
}
if (this.postForm.user_name === this.temp.user_name){
this.postForm.user_name = this.temp.user_id;
if (this.postForm.user_name == this.temp_data.user_name){
this.postForm.user_name = this.temp_data.user_id;
}
if (this.postForm.star_name === this.temp.star_name){
if (this.postForm.star_name === this.temp_data.star_name){
this.postForm.star_name = this.temp.star_id;
}
if (this.postForm.group_name === this.temp.group_name){
this.postForm.group_name = this.temp.group_id;
if (this.postForm.group_name === this.temp_data.group_name){
this.postForm.group_name = this.temp_data.group_id;
}
// 序列化图片
this.postForm.topic_images = JSON.stringify(this.edit.hospital_pics);
this.postForm.video_url = this.edit.video_url;
......@@ -525,7 +533,7 @@
duration: 2000
})
setTimeout(() => {
this.$router.push('/group/list')
this.$router.go(0)
}, 1000)
}).catch(err => {
......
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