Merge remote-tracking branch 'origin/wvp-28181-2.0' into liujie-20220712
# Conflicts: # src/main/java/com/genersoft/iot/vmp/service/IMediaService.java # src/main/java/com/genersoft/iot/vmp/service/impl/MediaServiceImpl.java
This commit is contained in:
@@ -187,7 +187,7 @@ export default {
|
||||
this.getListLoading = true;
|
||||
this.$axios({
|
||||
method: 'get',
|
||||
url: '/api/media/stream_info_by_app_and_stream',
|
||||
url: '/api/push/getPlayUrl',
|
||||
params: {
|
||||
app: row.app,
|
||||
stream: row.stream,
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
<el-divider direction="vertical"></el-divider>
|
||||
<el-button size="medium" icon="el-icon-switch-button" type="text" v-if="scope.row.enable" @click="stop(scope.row)">停用</el-button>
|
||||
<el-divider direction="vertical"></el-divider>
|
||||
<el-button size="medium" icon="el-icon-check" type="text" :loading="startBtnLaoding" v-if="!scope.row.enable" @click="start(scope.row)">启用</el-button>
|
||||
<el-button size="medium" icon="el-icon-check" type="text" :loading="scope.row.startBtnLoading" v-if="!scope.row.enable" @click="start(scope.row)">启用</el-button>
|
||||
<el-divider v-if="!scope.row.enable" direction="vertical"></el-divider>
|
||||
<el-button size="medium" icon="el-icon-delete" type="text" style="color: #f56c6c" @click="deleteStreamProxy(scope.row)">删除</el-button>
|
||||
</template>
|
||||
@@ -132,7 +132,7 @@
|
||||
count:15,
|
||||
total:0,
|
||||
getListLoading: false,
|
||||
startBtnLaoding: false
|
||||
startBtnLoading: false
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -169,7 +169,10 @@
|
||||
}
|
||||
}).then(function (res) {
|
||||
that.total = res.data.total;
|
||||
that.streamProxyList = res.data.list;
|
||||
for (let i = 0; i < res.data.list.length; i++) {
|
||||
res.data.list[i]["startBtnLoading"] = false;
|
||||
}
|
||||
that.streamProxyList = res.data.list;
|
||||
that.getListLoading = false;
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
@@ -263,7 +266,7 @@
|
||||
start: function(row){
|
||||
let that = this;
|
||||
this.getListLoading = true;
|
||||
this.startBtnLaoding = true;
|
||||
this.$set(row, 'startBtnLoading', true)
|
||||
this.$axios({
|
||||
method: 'get',
|
||||
url:`/api/proxy/start`,
|
||||
@@ -273,7 +276,7 @@
|
||||
}
|
||||
}).then(function (res) {
|
||||
that.getListLoading = false;
|
||||
that.startBtnLaoding = false;
|
||||
that.$set(row, 'startBtnLoading', false)
|
||||
if (res.data == "success"){
|
||||
that.initData()
|
||||
}else {
|
||||
@@ -287,7 +290,7 @@
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
that.getListLoading = false;
|
||||
that.startBtnLaoding = false;
|
||||
that.$set(row, 'startBtnLoading', false)
|
||||
});
|
||||
},
|
||||
stop: function(row){
|
||||
|
||||
@@ -11,6 +11,7 @@ import VectorSource from 'ol/source/Vector';
|
||||
import Tile from 'ol/layer/Tile';
|
||||
import VectorLayer from 'ol/layer/Vector';
|
||||
import Style from 'ol/style/Style';
|
||||
import Stroke from 'ol/style/Stroke';
|
||||
import Icon from 'ol/style/Icon';
|
||||
import View from 'ol/View';
|
||||
import Feature from 'ol/Feature';
|
||||
@@ -230,7 +231,12 @@ export default {
|
||||
}
|
||||
let line = new LineString(points)
|
||||
let lineFeature = new Feature(line);
|
||||
|
||||
lineFeature.setStyle(new Style({
|
||||
stroke: new Stroke({
|
||||
width: 4 ,
|
||||
color: "#0c6d6a",
|
||||
})
|
||||
}))
|
||||
let source = new VectorSource();
|
||||
source.addFeature(lineFeature);
|
||||
let vectorLayer = new VectorLayer({
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
@close="close()"
|
||||
>
|
||||
<div v-loading="isLoging">
|
||||
<el-date-picker v-model="searchFrom" type="datetime" placeholder="选择开始日期时间" default-time="00:00:00" size="mini" style="width: 11rem;" align="right" :picker-options="pickerOptions"></el-date-picker>
|
||||
<el-date-picker v-model="searchTo" type="datetime" placeholder="选择结束日期时间" default-time="00:00:00" size="mini" style="width: 11rem;" align="right" :picker-options="pickerOptions"></el-date-picker>
|
||||
<el-date-picker v-model="searchFrom" type="datetime" placeholder="选择开始日期时间" default-time="00:00:00" value-format="yyyy-MM-dd HH:mm:ss" size="mini" style="width: 11rem;" align="right" :picker-options="pickerOptions"></el-date-picker>
|
||||
<el-date-picker v-model="searchTo" type="datetime" placeholder="选择结束日期时间" default-time="00:00:00" value-format="yyyy-MM-dd HH:mm:ss" size="mini" style="width: 11rem;" align="right" :picker-options="pickerOptions"></el-date-picker>
|
||||
<el-button icon="el-icon-search" size="mini" type="primary" @click="onSubmit">查询</el-button>
|
||||
</div>
|
||||
|
||||
@@ -72,7 +72,11 @@ export default {
|
||||
onSubmit: function () {
|
||||
console.log("onSubmit");
|
||||
this.isLoging = true;
|
||||
this.$axios.get(`/api/position/history/${this.channel.deviceId}/${this.channel.channelId}`, {
|
||||
let url = `/api/position/history/${this.channel.deviceId}?start=${this.searchFrom}&end=${this.searchTo}`;
|
||||
if (this.channel.channelId) {
|
||||
url+="&channelId=${this.channel.channelId}"
|
||||
}
|
||||
this.$axios.get(url, {
|
||||
}).then((res)=> {
|
||||
this.isLoging = false;
|
||||
if (typeof this.callback == "function") {
|
||||
|
||||
@@ -186,6 +186,14 @@ export default {
|
||||
this.deviceService.getAllSubChannel(false, data.deviceId, data.channelId, this.channelsHandler)
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
label: "查询轨迹",
|
||||
icon: "el-icon-map-location",
|
||||
disabled: false,
|
||||
onClick: () => {
|
||||
this.getTrace(data)
|
||||
}
|
||||
}
|
||||
],
|
||||
event, // 鼠标事件信息
|
||||
@@ -320,8 +328,8 @@ export default {
|
||||
} else {
|
||||
let positions = [];
|
||||
for (let i = 0; i < channelPositions.length; i++) {
|
||||
if (channelPositions[i].cnLng * channelPositions[i].cnLat > 0) {
|
||||
positions.push([channelPositions[i].cnLng, channelPositions[i].cnLat])
|
||||
if (channelPositions[i][this.longitudeStr] * channelPositions[i][this.latitudeStr] > 0) {
|
||||
positions.push([channelPositions[i][this.longitudeStr], channelPositions[i][this.latitudeStr]])
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user