parent
36fcdc4af3
commit
7ee41dc699
@ -0,0 +1,110 @@
|
||||
<template>
|
||||
<div>
|
||||
<div ref="lxHeader">
|
||||
<lx-header icon="md-apps" style="margin-bottom: 10px; border: 0px; margin-top: 15px" text="数据对比">
|
||||
<div slot="content"></div>
|
||||
<slot>
|
||||
<div>
|
||||
<Select v-model="select.type" style="width: 200px;">
|
||||
<Option v-for="(item,index) in ['四世同堂和亲情护理','四世同堂和85岁','亲情护理和85岁']" :value="index+1">{{item}}</Option>
|
||||
</Select>
|
||||
<Button style="margin-left: 10px" type="primary" @click="getRepeat">查询</Button>
|
||||
</div>
|
||||
</slot>
|
||||
</lx-header>
|
||||
</div>
|
||||
|
||||
<xy-table
|
||||
:total="total"
|
||||
:list="list"
|
||||
:table-item="table"
|
||||
@pageSizeChange="e => {select.page_size = e;select.page = 1;getRepeat();}"
|
||||
@pageIndexChange="e => {select.page = e;getRepeat();}"></xy-table>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { repeatCustomerList } from "@/api/other"
|
||||
|
||||
export default {
|
||||
components:{
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
select:{
|
||||
type: 3,
|
||||
page:1,
|
||||
page_size:10
|
||||
},
|
||||
types:[],
|
||||
|
||||
total:0,
|
||||
list:[],
|
||||
table:[
|
||||
{
|
||||
prop: 'type_name',
|
||||
label: '对比名称',
|
||||
width: 140
|
||||
},
|
||||
{
|
||||
label: '护工名称',
|
||||
prop: 'name',
|
||||
width: 120,
|
||||
fixed: 'left'
|
||||
},
|
||||
{
|
||||
label: '对比时间',
|
||||
prop: 'my_time',
|
||||
width: 200,
|
||||
customFn:row => {
|
||||
let data = row.my_time.split(',')
|
||||
return (
|
||||
<div>
|
||||
<span>{data[0]}</span>
|
||||
<br/>
|
||||
<span>~</span>
|
||||
<br/>
|
||||
<span>{data[1]}</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '被对比时间',
|
||||
prop: 'other_time',
|
||||
width: 200,
|
||||
customFn:row => {
|
||||
let data = row.other_time.split(',')
|
||||
return (
|
||||
<div>
|
||||
<span>{data[0]}</span>
|
||||
<br/>
|
||||
<span>~</span>
|
||||
<br/>
|
||||
<span>{data[1]}</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async getRepeat () {
|
||||
const res = await repeatCustomerList(this.select);
|
||||
console.log(res)
|
||||
this.list = res.data;
|
||||
this.total = res.total;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
created() {
|
||||
this.getRepeat()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
</style>
|
||||
Loading…
Reference in new issue