| | |
| | | * @LastEditTime: 2023-01-03 15:52:12 |
| | | * @FilePath: \srs-police-affairs\src\views\activity\index.vue |
| | | * @Description: 安保活动 |
| | | * |
| | | * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved. |
| | | * |
| | | * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved. |
| | | --> |
| | | |
| | | <template> |
| | |
| | | isHavePoliceMan: false, |
| | | isHaveArrow: false, |
| | | isHaveLine: false, |
| | | //当前登录用户的数据 |
| | | userInfo:{}, |
| | | } |
| | | }, |
| | | created () { |
| | | let userInfo = sessionStorage.getItem("userInfo"); |
| | | if (userInfo != null) { |
| | | // 将JSON格式的对象解析为js对象 |
| | | this.userInfo= JSON.parse(userInfo); |
| | | } |
| | | |
| | | // 获取下拉列表数据 |
| | | this.getActivityType() |
| | | |
| | |
| | | // 获取活动列表 |
| | | getSecurityList (current, size, type, name, startTime, endTime) { |
| | | this.loading() |
| | | var deptId = "" |
| | | if (this.userInfo.dept_id != '1123598813738675201'){ |
| | | deptId = this.userInfo.dept_id |
| | | } |
| | | |
| | | getSecurityList(current, size, type, name, startTime, endTime).then(res => { |
| | | getSecurityList(current, size, type, name, startTime, endTime,deptId).then(res => { |
| | | this.activityList = res.data.data.records.map(item => { |
| | | item.startTime = item.startTime.substring(0, 16) |
| | | item.endTime = item.endTime.substring(0, 16) |
| | |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | </style> |