91d72e5.js 6.5 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[128],{577:function(t,e,r){},721:function(t,e,r){"use strict";r(577)},847:function(t,e,r){"use strict";r.r(e);r(18),r(191);var n=r(6),o=(r(30),r(445)),c=r(588),l={components:{experience_check:o.a,works_config:c.a},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(t,e){this.child_page.type=t,this.child_page.obj=e},open:function(t){window.open("https://www.proginn.com/w/"+t)},check:function(t){var e=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.drawer.id=t,e.drawer.drawer=!0;case 2:case"end":return r.stop()}}),r)})))()},getList:function(t){var e=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 e.loading=t,r.next=3,e.$post("/uapi/pub/info/user/user_works/list_admin",e.form);case 3:(n=r.sent)&&1===n.status&&(e.list=n.data.list,e.total=n.data.count),e.loading=!1;case 6:case"end":return r.stop()}}),r)})))()},get_status:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$post("/uapi/pub/info/user/user_works/get_group_status",t.form);case 2:(r=e.sent)&&1===r.status&&(t.status=r.data);case 4:case"end":return e.stop()}}),e)})))()},check_status_func:function(t,e){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:t,status:e});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(t){var e=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.$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,e.$post("/uapi/pub/list/user/user_works/del",{wid:t});case 2:(n=r.sent)&&1===n.status&&(e.$notify({title:"成功",message:"操作成功",type:"success",duration:2e3}),e.getList());case 4:case"end":return r.stop()}}),r)})))).catch((function(){}));case 1:case"end":return r.stop()}}),r)})))()},changePagination:function(t){this.form.page=t,this.getList(!0)}}},f=(r(721),r(4)),component=Object(f.a)(l,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"container"},[e("div",[e("el-row",[e("el-form",{staticClass:"filter-form",attrs:{inline:!0}},[e("el-row",[e("el-form-item",{staticStyle:{"margin-bottom":"5px"},attrs:{label:"状态"}},[e("el-radio-group",{attrs:{size:"mini"},on:{change:function(e){return t.getList(!0)}},model:{value:t.form.check_status,callback:function(e){t.$set(t.form,"check_status",e)},expression:"form.check_status"}},[e("el-radio-button",{attrs:{label:0}},[t._v("全部("+t._s(t.status[0])+")")]),t._v(" "),e("el-radio-button",{attrs:{label:1}},[t._v("待审核("+t._s(t.status[1])+")")]),t._v(" "),e("el-radio-button",{attrs:{label:2}},[t._v("已通过("+t._s(t.status[2])+")")]),t._v(" "),e("el-radio-button",{attrs:{label:3}},[t._v("已拒绝("+t._s(t.status[3])+")")])],1)],1)],1),t._v(" "),e("el-row",[e("el-form-item",{attrs:{"label-width":"40px",label:"uid",prop:"uid"}},[e("el-input",{attrs:{size:"small",placeholder:"请输入uid"},model:{value:t.form.uid,callback:function(e){t.$set(t.form,"uid",e)},expression:"form.uid"}})],1),t._v(" "),e("el-form-item",{attrs:{"label-width":"0"}},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.getList(!0)}}},[t._v("查询")])],1)],1)],1)],1)],1),t._v(" "),e("div",{staticClass:"clear"}),t._v(" "),e("el-table",{attrs:{data:t.list,border:""}},[e("el-table-column",{attrs:{fixed:"left",prop:"wid",label:"作品ID"}}),t._v(" "),e("el-table-column",{attrs:{fixed:"left",prop:"uid",label:"开发者"}}),t._v(" "),e("el-table-column",{attrs:{fixed:"left",prop:"name",label:"标题"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",{staticClass:"lblue point",on:{click:function(e){return t.open(r.row.wid)}}},[t._v(t._s(r.row.name))])]}}])}),t._v(" "),e("el-table-column",{attrs:{fixed:"left",prop:"create_time",label:"创建时间"}}),t._v(" "),e("el-table-column",{attrs:{prop:"version",label:"来源"}}),t._v(" "),e("el-table-column",{attrs:{prop:"status",label:"审核状态"},scopedSlots:t._u([{key:"default",fn:function(r){return[0==r.row.check_status?e("span",{staticStyle:{color:"#409eff"}},[t._v("-")]):t._e(),t._v(" "),1==r.row.check_status?e("span",{staticStyle:{color:"#409eff"}},[t._v("待审核")]):t._e(),t._v(" "),2==r.row.check_status?e("span",{staticStyle:{color:"#67c23a"}},[t._v("已通过")]):t._e(),t._v(" "),3==r.row.check_status?e("span",{staticStyle:{color:"red"}},[t._v("已拒绝")]):t._e()]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"user_info.mobile",label:"操作",width:"300px"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.show_child_page("works_config",r.row)}}},[t._v("作品编辑")]),t._v(" "),e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.del(r.row.wid)}}},[t._v("删除")]),t._v(" "),e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.check_status_func(r.row.wid,2)}}},[t._v("审核通过")]),t._v(" "),e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.check_status_func(r.row.wid,3)}}},[t._v("审核拒绝")])]}}])})],1),t._v(" "),e("div",{staticClass:"mainPageBox"},[e("el-pagination",{attrs:{"page-size":10,total:Number(t.total),layout:"total, prev, pager, next",background:""},on:{"current-change":t.changePagination}})],1),t._v(" "),"works_config"==t.child_page.type?e("works_config",{attrs:{back:this},model:{value:t.child_page.obj.wid,callback:function(e){t.$set(t.child_page.obj,"wid",e)},expression:"child_page.obj.wid"}}):t._e()],1)}),[],!1,null,"0f930e97",null);e.default=component.exports}}]);