| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { mapGetters } from 'vuex' |
| | | import { getList } from '@/api/mobile/orgnav/index' // 机构单位 |
| | | import { getChildNavList } from '@/api/mobile/public/arc' // 社区建筑 |
| | | import { mapGetters } from "vuex"; |
| | | import { getList } from "@/api/mobile/orgnav/index"; // 机构单位 |
| | | import { getChildNavList } from "@/api/mobile/public/arc"; // 社区建筑 |
| | | import { |
| | | // getListlivingFacilitiesr, |
| | | // getListsupermarket, |
| | |
| | | // getListaed, |
| | | // getListsignal, |
| | | // getListtransference, |
| | | getListLifeOnce // 所有的 |
| | | } from '@/api/mobile/livingFacilities/index' // 生活设施 |
| | | getListLifeOnce, // 所有的 |
| | | } from "@/api/mobile/livingFacilities/index"; // 生活设施 |
| | | // import { getListdoor } from "@/api/mobile/outIn/index"; //出入口 |
| | | // import { getListparking } from "@/api/mobile/stop/index"; //停车场 |
| | | export default { |
| | | name: 'mobilePopupOurAfter', |
| | | name: "mobilePopupOurAfter", |
| | | computed: { |
| | | ...mapGetters(['mBigPopupAfter']) |
| | | ...mapGetters(["mBigPopupAfter"]), |
| | | }, |
| | | data () { |
| | | data() { |
| | | return { |
| | | choiceValue: '', |
| | | choiceValue: "", |
| | | choiceDataUp: [ |
| | | { |
| | | // seeName: "社区内机构导览", |
| | | name: '机构单位', |
| | | icon: 'el-icon-s-cooperation', |
| | | opendata: 'openData1' |
| | | name: "机构单位", |
| | | icon: "el-icon-s-cooperation", |
| | | opendata: "openData1", |
| | | }, |
| | | { |
| | | name: '社区建筑', |
| | | opendata: 'openData2', |
| | | icon: 'el-icon-s-management' |
| | | name: "社区建筑", |
| | | opendata: "openData2", |
| | | icon: "el-icon-s-management", |
| | | }, |
| | | { |
| | | // seeName: "生活服务设施", |
| | | name: '生活设施', |
| | | opendata: 'openData3', |
| | | icon: 'el-icon-s-flag' |
| | | } |
| | | name: "生活设施", |
| | | opendata: "openData3", |
| | | icon: "el-icon-s-flag", |
| | | }, |
| | | ], |
| | | choiceDataDown: [ |
| | | { |
| | | name: '文化风景', |
| | | opendata: 'openData4', |
| | | icon: 'el-icon-s-opportunity' |
| | | name: "文化风景", |
| | | opendata: "openData4", |
| | | icon: "el-icon-s-opportunity", |
| | | }, |
| | | { |
| | | name: '出入口', |
| | | opendata: 'openData5', |
| | | icon: 'el-icon-s-promotion' |
| | | name: "出入口", |
| | | opendata: "openData5", |
| | | icon: "el-icon-s-promotion", |
| | | }, |
| | | { |
| | | name: '停车场', |
| | | opendata: 'openData6', |
| | | icon: 'el-icon-s-flag' |
| | | } |
| | | name: "停车场", |
| | | opendata: "openData6", |
| | | icon: "el-icon-s-flag", |
| | | }, |
| | | ], |
| | | openData1: [ |
| | | { name: '党群机构', type: 1, method: getList }, |
| | | { name: '职能部处', type: 2, method: getList }, |
| | | { name: '直属及附属单位', type: 3, method: getList }, |
| | | // { name: "党群机构", type: 1, method: getList }, |
| | | // { name: "职能部处", type: 2, method: getList }, |
| | | // { name: "直属及附属单位", type: 3, method: getList }, |
| | | // { name: "教学与科研机构", type: 4, method: getList }, |
| | | { name: '其他机构', type: 5, method: getList } |
| | | { name: "其他机构", type: 5, method: getList }, |
| | | ], |
| | | openData2: [ |
| | | { name: '行政办公', type: 1, method: getChildNavList }, |
| | | { name: "行政办公", type: 1, method: getChildNavList }, |
| | | // { name: "教学科研", type: 2, method: getChildNavList }, |
| | | { name: '社区场馆', type: 3, method: getChildNavList }, |
| | | { name: '宿舍公寓', type: 4, method: getChildNavList }, |
| | | { name: '文化风景', type: 5, method: getChildNavList }, |
| | | { name: '家属住宅', type: 6, method: getChildNavList }, |
| | | { name: '主要楼宇', type: 7, method: getChildNavList } |
| | | { name: "社区场馆", type: 3, method: getChildNavList }, |
| | | // { name: '宿舍公寓', type: 4, method: getChildNavList }, |
| | | // { name: '文化风景', type: 5, method: getChildNavList }, |
| | | // { name: '家属住宅', type: 6, method: getChildNavList }, |
| | | { name: "其他楼宇", type: 7, method: getChildNavList }, |
| | | ], |
| | | // openData3: [ |
| | | // { name: "食堂餐厅", type: 1, method: getListlivingFacilitiesr }, |
| | |
| | | // openData5: [{ name: "出入口", type: 1, method: getListdoor }], |
| | | openData3: [ |
| | | // { name: "食堂餐厅", type: 1, method: getListLifeOnce }, |
| | | { name: '购物超市', type: 2, method: getListLifeOnce }, |
| | | { name: '社区医疗', type: 3, method: getListLifeOnce }, |
| | | { name: '邮寄快递', type: 4, method: getListLifeOnce }, |
| | | { name: '社区浴室', type: 5, method: getListLifeOnce }, |
| | | // { name: "圈存机", type: 6, method: getListLifeOnce }, |
| | | { name: '打字复印', type: 7, method: getListLifeOnce }, |
| | | { name: '银行网点', type: 8, method: getListLifeOnce }, |
| | | { name: 'AED', type: 9, method: getListLifeOnce }, |
| | | { name: '通信营业厅', type: 10, method: getListLifeOnce }, |
| | | { name: '停车场', type: 11, method: getListLifeOnce }, |
| | | { name: '出入口', type: 12, method: getListLifeOnce } |
| | | // { name: "购物超市", type: 2, method: getListLifeOnce }, |
| | | // { name: "社区医疗", type: 3, method: getListLifeOnce }, |
| | | // { name: "邮寄快递", type: 4, method: getListLifeOnce }, |
| | | // { name: "社区浴室", type: 5, method: getListLifeOnce }, |
| | | // // { name: "圈存机", type: 6, method: getListLifeOnce }, |
| | | // { name: "打字复印", type: 7, method: getListLifeOnce }, |
| | | // { name: "银行网点", type: 8, method: getListLifeOnce }, |
| | | // { name: "AED", type: 9, method: getListLifeOnce }, |
| | | // { name: "通信营业厅", type: 10, method: getListLifeOnce }, |
| | | { name: "停车场", type: 11, method: getListLifeOnce }, |
| | | { name: "出入口", type: 12, method: getListLifeOnce }, |
| | | ], |
| | | openData6: [{ name: '停车场', type: 11, method: getListLifeOnce }], |
| | | openData5: [{ name: '出入口', type: 12, method: getListLifeOnce }], |
| | | openData4: [{ name: '文化风景', type: 5, method: getChildNavList }] |
| | | } |
| | | openData6: [{ name: "停车场", type: 11, method: getListLifeOnce }], |
| | | openData5: [{ name: "出入口", type: 12, method: getListLifeOnce }], |
| | | openData4: [{ name: "文化风景", type: 5, method: getChildNavList }], |
| | | }; |
| | | }, |
| | | mounted () {}, |
| | | mounted() {}, |
| | | methods: { |
| | | openBigPopup (val) { |
| | | openBigPopup(val) { |
| | | const d = { |
| | | main: this[val.opendata], |
| | | qurey: val.name |
| | | } |
| | | this.$store.commit('MSET_POPUPOUROPENDATA', d) |
| | | this.$store.commit('MSET_BIGPOPUP', val) |
| | | qurey: val.name, |
| | | }; |
| | | this.$store.commit("MSET_POPUPOUROPENDATA", d); |
| | | this.$store.commit("MSET_BIGPOPUP", val); |
| | | }, |
| | | closeBigPopupAfter () { |
| | | this.$store.commit('MSET_BIGPOPUPAFTER', false) |
| | | } |
| | | } |
| | | } |
| | | closeBigPopupAfter() { |
| | | this.$store.commit("MSET_BIGPOPUPAFTER", false); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | |
| | | * isSerialize是否开启form表单提交 |
| | | * isToken是否需要token |
| | | */ |
| | | import axios from 'axios' |
| | | import axios from "axios"; |
| | | |
| | | const service = axios.create({ |
| | | // baseURL: 'http://192.168.0.107:83', |
| | | baseURL: 'http://192.168.0.107:80', |
| | | // baseURL: 'http://171.34.197.243:790', |
| | | // baseURL: 'http://s16s652780.51mypc.cn/api', |
| | | timeout: 600000 // request timeout |
| | | }) |
| | | // baseURL: 'http://192.168.0.107:83', |
| | | // baseURL: 'http://192.168.0.107:80', |
| | | baseURL: "http://171.34.197.243:790", |
| | | // baseURL: 'http://s16s652780.51mypc.cn/api', |
| | | timeout: 600000, // request timeout |
| | | }); |
| | | |
| | | // 返回其他状态码 |
| | | service.defaults.validateStatus = function (status) { |
| | | return status >= 200 && status <= 500 |
| | | } |
| | | return status >= 200 && status <= 500; |
| | | }; |
| | | |
| | | // 跨域请求,允许保存cookie |
| | | service.defaults.withCredentials = true |
| | | service.defaults.withCredentials = true; |
| | | |
| | | // http request拦截 |
| | | service.interceptors.request.use(config => { |
| | | return config |
| | | }, error => { |
| | | return Promise.reject(error) |
| | | }) |
| | | service.interceptors.request.use( |
| | | (config) => { |
| | | return config; |
| | | }, |
| | | (error) => { |
| | | return Promise.reject(error); |
| | | } |
| | | ); |
| | | |
| | | // http response 拦截 |
| | | service.interceptors.response.use(res => { |
| | | return res |
| | | }, error => { |
| | | return Promise.reject(new Error(error)) |
| | | }) |
| | | service.interceptors.response.use( |
| | | (res) => { |
| | | return res; |
| | | }, |
| | | (error) => { |
| | | return Promise.reject(new Error(error)); |
| | | } |
| | | ); |
| | | |
| | | export default service |
| | | export default service; |