| | |
| | | >删 除 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="scope" slot="menuLeft"> |
| | | <el-button type="danger" icon="el-icon-plus" size="small" plain @click.stop="$refs.crud.rowAdd()">新增</el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{type,size, row}" slot="menu"> |
| | | <el-button icon="el-icon-check" :size="size" :type="type" @click="setReal(row)">接收</el-button> |
| | | </template> |
| | | |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | |
| | | option: { |
| | | height: "auto", |
| | | calcHeight: 54, |
| | | menuWidth: 330, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "经度", |
| | | prop: "jd", |
| | | }, |
| | | { |
| | | label: "纬度", |
| | | prop: "wd", |
| | | }, |
| | | { |
| | | label: "备注", |
| | |
| | | ...mapGetters(["permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.feedback_add, false), |
| | | addBtn: this.vaildData(this.permission.feedback_add, true), |
| | | viewBtn: this.vaildData(this.permission.feedback_view, true), |
| | | delBtn: this.vaildData(this.permission.feedback_delete, true), |
| | | editBtn: this.vaildData(this.permission.feedback_edit, true), |
| | |
| | | this.query = {}; |
| | | this.onLoad(this.page); |
| | | }, |
| | | //派遣任务 |
| | | setReal(row) { |
| | | var arr = []; |
| | | this.$store.state.tags.tagList.forEach((item) => { |
| | | if (item.label != "任务下发") { |
| | | arr.push(item); |
| | | } |
| | | }); |
| | | this.$store.state.tags.tagList = arr; |
| | | |
| | | row.bz = row.result; |
| | | row.sjsb = 1; |
| | | |
| | | window.sessionStorage.setItem('sjsb', 1) |
| | | |
| | | this.$router.push({ |
| | | path: `/realTimePolice/index`, |
| | | query: row |
| | | }); |
| | | }, |
| | | searchChange(params, done) { |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | |
| | | this.vaddress = this.form.vaddress; |
| | | |
| | | this.getReceivingAlarm(); |
| | | debugger |
| | | if (this.form.alarmType == "巡逻任务"){ |
| | | this.baseUrl = `/map/index.html?ISinit=1&openid=AlertSecurity&id=${this.form.id}&jd=${this.form.jd}&wd=${this.form.wd}&pid=${this.form.deptId}&deptId=${this.form.deptId}&oneId=${this.form.oneId}&baid=${this.form.baid}`; |
| | | }else{ |
| | |
| | | } else { |
| | | that.form.map = { |
| | | formattedAddress: "", |
| | | latitude: 28.68235075592195, |
| | | longitude: 115.9021417169273, |
| | | latitude: 28.699957, |
| | | longitude: 115.862118, |
| | | }; |
| | | } |
| | | }, |
| | |
| | | }, |
| | | created() { |
| | | this.dateTime = this.getDate(); |
| | | }, |
| | | mounted(){ |
| | | debugger |
| | | var xb = JSON.parse(window.sessionStorage.getItem('sjsb')); |
| | | var data = this.$route.query; |
| | | if (xb == 1){ |
| | | this.form = data; |
| | | this.openAdd(); |
| | | window.sessionStorage.removeItem('sjsb'); |
| | | } |
| | | }, |
| | | methods: { |
| | | rowSave(row, done, loading) { |
| | |
| | | }, |
| | | |
| | | PoliceTracking(row) { |
| | | |
| | | var arr = []; |
| | | this.$store.state.tags.tagList.forEach((item) => { |
| | | if (item.label != "任务追踪") { |
| | |
| | | this.$router.push({path: "/policeTracking/track", query: row}); |
| | | |
| | | }, |
| | | //打开新增窗体 |
| | | openAdd(){ |
| | | this.$refs.crud.rowAdd(); |
| | | }, |
| | | |
| | | //数据导出 |
| | | handleExport() { |
| | |
| | | rowSave(row, done, loading) { |
| | | add(row).then( |
| | | () => { |
| | | debugger; |
| | | if (row.type == "0") { |
| | | console.log(123); |
| | | instery( |
| | |
| | | ); |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | | debugger; |
| | | if (row.type == "0") { |
| | | updateInfoy( |
| | | row.dj, |