Vue.component('comD',{
template:'
\
\
就诊类型: \
\
\
\
机构等级: \
\
\
\
\
查看药品字典 \
\
\
\
\
搜索
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
查看详情\
\
\
\
\
\
\
\
',
data:function(){
return{
currentPage: 1, //初始页
pagesize:2, // 每页的数据
tableData: [{
date: '2016-05-03',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-02',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-04',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-01',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}],
options: [{
value: '选项1',
label: '外科'
}, {
value: '选项2',
label: '住院'
}],
option: [{
value: '选项1',
label: '全部'
}, {
value: '选项2',
label: '选线一'
}],
value: '全部'
}
},
methods: {
handleSizeChange: function (size) {
this.pagesize = size;
console.log(this.pagesize) //每页下拉显示数据
},
handleCurrentChange: function (currentPage) {
this.currentPage = currentPage;
console.log(this.currentPage) //点击第几页
},
handleClick(row) {
console.log(row);
}
}
})