Vue.component('comB', { template: '
\ \ 门急诊费>=999,000.00(999,000.00=上月门急诊次均费用*3)/住院费用>=999,000.00(999,000.00=上月住院次均费用*3)\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
', data: function () { return { currentPage: 1, //初始页 pageSize: 10, // 每页的数据 pageSizeArr: [10, 20, 30, 50], tableData: [], total: 0, value: '门急诊', item:'', items:'', hosLevel: '', option: [], options: [{ value: '1', label: '门急诊' }, { value: '2', label: '住院' }], value4: '', } }, mounted: function () { this.getData() }, methods: { handleClick(row) { console.log(row); }, handleCurrentChange: function (val) { //page 当前页 this.currentPage = val; this.getData() }, handleSizeChange: function (val) {// size 页面展示数据条数 this.pageSize = val; this.initData() }, initData: function () { //初始化数据 this.currentPage = 1; this.getData() }, getData: function () { var vm = this; var params = { month: '2018-08', eventType: 0, hosLevel: this.hosLevel, hosHierarchy: this.hosHierarchy, size: 15, page: 1, } debugger bigDataOutApi.getHighCostList(params).then(function (res) { console.log(res) vm.tableData = res.detailModelList; vm.total = res.totalCount; }).catch(function (err) { console.log(err) }) } } })