@@ -109,16 +131,16 @@ import { serverError } from "@/utils/maintainer";
export default {
name: "RoomSerialView",
- setup() {
+ setup () {
return {};
},
- created() {
+ created () {
this.$nextTick(function () {
this.initData();
});
},
methods: {
- initData() {
+ initData () {
// ComboboxHelper.build(null, '#isPermit');
$(function () {
$("#table").bootstrapTable("destroy");
@@ -140,11 +162,10 @@ export default {
align: "center",
width: "10%",
},
- { field: "totalRadish", title: "萝卜流水", align: "center", width: "10%" },
+ // { field: "totalRadish", title: "萝卜流水", align: "center", width: "10%" },
{ field: "roomTitle", title: "房间标题", align: "center", width: "10%" },
{ field: "clanName", title: "公会名称", align: "center", width: "10%" },
{ field: "executionTime", title: "统计时间", align: "center", width: "15%" },
- { field: "executionTime", title: "统计时间", align: "center", width: "15%" },
{
field: "id",
title: "操作",
@@ -169,15 +190,11 @@ export default {
cache: false,
striped: true,
showRefresh: false,
- pageSize: 10,
- pagination: true,
- pageList: [1, 10, 20, 30, 50],
+ pagination: false,
search: false,
- sidePagination: "server", //表示服务端请求
- //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
//设置为limit可以获取limit, offset, search, sort, order
queryParamsType: "undefined",
- queryParams: function queryParams(params) {
+ queryParams: function queryParams (params) {
//设置查询参数
var param = {
pageNumber: params.pageNumber,
@@ -200,6 +217,7 @@ export default {
onLoadError: function () {
//加载失败时执行
console.log("load fail");
+ enableRefreshBtn();
},
});
@@ -219,7 +237,7 @@ export default {
$("#room-serial-refresh").click(function () {
disableRefreshBtn();
- $("#table").bootstrapTable("refresh", { url: "/admin/roomSerial/listByPage" });
+ $("#table").bootstrapTable("refresh", { url: "/admin/roomSerial/list" });
});
$("#room-serial-export").click(function () {
@@ -235,11 +253,11 @@ export default {
}
});
- function disableRefreshBtn() {
+ function disableRefreshBtn () {
$("#room-serial-refresh").attr("disabled", "true");
}
- function enableRefreshBtn() {
+ function enableRefreshBtn () {
$("#room-serial-refresh").removeAttr("disabled");
}
@@ -282,7 +300,7 @@ export default {
search: false,
sidePagination: "server", //表示服务端请求
queryParamsType: "undefined",
- queryParams: function queryParams(params) {
+ queryParams: function queryParams (params) {
//设置查询参数
var param = {
page: params.pageNumber,
@@ -330,7 +348,7 @@ export default {
});
});
- function apiResult(json) {
+ function apiResult (json) {
if (json.code == 200 && json.message == "success") {
return true;
}