| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[126],{570:function(e,t,r){},571:function(e,t,r){},712:function(e,t,r){"use strict";r(570)},713:function(e,t,r){"use strict";r(571)},732:function(e,t,r){"use strict";r.r(t);r(18),r(191);var n=r(6),o=(r(30),r(580)),l=(r(426),{components:{},props:{value:{type:Number,default:0},back:{type:Object}},mounted:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.get_config();case 2:case"end":return t.stop()}}),t)})))()},data:function(){return{loading:!1,ruleForm:{qs_g_user:[],is_lanchbox:0}}},methods:{get_config:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.$post("/uapi/admin/user/user_works_config/get_works_config",{wid:e.value});case 3:1==(r=t.sent).status&&(e.ruleForm=r.data),e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},handleClose:function(){this.back.child_page.type=""},del_user:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:t.ruleForm.qs_g_user.splice(e,1);case 1:case"end":return r.stop()}}),r)})))()},add_user:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.ruleForm.qs_g_user.push({});case 2:case"end":return t.stop()}}),t)})))()},save:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var data;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return data=e.ruleForm,t.next=3,e.$post("/uapi/admin/user/user_works_config/save",{wid:e.value,data:JSON.stringify(data)});case 3:if(1!=t.sent.status){t.next=8;break}return e.$message.success("设置成功"),t.next=8,e.get_config();case 8:case"end":return t.stop()}}),t)})))()}}}),c=(r(712),r(4)),d=Object(c.a)(l,(function(){var e=this,t=e._self._c;return t("div",[t("el-drawer",{ref:"drawer_close",attrs:{size:"800px","append-to-body":!0,"destroy-on-close":!0,visible:!0,modal:!1,title:"作品设置","modal-append-to-body":!0,"before-close":e.handleClose,wrapperClosable:!1}},[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"qs-form-add",staticStyle:{"padding-top":"20px","padding-right":"20px"},attrs:{"label-width":"100px"}},[t("el-form-item",{attrs:{label:"轻识收录"}},[t("el-radio-group",{model:{value:e.ruleForm.is_lanchbox,callback:function(t){e.$set(e.ruleForm,"is_lanchbox",t)},expression:"ruleForm.is_lanchbox"}},[t("el-radio",{attrs:{label:0}},[e._v("否")]),e._v(" "),t("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1),e._v(" "),t("el-form-item",{attrs:{label:"轻识收录"}},[t("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入收录的名称"},model:{value:e.ruleForm.qs_user_title,callback:function(t){e.$set(e.ruleForm,"qs_user_title",t)},expression:"ruleForm.qs_user_title"}}),e._v(" "),t("el-input",{staticStyle:{width:"350px"},attrs:{placeholder:"请输入收录的链接"},model:{value:e.ruleForm.qs_user_link,callback:function(t){e.$set(e.ruleForm,"qs_user_link",t)},expression:"ruleForm.qs_user_link"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"共创用户"}},[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.add_user}},[e._v("添加用户")]),e._v(" "),e._l(e.ruleForm.qs_g_user,(function(r,n){return t("div",{staticStyle:{display:"flex","justify-content":"space-between","margin-bottom":"10px","align-items":"center"}},[t("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"用户昵称"},model:{value:r.name,callback:function(t){e.$set(r,"name",t)},expression:"item.name"}}),e._v(" "),t("el-input",{staticStyle:{width:"450px"},attrs:{placeholder:"用户链接"},model:{value:r.link,callback:function(t){e.$set(r,"link",t)},expression:"item.link"}}),e._v(" "),t("i",{staticClass:"el-icon-close",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.del_user(n)}}})],1)}))],2),e._v(" "),t("el-form-item",{attrs:{label:"相关报道"}},[t("div",{staticStyle:{display:"flex","justify-content":"space-between","margin-bottom":"10px","align-items":"center"}},[t("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入相关报道标题"},model:{value:e.ruleForm.qs_news_title,callback:function(t){e.$set(e.ruleForm,"qs_news_title",t)},expression:"ruleForm.qs_news_title"}}),e._v(" "),t("el-input",{staticStyle:{width:"350px"},attrs:{placeholder:"请输入相关报道链接"},model:{value:e.ruleForm.qs_news_link,callback:function(t){e.$set(e.ruleForm,"qs_news_link",t)},expression:"ruleForm.qs_news_link"}})],1)]),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.save()}}},[e._v("保存")])],1)],1)],1),e._v(" "),t("div",{staticClass:"ccf_modal"})],1)}),[],!1,null,"4b6cb748",null).exports,_={components:{experience_check:o.a,works_config:d},props:[],data:function(){return{form:{check_status:1,uid:"",page:0},drawer:{id:0,drawer:!1,direction:"rtl"},child_page:{type:"",obj:{}},total:0,list:[],status:[],loading:!0}},computed:{},mounted:function(){this.get_status(),this.getList(!0)},methods:{show_child_page:function(e,t){this.child_page.type=e,this.child_page.obj=t},open:function(e){window.open("https://www.proginn.com/w/"+e)},check:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:t.drawer.id=e,t.drawer.drawer=!0;case 2:case"end":return r.stop()}}),r)})))()},getList:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.loading=e,r.next=3,t.$post("/uapi/pub/info/user/user_works/list_admin",t.form);case 3:(n=r.sent)&&1===n.status&&(t.list=n.data.list,t.total=n.data.count),t.loading=!1;case 6:case"end":return r.stop()}}),r)})))()},get_status:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$post("/uapi/pub/info/user/user_works/get_group_status",e.form);case 2:(r=t.sent)&&1===r.status&&(e.status=r.data);case 4:case"end":return t.stop()}}),t)})))()},check_status_func:function(e,t){var r=this;return Object(n.a)(regeneratorRuntime.mark((function n(){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$post("/uapi/pub/list/user/user_works/set_check_status",{wid:e,status:t});case 2:(o=n.sent)&&1===o.status&&(r.$notify({title:"成功",message:"操作成功",type:"success",duration:2e3}),r.getList());case 4:case"end":return n.stop()}}),n)})))()},del:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:t.$confirm("是否确认删除","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$post("/uapi/pub/list/user/user_works/del",{wid:e});case 2:(n=r.sent)&&1===n.status&&(t.$notify({title:"成功",message:"操作成功",type:"success",duration:2e3}),t.getList());case 4:case"end":return r.stop()}}),r)})))).catch((function(){}));case 1:case"end":return r.stop()}}),r)})))()},changePagination:function(e){this.form.page=e,this.getList(!0)}}},f=(r(713),Object(c.a)(_,(function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"container"},[t("div",[t("el-row",[t("el-form",{staticClass:"filter-form",attrs:{inline:!0}},[t("el-row",[t("el-form-item",{staticStyle:{"margin-bottom":"5px"},attrs:{label:"状态"}},[t("el-radio-group",{attrs:{size:"mini"},on:{change:function(t){return e.getList(!0)}},model:{value:e.form.check_status,callback:function(t){e.$set(e.form,"check_status",t)},expression:"form.check_status"}},[t("el-radio-button",{attrs:{label:0}},[e._v("全部("+e._s(e.status[0])+")")]),e._v(" "),t("el-radio-button",{attrs:{label:1}},[e._v("待审核("+e._s(e.status[1])+")")]),e._v(" "),t("el-radio-button",{attrs:{label:2}},[e._v("已通过("+e._s(e.status[2])+")")]),e._v(" "),t("el-radio-button",{attrs:{label:3}},[e._v("已拒绝("+e._s(e.status[3])+")")])],1)],1)],1),e._v(" "),t("el-row",[t("el-form-item",{attrs:{"label-width":"40px",label:"uid",prop:"uid"}},[t("el-input",{attrs:{size:"small",placeholder:"请输入uid"},model:{value:e.form.uid,callback:function(t){e.$set(e.form,"uid",t)},expression:"form.uid"}})],1),e._v(" "),t("el-form-item",{attrs:{"label-width":"0"}},[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.getList(!0)}}},[e._v("查询")])],1)],1)],1)],1)],1),e._v(" "),t("div",{staticClass:"clear"}),e._v(" "),t("el-table",{attrs:{data:e.list,border:""}},[t("el-table-column",{attrs:{fixed:"left",prop:"wid",label:"作品ID"}}),e._v(" "),t("el-table-column",{attrs:{fixed:"left",prop:"uid",label:"开发者"}}),e._v(" "),t("el-table-column",{attrs:{fixed:"left",prop:"name",label:"标题"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",{staticClass:"lblue point",on:{click:function(t){return e.open(r.row.wid)}}},[e._v(e._s(r.row.name))])]}}])}),e._v(" "),t("el-table-column",{attrs:{fixed:"left",prop:"create_time",label:"创建时间"}}),e._v(" "),t("el-table-column",{attrs:{prop:"version",label:"来源"}}),e._v(" "),t("el-table-column",{attrs:{prop:"status",label:"审核状态"},scopedSlots:e._u([{key:"default",fn:function(r){return[0==r.row.check_status?t("span",{staticStyle:{color:"#409eff"}},[e._v("-")]):e._e(),e._v(" "),1==r.row.check_status?t("span",{staticStyle:{color:"#409eff"}},[e._v("待审核")]):e._e(),e._v(" "),2==r.row.check_status?t("span",{staticStyle:{color:"#67c23a"}},[e._v("已通过")]):e._e(),e._v(" "),3==r.row.check_status?t("span",{staticStyle:{color:"red"}},[e._v("已拒绝")]):e._e()]}}])}),e._v(" "),t("el-table-column",{attrs:{prop:"user_info.mobile",label:"操作",width:"300px"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.show_child_page("works_config",r.row)}}},[e._v("作品编辑")]),e._v(" "),t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.del(r.row.wid)}}},[e._v("删除")]),e._v(" "),t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.check_status_func(r.row.wid,2)}}},[e._v("审核通过")]),e._v(" "),t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.check_status_func(r.row.wid,3)}}},[e._v("审核拒绝")])]}}])})],1),e._v(" "),t("div",{staticClass:"mainPageBox"},[t("el-pagination",{attrs:{"page-size":10,total:Number(e.total),layout:"total, prev, pager, next",background:""},on:{"current-change":e.changePagination}})],1),e._v(" "),"works_config"==e.child_page.type?t("works_config",{attrs:{back:this},model:{value:e.child_page.obj.wid,callback:function(t){e.$set(e.child_page.obj,"wid",t)},expression:"child_page.obj.wid"}}):e._e()],1)}),[],!1,null,"0f930e97",null));t.default=f.exports}}]);
|