guanqb
2023-03-20 ed670ceee1b37d237098492db3927790540deedc
警车警员通过活动deptid筛选数据
3 files modified
24 ■■■■ changed files
src/views/activity/components/drawBtnBox.vue 2 ●●● patch | view | raw | blame | history
src/views/activity/index.vue 20 ●●●●● patch | view | raw | blame | history
vue.config.js 2 ●●● patch | view | raw | blame | history
src/views/activity/components/drawBtnBox.vue
@@ -749,7 +749,7 @@
            })
        },
         // 修改活动警员
        // 修改活动警员
        // id活动id, policemanId警察id ,color颜色
        updateActivityPolice (params,overlay) {
            updateActivityPolice(params).then(res => {
src/views/activity/index.vue
@@ -510,11 +510,6 @@
        this.getPoliceList()
        // 获取树状警员数据
        this.getPolicemanTree()
        this.getCarList()
        this.getSecurityList(this.currentPage, this.pagesize)
        //摄像头
@@ -690,6 +685,13 @@
                    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)
@@ -1093,8 +1095,8 @@
        },
        // 获取树状警员列表
        getPolicemanTree () {
            getPolicemanTree().then(res => {
        getPolicemanTree (params) {
            getPolicemanTree(params).then(res => {
                this.policeTreeData = res.data.data
            })
        },
@@ -1171,8 +1173,8 @@
        },
        // 获取警车列表,生成下拉数据
        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}` })
                })
vue.config.js
@@ -158,7 +158,7 @@
            "/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