boxpaged.vue
2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<style>
</style>
<template>
<div class="row-launch " v-show="show">
<h3>{{count}}<span class="f-size16">的供应企业</span></h3>
<div class="ctable">
<div class="ct-head">
<span class="ct-col w100">序号</span>
<span class="ct-col w200">公司名称</span>
<span class="ct-col w200">地区</span>
<span class="ct-col w150">联系人</span>
<span class="ct-col w150">联系电话</span>
<span class="ct-col w100">操作</span>
</div>
<div class="ct-row">
<div class="row-line" v-for="item in list">
<span class="ct-col w100">{{$index+1}}</span>
<span class="ct-col w200">{{item.name}}</span>
<span class="ct-col w200">{{item.address}}</span>
<span class="ct-col w150">{{item.LinkMan}}</span>
<span class="ct-col w150">{{item.ContactTel}}</span>
<span class="ct-col w100"><a class="btn-d btn-d-activate"
v-link="{path:'/hospitalDetailList/'+item.GUID}">详情</a></span>
</div>
</div>
</div>
<pagination @page-change="getData" :page-no.sync="search.page" :total-pages.sync="search.totalPages">
<!-- <em class="page">明细条目数【3】</em> -->
</pagination>
<div class="zip" v-on:click="show=false"></div>
</div>
</template>
<script>
module.exports = {
data: function() {
return {
list: [],
search: {
size: 10,
page: 1,
totalPages: 0,
searchWord: '',
id: ''
}
}
},
props: {
id: {
type: String,
default: ''
},
show: {
type: Boolean,
default: false
},
count: {
type: String,
default: ''
}
},
watch: {
'show': function(show) {
if(show == true) {
this.getData();
}
}
},
methods: {
getData: function(casetxt) { //请求数据
this.search.id = this.id;
Ajax.get('/api/goverment_goodsDetial_getSupplyHospitalList',
this.search).then(function(res) {
var result = res.data;
if(result.data) {
this.$set('list', result.data.list);
this.search.totalPages = result.data.totalPages
}
}.bind(this))
}
}
}
</script>