瀏覽代碼

酒店ID检索

dev
nizongfeng 3 年之前
父節點
當前提交
adfa05ce83
共有 2 個檔案被更改,包括 6 行新增0 行删除
  1. +3
    -0
      application/admin/dao/CfHotelInfoDao.php
  2. +3
    -0
      application/admin/view/cf_hotel_info/index.html

+ 3
- 0
application/admin/dao/CfHotelInfoDao.php 查看文件

@@ -72,6 +72,9 @@ class CfHotelInfoDao
if (!empty($param['city'])) {
$where["city"] = $param['city'];
}
if (!empty($param['id'])) {
$where['id'] = $param['id'];
}
$offset = ($param['pageNum'] - 1) * $param['pageSize'];
$model = new CfHotelInfo();
$total = $model->where($where)->count();


+ 3
- 0
application/admin/view/cf_hotel_info/index.html 查看文件

@@ -9,6 +9,8 @@
<div id="app" class="table">
<div>
<div class="header-search">
<span>ID:</span>
<el-input v-model="search.id" style="width: 120px;" placeholder="请输入内容"></el-input>
<span>名称:</span>
<el-input v-model="search.hotel_name" style="width: 120px;" placeholder="请输入内容"></el-input>
<span>手机号:</span>
@@ -138,6 +140,7 @@
data: function () {
return {
search: {
id:"",
hotel_name: "",
hotel_phone: "",
province:"",


Loading…
取消
儲存