Commit 94cdcdc0 authored by 黄奎's avatar 黄奎

页面修改

parent 8873dbe1
...@@ -3,13 +3,22 @@ ...@@ -3,13 +3,22 @@
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
<span> <span> </span>
</span>
</li> </li>
<li> <li>
<input type="button" @click="" class="normalBtn" value="一日游合同" /> <input type="button" @click="" class="normalBtn" value="一日游合同" />
<input type="button" @click="" class="normalBtn" value="境内旅游合同" /> <input
<input type="button" @click="" class="normalBtn" value="单项委托合同" /> type="button"
@click=""
class="normalBtn"
value="境内旅游合同"
/>
<input
type="button"
@click=""
class="normalBtn"
value="单项委托合同"
/>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -20,65 +29,114 @@ ...@@ -20,65 +29,114 @@
<th width="100">城市</th> <th width="100">城市</th>
<th>操作</th> <th>操作</th>
</tr> </tr>
<tr v-for="(item,index) in dataList"> <tr v-for="(item, index) in dataList">
<td>{{item.C_BusCode}}</td> <td>{{ item.C_BusCode }}</td>
<td>{{item.C_BreakfastAddress}}</td> <td>{{ item.C_BreakfastAddress }}</td>
<td>{{item.C_ComplaintCity}}</td> <td>{{ item.C_ComplaintCity }}</td>
<td> <td>
<el-tooltip class="item" effect="dark" content="修改" placement="top-start"> <el-tooltip
<el-button type="primary" icon="el-icon-edit" circle @click="goContract('onedayTripContract',item)"></el-button> class="item"
</el-tooltip> effect="dark"
content="修改"
placement="top-start"
>
<el-button
type="primary"
icon="el-icon-edit"
circle
@click="goContract('onedayTripContract', item)"
></el-button>
</el-tooltip>
<el-tooltip
class="item"
effect="dark"
content="删除"
placement="top-start"
>
<el-button
type="primary"
icon="el-icon-edit"
circle
@click="DeleteContract(item)"
></el-button>
</el-tooltip>
</td> </td>
</tr> </tr>
</table> </table>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" layout="total,prev, pager, next, jumper" <el-pagination
:page-size=msg.pageSize :total=total> background
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
layout="total,prev, pager, next, jumper"
:page-size="msg.pageSize"
:total="total"
>
</el-pagination> </el-pagination>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
total: 0, total: 0,
currentPage: 1, currentPage: 1,
dataList: [], dataList: [],
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 15, pageSize: 15
},
} }
};
},
mounted() {
this.getList();
},
methods: {
//删除合同
DeleteContract(item) {
this.apipost(
"travelcontract_post_RemoveTravelContractService",
{ ID: item.ID },
res => {
if (res.data.resultCode == 1) {
this.getList();
} else {
this.Error(res.data.message);
}
},
err => {}
);
}, },
mounted() { getList() {
this.getList() //获取列表数据
}, this.apipost(
methods: { "travelcontract_get_GetPageListService",
getList() { //获取列表数据 this.msg,
this.apipost("travelcontract_get_GetPageListService", this.msg, res => { res => {
console.log(res,'resss');
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
this.total = res.data.data.count; this.total = res.data.data.count;
} else {} } else {
}, err => {}) this.Error(res.data.message);
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
goContract(path,item) {
this.$router.push({
name: path,
query: {
"id": item.ID,
blank: 'y',
tab: "一日游合同"
} }
}) },
}, err => {}
);
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
goContract(path, item) {
this.$router.push({
name: path,
query: {
id: item.ID,
blank: "y",
tab: "一日游合同"
}
});
} }
} }
};
</script> </script>
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