| | |
| | | //#endif |
| | | }, |
| | | receives() { |
| | | var url = this.$store.state.piAPI + "blade-jfpts/alarm/alarm/APP-setAlarm", |
| | | var url = this.$store.state.piAPI + "/alarm/alarm/APP-setAlarm", |
| | | Pid = this.Pdata.id, |
| | | id = this.$store.state.puserID, //警察id |
| | | name = this.$store.state.puserName, //警察id |
| | |
| | | //#endif |
| | | }, |
| | | receives() { |
| | | var url = this.$store.state.piAPI + "blade-jfpts/alarm/alarm/APP-setAlarm", |
| | | var url = this.$store.state.piAPI + "/alarm/alarm/APP-setAlarm", |
| | | Pid = this.Pdata.id, |
| | | id = this.$store.state.puserID, //警察id |
| | | name = this.$store.state.puserName, //警察id |
| | |
| | | { |
| | | "name" : "jfpt", |
| | | "appid" : "__UNI__88EDF2B", |
| | | "appid" : "__UNI__1A57486", |
| | | "description" : "", |
| | | "versionName" : "1.0.0", |
| | | "versionCode" : "100", |
| | |
| | | data(){ |
| | | return{ |
| | | // pathUrl:"http://localhost:89", |
| | | pathUrl:"http://s16s652780.51mypc.cn/api/blade-jfpts", |
| | | pathUrl:"http://s16s652780.51mypc.cn/api", |
| | | totalColor:"#51A2FE", |
| | | loadColor:"#000000", |
| | | loadBeforeColor:"#000000", |
| | |
| | | }, |
| | | //接收任务 |
| | | receives() { |
| | | var url = this.$store.state.piAPI + "blade-jfpts/alarm/alarm/APP-setAlarm", |
| | | var url = this.$store.state.piAPI + "/alarm/alarm/APP-setAlarm", |
| | | Pid = this.itemData.id, |
| | | id = this.$store.state.puserID, //警察id |
| | | name = this.$store.state.puserName, //警察id |
| | |
| | | data(){ |
| | | return { |
| | | // pathUrl:"http://localhost:89/", |
| | | pathUrl:"http://s16s652780.51mypc.cn/api/blade-jfpts", |
| | | pathUrl:"http://s16s652780.51mypc.cn/api", |
| | | page:1, |
| | | pagesize:10, |
| | | // loadStatus:'loading', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式 |
| | |
| | | content:"", |
| | | article:{}, |
| | | video:false, |
| | | pathUrl:"http://s16s652780.51mypc.cn/api/blade-jfpts", |
| | | pathUrl:"http://s16s652780.51mypc.cn/api", |
| | | } |
| | | }, |
| | | onLoad(event) { |
| | |
| | | +"&ownerId="+this.ownerId; |
| | | uni.request({ |
| | | // url: 'http://localhost:89/equipment/equipment/AppSubmit?'+params, |
| | | url: that.pathUrl + '/blade-jfpts/equipment/equipment/AppSubmit?'+params, |
| | | url: that.pathUrl + '/equipment/equipment/AppSubmit?'+params, |
| | | method:'POST', |
| | | success: (res) => { |
| | | if(res.data.code==200){ |
| | |
| | | // 循环调用uni.uploadFile ,因微信小程序只支持单文件上传 |
| | | for (var i = 0; i < tempFilePath.length; i++) { |
| | | uni.uploadFile({ |
| | | // url: 'https://web.byisf.com/api/blade-jfpts/depl/put-depl', //仅为示例,非真实的接口地址 |
| | | // url: 'https://web.byisf.com/api/depl/put-depl', //仅为示例,非真实的接口地址 |
| | | url: 'http://web.byisf.com:82/blade-jfpts/depl/put-depl', |
| | | filePath: tempFilePath[i], |
| | | name: 'file', |
| | |
| | | var that = this; |
| | | that.senId = WxStorage.get("ids"); |
| | | uni.request({ |
| | | url:"http://s16s652780.51mypc.cn/api/blade-jfpts/chat-records/getSingleMessagePage", |
| | | url:"http://s16s652780.51mypc.cn/api/chat-records/getSingleMessagePage", |
| | | method:"get", |
| | | data:{ |
| | | senderId: that.senId, |
| | |
| | | } |
| | | |
| | | uni.request({ |
| | | url:"http://s16s652780.51mypc.cn/api/blade-jfpts/chat-records/insertSingleChat", |
| | | url:"http://s16s652780.51mypc.cn/api/chat-records/insertSingleChat", |
| | | method:"post", |
| | | data:{ |
| | | senderId: that.senId, |
| | |
| | | |
| | | var that = this; |
| | | uni.request({ |
| | | url:"http://s16s652780.51mypc.cn/api/blade-jfpts/chat-records/getSingleMessagePage", |
| | | url:"http://s16s652780.51mypc.cn/api/chat-records/getSingleMessagePage", |
| | | method:"get", |
| | | data:{ |
| | | senderId: WxStorage.get("ids"), |
| | |
| | | this.fromW = need; |
| | | var that = this; |
| | | uni.request({ |
| | | url:"http://s16s652780.51mypc.cn/api/blade-jfpts/chat-records/getChatListPage", |
| | | url:"http://s16s652780.51mypc.cn/api/chat-records/getChatListPage", |
| | | method:"get", |
| | | data:{ |
| | | senderId: WxStorage.get("ids") |
| | |
| | | }) |
| | | // 文件上传 |
| | | uni.uploadFile({ |
| | | // url: 'https://web.byisf.com/api/blade-jfpts/depl/put-depl', //仅为示例,非真实的接口地址 |
| | | // url: 'https://web.byisf.com/api/depl/put-depl', //仅为示例,非真实的接口地址 |
| | | url: 'http://web.byisf.com:82/blade-jfpts/depl/put-depl', |
| | | filePath: tempFilePath[0], |
| | | name: 'file', |
| | |
| | | mask: true |
| | | }) |
| | | wx.request({ |
| | | url: 'http://s16s652780.51mypc.cn/api/blade-jfpts/feedback/feedback/saves', //仅为示例,并非真实接口地址。 |
| | | url: 'http://s16s652780.51mypc.cn/api/feedback/feedback/saves', //仅为示例,并非真实接口地址。 |
| | | data: dataList, |
| | | method: 'POST', |
| | | header: { |
| | |
| | | // 循环调用uni.uploadFile ,因微信小程序只支持单文件上传 |
| | | for (var i = 0; i < tempFilePath.length; i++) { |
| | | wx.uploadFile({ |
| | | // url: 'https://web.byisf.com/api/blade-jfpts/depl/put-depl', //仅为示例,非真实的接口地址 |
| | | // url: 'https://web.byisf.com/api/depl/put-depl', //仅为示例,非真实的接口地址 |
| | | url: 'http://web.byisf.com:82/blade-jfpts/depl/put-depl', |
| | | filePath: tempFilePath[i], |
| | | name: 'file', |
| | |
| | | mask: true |
| | | }) |
| | | wx.uploadFile({ |
| | | // url: 'https://web.byisf.com/api/blade-jfpts/depl/put-depl', //仅为示例,非真实的接口地址 |
| | | // url: 'https://web.byisf.com/api/depl/put-depl', //仅为示例,非真实的接口地址 |
| | | url: 'http://web.byisf.com:82/blade-jfpts/depl/put-depl', |
| | | filePath: tempFilePath, |
| | | name: 'file', |
| | |
| | | // 循环调用uni.uploadFile ,因微信小程序只支持单文件上传 |
| | | for (var i = 0; i < tempFilePath.length; i++) { |
| | | uni.uploadFile({ |
| | | // url: 'https://web.byisf.com/api/blade-jfpts/depl/put-depl', //仅为示例,非真实的接口地址 |
| | | // url: 'https://web.byisf.com/api/depl/put-depl', //仅为示例,非真实的接口地址 |
| | | url: 'http://web.byisf.com:82/blade-jfpts/depl/put-depl', |
| | | filePath: tempFilePath[i], |
| | | name: 'file', |
| | |
| | | mask: true |
| | | }) |
| | | uni.uploadFile({ |
| | | // url: 'https://web.byisf.com/api/blade-jfpts/depl/put-depl', |
| | | // url: 'https://web.byisf.com/api/depl/put-depl', |
| | | url: 'http://web.byisf.com:82/blade-jfpts/depl/put-depl', |
| | | filePath: tempFilePath, |
| | | name: 'file', |
| | |
| | | //提交修改 |
| | | confirm(){ |
| | | uni.request({ |
| | | url: this.pathUrl + '/blade-jfpts/riskReporting/save', |
| | | url: this.pathUrl + '/riskReporting/save', |
| | | method:'POST', |
| | | data:{ |
| | | "riskTime":this.riskTime, |
| | |
| | | //提交修改 |
| | | confirm(){ |
| | | uni.request({ |
| | | url: this.pathUrl + '/blade-jfpts/visitrecord/visitrecord/save', |
| | | url: this.pathUrl + '/visitrecord/visitrecord/save', |
| | | method:'POST', |
| | | data:{ |
| | | // "visitrecord": |
| | |
| | | }, |
| | | getdataList(need) { |
| | | this.fromW = need; |
| | | var url = need == "1" ? this.$store.state.piAPI + "blade-jfpts/alarm/alarm/APP-getAlarm" : need == "0" ? |
| | | this.$store.state.piAPI + "blade-jfpts/alarm/alarm/APP-getAlarming" : '', |
| | | var url = need == "1" ? this.$store.state.piAPI + "/alarm/alarm/APP-getAlarm" : need == "0" ? |
| | | this.$store.state.piAPI + "/alarm/alarm/APP-getAlarming" : '', |
| | | id = this.$store.state.puserID, |
| | | data = need == "1" ? { |
| | | securityArr: id |
| | |
| | | methods: { |
| | | getDataList() { |
| | | var that = this; |
| | | // var url = 'https://web.byisf.com/api/blade-jfpts/equipment/equipment/listAll'; |
| | | // var url = 'https://web.byisf.com/api/equipment/equipment/listAll'; |
| | | // axios.get(url).then((res) => { |
| | | // that.getdata = res.data.data; |
| | | that.beginCome(); |
| | |
| | | var that = this, |
| | | center = [data[0].wd, data[0].jd], |
| | | datas = { id: data[0].id }, |
| | | url = `/api/blade-jfpts/alarm/alarm/APP-getAlarm?id=${data[0].id}`; |
| | | url = `/api/alarm/alarm/APP-getAlarm?id=${data[0].id}`; |
| | | // axios({ |
| | | // url: url, |
| | | // // data:datas, |
| | |
| | | beginMap(map, data) { |
| | | var that = this, |
| | | center = [data[0].wd, data[0].jd], |
| | | url = `http://s16s652780.51mypc.cn/api/blade-jfpts/alarm/alarm/APP-getAlarm?id=${data[0].id}`; |
| | | url = `http://s16s652780.51mypc.cn/api/alarm/alarm/APP-getAlarm?id=${data[0].id}`; |
| | | // url = `http://localhost:89/alarm/alarm/APP-getAlarm?id=${data[0].id}`; |
| | | this.nowPosition = center; |
| | | axios.post(url).then((res) => { |
| | |
| | | if (manufacturer == "HK") { |
| | | axios |
| | | .get( |
| | | `/api/blade-jfpts/equipment/equipment/selectEquimentPlayInfo?number=${deviceNumber}&bmp=m3u8&manufacturer=${manufacturer}` |
| | | `/api/equipment/equipment/selectEquimentPlayInfo?number=${deviceNumber}&bmp=m3u8&manufacturer=${manufacturer}` |
| | | ) |
| | | .then((result) => { |
| | | that.videoSource = result.data.data.address; |
| | |
| | | |
| | | //基础路径 |
| | | // pathUrl: "http://localhost:89", |
| | | pathUrl: "http://s16s652780.51mypc.cn/api/blade-jfpts", |
| | | pathUrl: "http://s16s652780.51mypc.cn/api", |
| | | |
| | | layer: null, |
| | | |
| | |
| | | methods: { |
| | | getDataList(res) { |
| | | var that = this; |
| | | // var url = 'https://web.byisf.com/api/blade-jfpts/equipment/equipment/listAll'; |
| | | // var url = 'https://web.byisf.com/api/equipment/equipment/listAll'; |
| | | // axios.get(url).then((res) => { |
| | | // that.getdata = res.data.data; |
| | | that.beginCome(res); |
| | |
| | | beginMap(map, data) { |
| | | var that = this, |
| | | center = [that.lat, that.lng]; |
| | | // url = `/api/blade-jfpts/alarm/alarm/APP-getAlarm?id=${data[0].id}`; |
| | | // url = `/api/alarm/alarm/APP-getAlarm?id=${data[0].id}`; |
| | | // this.nowPosition = center; |
| | | // axios.post(url).then((res) => { |
| | | // // console.log(res) |
| | |
| | | //警情点查询 |
| | | axios({ |
| | | method: "post", |
| | | url: `http://s16s652780.51mypc.cn/api/blade-jfpts/alarm/alarm/APP-getAlarming`, |
| | | url: `http://s16s652780.51mypc.cn/api/alarm/alarm/APP-getAlarming`, |
| | | params: { |
| | | securityId: "1370564873280430082", |
| | | }, |
| | |
| | | |
| | | //基础路径 |
| | | // pathUrl: "http://localhost:89", |
| | | pathUrl: "http://s16s652780.51mypc.cn/api/blade-jfpts", |
| | | pathUrl: "http://s16s652780.51mypc.cn/api", |
| | | |
| | | layer: null, |
| | | |