Merge branch 'master' of http://192.168.0.105:10010/r/jfpt-Vue
| | |
| | | form: {}, |
| | | query: {}, |
| | | showViewer:false, |
| | | activeClass: 0, |
| | | imgUrl:'', |
| | | loading: true, |
| | | page: { |
| | |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | activeClass: 0, |
| | | index: true, |
| | | viewBtn: true, |
| | | selection: true, |
| | |
| | | this.query = {}; |
| | | //清空this.$route.query |
| | | this.$router.push({ query: {} }); |
| | | //清空后默认查当日的数据 |
| | | this.activeClass=0; |
| | | this.onLoad(this.page); |
| | | }, |
| | | //搜索按钮 |
| | | searchChange(params, done) { |
| | | console.log(params,222); |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | |
| | | rowClick(row){ |
| | | var that = this; |
| | | that.imgUrl = row.picture; |
| | | console.log(that.imgUrl,111); |
| | | this.showViewer = true |
| | | }, |
| | | // 关闭查看器 |
| | |
| | | } |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | // debugger; |
| | | const { dateTime } = this.query; |
| | | let values = { |
| | | ...params, |
| | |
| | | type:this.$route.query.type |
| | | }; |
| | | } |
| | | this.activeClass=4; |
| | | }else if(this.$route.query.status != undefined){ |
| | | params = { |
| | | status: this.$route.query.status, |
| | | begTime: this.$route.query.startTime, |
| | | endTime: this.$route.query.endTime |
| | | } |
| | | this.activeClass=4; |
| | | }else{ |
| | | params = { |
| | | status:this.$route.query.status, |
| | |
| | | } |
| | | } |
| | | |
| | | if(this.activeClass==0 && this.query.dateTime==null){ |
| | | params = { |
| | | type:this.activeClass |
| | | } |
| | | } |
| | | |
| | | if (dateTime) { |
| | | this.activeClass=4; |
| | | values = { |
| | | ...params, |
| | | begTime: dateTime[0], |
| | |
| | | query: {}, |
| | | search:{}, |
| | | loading: true, |
| | | activeClass: 0, |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | activeClass: 0, |
| | | index: true, |
| | | viewBtn: true, |
| | | selection: true, |
| | |
| | | this.query = {}; |
| | | //清空this.$route.query |
| | | this.$router.push({ query: {} }); |
| | | this.activeClass=0; |
| | | this.onLoad(this.page); |
| | | }, |
| | | searchChange(params, done) { |
| | |
| | | let values = { |
| | | ...params, |
| | | }; |
| | | |
| | | debugger; |
| | | if (this.$route.query.status!=undefined && this.$route.query != undefined && this.$route.query != null && this.$route.query != "" ) { |
| | | if (this.$route.query.type != undefined) { |
| | | this.activeClass = this.$route.query.status; |
| | | this.page.currentPage = 1; |
| | | params = { |
| | | status:this.$route.query.status, |
| | | type:this.$route.query.type |
| | | } |
| | | } else { |
| | | this.activeClass = 0; |
| | | this.page.currentPage = 1; |
| | | params = { |
| | | type:this.$route.query.status |
| | | }; |
| | | } |
| | | this.activeClass =4; |
| | | }else if(this.$route.query.type != undefined){ |
| | | params = { |
| | | type: this.$route.query.type, |
| | | begTime: this.$route.query.startTime, |
| | | endTime: this.$route.query.endTime |
| | | } |
| | | this.activeClass =4; |
| | | }else{ |
| | | params = { |
| | | status:this.$route.query.status, |
| | | type:this.$route.query.type |
| | | } |
| | | params = { |
| | | status:this.$route.query.status, |
| | | type:this.$route.query.type |
| | | } |
| | | } |
| | | |
| | | if(this.activeClass == 0 && this.query.dateTime==null){ |
| | | params = { |
| | | status:this.activeClass, |
| | | } |
| | | } |
| | | |
| | | if (dateTime) { |
| | | this.activeClass =4; |
| | | values = { |
| | | ...params, |
| | | begTime: dateTime[0], |
| | |
| | | form: {}, |
| | | query: {}, |
| | | showViewer: false, // 显示查看器 |
| | | activeClass: 0, |
| | | imgUrl:'', |
| | | loading: true, |
| | | page: { |
| | |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | activeClass: 3, |
| | | border: false, |
| | | stripe:true, |
| | | index: true, |
| | |
| | | this.query = {}; |
| | | //清空this.$route.query |
| | | this.$router.push({ query: {} }); |
| | | this.activeClass=0; |
| | | this.onLoad(this.page); |
| | | }, |
| | | searchChange(params, done) { |
| | |
| | | decisioDiagramResult:this.$route.query.decisioDiagramResult |
| | | }; |
| | | } |
| | | this.activeClass=4; |
| | | }else{ |
| | | if (this.$route.query.startTime != undefined && this.$route.query.startTime != null && this.$route.query.startTime != "" ) { |
| | | this.page.currentPage = 1; |
| | |
| | | startTime:this.$route.query.startTime, |
| | | endTime:this.$route.query.endTime |
| | | } |
| | | this.activeClass=4; |
| | | } |
| | | |
| | | if(this.activeClass==0){ |
| | | this.page.currentPage = 1; |
| | | // 当前时间 |
| | | var date = new Date(); |
| | | //年 |
| | | var Y = date.getFullYear(); |
| | | //月 |
| | | var M = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1; |
| | | //日 |
| | | var D = date.getDate() < 10 ? "0" + date.getDate() : date.getDate(); |
| | | params = { |
| | | startTime:Y + "-" + M + "-" + D + " 00:00:00", |
| | | endTime:Y +"-" +M +"-" + D + " 23:59:59" |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | form: {}, |
| | | query: {}, |
| | | showViewer: false, // 显示查看器 |
| | | activeClass:0, |
| | | imgUrl:'', |
| | | loading: true, |
| | | page: { |
| | |
| | | this.query = {}; |
| | | //清空this.$route.query |
| | | this.$router.push({ query: {} }); |
| | | this.activeClass=0; |
| | | this.onLoad(this.page); |
| | | }, |
| | | searchChange(params, done) { |
| | |
| | | decisioDiagramResult:this.$route.query.decisioDiagramResult |
| | | }; |
| | | } |
| | | this.activeClass=4; |
| | | } |
| | | |
| | | if(this.activeClass==0){ |
| | | this.page.currentPage = 1; |
| | | // 当前时间 |
| | | var date = new Date(); |
| | | //年 |
| | | var Y = date.getFullYear(); |
| | | //月 |
| | | var M = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1; |
| | | //日 |
| | | var D = date.getDate() < 10 ? "0" + date.getDate() : date.getDate(); |
| | | params = { |
| | | startTime:Y + "-" + M + "-" + D + " 00:00:00", |
| | | endTime:Y +"-" +M +"-" + D + " 23:59:59" |
| | | } |
| | | } |
| | | |
| | | if (dateTime) { |
| | |
| | | form: {}, |
| | | query: {}, |
| | | loading: true, |
| | | showMap: true, |
| | | showMap: false, |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | |
| | | return ids.join(","); |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.showMap = false; |
| | | }, |
| | | methods: { |
| | | rowSave(row, done, loading) { |
| | | add(row).then(() => { |
| | |
| | | //打开地图 |
| | | handleMap(row) { |
| | | var that =this; |
| | | this.showMap=true; |
| | | if(row.jd=="" || row.jd=="0.0"){ |
| | | var rwjd = "115.862321"; |
| | | var rwwd = "28.591108"; |
| | |
| | | }else{ |
| | | that.baseUrl = `/map/index.html?ISinit=1&openid=SecurityMap&jd=${row.jd}&wd=${row.wd}&code=${row.code}&name=${row.realName}`; |
| | | } |
| | | this.showMap=true; |
| | | this.$refs.securityMap.onload = () => { |
| | | if (window.frames[1].init) { |
| | | if(row.jd=="" || row.jd=="0.0"){ |
| | | //如果处警员无位置信息,则赋值一个默认数据,否则地图无法加载 |
| | | window.frames[1].init("SecurityMap", { |
| | | x: rwjd, |
| | | y: rwwd, |
| | | code:row.code |
| | | }); |
| | | }else{ |
| | | window.frames[1].init("SecurityMap", { |
| | | x: row.jd, |
| | | y: row.wd, |
| | | code:row.code |
| | | }); |
| | | |
| | | this.$nextTick(() => { |
| | | this.$refs.securityMap.onload = () => { |
| | | if (window.frames[0].init) { |
| | | if(row.jd=="" || row.jd=="0.0"){ |
| | | //如果处警员无位置信息,则赋值一个默认数据,否则地图无法加载 |
| | | window.frames[0].init("SecurityMap", { |
| | | x: rwjd, |
| | | y: rwwd, |
| | | code:row.code |
| | | }); |
| | | }else{ |
| | | window.frames[0].init("SecurityMap", { |
| | | x: row.jd, |
| | | y: row.wd, |
| | | code:row.code |
| | | }); |
| | | } |
| | | |
| | | } else { |
| | | console.log(`没有找到到window.frames[0].init`) |
| | | } |
| | | |
| | | } else { |
| | | console.log(`没有找到到window.frames[1].init`) |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | handleDelete() { |
| | | if (this.selectionList.length === 0) { |