Vue.component('comC', {
template: '
\
\
检查/检验: \
\
\
\
\
\
\
查看字典\
\
\
搜索
\
\
一周内同种检查/检验项目的次数>=3\
\
\
\
\
\
\
\
\
\
男\
女\
\
\
\
\
\
\
\
\
查看详情\
\
\
\
\
\
\
\
\
',
data: function () {
return {
currentPage: 1, //初始页
pageSize: 10, // 每页的数据
tableData: [],
pageSizeArr: [10, 20, 30, 50],
total: 0,
value4: new Date(),
options: [],
inspect: '',
}
},
mounted: function () {
this.getData()
this.getList()
},
methods: {
handleCurrentChange: function (val) {
this.currentPage = val;
this.getData()
},
handleSizeChange: function (val) {
this.pageSize = val;
this.initData()
},
initData: function () { //初始化
this.currentPage = 1;
this.getData()
},
searchClick: function () {
this.initData()
},
getData: function () {
var vm = this;
var params = {
month: this.value4.format('yyyy-MM'),
size: this.pageSize,
page: this.currentPage,
inspect: this.inspect,
}
GlobalEventBus.$emit('setLoading', {
loading: true
}); //等待效果
bigDataOutApi.getRepeateInspectList(params).then(function (res) {
console.log(res)
GlobalEventBus.$emit('setLoading');
vm.tableData = res.detailModelList;
vm.total = res.totalCount;
}).catch(function (err) {
console.log(err)
GlobalEventBus.$emit('setLoading');
})
},
getList: function () {
var it = this;
var params = {
code: "STD_CHECK_ITEM",
size: 20,
page: 1
}
GlobalEventBus.$emit('setLoading', {
loading: true
}); //等待效果
bigDataOutApi.lastDictItem(params).then(function (res) {
console.log(res)
GlobalEventBus.$emit('setLoading');
it.options = res.detailModelList
}).catch(function (err) {
console.log(err)
GlobalEventBus.$emit('setLoading');
})
},
handleClick: function (row) {
demographic_id = row.demographic_id,
blurry_type = '',
searchParam = ''
var url = httpRequest.server + '/profile/app/medication/html/jiuzhen-item.html?' +
'healthProblemName=' + '&demographic_id=' + demographic_id + '&blurry_type=' + blurry_type + '&searchParam=' + searchParam
console.log(url)
// window.open(url)
var width = 1000 + 'px';
var height = 600 + 'px';
top.layer.open({
id: 'Lay_xiangqingC',
type: 2,
title: false,
closeBtn: 0,
shade: 0.5,
shadeClose: true,
area: [width, height],
content: url
})
},
handleZidian: function () {
var url = httpRequest.server+'/bigScreenShow/page/bigDataOut/html/zidian.html?'
console.log(url)
var width = 1000 + 'px';
var height = 600 + 'px';
top.layer.open({
id: 'Lay_zidian',
type: 2,
title: false,
closeBtn: 0,
shade: 0.5,
shadeClose: true,
area: [width, height],
content: url
})
}
}
})