|
@ -18,22 +18,14 @@ export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
lists: [ |
|
|
lists: [ |
|
|
{ id: 1, active: false, name: '专科护士' }, |
|
|
{ code: 1, active: false, name: '急救医生到场' }, |
|
|
{ id: 2, active: false, name: '专科医生' }, |
|
|
{ code: 1, active: false, name: '急救护士到场' }, |
|
|
{ id: 3, active: false, name: '采血推车' }, |
|
|
{ code: 3, active: false, name: '护士采血' }, |
|
|
{ id: 4, active: false, name: '心电图推车' }, |
|
|
{ code: 3, active: false, name: '采血车到场' }, |
|
|
{ id: 5, active: false, name: '介入室' }, |
|
|
{ code: 4, active: false, name: 'CT室' }, |
|
|
{ id: 6, active: false, name: 'CT室' }, |
|
|
{ code: 8, active: false, name: '介入室' }, |
|
|
{ id: 7, active: false, name: '急救室' }, |
|
|
{ code: 8, active: false, name: '抢救室' }, |
|
|
{ id: 8, active: false, name: '急诊医生' }, |
|
|
{ code: 8, active: false, name: '抢救室' }, |
|
|
{ id: 9, active: false, name: '专科护士' }, |
|
|
|
|
|
{ id: 10, active: false, name: '专科医生' }, |
|
|
|
|
|
{ id: 11, active: false, name: '采血推车' }, |
|
|
|
|
|
{ id: 12, active: false, name: '心电图推车' }, |
|
|
|
|
|
{ id: 13, active: false, name: '介入室' }, |
|
|
|
|
|
{ id: 14, active: false, name: 'CT室' }, |
|
|
|
|
|
{ id: 15, active: false, name: '急救室' }, |
|
|
|
|
|
{ id: 16, active: false, name: '急诊医生' }, |
|
|
|
|
|
], |
|
|
], |
|
|
num: 0, //当前正在展示的div |
|
|
num: 0, //当前正在展示的div |
|
|
}; |
|
|
}; |
|
@ -55,7 +47,7 @@ export default { |
|
|
// 翻页 |
|
|
// 翻页 |
|
|
for (let a = 0; a < this.newArr.length; a++) { |
|
|
for (let a = 0; a < this.newArr.length; a++) { |
|
|
const arr = this.newArr[a]; |
|
|
const arr = this.newArr[a]; |
|
|
const item = arr.find(item => item.id === element.id); |
|
|
const item = arr.find(item => item.name === element.name); |
|
|
if (item) { |
|
|
if (item) { |
|
|
this.num = a; |
|
|
this.num = a; |
|
|
} |
|
|
} |
|
|