房间流水-后台-listByPage改list
This commit is contained in:
@@ -10,15 +10,30 @@
|
|||||||
<div class="big-tips">
|
<div class="big-tips">
|
||||||
数据量过大,不再默认加载所有的数据,请先选择时间后,再点查询按钮
|
数据量过大,不再默认加载所有的数据,请先选择时间后,再点查询按钮
|
||||||
</div>
|
</div>
|
||||||
<form id="searchForm" action="/admin/roomSerial/export" method="POST">
|
<form id="searchForm"
|
||||||
|
action="/admin/roomSerial/export"
|
||||||
|
method="POST">
|
||||||
房主平台号(多个查询以英文逗号分隔):
|
房主平台号(多个查询以英文逗号分隔):
|
||||||
<input type="text" name="erbanNos" id="erbanNos" class="input-sm" style="margin-right: 40px;display: inline-block;"/> 选择时间:
|
<input type="text"
|
||||||
<input type="text" name="startTime" id="startTime" class="input-sm" /> 至
|
name="erbanNos"
|
||||||
<input type="text" id="endTime" name="endTime" class="input-sm" />
|
id="erbanNos"
|
||||||
|
class="input-sm"
|
||||||
|
style="margin-right: 40px;display: inline-block;" /> 选择时间:
|
||||||
|
<input type="text"
|
||||||
|
name="startTime"
|
||||||
|
id="startTime"
|
||||||
|
class="input-sm" /> 至
|
||||||
|
<input type="text"
|
||||||
|
id="endTime"
|
||||||
|
name="endTime"
|
||||||
|
class="input-sm" />
|
||||||
<br />
|
<br />
|
||||||
<div style="width: 60%">
|
<div style="width: 60%">
|
||||||
房间类型:
|
房间类型:
|
||||||
<select name="isPermit" id="isPermit" class="input-sm" style="width: 30%;display: inline-block;">
|
<select name="isPermit"
|
||||||
|
id="isPermit"
|
||||||
|
class="input-sm"
|
||||||
|
style="width: 30%;display: inline-block;">
|
||||||
<option value="0">全部</option>
|
<option value="0">全部</option>
|
||||||
<option value="1">牌照房</option>
|
<option value="1">牌照房</option>
|
||||||
<option value="3">新秀房</option>
|
<option value="3">新秀房</option>
|
||||||
@@ -29,10 +44,12 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<button id="room-serial-refresh" class="btn btn-default">
|
<button id="room-serial-refresh"
|
||||||
|
class="btn btn-default">
|
||||||
<i class="glyphicon glyphicon-wrench"></i>查询
|
<i class="glyphicon glyphicon-wrench"></i>查询
|
||||||
</button>
|
</button>
|
||||||
<button id="room-serial-export" class="btn btn-default">
|
<button id="room-serial-export"
|
||||||
|
class="btn btn-default">
|
||||||
<i class="glyphicon glyphicon-plus"></i>导出
|
<i class="glyphicon glyphicon-plus"></i>导出
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -40,37 +57,40 @@
|
|||||||
</section>
|
</section>
|
||||||
<!-- .content -->
|
<!-- .content -->
|
||||||
|
|
||||||
<div
|
<div class="modal fade"
|
||||||
class="modal fade"
|
id="tipModal"
|
||||||
id="tipModal"
|
tabindex="-1"
|
||||||
tabindex="-1"
|
role="dialog"
|
||||||
role="dialog"
|
aria-labelledby="modalLabel">
|
||||||
aria-labelledby="modalLabel"
|
<div class="modal-dialog"
|
||||||
>
|
role="document">
|
||||||
<div class="modal-dialog" role="document">
|
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h4 class="modal-title">提示信息</h4>
|
<h4 class="modal-title">提示信息</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body" id="tipMsg"></div>
|
<div class="modal-body"
|
||||||
|
id="tipMsg"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div class="modal fade"
|
||||||
class="modal fade"
|
id="roomGiftSerialDetailModal"
|
||||||
id="roomGiftSerialDetailModal"
|
tabindex="-1"
|
||||||
tabindex="-1"
|
role="dialog"
|
||||||
role="dialog"
|
aria-labelledby="modalLabel">
|
||||||
aria-labelledby="modalLabel"
|
<div class="modal-dialog"
|
||||||
>
|
role="document">
|
||||||
<div class="modal-dialog" role="document">
|
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button"
|
||||||
|
class="close"
|
||||||
|
data-dismiss="modal"
|
||||||
|
aria-label="Close">
|
||||||
<span aria-hidden="true">×</span>
|
<span aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
<h4 class="modal-title" id="roomGiftSerialDetailModalTitle">房间明细</h4>
|
<h4 class="modal-title"
|
||||||
|
id="roomGiftSerialDetailModalTitle">房间明细</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="summary col-sm-12">
|
<div class="summary col-sm-12">
|
||||||
@@ -95,7 +115,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<h4 id="roundDetailModalFooter"></h4>
|
<h4 id="roundDetailModalFooter"></h4>
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">确定</button>
|
<button type="button"
|
||||||
|
class="btn btn-default"
|
||||||
|
data-dismiss="modal">确定</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -109,16 +131,16 @@ import { serverError } from "@/utils/maintainer";
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "RoomSerialView",
|
name: "RoomSerialView",
|
||||||
setup() {
|
setup () {
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
created() {
|
created () {
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
this.initData();
|
this.initData();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initData() {
|
initData () {
|
||||||
// ComboboxHelper.build(null, '#isPermit');
|
// ComboboxHelper.build(null, '#isPermit');
|
||||||
$(function () {
|
$(function () {
|
||||||
$("#table").bootstrapTable("destroy");
|
$("#table").bootstrapTable("destroy");
|
||||||
@@ -140,11 +162,10 @@ export default {
|
|||||||
align: "center",
|
align: "center",
|
||||||
width: "10%",
|
width: "10%",
|
||||||
},
|
},
|
||||||
{ field: "totalRadish", title: "萝卜流水", align: "center", width: "10%" },
|
// { field: "totalRadish", title: "萝卜流水", align: "center", width: "10%" },
|
||||||
{ field: "roomTitle", title: "房间标题", align: "center", width: "10%" },
|
{ field: "roomTitle", title: "房间标题", align: "center", width: "10%" },
|
||||||
{ field: "clanName", 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: "executionTime", title: "统计时间", align: "center", width: "15%" },
|
|
||||||
{
|
{
|
||||||
field: "id",
|
field: "id",
|
||||||
title: "操作",
|
title: "操作",
|
||||||
@@ -169,15 +190,11 @@ export default {
|
|||||||
cache: false,
|
cache: false,
|
||||||
striped: true,
|
striped: true,
|
||||||
showRefresh: false,
|
showRefresh: false,
|
||||||
pageSize: 10,
|
pagination: false,
|
||||||
pagination: true,
|
|
||||||
pageList: [1, 10, 20, 30, 50],
|
|
||||||
search: false,
|
search: false,
|
||||||
sidePagination: "server", //表示服务端请求
|
|
||||||
//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
|
|
||||||
//设置为limit可以获取limit, offset, search, sort, order
|
//设置为limit可以获取limit, offset, search, sort, order
|
||||||
queryParamsType: "undefined",
|
queryParamsType: "undefined",
|
||||||
queryParams: function queryParams(params) {
|
queryParams: function queryParams (params) {
|
||||||
//设置查询参数
|
//设置查询参数
|
||||||
var param = {
|
var param = {
|
||||||
pageNumber: params.pageNumber,
|
pageNumber: params.pageNumber,
|
||||||
@@ -200,6 +217,7 @@ export default {
|
|||||||
onLoadError: function () {
|
onLoadError: function () {
|
||||||
//加载失败时执行
|
//加载失败时执行
|
||||||
console.log("load fail");
|
console.log("load fail");
|
||||||
|
enableRefreshBtn();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -219,7 +237,7 @@ export default {
|
|||||||
|
|
||||||
$("#room-serial-refresh").click(function () {
|
$("#room-serial-refresh").click(function () {
|
||||||
disableRefreshBtn();
|
disableRefreshBtn();
|
||||||
$("#table").bootstrapTable("refresh", { url: "/admin/roomSerial/listByPage" });
|
$("#table").bootstrapTable("refresh", { url: "/admin/roomSerial/list" });
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#room-serial-export").click(function () {
|
$("#room-serial-export").click(function () {
|
||||||
@@ -235,11 +253,11 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function disableRefreshBtn() {
|
function disableRefreshBtn () {
|
||||||
$("#room-serial-refresh").attr("disabled", "true");
|
$("#room-serial-refresh").attr("disabled", "true");
|
||||||
}
|
}
|
||||||
|
|
||||||
function enableRefreshBtn() {
|
function enableRefreshBtn () {
|
||||||
$("#room-serial-refresh").removeAttr("disabled");
|
$("#room-serial-refresh").removeAttr("disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -282,7 +300,7 @@ export default {
|
|||||||
search: false,
|
search: false,
|
||||||
sidePagination: "server", //表示服务端请求
|
sidePagination: "server", //表示服务端请求
|
||||||
queryParamsType: "undefined",
|
queryParamsType: "undefined",
|
||||||
queryParams: function queryParams(params) {
|
queryParams: function queryParams (params) {
|
||||||
//设置查询参数
|
//设置查询参数
|
||||||
var param = {
|
var param = {
|
||||||
page: params.pageNumber,
|
page: params.pageNumber,
|
||||||
@@ -330,7 +348,7 @@ export default {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function apiResult(json) {
|
function apiResult (json) {
|
||||||
if (json.code == 200 && json.message == "success") {
|
if (json.code == 200 && json.message == "success") {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user