webpackJsonp([57],{jZ21:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),i=a.n(r),n=a("mvHQ"),s=a.n(n),o=a("exGp"),l=a.n(o),c=a("PJh5"),u=a.n(c),m={data:function(){return{loading:!1,searchForm:{page:1,limit:10,title:""},tableData:[],total:0}},activated:function(){this.getTableDataList(1)},methods:{resetForm:function(e){this.$refs[e].resetFields(),this.getTableDataList(1)},handleSizeChange:function(e){this.searchForm.limit=e,this.handleCurrentChange(1)},handleCurrentChange:function(e){this.searchForm.page=e,this.getTableDataList()},getTableDataList:function(e){var t=this;return l()(i.a.mark(function a(){var r,n,o,l;return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e&&(t.searchForm.page=1),t.tableData=[],t.loading=!0,r=JSON.parse(s()(t.searchForm)),a.next=6,t.$api.market.articleList(r);case 6:if(n=a.sent,o=n.code,l=n.data,t.loading=!1,200===o){a.next=12;break}return a.abrupt("return");case 12:t.tableData=l.data,t.total=l.total;case 14:case"end":return a.stop()}},a,t)}))()},confirmDel:function(e,t){var a=this;this.$confirm(this.$t(3===t?"tips.confirmNoPass":"tips.confirmDelete"),this.$t("tips.reminder"),{confirmButtonText:this.$t("action.comfirm"),cancelButtonText:this.$t("action.cancel"),type:"warning"}).then(function(){a.updateItem(e,t)}).catch(function(){})},updateItem:function(e,t){var a=this;return l()(i.a.mark(function r(){return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:a.$api.market.articleUpdate({id:e,status:t}).then(function(e){if(200===e.code)a.$message.success(a.$t(-1===t?"tips.successDel":"tips.successOper")),-1===t&&(a.searchForm.page=a.searchForm.page