| | |
| | | }) |
| | | }, |
| | | |
| | | // 修改活动警员 |
| | | // 修改活动警员 |
| | | // id活动id, policemanId警察id ,color颜色 |
| | | updateActivityPolice (params,overlay) { |
| | | updateActivityPolice(params).then(res => { |
| | |
| | | |
| | | this.getPoliceList() |
| | | |
| | | // 获取树状警员数据 |
| | | this.getPolicemanTree() |
| | | |
| | | this.getCarList() |
| | | |
| | | this.getSecurityList(this.currentPage, this.pagesize) |
| | | |
| | | //摄像头 |
| | |
| | | material: global.DC.Namespace.Cesium.Color.fromBytes(139, 195, 74, 100) |
| | | }) |
| | | } |
| | | |
| | | // 警员警车列表根据活动deptid筛选 |
| | | // 获取树状警员数据 |
| | | console.log('item',item.deptId); |
| | | this.getPolicemanTree({deptId:item.deptId}) |
| | | |
| | | this.getCarList({deptId:item.deptId}) |
| | | |
| | | // 警力资源 |
| | | this.getSecurityPoliceList(item.id, this.policeSwitch) |
| | |
| | | }, |
| | | |
| | | // 获取树状警员列表 |
| | | getPolicemanTree () { |
| | | getPolicemanTree().then(res => { |
| | | getPolicemanTree (params) { |
| | | getPolicemanTree(params).then(res => { |
| | | this.policeTreeData = res.data.data |
| | | }) |
| | | }, |
| | |
| | | }, |
| | | |
| | | // 获取警车列表,生成下拉数据 |
| | | getCarList () { |
| | | getCarList().then(res => { |
| | | getCarList (params) { |
| | | getCarList(params).then(res => { |
| | | res.data.data.forEach(item => { |
| | | policecarOption.push({ value: `${item.id}`, label: `${item.serialNumber}`, carType: `${item.carType}`, serialNumber: `${item.serialNumber}`, unitCode: `${item.unitCode}`, unitName: `${item.unitName}`, carNo: `${item.carNo}`, deptName: `${item.deptName}` }) |
| | | }) |
| | |
| | | "/api": { |
| | | // target用于配置你允许访问数据的计算机名称,即是你的api接口的服务器地址 |
| | | // target: "http://localhost:82", |
| | | target: "http://192.168.0.126:82", |
| | | target: "http://192.168.0.200:82", |
| | | // target: "http://17.20.10.3:82", |
| | | // target: "http://10.141.11.11:8081/api", |
| | | // ws: true, //启用webSocket6566 |