canyin-project/ybcy/views/channel/index/static/js/chunk-0e6848c5.310911c1.js
2024-11-01 16:07:54 +08:00

1 line
5.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0e6848c5"],{"0694":function(e,t,a){"use strict";var r=a("d1d4"),s=a.n(r);s.a},9944:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"outmain ba_f heighthv pad_20 bor_rad5"},[e._m(0),a("div",{staticClass:"tabledata mar_t20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.list,"element-loading-text":e.elementLoadingText,stripe:""}},[a("el-table-column",{attrs:{prop:"userName",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-y-top"},[a("div",{},[a("img",{staticClass:"goodlogo bor_rad50",attrs:{src:t.row.portrait}})]),a("div",{staticClass:"mar_l10"},[a("div",{staticClass:"flex"},[a("div",{},[e._v(e._s(t.row.userName))]),a("el-tag",{staticClass:"mar_l5",attrs:{size:"mini",type:"info"}},[e._v("Id:"+e._s(t.row.userId)+"")])],1)])])]}}])}),a("el-table-column",{attrs:{prop:"name",label:"图片"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex flex-y-top"},[a("el-popover",{attrs:{trigger:"hover",placement:"top"}},[a("p",[a("img",{staticClass:"listImgWidth",attrs:{src:e.row.media}})]),a("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"imgbox"},[a("img",{staticClass:"goodlogo",attrs:{src:e.row.media}})])])])],1)]}}])}),a("el-table-column",{attrs:{prop:"createdAt",label:"提交时间",width:"380"}}),a("el-table-column",{attrs:{prop:"money",label:"审核状态"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"==t.row.state?a("div",[e._v("待审核")]):e._e(),"3"==t.row.state?a("div",[e._v("已拒绝")]):e._e(),"2"==t.row.state?a("div",[e._v("已通过")]):e._e()]}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:"1"==t.row.state,expression:"scope.row.state=='1'"}],attrs:{type:"text"},on:{click:function(a){return e.changeSwitch(t.row,1)}}},[e._v("通过")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:"1"==t.row.state,expression:"scope.row.state=='1'"}],attrs:{type:"text"},on:{click:function(a){return e.changeSwitch(t.row,2)}}},[e._v("拒绝")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:"2"==t.row.state,expression:"scope.row.state=='2'"}],staticStyle:{color:"#489620"},attrs:{size:"mini",type:"text"}},[e._v("已通过")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:"3"==t.row.state,expression:"scope.row.state=='3'"}],staticStyle:{color:"#df0029"},attrs:{size:"mini",type:"text"}},[e._v("已拒绝")])],1)]}}])})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.page.total,"page-size":e.page.pagesize,"current-page":e.page.currentPage},on:{"update:currentPage":function(t){return e.$set(e.page,"currentPage",t)},"update:current-page":function(t){return e.$set(e.page,"currentPage",t)},"current-change":e.handleCurrentChange}})],1)])},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("审核列表")])])])}],n=(a("d81d"),a("96cf"),a("1da1")),i=a("7cb7"),o={created:function(){this.fetchData()},data:function(){return{list:[],selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1}}},methods:{fetchData:function(){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function t(){var a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(i["m"])({page:e.page.currentPage});case 3:a=t.sent,r=a.data,s=a.count,e.list=r,e.page.total=s,e.listLoading=!1;case 9:case"end":return t.stop()}}),t)})))()},handleCurrentChange:function(e){this.page.currentPage=e,this.fetchData()},changeSwitch:function(e,t){var a=this;return Object(n["a"])(regeneratorRuntime.mark((function r(){var s,n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,Object(i["rb"])({id:e.id,type:t});case 2:s=r.sent,n=s.msg,a.$baseMessage(n,"success"),a.fetchData();case 6:case"end":return r.stop()}}),r)})))()},handleDelete:function(e){var t=this;if(e.id)this.$baseConfirm("你确定要删除当前项吗",null,Object(n["a"])(regeneratorRuntime.mark((function a(){var r,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,modifyNewReduction({id:e.id,type:2});case 2:r=a.sent,s=r.msg,t.$baseMessage(s,"success"),t.fetchData();case 6:case"end":return a.stop()}}),a)}))));else{if(!(this.selectRows.length>0))return this.$baseMessage("未选中任何行","error"),!1;var a=this.selectRows.map((function(e){return e.id}));this.$baseConfirm("你确定要删除选中项吗",null,Object(n["a"])(regeneratorRuntime.mark((function e(){var r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,modifyNewReduction({id:a,type:2});case 2:r=e.sent,s=r.msg,t.$baseMessage(s,"success"),t.fetchData();case 6:case"end":return e.stop()}}),e)}))))}}}},c=o,l=(a("0694"),a("2877")),u=Object(l["a"])(c,r,s,!1,null,"15845ace",null);t["default"]=u.exports},d1d4:function(e,t,a){}}]);