| | |
| | | // .activitys .el-form-item__content { |
| | | // width: 200px !important; |
| | | // } |
| | | .avue-map .el-input-group__append { |
| | | border: 1px solid #fff; |
| | | } |
| | | |
| | | .mapClassTip { |
| | | position: relative; |
| | | left: -100px; |
| | | } |
| | |
| | | <!-- @row-click="rowClick" --> |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | |
| | | v-show="true" |
| | | size="mini" |
| | | icon="el-icon-delete" |
| | | plain |
| | | v-if="permission.real_delete" |
| | | @click="handleDelete" |
| | | >删 除 |
| | | >删 除 |
| | | </el-button> |
| | | </template> |
| | | |
| | |
| | | |
| | | <template slot-scope="{ row }" slot="jtype"> |
| | | <el-tag |
| | | >{{ |
| | | >{{ |
| | | row.jtype == "0" || row.jtype == "" |
| | | ? "未派发" |
| | | : row.jtype == "1" && |
| | | (row.securityId == null || row.securityId == "") |
| | | (row.securityId == null || row.securityId == "") |
| | | ? "未接收" |
| | | : row.jtype == "1" && |
| | | (row.securityId != null || row.securityId != "") |
| | | ? "已接收" |
| | | : "已处置" |
| | | (row.securityId != null || row.securityId != "") |
| | | ? "已接收" |
| | | : "已处置" |
| | | }} |
| | | </el-tag> |
| | | </template> |
| | | <template slot-scope="{ row }" slot="cid"> |
| | | <el-tag |
| | | >{{ |
| | | >{{ |
| | | row.cid == "1" ? "事件发生" : row.cid == "3" ? "是" : "事件恢复" |
| | | }} |
| | | </el-tag> |
| | |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="PoliceTracking(row)" |
| | | >派发 |
| | | >派发 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{ type, disabled }" slot="lineForm"> |
| | | <div class="mapClassMain" style="width: 860px; height: 400px"> |
| | | <Map ref="modalForm"/> |
| | | <Map ref="modalForm" /> |
| | | </div> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | add, |
| | | getclient, |
| | | } from "@/api/activitys/activitys"; |
| | | import {mapGetters} from "vuex"; |
| | | import { mapGetters } from "vuex"; |
| | | import AvueMap from "avue-plugin-map"; |
| | | |
| | | export default { |
| | |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "任务标题", |
| | | label: "巡查标题", |
| | | prop: "rname", |
| | | search: true, |
| | | searchSpan: 4, |
| | |
| | | }, |
| | | |
| | | { |
| | | label: "下发时间", |
| | | label: "开始时间", |
| | | type: "datetime", |
| | | prop: "time", |
| | | width: 160, |
| | |
| | | ], |
| | | }, |
| | | { |
| | | label: "任务封面", |
| | | label: "封面", |
| | | prop: "url", |
| | | // align:'center', |
| | | width: 80, |
| | |
| | | // ], |
| | | // }, |
| | | { |
| | | label: "任务内容", |
| | | label: "巡查内容", |
| | | prop: "content", |
| | | span: 24, |
| | | }, |
| | |
| | | dicUrl: "/api/jurisdiction/lazy-tree", |
| | | props: { |
| | | label: "title", |
| | | value: "id" |
| | | value: "id", |
| | | }, |
| | | checkStrictly: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择所属辖区", |
| | | trigger: "click" |
| | | } |
| | | ] |
| | | trigger: "click", |
| | | }, |
| | | ], |
| | | }, |
| | | // { |
| | | // label: "省份", |
| | | // hide: true, |
| | | // prop: "province", |
| | | // // search: true, |
| | | // width: 100, |
| | | // searchSpan: 2, |
| | | // searchLabelWidth: 45, |
| | | // placeholder: "省份", |
| | | // type: "select", |
| | | // value: "36", |
| | | // props: { |
| | | // label: "name", |
| | | // value: "code", |
| | | // }, |
| | | // cascaderItem: ["city", "district"], |
| | | // dicUrl: "/api/blade-system/region/select", |
| | | // span: 6, |
| | | // className: "cityreal1", |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // }, |
| | | // { |
| | | // label: "地市", |
| | | // hide: true, |
| | | // prop: "city", |
| | | // type: "select", |
| | | // width: 100, |
| | | // searchPlaceholder: "地市", |
| | | // placeholder: "地市", |
| | | // searchLabelWidth: 1, |
| | | // value: "3601", |
| | | // searchSpan: 2, |
| | | // // search: true, |
| | | // props: { |
| | | // label: "name", |
| | | // value: "code", |
| | | // }, |
| | | // dicUrl: "/api/blade-system/region/select?code={{key}}", |
| | | // span: 3, |
| | | // labelWidth: "0", |
| | | // className: "cityreal2", |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // }, |
| | | // { |
| | | // label: "区县", |
| | | // hide: true, |
| | | // searchSpan: 2, |
| | | // searchLabelWidth: 1, |
| | | // width: 100, |
| | | // searchPlaceholder: "区县", |
| | | // placeholder: "区县", |
| | | // // search: true, |
| | | // prop: "district", |
| | | // type: "select", |
| | | // props: { |
| | | // label: "name", |
| | | // value: "code", |
| | | // }, |
| | | // dicUrl: "/api/blade-system/region/select?code={{key}}", |
| | | // span: 3, |
| | | // labelWidth: "0", |
| | | // className: "cityreal3", |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // }, |
| | | { |
| | | label: "集合点", |
| | | prop: "gathername", |
| | | labelWidth: 100, |
| | | span: 9, |
| | | overHidden: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择地址", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "省份", |
| | | label: null, |
| | | prop: "map", |
| | | labelWidth: 10, |
| | | searchSpan: 0, |
| | | // maxlength: 5, |
| | | hide: true, |
| | | prop: "province", |
| | | // search: true, |
| | | width: 100, |
| | | searchSpan: 2, |
| | | searchLabelWidth: 45, |
| | | placeholder: "省份", |
| | | type: "select", |
| | | value: "36", |
| | | props: { |
| | | label: "name", |
| | | value: "code", |
| | | }, |
| | | cascaderItem: ["city", "district"], |
| | | dicUrl: "/api/blade-system/region/select", |
| | | span: 6, |
| | | className: "cityreal1", |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | span: 2, |
| | | // display:false, |
| | | component: "AvueMap", |
| | | }, |
| | | { |
| | | label: "地市", |
| | | hide: true, |
| | | prop: "city", |
| | | type: "select", |
| | | width: 100, |
| | | searchPlaceholder: "地市", |
| | | placeholder: "地市", |
| | | searchLabelWidth: 1, |
| | | value: "3601", |
| | | searchSpan: 2, |
| | | // search: true, |
| | | props: { |
| | | label: "name", |
| | | value: "code", |
| | | }, |
| | | dicUrl: "/api/blade-system/region/select?code={{key}}", |
| | | span: 3, |
| | | labelWidth: "0", |
| | | className: "cityreal2", |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | }, |
| | | { |
| | | label: "区县", |
| | | hide: true, |
| | | searchSpan: 2, |
| | | searchLabelWidth: 1, |
| | | width: 100, |
| | | searchPlaceholder: "区县", |
| | | placeholder: "区县", |
| | | // search: true, |
| | | prop: "district", |
| | | type: "select", |
| | | props: { |
| | | label: "name", |
| | | value: "code", |
| | | }, |
| | | dicUrl: "/api/blade-system/region/select?code={{key}}", |
| | | span: 3, |
| | | labelWidth: "0", |
| | | className: "cityreal3", |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | }, |
| | | { |
| | | label: "任务状态", |
| | | label: "巡查状态", |
| | | prop: "rtype", |
| | | type: "select", |
| | | value: "2", |
| | |
| | | // addDisplay: false, |
| | | // editDisplay: false, |
| | | // }, |
| | | { |
| | | label: "发布人", |
| | | prop: "fname", |
| | | // multiple: true, |
| | | // dicUrl: "/api/catalogs/catalogs/getBigTree", |
| | | // props: { |
| | | // label: "title", |
| | | // }, |
| | | width: 72, |
| | | // hide: true, |
| | | // leafOnly: "", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | }, |
| | | { |
| | | label: "积分数值", |
| | | prop: "integral", |
| | |
| | | // }, |
| | | { |
| | | label: "请在下方地图中,建立路径!", |
| | | labelWidth: "0", |
| | | labelWidth: 0, |
| | | className: "mapClass", |
| | | prop: "haveMap", |
| | | hide: true, |
| | |
| | | this.form.wd = val.latitude; |
| | | this.form.jd = val.longitude; |
| | | |
| | | this.form.gather = val.latitude + "," + val.longitude; |
| | | |
| | | var address = val.formattedAddress.toString(); |
| | | if (address.search("县") != -1) { |
| | | this.form.place = address.substring( |
| | | this.form.gathername = address.substring( |
| | | address.indexOf("县") + 1, |
| | | address.length |
| | | ); |
| | | } |
| | | if (address.search("区") != -1) { |
| | | this.form.place = address.substring( |
| | | this.form.gathername = address.substring( |
| | | address.indexOf("区") + 1, |
| | | address.length |
| | | ); |
| | |
| | | methods: { |
| | | rowSave(row, done, loading) { |
| | | // console.log(row); |
| | | // console.log(this.userInfo); |
| | | // return; |
| | | |
| | | var userId1 = this.userInfo.user_id; |
| | | var username = this.userInfo.nick_name; |
| | | var phone = this.userInfo.phone; |
| | | let latleng = row.map.latitude + "," + row.map.longitude; |
| | | let d = { |
| | | line: row.line, //路线 |
| | | rname: row.rname, //标题 |
| | |
| | | integral: row.integral + "", //积分 |
| | | content: row.content, //内容 |
| | | rtype: row.rtype, //任务状态 |
| | | fid: userId1,//发起人id |
| | | fid: userId1, //发起人id |
| | | serid: userId1, //发起人id |
| | | fname: username, //发起人id |
| | | jurisdiction: row.jurisdiction |
| | | captain: username, //队长 |
| | | phone: phone, //发起人电话 |
| | | jurisdiction: row.jurisdiction, |
| | | gather: row.gather, //地址经纬度 |
| | | gathername: row.map.formattedAddress, //地址经纬度 |
| | | tasktype: "0", //任务类型0:治安巡查 1:治安义务宣传 2:治安防范培训 |
| | | }; |
| | | // console.log(d); |
| | | // done(); |
| | |
| | | setTimeout(function () { |
| | | try { |
| | | that.$refs.modalForm.addLinesDraw(val); |
| | | } catch (error) { |
| | | } |
| | | } catch (error) {} |
| | | }, 1500); |
| | | } else { |
| | | try { |
| | | that.$refs.modalForm.addLinesDraw(val); |
| | | } catch (error) { |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | |
| | | //清空搜索框中的内容 |
| | | this.query = {}; |
| | | //清空this.$route.query |
| | | this.$router.push({query: {}}); |
| | | this.$router.push({ query: {} }); |
| | | this.onLoad(this.page); |
| | | }, |
| | | searchChange(params, done) { |
| | | //清空this.$route.query |
| | | this.$router.push({query: {}}); |
| | | this.$router.push({ query: {} }); |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | getList(page.currentPage, page.pageSize,params).then((res) => { |
| | | params["tasktype"] = "0"; // 治安巡查 |
| | | getList(page.currentPage, page.pageSize, params).then((res) => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | |
| | |
| | | getBRdata(e) { |
| | | this.activeClass = e; |
| | | this.query = {}; |
| | | this.$router.push({query: {}}); |
| | | this.$router.push({ query: {} }); |
| | | var today = new Date(); |
| | | var params = {}; |
| | | |
| | |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | | }, |
| | | rowStyle({row, column, rowIndex}) { |
| | | rowStyle({ row, column, rowIndex }) { |
| | | if (row.jtype == "0") { |
| | | return { |
| | | color: "#ff2727", |
| | |
| | | } |
| | | }); |
| | | this.$store.state.tags.tagList = arr; |
| | | this.$router.push({path: `/real/history/${row.deviceNumber}`}); |
| | | this.$router.push({ path: `/real/history/${row.deviceNumber}` }); |
| | | }, |
| | | handleMap(row) { |
| | | this.showMap = true; |
| | |
| | | }); |
| | | this.$store.state.tags.tagList = arr; |
| | | //警情追踪 |
| | | this.$router.push({path: "/policeTracking/details", query: row}); |
| | | this.$router.push({ path: "/policeTracking/details", query: row }); |
| | | }, |
| | | //打开新增窗体 |
| | | openAdd() { |
| | |
| | | <!-- @row-click="rowClick" --> |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | |
| | | v-show="true" |
| | | size="mini" |
| | | icon="el-icon-delete" |
| | | plain |
| | | v-if="permission.real_delete" |
| | | @click="handleDelete" |
| | | >删 除 |
| | | >删 除 |
| | | </el-button> |
| | | </template> |
| | | |
| | |
| | | |
| | | <template slot-scope="{ row }" slot="jtype"> |
| | | <el-tag |
| | | >{{ |
| | | >{{ |
| | | row.jtype == "0" || row.jtype == "" |
| | | ? "未派发" |
| | | : row.jtype == "1" && |
| | | (row.securityId == null || row.securityId == "") |
| | | (row.securityId == null || row.securityId == "") |
| | | ? "未接收" |
| | | : row.jtype == "1" && |
| | | (row.securityId != null || row.securityId != "") |
| | | ? "已接收" |
| | | : "已处置" |
| | | (row.securityId != null || row.securityId != "") |
| | | ? "已接收" |
| | | : "已处置" |
| | | }} |
| | | </el-tag> |
| | | </template> |
| | | <template slot-scope="{ row }" slot="cid"> |
| | | <el-tag |
| | | >{{ |
| | | >{{ |
| | | row.cid == "1" ? "事件发生" : row.cid == "3" ? "是" : "事件恢复" |
| | | }} |
| | | </el-tag> |
| | |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="PoliceTracking(row)" |
| | | >派发 |
| | | >派发 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{ type, disabled }" slot="lineForm"> |
| | | <!-- <template slot-scope="{ type, disabled }" slot="lineForm"> |
| | | <div class="mapClassMain" style="width: 860px; height: 400px"> |
| | | <Map ref="modalForm"/> |
| | | </div> |
| | | </template> |
| | | </template> --> |
| | | </avue-crud> |
| | | |
| | | <real-popup ref="realPopupView"></real-popup> |
| | |
| | | add, |
| | | getclient, |
| | | } from "@/api/activitys/activitys"; |
| | | import {mapGetters} from "vuex"; |
| | | import { mapGetters } from "vuex"; |
| | | import AvueMap from "avue-plugin-map"; |
| | | |
| | | export default { |
| | |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "任务标题", |
| | | label: "培训标题", |
| | | prop: "rname", |
| | | search: true, |
| | | searchSpan: 4, |
| | |
| | | }, |
| | | |
| | | { |
| | | label: "下发时间", |
| | | label: "开始时间", |
| | | type: "datetime", |
| | | prop: "time", |
| | | width: 160, |
| | |
| | | ], |
| | | }, |
| | | { |
| | | label: "任务封面", |
| | | label: "培训封面", |
| | | prop: "url", |
| | | // align:'center', |
| | | width: 80, |
| | |
| | | // ], |
| | | // }, |
| | | { |
| | | label: "任务内容", |
| | | label: "培训内容", |
| | | prop: "content", |
| | | span: 24, |
| | | }, |
| | |
| | | dicUrl: "/api/jurisdiction/lazy-tree", |
| | | props: { |
| | | label: "title", |
| | | value: "id" |
| | | value: "id", |
| | | }, |
| | | checkStrictly: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择所属辖区", |
| | | trigger: "click" |
| | | } |
| | | ] |
| | | trigger: "click", |
| | | }, |
| | | ], |
| | | }, |
| | | // { |
| | | // label: "省份", |
| | | // hide: true, |
| | | // prop: "province", |
| | | // // search: true, |
| | | // width: 100, |
| | | // searchSpan: 2, |
| | | // searchLabelWidth: 45, |
| | | // placeholder: "省份", |
| | | // type: "select", |
| | | // value: "36", |
| | | // props: { |
| | | // label: "name", |
| | | // value: "code", |
| | | // }, |
| | | // cascaderItem: ["city", "district"], |
| | | // dicUrl: "/api/blade-system/region/select", |
| | | // span: 6, |
| | | // className: "cityreal1", |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // }, |
| | | // { |
| | | // label: "地市", |
| | | // hide: true, |
| | | // prop: "city", |
| | | // type: "select", |
| | | // width: 100, |
| | | // searchPlaceholder: "地市", |
| | | // placeholder: "地市", |
| | | // searchLabelWidth: 1, |
| | | // value: "3601", |
| | | // searchSpan: 2, |
| | | // // search: true, |
| | | // props: { |
| | | // label: "name", |
| | | // value: "code", |
| | | // }, |
| | | // dicUrl: "/api/blade-system/region/select?code={{key}}", |
| | | // span: 3, |
| | | // labelWidth: "0", |
| | | // className: "cityreal2", |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // }, |
| | | // { |
| | | // label: "区县", |
| | | // hide: true, |
| | | // searchSpan: 2, |
| | | // searchLabelWidth: 1, |
| | | // width: 100, |
| | | // searchPlaceholder: "区县", |
| | | // placeholder: "区县", |
| | | // // search: true, |
| | | // prop: "district", |
| | | // type: "select", |
| | | // props: { |
| | | // label: "name", |
| | | // value: "code", |
| | | // }, |
| | | // dicUrl: "/api/blade-system/region/select?code={{key}}", |
| | | // span: 3, |
| | | // labelWidth: "0", |
| | | // className: "cityreal3", |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // }, |
| | | { |
| | | label: "集合点", |
| | | prop: "gathername", |
| | | labelWidth: 100, |
| | | span: 9, |
| | | overHidden: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择集合点", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "省份", |
| | | label: null, |
| | | prop: "map", |
| | | labelWidth: 10, |
| | | searchSpan: 0, |
| | | // maxlength: 5, |
| | | hide: true, |
| | | prop: "province", |
| | | // search: true, |
| | | width: 100, |
| | | searchSpan: 2, |
| | | searchLabelWidth: 45, |
| | | placeholder: "省份", |
| | | type: "select", |
| | | value: "36", |
| | | props: { |
| | | label: "name", |
| | | value: "code", |
| | | }, |
| | | cascaderItem: ["city", "district"], |
| | | dicUrl: "/api/blade-system/region/select", |
| | | span: 6, |
| | | className: "cityreal1", |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | span: 2, |
| | | // display:false, |
| | | component: "AvueMap", |
| | | }, |
| | | { |
| | | label: "地市", |
| | | hide: true, |
| | | prop: "city", |
| | | type: "select", |
| | | width: 100, |
| | | searchPlaceholder: "地市", |
| | | placeholder: "地市", |
| | | searchLabelWidth: 1, |
| | | value: "3601", |
| | | searchSpan: 2, |
| | | // search: true, |
| | | props: { |
| | | label: "name", |
| | | value: "code", |
| | | }, |
| | | dicUrl: "/api/blade-system/region/select?code={{key}}", |
| | | span: 3, |
| | | labelWidth: "0", |
| | | className: "cityreal2", |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | }, |
| | | { |
| | | label: "区县", |
| | | hide: true, |
| | | searchSpan: 2, |
| | | searchLabelWidth: 1, |
| | | width: 100, |
| | | searchPlaceholder: "区县", |
| | | placeholder: "区县", |
| | | // search: true, |
| | | prop: "district", |
| | | type: "select", |
| | | props: { |
| | | label: "name", |
| | | value: "code", |
| | | }, |
| | | dicUrl: "/api/blade-system/region/select?code={{key}}", |
| | | span: 3, |
| | | labelWidth: "0", |
| | | className: "cityreal3", |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | }, |
| | | { |
| | | label: "任务状态", |
| | | label: "培训状态", |
| | | prop: "rtype", |
| | | type: "select", |
| | | value: "2", |
| | | dicData: [ |
| | | { |
| | | label: "任务开始", |
| | | label: "培训开始", |
| | | value: "2", |
| | | }, |
| | | { |
| | | label: "任务结束", |
| | | label: "培训结束", |
| | | value: "1", |
| | | }, |
| | | { |
| | |
| | | // editDisplay: false, |
| | | // }, |
| | | { |
| | | label: "发布人", |
| | | prop: "fname", |
| | | // multiple: true, |
| | | // dicUrl: "/api/catalogs/catalogs/getBigTree", |
| | | // props: { |
| | | // label: "title", |
| | | // }, |
| | | width: 72, |
| | | // hide: true, |
| | | // leafOnly: "", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | }, |
| | | { |
| | | label: "积分数值", |
| | | prop: "integral", |
| | | type: "number", |
| | |
| | | viewDisplay: true, |
| | | }, |
| | | { |
| | | label: "接收人数", |
| | | prop: "jnum", |
| | | type: "number", |
| | | label: "接收角色", |
| | | prop: "train", |
| | | // type: "number", |
| | | // multiple: true, |
| | | // dicUrl: "/api/catalogs/catalogs/getBigTree", |
| | | // props: { |
| | | // label: "title", |
| | | // }, |
| | | type: "select", |
| | | value: "1495714130024673282", |
| | | dicData: [ |
| | | { |
| | | label: "治保会队伍", |
| | | value: "1495714130024673282", |
| | | }, |
| | | { |
| | | label: "内保干部队伍", |
| | | value: "1495714221926068225", |
| | | }, |
| | | { |
| | | label: "治安巡防队伍", |
| | | value: "1495714272471625729", |
| | | }, |
| | | { |
| | | label: "信息员队伍", |
| | | value: "1495714309071122434", |
| | | }, |
| | | { |
| | | label: "保安员队伍", |
| | | value: "1495714343888039937", |
| | | }, |
| | | { |
| | | label: "警务辅助队伍", |
| | | value: "1495714378025480193", |
| | | }, |
| | | ], |
| | | width: 72, |
| | | // hide: true, |
| | | minRows: 1, |
| | | value: 1, |
| | | // minRows: 1, |
| | | // value: 1, |
| | | // leafOnly: "", |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择接收角色", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | // { |
| | | // label: "巡逻路线", |
| | |
| | | // }, |
| | | // addDisplay: true, |
| | | // }, |
| | | { |
| | | label: "请在下方地图中,建立路径!", |
| | | labelWidth: "0", |
| | | className: "mapClass", |
| | | prop: "haveMap", |
| | | hide: true, |
| | | display: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请在下方地图中,建立路径!", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | addDisabled: true, |
| | | editDisabled: true, |
| | | // value: "", //赋值不上去,舍弃 |
| | | // type: "tree", |
| | | // dicUrl: "/api/routeIn/routein/tree", |
| | | // props: { |
| | | // label: "title", |
| | | // }, |
| | | }, |
| | | { |
| | | label: "路线展示", |
| | | labelWidth: "0", |
| | | prop: "line", |
| | | className: "mapClass", |
| | | hide: true, |
| | | display: true, |
| | | span: 24, |
| | | formslot: true, |
| | | addDisplay: true, |
| | | }, |
| | | // { |
| | | // label: "请在下方地图中,建立路径!", |
| | | // labelWidth: "0", |
| | | // className: "mapClass", |
| | | // prop: "haveMap", |
| | | // hide: true, |
| | | // display: true, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "请在下方地图中,建立路径!", |
| | | // trigger: "blur", |
| | | // }, |
| | | // ], |
| | | // addDisabled: true, |
| | | // editDisabled: true, |
| | | // // value: "", //赋值不上去,舍弃 |
| | | // // type: "tree", |
| | | // // dicUrl: "/api/routeIn/routein/tree", |
| | | // // props: { |
| | | // // label: "title", |
| | | // // }, |
| | | // }, |
| | | // { |
| | | // label: "路线展示", |
| | | // labelWidth: "0", |
| | | // prop: "line", |
| | | // className: "mapClass", |
| | | // hide: true, |
| | | // display: true, |
| | | // span: 24, |
| | | // formslot: true, |
| | | // addDisplay: true, |
| | | // }, |
| | | ], |
| | | }, |
| | | data: [], |
| | |
| | | //经纬度替换 |
| | | this.form.wd = val.latitude; |
| | | this.form.jd = val.longitude; |
| | | this.form.gather = val.latitude + "," + val.longitude; |
| | | |
| | | var address = val.formattedAddress.toString(); |
| | | if (address.search("县") != -1) { |
| | | this.form.place = address.substring( |
| | | this.form.gathername = address.substring( |
| | | address.indexOf("县") + 1, |
| | | address.length |
| | | ); |
| | | } |
| | | if (address.search("区") != -1) { |
| | | this.form.place = address.substring( |
| | | this.form.gathername = address.substring( |
| | | address.indexOf("区") + 1, |
| | | address.length |
| | | ); |
| | |
| | | // return; |
| | | var userId1 = this.userInfo.user_id; |
| | | var username = this.userInfo.nick_name; |
| | | var phone = this.userInfo.phone; |
| | | |
| | | let d = { |
| | | line: row.line, //路线 |
| | | rname: row.rname, //标题 |
| | |
| | | integral: row.integral + "", //积分 |
| | | content: row.content, //内容 |
| | | rtype: row.rtype, //任务状态 |
| | | fid: userId1,//发起人id |
| | | fid: userId1, //发起人id |
| | | serid: userId1, //发起人id |
| | | captain: username, //队长 |
| | | fname: username, //发起人id |
| | | jurisdiction: row.jurisdiction |
| | | jurisdiction: row.jurisdiction, |
| | | phone: phone, //发起人电话 |
| | | tasktype: "2", //任务类型0:治安巡查 1:治安义务宣传 2:治安防范培训 |
| | | gather: row.gather, //地址经纬度 |
| | | gathername: row.map.formattedAddress, //地址经纬度 |
| | | }; |
| | | // console.log(d); |
| | | // done(); |
| | |
| | | setTimeout(function () { |
| | | try { |
| | | that.$refs.modalForm.addLinesDraw(val); |
| | | } catch (error) { |
| | | } |
| | | } catch (error) {} |
| | | }, 1500); |
| | | } else { |
| | | try { |
| | | that.$refs.modalForm.addLinesDraw(val); |
| | | } catch (error) { |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | |
| | | //清空搜索框中的内容 |
| | | this.query = {}; |
| | | //清空this.$route.query |
| | | this.$router.push({query: {}}); |
| | | this.$router.push({ query: {} }); |
| | | this.onLoad(this.page); |
| | | }, |
| | | searchChange(params, done) { |
| | | //清空this.$route.query |
| | | this.$router.push({query: {}}); |
| | | this.$router.push({ query: {} }); |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | getList(page.currentPage, page.pageSize,params).then((res) => { |
| | | params["tasktype"] = "2"; // 治安防范培训 |
| | | getList(page.currentPage, page.pageSize, params).then((res) => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | |
| | |
| | | getBRdata(e) { |
| | | this.activeClass = e; |
| | | this.query = {}; |
| | | this.$router.push({query: {}}); |
| | | this.$router.push({ query: {} }); |
| | | var today = new Date(); |
| | | var params = {}; |
| | | |
| | |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | | }, |
| | | rowStyle({row, column, rowIndex}) { |
| | | rowStyle({ row, column, rowIndex }) { |
| | | if (row.jtype == "0") { |
| | | return { |
| | | color: "#ff2727", |
| | |
| | | } |
| | | }); |
| | | this.$store.state.tags.tagList = arr; |
| | | this.$router.push({path: `/real/history/${row.deviceNumber}`}); |
| | | this.$router.push({ path: `/real/history/${row.deviceNumber}` }); |
| | | }, |
| | | handleMap(row) { |
| | | this.showMap = true; |
| | |
| | | }); |
| | | this.$store.state.tags.tagList = arr; |
| | | //警情追踪 |
| | | this.$router.push({path: "/policeTracking/details", query: row}); |
| | | this.$router.push({ path: "/policeTracking/details", query: row }); |
| | | }, |
| | | //打开新增窗体 |
| | | openAdd() { |
| | |
| | | <!-- @row-click="rowClick" --> |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | |
| | | v-show="true" |
| | | size="mini" |
| | | icon="el-icon-delete" |
| | | plain |
| | | v-if="permission.real_delete" |
| | | @click="handleDelete" |
| | | >删 除 |
| | | >删 除 |
| | | </el-button> |
| | | </template> |
| | | |
| | |
| | | |
| | | <template slot-scope="{ row }" slot="jtype"> |
| | | <el-tag |
| | | >{{ |
| | | >{{ |
| | | row.jtype == "0" || row.jtype == "" |
| | | ? "未派发" |
| | | : row.jtype == "1" && |
| | | (row.securityId == null || row.securityId == "") |
| | | (row.securityId == null || row.securityId == "") |
| | | ? "未接收" |
| | | : row.jtype == "1" && |
| | | (row.securityId != null || row.securityId != "") |
| | | ? "已接收" |
| | | : "已处置" |
| | | (row.securityId != null || row.securityId != "") |
| | | ? "已接收" |
| | | : "已处置" |
| | | }} |
| | | </el-tag> |
| | | </template> |
| | | <template slot-scope="{ row }" slot="cid"> |
| | | <el-tag |
| | | >{{ |
| | | >{{ |
| | | row.cid == "1" ? "事件发生" : row.cid == "3" ? "是" : "事件恢复" |
| | | }} |
| | | </el-tag> |
| | |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="PoliceTracking(row)" |
| | | >派发 |
| | | >派发 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{ type, disabled }" slot="lineForm"> |
| | | <div class="mapClassMain" style="width: 860px; height: 400px"> |
| | | <Map ref="modalForm"/> |
| | | <Map ref="modalForm" /> |
| | | </div> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | add, |
| | | getclient, |
| | | } from "@/api/activitys/activitys"; |
| | | import {mapGetters} from "vuex"; |
| | | import { mapGetters } from "vuex"; |
| | | import AvueMap from "avue-plugin-map"; |
| | | |
| | | export default { |
| | |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "任务标题", |
| | | label: "宣传标题", |
| | | prop: "rname", |
| | | search: true, |
| | | searchSpan: 4, |
| | |
| | | }, |
| | | |
| | | { |
| | | label: "下发时间", |
| | | label: "开始时间", |
| | | type: "datetime", |
| | | prop: "time", |
| | | width: 160, |
| | |
| | | ], |
| | | }, |
| | | { |
| | | label: "任务封面", |
| | | label: "宣传封面", |
| | | prop: "url", |
| | | // align:'center', |
| | | width: 80, |
| | |
| | | // ], |
| | | // }, |
| | | { |
| | | label: "任务内容", |
| | | label: "宣传内容", |
| | | prop: "content", |
| | | span: 24, |
| | | }, |
| | |
| | | dicUrl: "/api/jurisdiction/lazy-tree", |
| | | props: { |
| | | label: "title", |
| | | value: "id" |
| | | value: "id", |
| | | }, |
| | | checkStrictly: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择所属辖区", |
| | | trigger: "click" |
| | | } |
| | | ] |
| | | trigger: "click", |
| | | }, |
| | | ], |
| | | }, |
| | | // { |
| | | // label: "省份", |
| | | // hide: true, |
| | | // prop: "province", |
| | | // // search: true, |
| | | // width: 100, |
| | | // searchSpan: 2, |
| | | // searchLabelWidth: 45, |
| | | // placeholder: "省份", |
| | | // type: "select", |
| | | // value: "36", |
| | | // props: { |
| | | // label: "name", |
| | | // value: "code", |
| | | // }, |
| | | // cascaderItem: ["city", "district"], |
| | | // dicUrl: "/api/blade-system/region/select", |
| | | // span: 6, |
| | | // className: "cityreal1", |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // }, |
| | | // { |
| | | // label: "地市", |
| | | // hide: true, |
| | | // prop: "city", |
| | | // type: "select", |
| | | // width: 100, |
| | | // searchPlaceholder: "地市", |
| | | // placeholder: "地市", |
| | | // searchLabelWidth: 1, |
| | | // value: "3601", |
| | | // searchSpan: 2, |
| | | // // search: true, |
| | | // props: { |
| | | // label: "name", |
| | | // value: "code", |
| | | // }, |
| | | // dicUrl: "/api/blade-system/region/select?code={{key}}", |
| | | // span: 3, |
| | | // labelWidth: "0", |
| | | // className: "cityreal2", |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // }, |
| | | { |
| | | label: "集合点", |
| | | prop: "gathername", |
| | | labelWidth: 100, |
| | | span: 9, |
| | | overHidden: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择地址", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "省份", |
| | | label: null, |
| | | prop: "map", |
| | | labelWidth: 10, |
| | | searchSpan: 0, |
| | | // maxlength: 5, |
| | | hide: true, |
| | | prop: "province", |
| | | // search: true, |
| | | width: 100, |
| | | searchSpan: 2, |
| | | searchLabelWidth: 45, |
| | | placeholder: "省份", |
| | | type: "select", |
| | | value: "36", |
| | | props: { |
| | | label: "name", |
| | | value: "code", |
| | | }, |
| | | cascaderItem: ["city", "district"], |
| | | dicUrl: "/api/blade-system/region/select", |
| | | span: 6, |
| | | className: "cityreal1", |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | span: 2, |
| | | // display:false, |
| | | component: "AvueMap", |
| | | }, |
| | | { |
| | | label: "地市", |
| | | hide: true, |
| | | prop: "city", |
| | | type: "select", |
| | | width: 100, |
| | | searchPlaceholder: "地市", |
| | | placeholder: "地市", |
| | | searchLabelWidth: 1, |
| | | value: "3601", |
| | | searchSpan: 2, |
| | | // search: true, |
| | | props: { |
| | | label: "name", |
| | | value: "code", |
| | | }, |
| | | dicUrl: "/api/blade-system/region/select?code={{key}}", |
| | | span: 3, |
| | | labelWidth: "0", |
| | | className: "cityreal2", |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | }, |
| | | { |
| | | label: "区县", |
| | | hide: true, |
| | | searchSpan: 2, |
| | | searchLabelWidth: 1, |
| | | width: 100, |
| | | searchPlaceholder: "区县", |
| | | placeholder: "区县", |
| | | // search: true, |
| | | prop: "district", |
| | | type: "select", |
| | | props: { |
| | | label: "name", |
| | | value: "code", |
| | | }, |
| | | dicUrl: "/api/blade-system/region/select?code={{key}}", |
| | | span: 3, |
| | | labelWidth: "0", |
| | | className: "cityreal3", |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | }, |
| | | // { |
| | | // label: "区县", |
| | | // hide: true, |
| | | // searchSpan: 2, |
| | | // searchLabelWidth: 1, |
| | | // width: 100, |
| | | // searchPlaceholder: "区县", |
| | | // placeholder: "区县", |
| | | // // search: true, |
| | | // prop: "district", |
| | | // type: "select", |
| | | // props: { |
| | | // label: "name", |
| | | // value: "code", |
| | | // }, |
| | | // dicUrl: "/api/blade-system/region/select?code={{key}}", |
| | | // span: 3, |
| | | // labelWidth: "0", |
| | | // className: "cityreal3", |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // }, |
| | | { |
| | | label: "任务状态", |
| | | prop: "rtype", |
| | |
| | | // addDisplay: false, |
| | | // editDisplay: false, |
| | | // }, |
| | | { |
| | | label: "发布人", |
| | | prop: "fname", |
| | | // multiple: true, |
| | | // dicUrl: "/api/catalogs/catalogs/getBigTree", |
| | | // props: { |
| | | // label: "title", |
| | | // }, |
| | | width: 72, |
| | | // hide: true, |
| | | // leafOnly: "", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | }, |
| | | { |
| | | label: "积分数值", |
| | | prop: "integral", |
| | |
| | | //经纬度替换 |
| | | this.form.wd = val.latitude; |
| | | this.form.jd = val.longitude; |
| | | this.form.gather = val.latitude + "," + val.longitude; |
| | | |
| | | var address = val.formattedAddress.toString(); |
| | | if (address.search("县") != -1) { |
| | | this.form.place = address.substring( |
| | | this.form.gathername = address.substring( |
| | | address.indexOf("县") + 1, |
| | | address.length |
| | | ); |
| | | } |
| | | if (address.search("区") != -1) { |
| | | this.form.place = address.substring( |
| | | this.form.gathername = address.substring( |
| | | address.indexOf("区") + 1, |
| | | address.length |
| | | ); |
| | |
| | | // return; |
| | | var userId1 = this.userInfo.user_id; |
| | | var username = this.userInfo.nick_name; |
| | | var phone = this.userInfo.phone; |
| | | let latleng = row.map.latitude + "," + row.map.longitude; |
| | | let d = { |
| | | line: row.line, //路线 |
| | | rname: row.rname, //标题 |
| | |
| | | integral: row.integral + "", //积分 |
| | | content: row.content, //内容 |
| | | rtype: row.rtype, //任务状态 |
| | | fid: userId1,//发起人id |
| | | fid: userId1, //发起人id |
| | | fname: username, //发起人id |
| | | jurisdiction: row.jurisdiction |
| | | jurisdiction: row.jurisdiction, |
| | | serid: userId1, //发起人id |
| | | captain: username, //队长 |
| | | phone: phone, //发起人电话 |
| | | gather: row.gather, //地址经纬度 |
| | | gathername: row.map.formattedAddress, //地址经纬度 |
| | | tasktype: "1", //任务类型0:治安巡查 1:治安义务宣传 2:治安防范培训 |
| | | }; |
| | | // console.log(d); |
| | | // done(); |
| | |
| | | setTimeout(function () { |
| | | try { |
| | | that.$refs.modalForm.addLinesDraw(val); |
| | | } catch (error) { |
| | | } |
| | | } catch (error) {} |
| | | }, 1500); |
| | | } else { |
| | | try { |
| | | that.$refs.modalForm.addLinesDraw(val); |
| | | } catch (error) { |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | |
| | | //清空搜索框中的内容 |
| | | this.query = {}; |
| | | //清空this.$route.query |
| | | this.$router.push({query: {}}); |
| | | this.$router.push({ query: {} }); |
| | | this.onLoad(this.page); |
| | | }, |
| | | searchChange(params, done) { |
| | | //清空this.$route.query |
| | | this.$router.push({query: {}}); |
| | | this.$router.push({ query: {} }); |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | getList(page.currentPage, page.pageSize,params).then((res) => { |
| | | params["tasktype"] = "1"; // 治安义务宣传 |
| | | getList(page.currentPage, page.pageSize, params).then((res) => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | |
| | |
| | | getBRdata(e) { |
| | | this.activeClass = e; |
| | | this.query = {}; |
| | | this.$router.push({query: {}}); |
| | | this.$router.push({ query: {} }); |
| | | var today = new Date(); |
| | | var params = {}; |
| | | |
| | |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | | }, |
| | | rowStyle({row, column, rowIndex}) { |
| | | rowStyle({ row, column, rowIndex }) { |
| | | if (row.jtype == "0") { |
| | | return { |
| | | color: "#ff2727", |
| | |
| | | } |
| | | }); |
| | | this.$store.state.tags.tagList = arr; |
| | | this.$router.push({path: `/real/history/${row.deviceNumber}`}); |
| | | this.$router.push({ path: `/real/history/${row.deviceNumber}` }); |
| | | }, |
| | | handleMap(row) { |
| | | this.showMap = true; |
| | |
| | | }); |
| | | this.$store.state.tags.tagList = arr; |
| | | //警情追踪 |
| | | this.$router.push({path: "/policeTracking/details", query: row}); |
| | | this.$router.push({ path: "/policeTracking/details", query: row }); |
| | | }, |
| | | //打开新增窗体 |
| | | openAdd() { |
| | |
| | | //本地服务接口地址 |
| | | // target: 'http://s16s652780.51mypc.cn/api/', |
| | | // target: 'http://192.168.0.114:82/', |
| | | // target: 'http://192.168.0.111:83/', |
| | | // target: 'http://192.168.0.108:83/',//曾 |
| | | //target: 'http://localhost:82/', |
| | | // target: 'http://223.82.109.183:2082/api/', |
| | | // target: 'http://192.168.0.107:85/',//唐 |
| | | target: 'http://localhost:83/', |
| | | // target: 'http://localhost:83/', |
| | | //target: 'http://223.82.109.183:2082/api/', |
| | | //target: 'http://localhost:83/', |
| | | target: 'http://localhost:83/', |
| | | //target: 'https://web.byisf.com/api/', |
| | | //远程演示服务地址,可用于直接启动项目 |
| | | //target: 'https://saber.bladex.vip/api', |