Merge branch 'master' of http://192.168.0.105:10010/r/jfpt-Vue
7 files modified
3 files deleted
| | |
| | | objThis = this; |
| | | |
| | | |
| | | this.addEntitys = new GraphicsLayer({id: 'addEntitys'}); |
| | | this.addEntitys = new GraphicsLayer({ |
| | | id: 'addEntitys' |
| | | }); |
| | | |
| | | // 添加点面线的图层 |
| | | this.addPolygonEntitys = new GraphicsLayer({id: 'addPolygonEntitys'}); |
| | | this.addPolygonEntitys = new GraphicsLayer({ |
| | | id: 'addPolygonEntitys' |
| | | }); |
| | | // 添加所有图层的地方 |
| | | this.entityPolygonAll = new GraphicsLayer({id: 'entityPolygonAll'}); |
| | | this.entityPolygonAll = new GraphicsLayer({ |
| | | id: 'entityPolygonAll' |
| | | }); |
| | | |
| | | |
| | | this._map.addLayer(this.addEntitys); |
| | |
| | | $('.police-container .police-container-distribute .table .tbody').off('click', 'tr').on('click', 'tr', function () { |
| | | var lgtd = Number($(this).attr('lgtd')); |
| | | var lttd = Number($(this).attr('lttd')); |
| | | var position = new esri.geometry.Point(lgtd, lttd, new esri.SpatialReference({wkid: 4326}));//根据输入坐标信息找地图上的点 |
| | | var position = new esri.geometry.Point(lgtd, lttd, new esri.SpatialReference({ |
| | | wkid: 4326 |
| | | })); //根据输入坐标信息找地图上的点 |
| | | that._map.centerAndZoom(position, 18);//缩放,10是缩放级别,可以自定义,数值越大缩放越大 |
| | | }) |
| | | // 编辑,跟进按钮元素的父元素的点击事件 |
| | |
| | | var result = data.data; |
| | | |
| | | for (var i = 0; i < result.length; i++) { |
| | | str += "<tr> <td>" + (Number(i) + 1) + "</td> <td>" + result[i].sname + "</td> <td>" + result[i].distance.toFixed(2) + "</td> <td><input type='radio' name='securityStaff' securityid=" + result[i].snumber + " securityname=" + result[i].sname + "> </td> </tr>" |
| | | str += "<tr> <td>" + (Number(i) + 1) + "</td> <td>" + result[i].real_name + "</td> <td>" + result[i].distance.toFixed(2) + "</td> <td><input type='radio' name='securityStaff' securityid=" + result[i].CODE + " securityname=" + result[i].real_name + "> </td> </tr>" |
| | | } |
| | | |
| | | $('.police-container-distribute-details .security-guard-nearby .security-staff-content tbody').append(str); |
| | |
| | | event.stopPropagation(); |
| | | var lgtd = Number($(this).parent().parent().attr('lgtd')); |
| | | var lttd = Number($(this).parent().parent().attr('lttd')); |
| | | var position = new esri.geometry.Point(lgtd, lttd, new esri.SpatialReference({wkid: 4326}));//根据输入坐标信息找地图上的点 |
| | | var position = new esri.geometry.Point(lgtd, lttd, new esri.SpatialReference({ |
| | | wkid: 4326 |
| | | })); //根据输入坐标信息找地图上的点 |
| | | that.newElectronicFenceId = null; |
| | | that._map.centerAndZoom(position, 18);//缩放,10是缩放级别,可以自定义,数值越大缩放越大 |
| | | var graphic = that.entityPolygonAll.graphics; |
| | |
| | | event.stopPropagation(); |
| | | var lgtd = Number($(this).attr('lgtd')); |
| | | var lttd = Number($(this).attr('lttd')); |
| | | var position = new esri.geometry.Point(lgtd, lttd, new esri.SpatialReference({wkid: 4326}));//根据输入坐标信息找地图上的点 |
| | | var position = new esri.geometry.Point(lgtd, lttd, new esri.SpatialReference({ |
| | | wkid: 4326 |
| | | })); //根据输入坐标信息找地图上的点 |
| | | |
| | | that._map.centerAndZoom(position, 18);//缩放,10是缩放级别,可以自定义,数值越大缩放越大 |
| | | |
| | |
| | | objId.routeName = result[i].routeName; |
| | | objId.remarks = result[i].remarks; |
| | | that.addPolygonAll(that.entityPolygonAll, entityArr, objId); |
| | | str += "<tr flyid=" + result[i].id + " flyname=" + result[i].routeName + "> <td>" + (Number(i) + 1) + "</td> <td>" + result[i].sname + "</td> <td>" + result[i].routeName + "</td> <td> <a href='javascript:;' title=" + result[i].rtime + ">" + result[i].rtime.substr(5, 11) + "</a></td> <td><input type='button' value='编辑'></td> </tr>"; |
| | | str += "<tr flyid=" + result[i].id + " flyname=" + result[i].routeName + "> <td>" + (Number(i) + 1) + "</td> <td>" + result[i].real_name + "</td> <td>" + result[i].routeName + "</td> <td> <a href='javascript:;' title=" + result[i].rtime + ">" + result[i].rtime.substr(5, 11) + "</a></td> <td><input type='button' value='编辑'></td> </tr>"; |
| | | dom.append(str); |
| | | str = ''; |
| | | } |
| | |
| | | var that = this; |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com:18001/api/blade-jfpts/security/security/selectList', |
| | | url: 'https://web.byisf.com:18001/api/blade-jfpts/alarm/alarm/queryBa', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | that.addEntitys.clear(); |
| | | var entityArr = []; |
| | | var objId = {}; |
| | | var entityData = ''; |
| | | for (var a, i = 0; i < result.length; i++) { |
| | | |
| | | |
| | |
| | | }, result[i].jd, result[i].wd, './images/security.png'); |
| | | entityArr = []; |
| | | objId = {}; |
| | | entityData = result[i].coordinate.match(/\(([^)]*)\)/); |
| | | |
| | | a = Number(i) + 1; |
| | | str += "<tr term-snumber=" + result[i].snumber + " lgtd=" + result[i].jd + " lttd=" + result[i].wd + ">"; |
| | | str += "<tr term-snumber=" + result[i].CODE + " lgtd=" + result[i].jd + " lttd=" + result[i].wd + ">"; |
| | | str += '<td>' + a + '</td>'; |
| | | str += '<td title=' + result[i].snumber + '>' + result[i].snumber + '</td>'; |
| | | str += '<td title=' + result[i].sname + '>' + result[i].sname + '</td>'; |
| | | str += '<td title=' + result[i].CODE + '>' + result[i].CODE + '</td>'; |
| | | str += '<td title=' + result[i].real_name + '>' + result[i].real_name + '</td>'; |
| | | str += '<td title=' + result[i].phone + '>' + result[i].phone + '</td>'; |
| | | str += "<td> <input type='button' value='编辑' resultid=" + result[i].id + "> </td>"; |
| | | str += '</tr>'; |
| | |
| | | |
| | | |
| | | // 此时result=["(dsfasjfj3124123)", "dsfasjfj3124123"]; |
| | | if (entityData && entityData != '') { |
| | | entityData = entityData[1].split(','); |
| | | for (var j = 0; j < entityData.length; j++) { |
| | | entityArr.push([Number(entityData[j].split(' ')[0]), Number(entityData[j].split(' ')[1])]); |
| | | } |
| | | } |
| | | |
| | | entityArr.push([Number(result[i].jd), Number(result[i].wd)]); |
| | | |
| | | objId.id = result[i].id; |
| | | objId.anumber = result[i].snumber; |
| | | objId.aname = result[i].sname; |
| | | objId.anumber = result[i].CODE; |
| | | objId.aname = result[i].real_name; |
| | | |
| | | that.addPolygonAll(that.entityPolygonAll, entityArr, objId); |
| | | } |
| | |
| | | |
| | | } |
| | | }) |
| | | // $.ajax({ |
| | | // url: 'https://web.byisf.com:18001/api/blade-jfpts/security/security/selectList', |
| | | // type: 'POST', |
| | | // dataType: 'JSON', |
| | | // success: function (data) { |
| | | // var result = data.data; |
| | | // var str = ''; |
| | | // that.entitysData = []; |
| | | // that.addEntitys.clear(); |
| | | // var entityArr = []; |
| | | // var objId = {}; |
| | | // var entityData = ''; |
| | | // for (var a, i = 0; i < result.length; i++) { |
| | | |
| | | |
| | | // that.createEntitys(that.addEntitys, that.entitysData, '出警信息', { |
| | | // lgtd: result[i].jd, |
| | | // lttd: result[i].wd, |
| | | // id: result[i].id |
| | | // }, result[i].jd, result[i].wd, './images/security.png'); |
| | | // entityArr = []; |
| | | // objId = {}; |
| | | // entityData = result[i].coordinate.match(/\(([^)]*)\)/); |
| | | |
| | | // a = Number(i) + 1; |
| | | // str += "<tr term-snumber=" + result[i].snumber + " lgtd=" + result[i].jd + " lttd=" + result[i].wd + ">"; |
| | | // str += '<td>' + a + '</td>'; |
| | | // str += '<td title=' + result[i].snumber + '>' + result[i].snumber + '</td>'; |
| | | // str += '<td title=' + result[i].sname + '>' + result[i].sname + '</td>'; |
| | | // str += '<td title=' + result[i].phone + '>' + result[i].phone + '</td>'; |
| | | // str += "<td> <input type='button' value='编辑' resultid=" + result[i].id + "> </td>"; |
| | | // str += '</tr>'; |
| | | // dom.append(str); |
| | | // str = ''; |
| | | |
| | | |
| | | // // 此时result=["(dsfasjfj3124123)", "dsfasjfj3124123"]; |
| | | // if (entityData && entityData != '') { |
| | | // entityData = entityData[1].split(','); |
| | | // for (var j = 0; j < entityData.length; j++) { |
| | | // entityArr.push([Number(entityData[j].split(' ')[0]), Number(entityData[j].split(' ')[1])]); |
| | | // } |
| | | // } |
| | | // objId.id = result[i].id; |
| | | // objId.anumber = result[i].snumber; |
| | | // objId.aname = result[i].sname; |
| | | |
| | | // that.addPolygonAll(that.entityPolygonAll, entityArr, objId); |
| | | // } |
| | | |
| | | |
| | | // } |
| | | // }) |
| | | }, |
| | | // 创建实体图层 |
| | | createEntitys: function (entitys, entityContent, name, item, lgtd, lttd, outlineColors) { |
| | | |
| | | var symbol = new esri.symbol.PictureMarkerSymbol(outlineColors, 26, 26); |
| | | symbol.name = name; |
| | | var pt = new Point(lgtd, lttd, new esri.SpatialReference({wkid: 4326})); |
| | | var pt = new Point(lgtd, lttd, new esri.SpatialReference({ |
| | | wkid: 4326 |
| | | })); |
| | | pt.entityData = item; |
| | | var graphic = new esri.Graphic(pt, symbol); |
| | | entitys.add(graphic); |
| | |
| | | }, |
| | | addPoint: function (entitys, lgtd, lttd) { |
| | | var symbol = new esri.symbol.PictureMarkerSymbol('./images/real-time-callPolice.png', 10, 10); |
| | | var pt = new Point(lgtd, lttd, new SpatialReference({wkid: 4326})); |
| | | var pt = new Point(lgtd, lttd, new SpatialReference({ |
| | | wkid: 4326 |
| | | })); |
| | | var graphic = new esri.Graphic(pt, symbol); |
| | | entitys.add(graphic); |
| | | }, |
| | |
| | | //init the layer, more options are available and explained in the cluster layer constructor |
| | | that.clusterLayer = new FlareClusterLayer({ |
| | | id: "flare-cluster-layer", |
| | | spatialReference: new esri.SpatialReference({"wkid": 4326}), |
| | | spatialReference: new esri.SpatialReference({ |
| | | "wkid": 4326 |
| | | }), |
| | | subTypeFlareProperty: "facilityType", |
| | | singleFlareTooltipProperty: "name", |
| | | displaySubTypeFlares: true, |
| | |
| | | //set up a popup template |
| | | var template = new PopupTemplate({ |
| | | title: "{name}", |
| | | fieldInfos: [ |
| | | {fieldName: "facilityType", label: "Facility Type", visible: true}, |
| | | {fieldName: "postcode", label: "Post Code", visible: true}, |
| | | {fieldName: "isOpen", label: "Opening Hours", visible: true} |
| | | fieldInfos: [{ |
| | | fieldName: "facilityType", |
| | | label: "Facility Type", |
| | | visible: true |
| | | }, |
| | | { |
| | | fieldName: "postcode", |
| | | label: "Post Code", |
| | | visible: true |
| | | }, |
| | | { |
| | | fieldName: "isOpen", |
| | | label: "Opening Hours", |
| | | visible: true |
| | | } |
| | | ] |
| | | }); |
| | | |
| | |
| | | that.clusterLayer.addData(datas); |
| | | |
| | | |
| | | } |
| | | , clearLayer: function () { |
| | | }, |
| | | clearLayer: function () { |
| | | var that = this; |
| | | that._map.removeLayer(that.clusterLayer); |
| | | that.clusterLayer = null; |
| | |
| | | dom.empty(); |
| | | var that = this; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com:18001/api/blade-jfpts/jingdan/jingdan/selectList', |
| | | type: 'POST', |
| | | url: "https://web.byisf.com:18001/api/blade-jfpts/alarm/alarm/page?current=1&size=99999&waringType=&beginTime=" + beginTime + "&endTime=" +endTime +"&province=36&city=3601&district=" + addvcd, |
| | | type: 'get', |
| | | dataType: 'JSON', |
| | | data: { |
| | | beginTime: beginTime, |
| | | endTime: endTime, |
| | | waringType: waringType, |
| | | district: addvcd, |
| | | type: '' |
| | | }, |
| | | success: function (data) { |
| | | var result = data.data; |
| | | var result = data.data.records; |
| | | var str = ''; |
| | | that.entitysData = []; |
| | | that.analysisAddEntitys.clear(); |
| | | for (var a, time, t, e, y, h, i = 0; i < result.length; i++) { |
| | | |
| | | if (result[i].waringType == "紧急求救") { |
| | | result[i].waringType = "一键求助" |
| | | } |
| | | |
| | | that.createEntitysAnalysis(that.analysisAddEntitys, that.entitysData, '警情信息', { |
| | | lgtd: result[i].jd, |
| | |
| | | id: result[i].id |
| | | }, result[i].jd, result[i].wd, './images/police-situation.png'); |
| | | |
| | | |
| | | t = result[i].galarmTime.substr(0, 10); |
| | | e = result[i].galarmTime.substr(11); |
| | | t = result[i].alarmTime.substr(0, 10); |
| | | e = result[i].alarmTime.substr(11); |
| | | time = t + ' ' + e; |
| | | y = result[i].galarmTime.substr(5, 5); |
| | | h = result[i].galarmTime.substr(11, 5); |
| | | y = result[i].alarmTime.substr(5, 5); |
| | | h = result[i].alarmTime.substr(11, 5); |
| | | a = Number(i) + 1; |
| | | str += '<tr term-list=' + result[i].id + '>'; |
| | | str += '<td>' + a + '</td>'; |
| | | str += '<td title=' + result[i].waringType + '>' + result[i].waringType + '</td>'; |
| | | str += '<td title=' + result[i].addvnm + '>' + result[i].addvnm + '</td>'; |
| | | str += '<td title=' + result[i].alarmPeople + '>' + result[i].alarmPeople + '</td>'; |
| | | str += "<td><a href='javascript:;' title=" + time + ">" + y + ' ' + h + "</a></td>"; |
| | | str += "<td class='location'> <input type='button' value='定位'" + ' lgtd=' + result[i].jd + ' lttd=' + result[i].wd + "></td>"; |
| | | str += '</tr>'; |
| | |
| | | <div class='select-list'> |
| | | <ul> |
| | | <li>全部</li> |
| | | <li>医疗求助</li> |
| | | <li>火警</li> |
| | | <li>紧急求救</li> |
| | | <li>盗警</li> |
| | | <li>普通报警</li> |
| | | <li>交通</li> |
| | | <li>中心调度</li> |
| | | <li>电话报警</li> |
| | | <li>一键求助</li> |
| | | </ul> |
| | | </div> |
| | | </li> |
| | |
| | | <tr> |
| | | <th>序号</th> |
| | | <th>类别</th> |
| | | <th>行政区</th> |
| | | <th>接警员</th> |
| | | <th>日期</th> |
| | | <th>操作</th> |
| | | </tr> |
| | |
| | | |
| | | if (response.data.data.length > 0) { |
| | | that.deviceId = response.data.data[0].id; |
| | | console.log(userId, response.data.data[0].alarmId); |
| | | if ( |
| | | response.data.data[0].waringType == "紧急求救" && |
| | | response.data.data[0].alarmId == userId |
| | |
| | | that.recorder.start().then( |
| | | () => { |
| | | // 开始录音 |
| | | console.log(111); |
| | | }, |
| | | (error) => { |
| | | // 出错了 |
| | |
| | | * @LastEditTime: 2021-03-18 10:37:42 |
| | | --> |
| | | <template> |
| | | <iframe v-show="iframeState" id="show-iframe" frameborder=0 name="showHere" scrolling=auto |
| | | src="https://web.byisf.com:18001/bigScreen/view/1349193280059879426"></iframe> |
| | | <iframe |
| | | v-show="iframeState" |
| | | id="show-iframe" |
| | | frameborder="0" |
| | | name="showHere" |
| | | scrolling="auto" |
| | | src="https://web.byisf.com:18001/bigScreen/view/1349193280059879426" |
| | | ></iframe> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | return { |
| | | dialogTableVisible:false, |
| | | form: {}, |
| | | } |
| | | }; |
| | | }, |
| | | mounted() { |
| | | window.handleStartAnimalHeat = this.handleStartAnimalHeat; |
| | | window.handleStartHealthcode = this.handleStartHealthcode; |
| | | window.handleStartAlarm = this.handleStartAlarm; |
| | | }, |
| | | methods: { |
| | | //体温监测分页数据 |
| | | handleStartAnimalHeat(data) { |
| | | this.$router.push({ |
| | | path: `/animalHeat/animalHeatPage`, |
| | | query: data[0], |
| | | }); |
| | | }, |
| | | //健康码分页数据 |
| | | handleStartHealthcode(data) { |
| | | this.$router.push({ |
| | | path: `/healthcode/healthcodePage`, |
| | | query: data[0], |
| | | }); |
| | | }, |
| | | <<<<<<< HEAD |
| | | mounted() { |
| | | window.handleStartAnimalHeat = this.handleStartAnimalHeat; |
| | | window.handleStartHealthcode = this.handleStartHealthcode; |
| | |
| | | path: `/clientManagement/index` |
| | | }); |
| | | } |
| | | ======= |
| | | //主动报警(一键求助,电话报警)分页数据 |
| | | handleStartAlarm(data) { |
| | | this.$router.push({ |
| | | path: `/realTimePolice/index`, |
| | | query: data[0], |
| | | }); |
| | | }, |
| | | >>>>>>> 1961bed1f17c953cab383102b28498152f1e6f70 |
| | | |
| | | // getData() { |
| | | // var that = this; |
| | |
| | | // //that.dialogTableVisible = true; |
| | | // }, 3000); |
| | | // } |
| | | } |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | #show-iframe { |
| | | display: block !important; |
| | | height: 95%; |
| | | |
| | | } |
| | | |
| | | .avue-main .avue-view { |
| | | height: 100%; |
| | | padding: 0px 5px !important; |
| | | } |
| | | |
| | | </style> |
| | |
| | | <div> |
| | | <el-image |
| | | :src="src" |
| | | :preview-src-list="srcList" |
| | | style="width: 150px; margin-left: 5px" |
| | | ></el-image> |
| | | <el-image |
| | | :src="src" |
| | | :preview-src-list="srcList" |
| | | style="width: 150px; margin-left: 5px" |
| | | ></el-image> |
| | | <el-image |
| | | :src="src" |
| | | :preview-src-list="srcList" |
| | | style="width: 150px; margin-left: 5px" |
| | | ></el-image> |
| | | </div> |
| | |
| | | |
| | | <el-row :align="center" style="margin-top: 40px"> |
| | | <el-col :offset="10"> |
| | | <el-button @click="onSubmit" type="danger">处理完成</el-button> |
| | | <el-button |
| | | @click="onSubmit" |
| | | :disabled="form.jtype == 2 ? true : false" |
| | | :type="form.jtype == 2 ? 'info' : 'danger'" |
| | | >处理完成</el-button |
| | | > |
| | | </el-col> |
| | | </el-row> |
| | | </el-card> |
| | |
| | | }, |
| | | src: |
| | | "https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg", |
| | | srcList: [ |
| | | "https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg", |
| | | "https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg", |
| | | "https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg", |
| | | "https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg", |
| | | ], |
| | | form: {}, |
| | | itemOption: { |
| | | menuBtn: false, |
| | |
| | | this.getReceivingAlarm(); |
| | | }, |
| | | methods: { |
| | | onSubmit() { |
| | | var newAxios = axios.create({ |
| | | baseURL: "https://web.byisf.com:18001", |
| | | withCredentials: false, |
| | | headers: {}, |
| | | }); |
| | | getDate() { |
| | | // 当前时间 |
| | | var timestamp = Date.parse(new Date()); |
| | | var serverDate = new Date(timestamp); |
| | | |
| | | newAxios |
| | | // 本周周一的时间 |
| | | var mondayTime = |
| | | timestamp - (serverDate.getDay() - 1) * 24 * 60 * 60 * 1000; |
| | | var mondayData = new Date(mondayTime); |
| | | //年 |
| | | var mondayY = mondayData.getFullYear(); |
| | | //月 |
| | | var mondayM = |
| | | mondayData.getMonth() + 1 < 10 |
| | | ? "0" + (mondayData.getMonth() + 1) |
| | | : mondayData.getMonth() + 1; |
| | | //日 |
| | | var mondayD = |
| | | mondayData.getDate() < 10 |
| | | ? "0" + mondayData.getDate() |
| | | : mondayData.getDate(); |
| | | // 当前时间 |
| | | var currentData = new Date(timestamp); |
| | | //年 |
| | | var currentY = currentData.getFullYear(); |
| | | //月 |
| | | var currentM = |
| | | currentData.getMonth() + 1 < 10 |
| | | ? "0" + (currentData.getMonth() + 1) |
| | | : currentData.getMonth() + 1; |
| | | //日 |
| | | var currentD = |
| | | currentData.getDate() < 10 |
| | | ? "0" + currentData.getDate() |
| | | : currentData.getDate(); |
| | | //时 |
| | | var currenH = |
| | | currentData.getHours() < 10 |
| | | ? "0" + currentData.getHours() |
| | | : currentData.getHours(); |
| | | //分 |
| | | var currenM = |
| | | currentData.getMinutes() < 10 |
| | | ? "0" + currentData.getMinutes() |
| | | : currentData.getMinutes(); |
| | | //秒 |
| | | var currenS = |
| | | currentData.getSeconds() < 10 |
| | | ? "0" + currentData.getSeconds() |
| | | : currentData.getSeconds(); |
| | | |
| | | return { |
| | | day: { |
| | | beginTime: currentY + "-" + currentM + "-" + currentD + " 00:00:00", |
| | | endTime: |
| | | currentY + |
| | | "-" + |
| | | currentM + |
| | | "-" + |
| | | currentD + |
| | | " " + |
| | | currenH + |
| | | ":" + |
| | | currenM + |
| | | ":00", |
| | | }, |
| | | week: { |
| | | beginTime: mondayY + "-" + mondayM + "-" + mondayD + " 00:00:00", |
| | | endTime: |
| | | currentY + |
| | | "-" + |
| | | currentM + |
| | | "-" + |
| | | currentD + |
| | | " " + |
| | | currenH + |
| | | ":" + |
| | | currenM + |
| | | ":00", |
| | | }, |
| | | month: { |
| | | beginTime: mondayY + "-" + mondayM + "-01 00:00:00", |
| | | endTime: |
| | | currentY + |
| | | "-" + |
| | | currentM + |
| | | "-" + |
| | | currentD + |
| | | " " + |
| | | currenH + |
| | | ":" + |
| | | currenM + |
| | | ":00", |
| | | }, |
| | | current: |
| | | currentY + |
| | | "-" + |
| | | currentM + |
| | | "-" + |
| | | currentD + |
| | | " " + |
| | | currenH + |
| | | ":" + |
| | | currenM + |
| | | ":" + |
| | | currenS, |
| | | }; |
| | | }, |
| | | onSubmit() { |
| | | var that = this; |
| | | axios |
| | | .post( |
| | | "/api/blade-jfpts/jingdan/jingdan/updateInfo", |
| | | "/api/blade-jfpts/alarm/alarm/updateJtype", |
| | | {}, |
| | | { |
| | | params: { |
| | | id: this.form.id, |
| | | handleP: this.form.handleP, |
| | | handName: this.form.handName, |
| | | handletype: this.form.handletype, |
| | | type: "2", |
| | | jid: this.form.id, |
| | | jtype: 2, |
| | | rid: this.form.alarmId, |
| | | bz: this.form.bz, |
| | | snumber: this.form.alarmId, |
| | | sname: this.form.alarmPeople, |
| | | zc: "处理完成", |
| | | zctime: this.getDate().current, |
| | | }, |
| | | } |
| | | ) |
| | | .then((res) => { |
| | | if (res.data.msg == "修改成功") { |
| | | .then(function (res) { |
| | | if ((res.msg = "修改成功")) { |
| | | var arr = []; |
| | | this.$store.state.tags.tagList.forEach((item) => { |
| | | if (item.value != this.$store.state.tags.tag.value) { |
| | | that.$store.state.tags.tagList.forEach((item) => { |
| | | if (item.value != that.$store.state.tags.tag.value) { |
| | | arr.push(item); |
| | | } |
| | | }); |
| | | this.$store.state.tags.tagList = arr; |
| | | this.$router.go(-1); |
| | | that.$store.state.tags.tagList = arr; |
| | | that.$router.go(-1); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-03-17 15:21:33 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-03-20 16:47:06 |
| | | * @Last Modified time: 2021-03-20 18:12:42 |
| | | */ |
| | | <template> |
| | | <basic-container> |
| | |
| | | }; |
| | | |
| | | if ( |
| | | this.$router.query && |
| | | this.$router.query != null && |
| | | this.$router.query != "" |
| | | this.$route.query.waringType && |
| | | this.$route.query != undefined && |
| | | this.$route.query != null && |
| | | this.$route.query != "" |
| | | ) { |
| | | if (this.$router.query.status) { |
| | | this.activeClass = this.$router.query.status; |
| | | if ( |
| | | this.$route.query.status != undefined && |
| | | this.$route.query.status != null && |
| | | this.$route.query.status == "" |
| | | ) { |
| | | this.activeClass = this.$route.query.status; |
| | | this.page.currentPage = 1; |
| | | if (this.$router.query.status == 0) { |
| | | if (this.$route.query.status == 0) { |
| | | params = { |
| | | waringType: this.$router.query.waringType, |
| | | waringType: this.$route.query.waringType, |
| | | beginTime: this.dateTime.day.beginTime, |
| | | endTime: this.dateTime.day.endTime, |
| | | }; |
| | | } else if (this.$router.query.status == 1) { |
| | | } else if (this.$route.query.status == 1) { |
| | | params = { |
| | | waringType: this.$router.query.waringType, |
| | | waringType: this.$route.query.waringType, |
| | | beginTime: this.dateTime.week.beginTime, |
| | | endTime: this.dateTime.week.endTime, |
| | | }; |
| | | } else if (this.$router.query.status == 2) { |
| | | } else if (this.$route.query.status == 2) { |
| | | params = { |
| | | waringType: this.$router.query.waringType, |
| | | waringType: this.$route.query.waringType, |
| | | beginTime: this.dateTime.month.beginTime, |
| | | endTime: this.dateTime.month.endTime, |
| | | }; |
| | | } |
| | | } else { |
| | | this.activeClass = 0; |
| | | this.page.currentPage = 1; |
| | | params = { |
| | | waringType: this.$router.query.waringType, |
| | | waringType: this.$route.query.waringType, |
| | | beginTime: this.dateTime.day.beginTime, |
| | | endTime: this.dateTime.day.endTime, |
| | | }; |
| | | } |
| | | } |
| | |
| | | ...this.query, |
| | | }; |
| | | } |
| | | |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize, values).then((res) => { |
| | | const data = res.data.data; |