(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[32],{"0ecb":function(t,e,a){"use strict";var s=a("5a96"),r=a.n(s);r.a},"5a96":function(t,e,a){},b4a2:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"content p-3"},[a("Button",{staticClass:"mb-3",attrs:{type:"primary"},on:{click:t.showApplicationModal}},[t._v("申请资源")]),a("Modal",{attrs:{title:"资源申请"},on:{"on-cancel":t.modal_cancel},model:{value:t.show_modal,callback:function(e){t.show_modal=e},expression:"show_modal"}},[a("Form",{ref:"resource_ref",staticClass:"nav_edit_form",attrs:{model:t.resource_form,"label-width":80,rules:t.validate_rules}},[a("FormItem",{attrs:{label:"feedid",prop:"feedid"}},[a("Input",{staticStyle:{width:"340px"},attrs:{clearable:"",placeholder:"feedid"},model:{value:t.resource_form.feedid,callback:function(e){t.$set(t.resource_form,"feedid","string"===typeof e?e.trim():e)},expression:"resource_form.feedid"}})],1),a("FormItem",{attrs:{label:"扶持类型",prop:"type"}},[a("RadioGroup",{model:{value:t.resource_form.type,callback:function(e){t.$set(t.resource_form,"type",e)},expression:"resource_form.type"}},[a("Radio",{attrs:{label:"1"}},[t._v("优先推荐")]),a("Radio",{attrs:{label:"2"}},[t._v("优先审核")])],1)],1)],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"text"},on:{click:t.modal_cancel}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.save}},[t._v(t._s("提交"))])],1)],1),a("h3",{staticClass:"mb-2"},[t._v("当前资源情况")]),a("Card",{attrs:{"dis-hover":""}},[a("div",{staticClass:"d-flex justify-content-around"},[a("section",{staticClass:"text-center",staticStyle:{width:"25%"}},[a("p",{staticClass:"text-mute"},[t._v("月份")]),a("p",{staticClass:"mt-2 text-huge font-weight-medium",domProps:{textContent:t._s(t.current_data.date)}})]),a("section",{staticClass:"text-center",staticStyle:{width:"25%"}},[a("p",{staticClass:"text-mute"},[t._v("公会等级")]),a("p",{staticClass:"text-huge mt-2 font-weight-medium"},[t._v(t._s(t.current_data.level))])]),a("section",{staticClass:"text-center",staticStyle:{width:"25%"}},[a("p",{staticClass:"text-mute"},[t._v("优先审核")]),a("p",{staticClass:"text-huge mt-2 font-weight-medium"},[t._v(t._s(t.current_data.priority_audit_cnt))])]),a("section",{staticClass:"text-center",staticStyle:{width:"25%"}},[a("p",{staticClass:"text-mute"},[t._v("优先推荐")]),a("p",{staticClass:"mt-2 text-huge font-weight-medium"},[t._v(t._s(t.current_data.priority_recommend_cnt))])])])]),a("h3",{staticClass:"mb-2 mt-3"},[t._v("推荐记录")]),a("Table",{attrs:{size:"small",border:"",columns:t.table_header,data:t.list}}),a("div",{staticClass:"my-3 d-flex justify-content-end",staticStyle:{"margin-right":"-10px"}},[a("Page",{attrs:{total:t.total,"show-total":"","page-size-opts":[20,50,100],"page-size":t.per_page,"show-sizer":""},on:{"on-change":t.jumpPage,"on-page-size-change":t.resetPerPage}})],1),a("br"),a("h4",{staticClass:"mt-2 mb-1"},[t._v("资源申请说明：")]),t._m(0)],1)},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"text-small",staticStyle:{"line-height":"25px"}},[a("p",[a("span",[t._v("1.")]),a("span",[t._v("输入 feed ID，点击「推荐」按钮，可申请对该feed的推荐。仅可推荐3天内发布的视频，且同一条feed内容仅能推荐一次。")])]),a("p",[a("span",[t._v("2.")]),a("span",[t._v("不同等级公会对应不同的扶持资源数量：")])]),a("p",[a("span",[t._v("1)")]),a("span",[t._v("S级公会：每月优先审核 30 条，每月优先推荐 10 条。")])]),a("p",[a("span",[t._v("2)")]),a("span",[t._v("A级公会：每月优先审核 20 条，每月优先推荐 5 条。")])]),a("p",[a("span",[t._v("3)")]),a("span",[t._v("B级公会：每月优先审核 10 条，每月优先推荐 3 条。")])]),a("p",[a("span",[t._v("3.")]),a("span",[t._v("资源说明：")])]),a("p",[a("span",[t._v("1)")]),a("span",[t._v("若一条内容被操作为「优先审核」，平台运营人员将加快对一条内容的审核速度，该内容将有可能更快进入「推荐池」，被用户消费。")])]),a("p",[a("span",[t._v("2)")]),a("span",[t._v("若一条内容被操作为「优先推荐」，平台运营人员将加快对一条内容的审核速度，该内容将有可能更快进入「推荐池」，并基于一定的扶持流量")])]),a("p",[a("span",[t._v("3)")]),a("span",[t._v("每月10日更新当月公会评级对应的推荐指标")])])])}],i=a("2ef0"),o=a.n(i),n=a("b775");function c(t){return Object(n["a"])({url:"/microvideo/plat/feeds",method:"get",params:t})}function l(t){return Object(n["a"])({url:"/microvideo/plat/feed/apply",method:"post",params:t})}var d={name:"FeedList",data:function(){return{list:[],current_data:{},page:1,per_page:20,total:0,show_modal:!1,data_loading:!1,resource_form:{feedid:"",type:"1"},validate_rules:{feedid:[{required:!0,message:"feedid不能为空",trigger:"change"}]},table_header:[{title:"feedid",key:"feedid",align:"center"},{title:"申请时间",key:"create_time",align:"center"},{title:"用户名称",key:"name",align:"center"},{title:"momoid",key:"momoid",align:"center"},{title:"申请内容",key:"type_text",align:"center"},{title:"推荐结果",key:"status_text",align:"center"}]}},created:function(){this.getFeedIndex()},computed:{cooperated:function(){return 1===this.$store.getters.plat.cooperation}},methods:{getFeedIndex:function(){var t=this;c({page:this.page,per_page:this.per_page}).then(function(e){var a=e.data.data;t.list=o.a.isEmpty(a.list)?[]:a.list,t.current_data=o.a.isEmpty(a.current_data)?[]:a.current_data,t.total=a.total},function(e){t.$Message.error(e.message)})},fetchDocs:function(){var t=this;this.data_loading=!0;var e={page:this.page,per_page:this.per_page};c(e).then(function(e){var a=e.data.data;t.list=o.a.isEmpty(a.list)?[]:a.list,t.current_data=o.a.isEmpty(a.current_data)?[]:a.current_data,t.data_loading=!1}).catch(function(){t.$Message.error("获取数据失败"),t.data_loading=!1})},jumpPage:function(t){this.page=t,this.fetchDocs()},resetPerPage:function(t){this.per_page=t,this.fetchDocs()},save:function(){var t=this;this.$refs["resource_ref"].validate(function(e){if(e){console.log(t.resource_form);var a=l(t.resource_form);a.then(function(e){var a=e.data;console.log(a),t.show_modal=!1,t.$Message.success("申请成功"),t.getFeedIndex()}).catch(function(e){t.$Message.error(e.message)})}else t.$Message.error("表单填写有误，请修改后再提交")})},showApplicationModal:function(){this.cooperated?this.show_modal=!0:this.$Message.error("公会已经解除合作状态，无法申请资源")},modal_cancel:function(){this.show_modal=!1}}},p=d,_=(a("0ecb"),a("2877")),u=Object(_["a"])(p,s,r,!1,null,"6a5d5a32",null);e["default"]=u.exports}}]);