Commit 94816e4c authored by 黄奎's avatar 黄奎

页面修改

parent 7704eb25
...@@ -5,14 +5,14 @@ ...@@ -5,14 +5,14 @@
<el-tab-pane label="酒店" name="first">酒店</el-tab-pane> <el-tab-pane label="酒店" name="first">酒店</el-tab-pane>
<el-tab-pane label="餐食" name="second">餐食</el-tab-pane> <el-tab-pane label="餐食" name="second">餐食</el-tab-pane>
<el-tab-pane label="门票" name="third">门票</el-tab-pane> <el-tab-pane label="门票" name="third">门票</el-tab-pane>
</el-tabs> </el-tabs>
<template> <template>
</template> </template>
<el-input size="mini" v-model="msg.Name" placeholder="根据名称搜索" :clearable="true" @clear="msg.pageIndex=1,getList()" <el-input size="mini" v-model="msg.Name" placeholder="根据名称搜索" :clearable="true"
@keyup.enter.native="msg.pageIndex=1,getList()"> @clear="msg.pageIndex=1,getHotelPage()" @keyup.enter.native="msg.pageIndex=1,getHotelPage()">
<el-button slot="append" @click="msg.pageIndex=1,getList()">搜索</el-button> <el-button slot="append" @click="msg.pageIndex=1,getHotelPage()">搜索</el-button>
</el-input> </el-input>
<el-table ref="multipleTable" :data="dataList" tooltip-effect="dark" height="450" style="width: 100%" <el-table ref="multipleTable" :data="dataList" tooltip-effect="dark" height="450" style="width: 100%"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
GoodsStatus: 1, //上架中 GoodsStatus: 1, //上架中
IsGetSpec: 0 IsGetSpec: 0
}, },
activeName:"first", activeName: "first",
total: 0, total: 0,
selectRow: [], selectRow: [],
}; };
...@@ -76,12 +76,11 @@ ...@@ -76,12 +76,11 @@
} }
}, },
methods: { methods: {
handleClick() handleClick() {
{
}, },
//获取所有菜单 //获取酒店分页
getList() { getHotelPage() {
this.apipost("/api/Hotel/GetHotelPage", this.msg, res => { this.apipost("/api/Hotel/GetHotelPage", this.msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.total = res.data.data.count; this.total = res.data.data.count;
...@@ -100,6 +99,23 @@ ...@@ -100,6 +99,23 @@
handleSelectionChange(val) { handleSelectionChange(val) {
this.selectRow = JSON.parse(JSON.stringify(val)); this.selectRow = JSON.parse(JSON.stringify(val));
}, },
//获取餐食分页
getDinnerPage() {
this.apipost("/api/AppletDining/DiningPage", this.msg, res => {
if (res.data.resultCode == 1) {
this.total = res.data.data.count;
var tempArray = res.data.data.pageData;
if (tempArray && tempArray.length > 0) {
tempArray.forEach(item => {
item.IsChecked = false;
});
}
this.dataList = JSON.parse(JSON.stringify(tempArray));
} else {
this.Info(res.data.message);
}
})
},
getTemplateRow(index, row) { getTemplateRow(index, row) {
this.selectRow = []; this.selectRow = [];
if (this.dataList && this.dataList.length > 0) { if (this.dataList && this.dataList.length > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment