| | |
| | | <script> |
| | | import { mapGetters } from 'vuex' |
| | | import { |
| | | getList, getCanteenList, getSupermarketList, |
| | | getMedicalList, getExpressList, getShowersList, |
| | | getTransferList, getCopyList, getBankList, |
| | | getAedList, getServiceList, getParkList, |
| | | getAlleywayList |
| | | getList, |
| | | getLifeList |
| | | } from '@/api/pc/service/index' |
| | | |
| | | export default { |
| | |
| | | getChilsNavs (campus) { |
| | | this.itemNavList = [] |
| | | |
| | | if (this.arcCode == 1) { |
| | | getCanteenList({ campus: campus }).then(res => { |
| | | res.data.data.records.forEach(item => { |
| | | this.itemNavList.push({ |
| | | navTitle: item.mechanismname, |
| | | icon: '/img/navicon/tag.png', |
| | | details: item |
| | | }) |
| | | getLifeList({ lifetype: this.arcCode, campus: campus }).then(res => { |
| | | res.data.data.records.forEach(item => { |
| | | this.itemNavList.push({ |
| | | navTitle: item.mechanismname, |
| | | icon: '/img/navicon/tag.png', |
| | | details: item |
| | | }) |
| | | }) |
| | | } else if (this.arcCode == 2) { |
| | | getSupermarketList({ campus: campus }).then(res => { |
| | | res.data.data.records.forEach(item => { |
| | | this.itemNavList.push({ |
| | | navTitle: item.mechanismname, |
| | | icon: '/img/navicon/tag.png', |
| | | details: item |
| | | }) |
| | | }) |
| | | }) |
| | | } else if (this.arcCode == 3) { |
| | | getMedicalList({ campus: campus }).then(res => { |
| | | res.data.data.records.forEach(item => { |
| | | this.itemNavList.push({ |
| | | navTitle: item.mechanismname, |
| | | icon: '/img/navicon/tag.png', |
| | | details: item |
| | | }) |
| | | }) |
| | | }) |
| | | } else if (this.arcCode == 4) { |
| | | getExpressList({ campus: campus }).then(res => { |
| | | res.data.data.records.forEach(item => { |
| | | this.itemNavList.push({ |
| | | navTitle: item.mechanismname, |
| | | icon: '/img/navicon/tag.png', |
| | | details: item |
| | | }) |
| | | }) |
| | | }) |
| | | } else if (this.arcCode == 5) { |
| | | getShowersList({ campus: campus }).then(res => { |
| | | res.data.data.records.forEach(item => { |
| | | this.itemNavList.push({ |
| | | navTitle: item.mechanismname, |
| | | icon: '/img/navicon/tag.png', |
| | | details: item |
| | | }) |
| | | }) |
| | | }) |
| | | } else if (this.arcCode == 6) { |
| | | getTransferList({ campus: campus }).then(res => { |
| | | res.data.data.records.forEach(item => { |
| | | this.itemNavList.push({ |
| | | navTitle: item.mechanismname, |
| | | icon: '/img/navicon/tag.png', |
| | | details: item |
| | | }) |
| | | }) |
| | | }) |
| | | } else if (this.arcCode == 7) { |
| | | getCopyList({ campus: campus }).then(res => { |
| | | res.data.data.records.forEach(item => { |
| | | this.itemNavList.push({ |
| | | navTitle: item.mechanismname, |
| | | icon: '/img/navicon/tag.png', |
| | | details: item |
| | | }) |
| | | }) |
| | | }) |
| | | } else if (this.arcCode == 8) { |
| | | getBankList({ campus: campus }).then(res => { |
| | | res.data.data.records.forEach(item => { |
| | | this.itemNavList.push({ |
| | | navTitle: item.mechanismname, |
| | | icon: '/img/navicon/tag.png', |
| | | details: item |
| | | }) |
| | | }) |
| | | }) |
| | | } else if (this.arcCode == 9) { |
| | | getAedList({ campus: campus }).then(res => { |
| | | res.data.data.records.forEach(item => { |
| | | this.itemNavList.push({ |
| | | navTitle: item.mechanismname, |
| | | icon: '/img/navicon/tag.png', |
| | | details: item |
| | | }) |
| | | }) |
| | | }) |
| | | } else if (this.arcCode == 10) { |
| | | getServiceList({ campus: campus }).then(res => { |
| | | res.data.data.records.forEach(item => { |
| | | this.itemNavList.push({ |
| | | navTitle: item.mechanismname, |
| | | icon: '/img/navicon/tag.png', |
| | | details: item |
| | | }) |
| | | }) |
| | | }) |
| | | } else if (this.arcCode == 11) { |
| | | getParkList({ campus: campus }).then(res => { |
| | | res.data.data.records.forEach(item => { |
| | | this.itemNavList.push({ |
| | | navTitle: item.mechanismname, |
| | | icon: '/img/navicon/tag.png', |
| | | details: item |
| | | }) |
| | | }) |
| | | }) |
| | | } else if (this.arcCode == 12) { |
| | | getAlleywayList({ campus: campus }).then(res => { |
| | | res.data.data.records.forEach(item => { |
| | | this.itemNavList.push({ |
| | | navTitle: item.mechanismname, |
| | | icon: '/img/navicon/tag.png', |
| | | details: item |
| | | }) |
| | | }) |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | mapPopup (param) { |
| | | var result = param |