13b05329079af78db9ff.js 36 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[25],{420:function(t,e,l){},471:function(t,e,l){"use strict";var o=l(420);l.n(o).a},523:function(t,e,l){"use strict";l.r(e);l(15),l(30);var o=l(3),n=(l(187),l(45)),r={components:{AppMain:n.a,Navbar:n.b,Settings:n.e,Sidebar:n.f,TagsView:n.g,SelectFilterable:n.c,SelectLongRangeSearch:n.SelectLongRangeSearch},data:function(){return{edit_id:"",contentTagManege:!1,operateTagManege:!1,contentTagData:{value:"",options:[]},operateTagOptions:{value:"",options:[{label:"置顶",value:"is_top"},{label:"进站必看",value:"is_must_see"},{label:"热门",value:"is_hot"},{label:"优质",value:"is_good"},{label:"最新",value:"is_new"},{label:"广告",value:"is_ad"}]},operateTags:[],labelTab:"",title:"",labelOptions:[{label:"全部",value:""},{label:"置顶",value:"is_top"},{label:"进站必看",value:"is_must_see"},{label:"热门",value:"is_hot"},{label:"优质",value:"is_good"},{label:"最新",value:"is_new"},{label:"广告",value:"is_ad"}],is_show:"",showOptions:[{label:"全部",value:""},{label:"显示中",value:1},{label:"已下架",value:0}],page:1,size:20,tab:"topic",total:1,ads:[],topics:[],videos:[],kols:[],addCurrentLabel:"",form:{title:"",url:"",type:"1",tags:"",status:"1",position:"1"},kolform:{portrait:"",name:"",introduction:"",uid:"",is_signing:!0,show_repost:!0},options:[{value:"wechat",label:"wechat"},{value:"juejin",label:"juejin"},{value:"zhihu",label:"zhihu"},{value:"csdn",label:"csdn"}],currentLabel:{is_ad:0,is_new:0,is_good:0,is_hot:0,is_must_see:0,is_top:0},radio:"1",currentId:0,dialogFormVisible:!1,formLabelWidth:"120px",labelEditFormVisible:!1,kolFormVisible:!1,isEdit:!1,channelData:[{channel_id:"",url:"",code:"wechat"}],authorName:"",createScene:"",createSceneList:[{label:"全部",value:""},{label:"后台新增",value:"admin"},{label:"自行绑定",value:"self"}],signing:"",signingList:[{label:"全部",value:""},{label:"已签约",value:"1"},{label:"未签约",value:"0"}]}},mounted:function(){this.getList()},methods:{goTopic:function(t){window.open(this.$store.state.domainConfig.jishuinUrl+"/p/"+t.hash_id)},goVideo:function(t){window.open(this.$store.state.domainConfig.jishuinUrl+"/video/"+t.video_id)},goRooterUser:function(t){window.open(this.$store.state.domainConfig.siteUrl+"/rooter/user/"+t.user_id)},addLabel:function(){var t=this;if(this.addCurrentLabel)this.$post("/api/admin/jishuquan/add_label",{id:this.currentId,type:this.addCurrentLabel}).then((function(e){1===e.status&&(t.currentLabel[t.addCurrentLabel]=1,t.$message({type:"success",message:"添加成功!"}))}))},handleClose:function(t){var e=this;this.$confirm("此操作将永久删除该标签, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$post("/api/admin/jishuquan/remove_label",{id:e.currentId,type:t}).then((function(l){1===l.status&&(e.currentLabel[t]=0,e.$message({type:"success",message:"删除成功!"}))}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},editLabel:function(t){this.currentLabel={is_ad:0,is_new:0,is_good:0,is_hot:0,is_must_see:0,is_top:0},this.currentId=t.id,1===Number(t.is_ad)&&(this.currentLabel.is_ad=1),1===Number(t.is_new)&&(this.currentLabel.is_new=1),1===Number(t.is_hot)&&(this.currentLabel.is_hot=1),1===Number(t.is_top)&&(this.currentLabel.is_top=1),1===Number(t.is_good)&&(this.currentLabel.is_good=1),1===Number(t.is_must_see)&&(this.currentLabel.is_must_see=1),this.labelEditFormVisible=!0},delTopic:function(t){var e=this;this.$confirm("此操作将永久删除该文章, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$post("/api/admin/jishuquan/delete_topic",{id:t}).then((function(t){1==t.status&&(e.$message({type:"success",message:"删除成功!"}),e.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},stopShow:function(t,e){var l=this,o="下架";0==e&&(o="上架"),this.$confirm("此操作将"+o+"该文章, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){l.$post("/api/admin/jishuquan/stop_show",{id:t,is_show:e}).then((function(t){1==t.status&&(l.$message({type:"success",message:o+"成功!"}),l.getList())}))})).catch((function(){l.$message({type:"info",message:"已取消"+o})}))},approveVideo:function(t){var e=this;this.$confirm("更改视频状态","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$post("/api/admin/jishuquan/audit_video",{id:t}).then((function(t){1==t.status&&(e.$message({type:"success",message:"操作成功!"}),e.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消"})}))},deleteVideo:function(t){var e=this;this.$confirm("此操作将永久删除该视频, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$post("/api/admin/jishuquan/delete_video",{id:t}).then((function(t){1==t.status&&(e.$message({type:"success",message:"删除成功!"}),e.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},showAdEdit:function(t){null!=t&&(this.form.id=t.id,this.form.title=t.title,this.form.url=t.url,this.form.type=t.type,this.form.tags=t.tags,this.form.status=t.status,this.form.position=t.position,this.form.uid=t.uid),this.dialogFormVisible=!0},deleteAd:function(t){var e=this;this.$confirm("此操作将永久删除该活动, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$post("/api/admin/jishuquan/delete_ad",{id:t}).then((function(t){1==t.status&&(e.$message({type:"success",message:"删除成功!"}),e.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},editAd:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var form;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(form=t.form).id){e.next=8;break}return e.next=4,t.$post("/api/admin/jishuquan/update_ad",form);case 4:1==e.sent.status&&t.$message({type:"success",message:"修改成功"}),e.next=10;break;case 8:1==t.$post("/api/admin/jishuquan/create_ad",form).status&&(t.$message.success("创建成功"),t.form={title:"",url:"",type:"1",tags:"",status:"1",position:"1"});case 10:t.getList(),t.dialogFormVisible=!1;case 12:case"end":return e.stop()}}),e)})))()},handleCurrentChange:function(t){this.page=t,this.getList()},getList:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var l,o,data,n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l=t.page,o=t.size,data={page:l,size:o},e.t0=t.tab,e.next="ad"===e.t0?6:"video"===e.t0?12:"topic"===e.t0?18:"kol"===e.t0?33:39;break;case 6:return e.next=8,t.$post("/api/admin/jishuquan/get_ads",data);case 8:return n=e.sent,t.ads=n.data.ads,t.total=n.data.total,e.abrupt("break",39);case 12:return e.next=14,t.$post("/api/admin/jishuquan/get_videos",data);case 14:return n=e.sent,t.videos=n.data.videos,t.total=n.data.total,e.abrupt("break",39);case 18:return t.labelTab&&(data.type=t.labelTab),data.is_show=t.is_show,t.title&&(data.title=t.title),e.next=23,t.$post("/api/admin/jishuquan/get_topics",data);case 23:if(n=e.sent,t.topics=n.data.topics,t.total=n.data.total,0!=t.contentTagData.options.length){e.next=32;break}return e.next=29,t.$post("/api/admin/jishuquan/listTags",{});case 29:if(n=e.sent,t.contentTagData.options=[],1==n.status){for(i in r=new Array,n.data)r.push({value:n.data[i].id,label:n.data[i].name});t.contentTagData.options=r}case 32:return e.abrupt("break",39);case 33:return e.next=35,t.$post("/api/admin/author/get_aus",data);case 35:return n=e.sent,t.kols=n.data.aus,t.total=n.data.total,e.abrupt("break",39);case 39:case"end":return e.stop()}}),e)})))()},contact:function(t){var e=this;return Object(o.a)(regeneratorRuntime.mark((function l(){var data,o;return regeneratorRuntime.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return data={id:t},l.next=3,e.$post("/api/admin/jishuquan/get_ads",data);case 3:o=l.sent,e.$message({message:o.info,type:"success"});case 5:case"end":return l.stop()}}),l)})))()},deleteChannleRow:function(t){this.channelData.splice(t,1)},addChannleRow:function(){this.channelData.push({channel_id:"",url:"",code:"wechat"})},onEditAu:function(t){var e=this;this.isEdit=!0;this.$post("/api/admin/author/get_row",{id:t}).then((function(t){1==t.status&&(e.kolform=t.data,e.kolform.is_signing=1==t.data.is_signing,e.kolform.show_repost=1==t.data.show_repost,e.channelData=t.data.channel.length>=1?t.data.channel:[{channel_id:"",url:"",code:"wechat"}],e.kolFormVisible=!0)})).catch((function(t){e.$message({type:"error",message:"网络连接错误"})}))},onAddAu:function(t){this.clearA(),this.kolFormVisible=!0},editAu:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var form;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((form=t.kolform).is_signing=form.is_signing?1:0,form.channelData=JSON.stringify(t.channelData),form.show_repost=form.show_repost?1:0,!form.id){e.next=8;break}t.$post("/api/admin/author/update_au",form).then((function(e){1==e.status&&(t.$message({type:"success",message:"修改成功!"}),t.clearA(),t.kolFormVisible=!1)})).catch((function(e){t.$message({type:"error",message:"修改失败"})})),e.next=13;break;case 8:return"1"==t.radio&&(form.uid=""),form.create_scene="admin",e.next=12,t.$post("/api/admin/author/create_au",form).then((function(e){1==e.status&&(t.$message({type:"success",message:"添加成功!"}),t.clearA(),t.kolFormVisible=!1)})).catch((function(e){t.$message({type:"error",message:"添加失败"})}));case 12:e.sent;case 13:case"end":return e.stop()}}),e)})))()},clearA:function(){this.isEdit=!1,this.kolform={portrait:"./",name:"",introduction:"",uid:"",is_signing:!0},this.channelData=[{channel_id:"",url:"",code:"wechat"}],this.getList()},search:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var form;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return form={authorName:t.authorName,createScene:t.createScene,signing:t.signing,page:t.page,size:t.size},e.next=3,t.$post("/api/admin/author/search_aus",form).then((function(e){1==e.status&&(t.kols=e.data.aus,t.total=e.data.total,t.$message({type:"success",message:"查询成功!"}))})).catch((function(e){t.$message({type:"error",message:"查询失败"})}));case 3:e.sent;case 4:case"end":return e.stop()}}),e)})))()},editContentTag:function(t){this.edit_id=t.id,this.contentTagManege=!0,this.contentTagData.value=t.tags&&t.tags.map((function(t){return t.tag_id}))||[]},editOperateTag:function(t){this.edit_id=t.id;var e=new Array;1==t.is_top&&e.push("is_top"),1==t.is_must_see&&e.push("is_must_see"),1==t.is_hot&&e.push("is_hot"),1==t.is_good&&e.push("is_good"),1==t.is_new&&e.push("is_new"),1==t.is_ad&&e.push("is_ad"),this.operateTagOptions.value=e,this.operateTagManege=!0},addContentTag:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var l,o,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=t.edit_id,o=t.contentTagData.value,data={id:l,tags:o},e.next=5,t.$post("/api/admin/jishuquan/updateTopicTags",data).then((function(e){1==e.status&&(t.$message({type:"success",message:"编辑成功!"}),t.contentTagData.value=[],t.getList(),t.contentTagManege=!1)})).catch((function(e){t.$message({type:"error",message:"编辑失败"})}));case 5:e.sent;case 6:case"end":return e.stop()}}),e)})))()},addOperateTag:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var l,o,data,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(l=t.edit_id,o=t.operateTagOptions.value,data={id:l,is_top:0,is_must_see:0,is_hot:0,is_good:0,is_new:0,is_ad:0},n=0;n<o.length;n++)"is_top"===o[n]?data.is_top=1:"is_must_see"===o[n]?data.is_must_see=1:"is_hot"===o[n]?data.is_hot=1:"is_good"===o[n]?data.is_good=1:"is_new"===o[n]?data.is_new=1:"is_ad"===o[n]&&(data.is_ad=1);return e.next=6,t.$post("/api/admin/jishuquan/update_operate_tag",data).then((function(e){1==e.status&&(t.kols=e.data.aus,t.total=e.data.total,t.$message({type:"success",message:"编辑成功!"}),t.getList(),t.operateTagManege=!1)})).catch((function(e){t.$message({type:"error",message:"编辑失败"})}));case 6:e.sent;case 7:case"end":return e.stop()}}),e)})))()}}},c=(l(471),l(2)),component=Object(c.a)(r,(function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("div",[l("el-radio-group",{attrs:{size:"small"},on:{change:t.getList},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[l("el-radio-button",{attrs:{label:"topic"}},[t._v("文章管理")]),t._v(" "),l("el-radio-button",{attrs:{label:"video"}},[t._v("视频管理")]),t._v(" "),l("el-radio-button",{attrs:{label:"ad"}},[t._v("活动直播管理")]),t._v(" "),l("el-radio-button",{attrs:{label:"kol"}},[t._v("KOL管理")])],1),t._v(" "),l("br"),t._v(" "),"ad"===t.tab?[l("div",[l("el-button",{staticStyle:{"margin-top":"20px"},attrs:{type:"success"},on:{click:function(e){return t.showAdEdit(null)}}},[t._v("添加活动")])],1),t._v(" "),t.ads?l("div",{staticClass:"content"},[l("el-table",{staticStyle:{width:"100%"},attrs:{data:t.ads,height:"100%",border:""}},[l("el-table-column",{attrs:{prop:"title",label:"活动标题"}}),t._v(" "),l("el-table-column",{attrs:{prop:"position_name",label:"位置"}}),t._v(" "),l("el-table-column",{attrs:{label:"基本数据"},scopedSlots:t._u([{key:"default",fn:function(e){return"ad"===t.tab?[l("el-tag",{attrs:{type:"success"}},[t._v("浏览"+t._s(e.row.view_count))])]:void 0}}],null,!0)}),t._v(" "),l("el-table-column",{attrs:{prop:"status_name",label:"状态"}}),t._v(" "),l("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),l("el-table-column",{attrs:{label:"操作",width:"300px;"},scopedSlots:t._u([{key:"default",fn:function(e){return"ad"===t.tab?[l("el-button",{attrs:{type:"primary"},on:{click:function(l){return t.showAdEdit(e.row)}}},[t._v("\n 编辑\n "),l("i",{staticClass:"el-icon-edit el-icon--right"})]),t._v(" "),l("el-button",{attrs:{type:"danger"},on:{click:function(l){return t.deleteAd(e.row.id)}}},[t._v("\n 删除\n "),l("i",{staticClass:"el-icon-delete el-icon--right"})])]:void 0}}],null,!0)})],1)],1):t._e(),t._v(" "),l("el-pagination",{staticClass:"order-footer",attrs:{background:"",layout:"prev, pager, next","page-size":20,total:t.total},on:{"current-change":t.handleCurrentChange}})]:t._e(),t._v(" "),"topic"===t.tab?[l("div",{staticStyle:{"margin-top":"15px"}},[l("div",{staticStyle:{float:"left",width:"200px","margin-right":"15px"}},[l("el-input",{attrs:{placeholder:"请输入文章标题"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(e)}},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}})],1),t._v(" "),l("div",{staticStyle:{float:"left",width:"200px","margin-right":"15px"}},[l("el-select",{attrs:{clearable:"",placeholder:"筛选运营标签"},model:{value:t.labelTab,callback:function(e){t.labelTab=e},expression:"labelTab"}},t._l(t.labelOptions,(function(t){return l("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),l("div",{staticStyle:{float:"left",width:"200px","margin-right":"15px"}},[l("el-select",{attrs:{clearable:"",placeholder:"筛选状态"},model:{value:t.is_show,callback:function(e){t.is_show=e},expression:"is_show"}},t._l(t.showOptions,(function(t){return l("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),l("div",{staticStyle:{float:"left",width:"200px","margin-right":"15px"}},[l("el-button",{attrs:{type:"primary"},on:{click:t.getList}},[t._v("搜索")])],1),t._v(" "),l("div",{staticStyle:{clear:"both"}})]),t._v(" "),t.topics?l("div",{staticClass:"content"},[l("el-table",{staticStyle:{width:"100%"},attrs:{data:t.topics,height:"100%",border:""}},[l("el-table-column",{attrs:{className:"clickable",prop:"title",label:"文章标题"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",{on:{click:function(l){return t.goTopic(e.row)}}},[t._v(t._s(e.row.title))])]}}],null,!1,2657541860)}),t._v(" "),l("el-table-column",{attrs:{className:"clickable",prop:"nickname",label:"作者"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",{on:{click:function(l){return t.goRooterUser(e.row)}}},[t._v(t._s(e.row.nickname))])]}}],null,!1,1739020685)}),t._v(" "),l("el-table-column",{attrs:{prop:"created_at",label:"发布时间"}}),t._v(" "),l("el-table-column",{attrs:{label:"基本数据",width:"280px"},scopedSlots:t._u([{key:"default",fn:function(e){return"topic"===t.tab?[l("el-tag",{attrs:{type:"success"}},[t._v("浏览"+t._s(e.row.view_count))]),t._v(" "),l("el-tag",{attrs:{type:"info"}},[t._v("点赞"+t._s(e.row.like_count))]),t._v(" "),l("el-tag",{attrs:{type:"warning"}},[t._v("收藏"+t._s(e.row.favorite_count))]),t._v(" "),l("el-tag",{attrs:{type:"danger"}},[t._v("评论"+t._s(e.row.reply_count))])]:void 0}}],null,!0)}),t._v(" "),l("el-table-column",{attrs:{label:"内容标签",width:"180px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._l(e.row.tags,(function(e){return l("span",[l("el-tag",{attrs:{type:"info"}},[t._v(t._s(e.name))])],1)})),t._v(" "),l("el-link",{staticStyle:{float:"right"},attrs:{icon:"el-icon-edit"},on:{click:function(l){return t.editContentTag(e.row)}}})]}}],null,!1,3727920548)}),t._v(" "),l("el-table-column",{attrs:{label:"运营标签",width:"240px"},scopedSlots:t._u([{key:"default",fn:function(label){return"topic"===t.tab?[1==label.row.is_top?l("el-tag",{staticClass:"custom-label",attrs:{type:"info"}},[t._v("置顶")]):t._e(),t._v(" "),1==label.row.is_must_see?l("el-tag",{staticClass:"custom-label",attrs:{type:"info"}},[t._v("进站必看")]):t._e(),t._v(" "),1==label.row.is_hot?l("el-tag",{staticClass:"custom-label",attrs:{type:"info"}},[t._v("热门")]):t._e(),t._v(" "),1==label.row.is_good?l("el-tag",{staticClass:"custom-label",attrs:{type:"info"}},[t._v("优质")]):t._e(),t._v(" "),1==label.row.is_new?l("el-tag",{staticClass:"custom-label",attrs:{type:"info"}},[t._v("最新")]):t._e(),t._v(" "),1==label.row.is_ad?l("el-tag",{staticClass:"custom-label",attrs:{type:"info"}},[t._v("广告")]):t._e(),t._v(" "),l("el-link",{staticStyle:{float:"right"},attrs:{icon:"el-icon-edit"},on:{click:function(e){return t.editOperateTag(label.row)}}})]:void 0}}],null,!0)}),t._v(" "),l("el-table-column",{attrs:{label:"状态",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(label){return"topic"===t.tab?[1==label.row.is_show?l("span",[t._v("显示中")]):0==label.row.is_show&&"ad"==label.row.risk_type?l("span",[t._v("[命中风控]"),l("br"),t._v("    广告")]):l("span",[t._v("已下架")])]:void 0}}],null,!0)}),t._v(" "),"topic"===t.tab?l("el-table-column",{attrs:{label:"操作",width:"130px"},scopedSlots:t._u([{key:"default",fn:function(e){return"topic"===t.tab?[1==e.row.is_show?l("el-link",{attrs:{type:"warning",icon:"el-icon-download"},on:{click:function(l){return t.stopShow(e.row.id,e.row.is_show)}}},[t._v("下架")]):l("el-link",{attrs:{type:"success",icon:"el-icon-upload2"},on:{click:function(l){return t.stopShow(e.row.id,e.row.is_show)}}},[t._v("上架")]),t._v(" "),l("el-link",{attrs:{type:"danger",icon:"el-icon-delete"},on:{click:function(l){return t.delTopic(e.row.id)}}},[t._v("删除")])]:void 0}}],null,!0)}):t._e()],1),t._v(" "),l("el-dialog",{attrs:{title:"内容标签管理",visible:t.contentTagManege},on:{"update:visible":function(e){t.contentTagManege=e}}},[l("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px"}},[l("SelectFilterable",{attrs:{selectData:t.contentTagData}}),t._v(" "),l("div",{staticStyle:{float:"right","margin-top":"15px"}},[l("el-button",{attrs:{type:"primary"},on:{click:t.addContentTag}},[t._v("提交")])],1),t._v(" "),l("div",{staticStyle:{clear:"both"}})],1)],1),t._v(" "),l("el-dialog",{attrs:{title:"运营标签管理",visible:t.operateTagManege},on:{"update:visible":function(e){t.operateTagManege=e}}},[l("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px"}},[l("SelectFilterable",{attrs:{selectData:t.operateTagOptions}}),t._v(" "),l("div",{staticStyle:{float:"right","margin-top":"15px"}},[l("el-button",{attrs:{type:"primary"},on:{click:t.addOperateTag}},[t._v("提交")])],1),t._v(" "),l("div",{staticStyle:{clear:"both"}})],1)],1)],1):t._e(),t._v(" "),l("el-pagination",{staticClass:"order-footer",attrs:{background:"",layout:"prev, pager, next","page-size":20,total:t.total},on:{"current-change":t.handleCurrentChange}})]:t._e(),t._v(" "),"video"===t.tab?[t.videos?l("div",{staticClass:"content"},[l("el-table",{staticStyle:{width:"100%"},attrs:{data:t.videos,height:"100%",border:""}},[l("el-table-column",{attrs:{prop:"title",className:"clickable",label:"视频简介"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",{on:{click:function(l){return t.goVideo(e.row)}}},[t._v(t._s(e.row.title))])]}}],null,!1,3357816372)}),t._v(" "),l("el-table-column",{attrs:{prop:"nickname",className:"clickable",label:"作者"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",{on:{click:function(l){return t.goRooterUser(e.row)}}},[t._v(t._s(e.row.nickname))])]}}],null,!1,1739020685)}),t._v(" "),l("el-table-column",{attrs:{prop:"created_at",label:"发布时间"}}),t._v(" "),l("el-table-column",{attrs:{label:"基本数据",width:"340px"},scopedSlots:t._u([{key:"default",fn:function(video){return"video"===t.tab?[l("el-tag",{attrs:{type:"success"}},[t._v("浏览:"+t._s(video.row.view_count))]),t._v(" "),l("el-tag",{attrs:{type:"info"}},[t._v("点赞:"+t._s(video.row.like_count))]),t._v(" "),l("el-tag",{attrs:{type:"warning"}},[t._v("收藏:"+t._s(video.row.favorite_count))]),t._v(" "),l("el-tag",{attrs:{type:"danger"}},[t._v("评论:"+t._s(video.row.reply_count))])]:void 0}}],null,!0)}),t._v(" "),l("el-table-column",{attrs:{prop:"status_name",label:"状态"}}),t._v(" "),l("el-table-column",{attrs:{label:"操作",width:"340px"},scopedSlots:t._u([{key:"default",fn:function(video){return"video"===t.tab?[1==video.row.status?l("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.approveVideo(video.row.id)}}},[t._v("\n 下架\n "),l("i",{staticClass:"el-icon-bottom el-icon--right"})]):t._e(),t._v(" "),0==video.row.status?l("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.approveVideo(video.row.id)}}},[t._v("\n 上架\n "),l("i",{staticClass:"el-icon-top el-icon--right"})]):t._e(),t._v(" "),l("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.deleteVideo(video.row.id)}}},[t._v("\n 删除\n "),l("i",{staticClass:"el-icon-delete el-icon--right"})])]:void 0}}],null,!0)})],1)],1):t._e(),t._v(" "),l("el-pagination",{staticClass:"order-footer",attrs:{background:"",layout:"prev, pager, next","page-size":20,total:t.total},on:{"current-change":t.handleCurrentChange}})]:t._e(),t._v(" "),"kol"===t.tab?[l("div",{staticStyle:{margin:"15px 0"}},[l("div",{staticStyle:{width:"200px",margin:"0 15px",float:"left"}},[l("el-input",{attrs:{placeholder:"输入作者名"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}},model:{value:t.authorName,callback:function(e){t.authorName=e},expression:"authorName"}})],1),t._v(" "),l("div",{staticStyle:{width:"200px",margin:"0 15px",float:"left"}},[[l("el-select",{attrs:{clearable:"",placeholder:"选择创建场景"},model:{value:t.createScene,callback:function(e){t.createScene=e},expression:"createScene"}},t._l(t.createSceneList,(function(t){return l("el-option",{attrs:{label:t.label,value:t.value}})})),1)]],2),t._v(" "),l("div",{staticStyle:{width:"200px",margin:"0 15px",float:"left"}},[[l("el-select",{attrs:{clearable:"",placeholder:"选择签约状态"},model:{value:t.signing,callback:function(e){t.signing=e},expression:"signing"}},t._l(t.signingList,(function(t){return l("el-option",{attrs:{label:t.label,value:t.value}})})),1)]],2),t._v(" "),l("div",{staticStyle:{width:"100px",margin:"0 15px",float:"left"}},[l("el-button",{attrs:{type:"primary"},on:{click:t.search}},[t._v("搜索")])],1),t._v(" "),l("div",{staticStyle:{margin:"0 15px",float:"right"}},[l("el-button",{attrs:{type:"success"},on:{click:function(e){return t.onAddAu(null)}}},[t._v("添加KOL")])],1),t._v(" "),l("div",{staticStyle:{clear:"both"}})]),t._v(" "),t.kols?l("div",{staticClass:"content",attrs:{height:"30%"}},[l("el-table",{staticStyle:{width:"100%"},attrs:{data:t.kols,height:"100%",border:""}},[l("el-table-column",{attrs:{prop:"portrait",label:"头像"},scopedSlots:t._u([{key:"default",fn:function(t){return[l("img",{attrs:{src:t.row.portrait,"min-width":"70",height:"70"}})]}}],null,!1,3320733313)}),t._v(" "),l("el-table-column",{attrs:{prop:"name",className:"clickable",label:"作者名"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",{staticStyle:{color:"black"}},[t._v(t._s(e.row.name))])]}}],null,!1,567257880)}),t._v(" "),l("el-table-column",{attrs:{prop:"introduction","show-overflow-tooltip":"",className:"clickable",label:"简介"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",{staticStyle:{color:"black"}},[t._v(t._s(e.row.introduction))])]}}],null,!1,659529919)}),t._v(" "),l("el-table-column",{attrs:{prop:"is_signing",label:"是否签约"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.is_signing?l("div",[t._v("\n 签约\n ")]):l("div",[t._v("未签约")])]}}],null,!1,879507377)}),t._v(" "),l("el-table-column",{attrs:{prop:"show_repost",label:"开启转载说明"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.show_repost?l("div",[t._v("\n 开启\n ")]):l("div",[t._v("不开启")])]}}],null,!1,1525453427)}),t._v(" "),l("el-table-column",{attrs:{prop:"create_scene",label:"创建场景"},scopedSlots:t._u([{key:"default",fn:function(e){return["self"==e.row.create_scene?l("span",[t._v("用户绑定")]):l("span",[t._v("后台新增")])]}}],null,!1,214249953)}),t._v(" "),l("el-table-column",{attrs:{prop:"uid",label:"客栈UID"}}),t._v(" "),l("el-table-column",{attrs:{label:"关联渠道"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.channle,(function(e){return l("div",[t._v("\n "+t._s(e.code)+"\n ")])}))}}],null,!1,1569298439)}),t._v(" "),l("el-table-column",{attrs:{prop:"re_article_num",label:"文章数"}}),t._v(" "),l("el-table-column",{attrs:{prop:"to_read_num",label:"阅读数"}}),t._v(" "),l("el-table-column",{attrs:{prop:"to_praise_num",label:"获赞数"}}),t._v(" "),l("el-table-column",{attrs:{prop:"to_follow_num",label:"粉丝数"}}),t._v(" "),l("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("el-link",{attrs:{icon:"el-icon-edit"},on:{click:function(l){return t.onEditAu(e.row.id)}}},[t._v("编辑")])]}}],null,!1,1308321882)})],1)],1):t._e(),t._v(" "),l("el-pagination",{staticClass:"order-footer",attrs:{background:"",layout:"prev, pager, next","page-size":20,total:t.total},on:{"current-change":t.handleCurrentChange}})]:t._e(),t._v(" "),l("el-dialog",{attrs:{title:"活动管理",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[l("el-form",{attrs:{model:t.form}},[l("el-form-item",{attrs:{label:"活动标题","label-width":t.formLabelWidth}},[l("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}})],1),t._v(" "),l("el-form-item",{attrs:{label:"链接","label-width":t.formLabelWidth}},[l("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.url,callback:function(e){t.$set(t.form,"url",e)},expression:"form.url"}})],1),t._v(" "),l("el-form-item",{attrs:{label:"用户UID","label-width":t.formLabelWidth}},[l("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.uid,callback:function(e){t.$set(t.form,"uid",e)},expression:"form.uid"}})],1),t._v(" "),l("el-form-item",{attrs:{label:"话题标签","label-width":t.formLabelWidth}},[l("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.tags,callback:function(e){t.$set(t.form,"tags",e)},expression:"form.tags"}})],1),t._v(" "),l("el-form-item",{attrs:{label:"状态","label-width":t.formLabelWidth}},[l("el-select",{attrs:{placeholder:"请选择上架/下架"},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[l("el-option",{attrs:{label:"上架",value:"1"}}),t._v(" "),l("el-option",{attrs:{label:"下架",value:"0"}})],1)],1),t._v(" "),l("el-form-item",{attrs:{label:"类型","label-width":t.formLabelWidth}},[l("el-select",{attrs:{placeholder:"请选择类型"},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},[l("el-option",{attrs:{label:"文章",value:"1"}}),t._v(" "),l("el-option",{attrs:{label:"视频",value:"2"}})],1)],1),t._v(" "),l("el-form-item",{attrs:{label:"广告位置","label-width":t.formLabelWidth}},[l("el-select",{attrs:{placeholder:"请选择位置"},model:{value:t.form.position,callback:function(e){t.$set(t.form,"position",e)},expression:"form.position"}},[l("el-option",{attrs:{label:"广告位1",value:"1"}}),t._v(" "),l("el-option",{attrs:{label:"广告位2",value:"2"}})],1)],1)],1),t._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),t._v(" "),l("el-button",{attrs:{type:"primary"},on:{click:t.editAd}},[t._v("确 定")])],1)],1),t._v(" "),l("el-dialog",{attrs:{title:"KOL管理",visible:t.kolFormVisible,closeOnClickModal:!1,closeOnPressEscape:!1},on:{"update:visible":function(e){t.kolFormVisible=e}}},[l("el-form",{attrs:{model:t.kolform}},["./"!=t.kolform.portrait?l("el-form-item",{attrs:{label:"头像","label-width":t.formLabelWidth}},[l("img",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.kolform.portrait,alt:"头像"}})]):t._e(),t._v(" "),l("el-form-item",{attrs:{label:"作者名","label-width":t.formLabelWidth}},[l("el-input",{attrs:{autocomplete:"off"},model:{value:t.kolform.name,callback:function(e){t.$set(t.kolform,"name",e)},expression:"kolform.name"}})],1),t._v(" "),l("el-form-item",{attrs:{label:"简介","label-width":t.formLabelWidth}},[l("el-input",{attrs:{autocomplete:"off"},model:{value:t.kolform.introduction,callback:function(e){t.$set(t.kolform,"introduction",e)},expression:"kolform.introduction"}})],1),t._v(" "),t.isEdit?t._e():l("el-form-item",{attrs:{label:"账号创建","label-width":t.formLabelWidth}},[l("el-radio",{attrs:{label:"1",checked:""},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[t._v("自动创建新账号")]),t._v(" "),l("el-radio",{attrs:{label:"2"},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[t._v("指定UID")])],1),t._v(" "),l("el-form-item",{directives:[{name:"show",rawName:"v-show",value:2==t.radio||t.isEdit,expression:"radio == 2 || isEdit"}],attrs:{label:"客栈UID","label-width":t.formLabelWidth}},[l("el-input",{attrs:{autocomplete:"off",disabled:t.isEdit},model:{value:t.kolform.uid,callback:function(e){t.$set(t.kolform,"uid",e)},expression:"kolform.uid"}})],1),t._v(" "),l("el-form-item",{attrs:{label:"是否签约","label-width":t.formLabelWidth}},[l("el-switch",{model:{value:t.kolform.is_signing,callback:function(e){t.$set(t.kolform,"is_signing",e)},expression:"kolform.is_signing"}})],1),t._v(" "),l("el-form-item",{attrs:{label:"是否开启转载","label-width":t.formLabelWidth}},[l("el-switch",{model:{value:t.kolform.show_repost,callback:function(e){t.$set(t.kolform,"show_repost",e)},expression:"kolform.show_repost"}})],1),t._v(" "),"self"==t.kolform.create_scene?l("el-form-item",{attrs:{label:"创建场景","label-width":t.formLabelWidth}},[l("span",[t._v("用户绑定")])]):l("el-form-item",{attrs:{label:"创建场景","label-width":t.formLabelWidth}},[l("span",[t._v("后台新增")])]),t._v(" "),l("el-form-item",{attrs:{"label-width":t.formLabelWidth}},[[l("el-row",{attrs:{gutter:20}},[l("el-col",{attrs:{span:6}},[l("div",{staticClass:"grid-content bg-purple"},[t._v("渠道")])]),t._v(" "),l("el-col",{attrs:{span:6}},[l("div",{staticClass:"grid-content bg-purple"},[t._v("通道ID")])]),t._v(" "),l("el-col",{attrs:{span:6}},[l("div",{staticClass:"grid-content bg-purple"},[t._v("渠道URL")])])],1),t._v(" "),t._l(t.channelData,(function(e,o){return[l("el-row",{staticStyle:{"margin-top":"5px"},attrs:{gutter:20}},[l("el-col",{attrs:{span:6}},[l("div",{staticClass:"grid-content bg-purple"},[l("el-select",{attrs:{placeholder:"请选择"},model:{value:t.channelData[o].code,callback:function(e){t.$set(t.channelData[o],"code",e)},expression:"channelData[index].code"}},t._l(t.options,(function(t){return l("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)]),t._v(" "),l("el-col",{attrs:{span:6}},[l("div",{staticClass:"grid-content bg-purple"},[l("el-input",{attrs:{placeholder:"请输入内容"},model:{value:e.channel_id,callback:function(l){t.$set(e,"channel_id",l)},expression:"item.channel_id"}})],1)]),t._v(" "),l("el-col",{attrs:{span:6}},[l("div",{staticClass:"grid-content bg-purple"},[l("el-input",{attrs:{placeholder:"请输入内容"},model:{value:e.url,callback:function(l){t.$set(e,"url",l)},expression:"item.url"}})],1)]),t._v(" "),l("el-col",{attrs:{span:6}},[l("div",{staticClass:"grid-content bg-purple"},[0!=o?l("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.deleteChannleRow(o)}}},[t._v("\n 移除\n ")]):t._e(),t._v(" "),l("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.addChannleRow()}}},[t._v("\n 添加\n ")])],1)])],1)]}))]],2)],1),t._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{on:{click:function(e){t.kolFormVisible=!1}}},[t._v("取 消")]),t._v(" "),l("el-button",{attrs:{type:"primary"},on:{click:t.editAu}},[t._v("确 定")])],1)],1),t._v(" "),l("el-dialog",{attrs:{title:"标签管理",visible:t.labelEditFormVisible},on:{"update:visible":function(e){t.labelEditFormVisible=e}}},[l("el-form",{attrs:{model:t.form}},[l("el-form-item",{attrs:{label:"当前标签","label-width":t.formLabelWidth}},[1===this.currentLabel.is_top?l("el-tag",{staticClass:"custom-label",attrs:{type:"info",closable:"","disable-transitions":!1},on:{close:function(e){return t.handleClose("is_top")}}},[t._v("置顶\n ")]):t._e(),t._v(" "),1===this.currentLabel.is_must_see?l("el-tag",{staticClass:"custom-label",attrs:{type:"info",closable:"","disable-transitions":!1},on:{close:function(e){return t.handleClose("is_must_see")}}},[t._v("进站必看\n ")]):t._e(),t._v(" "),1===this.currentLabel.is_hot?l("el-tag",{staticClass:"custom-label",attrs:{type:"info",closable:"","disable-transitions":!1},on:{close:function(e){return t.handleClose("is_hot")}}},[t._v("热门\n ")]):t._e(),t._v(" "),1===this.currentLabel.is_good?l("el-tag",{staticClass:"custom-label",attrs:{type:"info",closable:"","disable-transitions":!1},on:{close:function(e){return t.handleClose("is_good")}}},[t._v("优质\n ")]):t._e(),t._v(" "),1===this.currentLabel.is_new?l("el-tag",{staticClass:"custom-label",attrs:{type:"info",closable:"","disable-transitions":!1},on:{close:function(e){return t.handleClose("is_new")}}},[t._v("最新\n ")]):t._e(),t._v(" "),1===this.currentLabel.is_ad?l("el-tag",{staticClass:"custom-label",attrs:{type:"info",closable:"","disable-transitions":!1},on:{close:function(e){return t.handleClose("is_ad")}}},[t._v("广告\n ")]):t._e()],1),t._v(" "),l("el-form-item",{attrs:{label:"添加标签","label-width":t.formLabelWidth}},[l("el-select",{attrs:{placeholder:"请选择位置"},model:{value:t.addCurrentLabel,callback:function(e){t.addCurrentLabel=e},expression:"addCurrentLabel"}},[l("el-option",{attrs:{label:"暂不添加",value:""}}),t._v(" "),l("el-option",{attrs:{label:"置顶",value:"is_top"}}),t._v(" "),l("el-option",{attrs:{label:"进站必看",value:"is_must_see"}}),t._v(" "),l("el-option",{attrs:{label:"热门",value:"is_hot"}}),t._v(" "),l("el-option",{attrs:{label:"优质",value:"is_good"}}),t._v(" "),l("el-option",{attrs:{label:"最新",value:"is_new"}}),t._v(" "),l("el-option",{attrs:{label:"广告",value:"is_ad"}})],1)],1)],1),t._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{type:"primary"},on:{click:t.addLabel}},[t._v("添 加")]),t._v(" "),l("el-button",{on:{click:function(e){t.labelEditFormVisible=!1,t.getList()}}},[t._v("关闭")])],1)],1)],2)}),[],!1,null,"93bec716",null);e.default=component.exports}}]);