1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-63a9f66c"],{3790:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container",attrs:{id:"refund"}},[a("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.loadingFull,expression:"loadingFull",modifiers:{fullscreen:!0,lock:!0}}]}),t._v(" "),a("el-table",{ref:"listTable",staticClass:"table",attrs:{border:"",stripe:"","header-cell-style":{background:"#eef1f9"},data:t.list}},[a("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"状态",type:"warning"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-tag",{attrs:{type:1===n.status?"success":"danger"}},[t._v(t._s(0===n.status?"同步中":"同步完成"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"finish_at",label:"完成时间"}})],1),t._v(" "),a("pagination",{attrs:{total:t.tableTotal,limit:t.listQuery.page_size,page:t.listQuery.page_index},on:{pagination:t.changePagination,"update:limit":t.changePagination}})],1)},l=[],i=a("c80c"),s=(a("96cf"),a("3b8d")),r=a("0bbe"),c={data:function(){return{loadingFull:!1,listQuery:{page_index:1,page_size:10},list:[],tableTotal:0}},created:function(){this.getList()},methods:{getList:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e=this;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loadingFull=!0,t.next=3,Object(r["f"])().then((function(t){e.loadingFull=!1,200===t.code?(e.list=t.data.list,console.log(e.list),e.tableTotal=t.data.total):e.$message.error(t.message)})).catch((function(t){e.loadingFull=!1}));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),changePagination:function(t){var e=t.page,a=t.limit;this.listQuery.page_size=a,this.listQuery.page_index=e,this.getList()},getcolor:function(t){return t?"success":"warning"}}},o=c,u=(a("f723"),a("2877")),d=Object(u["a"])(o,n,l,!1,null,null,null);e["default"]=d.exports},"3d30":function(t,e,a){},f723:function(t,e,a){"use strict";a("3d30")}}]);
|