{"size": 1551, "ext": "js", "max_stars_repo_path": "dist/js/UserBlackList.159d84a8.js", "max_stars_repo_name": "Chinesee/love-share-admin", "max_stars_repo_stars_event_min_datetime": "2021-12-19T02:03:20.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-23T06:05:47.000Z", "max_issues_repo_path": "dist/js/UserBlackList.159d84a8.js", "max_issues_repo_name": "Chinesee/love-share-admin", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dist/js/UserBlackList.159d84a8.js", "max_forks_repo_name": "Chinesee/love-share-admin", "max_forks_repo_forks_event_min_datetime": "2021-12-19T02:03:22.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-19T02:03:22.000Z"}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 1551.0, "max_line_length": 1551, "alphanum_fraction": 0.6292714378}
(window.webpackJsonp=window.webpackJsonp||[]).push([["UserBlackList"],{"0f09":function(t,s,a){"use strict";a.r(s);var e=a("1da1"),c=a("6b5b"),i={name:"UserBlackList",data:()=>({balckList:[]}),created(){this.getBlackList()},methods:{getBlackList(){var t=this;return Object(e.a)(function*(){const s=yield Object(c.a)(),a=s.code,e=s.data.user_list;2e3===a&&(t.balckList=e)})()},removeBlock(t){var s=this;return Object(e.a)(function*(){2e3===(yield Object(c.f)({user_id:t,is_blocked:!1,info:""})).code&&(s.$message.success("用户已解除黑名单"),s.getBlackList())})()}}},n=a("2877"),r=Object(n.a)(i,function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"pt-8"},[a("vs-table",{attrs:{pagination:"",noDataText:"暂无数据","max-items":8,data:t.balckList},scopedSlots:t._u([{key:"default",fn:function(s){var e=s.data;return t._l(e,function(s,e){return a("vs-tr",{key:e},[a("vs-td",[a("vs-avatar",{attrs:{size:"40px",src:s.avatar_url+"?imageView2/2/w/40"}})],1),a("vs-td",{staticClass:"font-bold"},[t._v(t._s(s.nickname))]),a("vs-td"),a("vs-td",[a("p",{staticClass:"ml-4 font-bold"},[t._v(t._s(s.share_value))])]),a("vs-td",[a("p",[t._v(t._s(t.$dayjs(s.created_at).format("YYYY/MM/DD")))])]),a("vs-td",[a("span",{staticClass:"danger cursor-pointer",on:{click:function(a){return t.removeBlock(s._id)}}},[t._v("解除黑名单")])])],1)})}}])},[a("template",{slot:"thead"},[a("vs-th",[t._v("头像")]),a("vs-th",[t._v("昵称")]),a("vs-th",[t._v("信用度")]),a("vs-th",[t._v("乐享值")]),a("vs-th",[t._v("注册时间")])],1)],2)],1)},[],!1,null,null,null);s.default=r.exports}}]);