Merge remote-tracking branch 'origin/master'
| | |
| | | |
| | | if (response.data.data.length > 0) { |
| | | that.deviceId = response.data.data[0].id; |
| | | that.form = response.data.data[0]; |
| | | newAxios |
| | | .post( |
| | | "/api_control", |
| | | {}, |
| | | { |
| | | params: { |
| | | param: JSON.stringify({ PktType: "GetAccessToken" }), |
| | | }, |
| | | } |
| | | ) |
| | | .then((res) => { |
| | | newAxios |
| | | .get( |
| | | `https://web.byisf.com:18000/GetPlayUrl?deviceCode=${that.form.serialNumber}&chl=${that.form.channelNumber}` |
| | | ) |
| | | .then((result) => { |
| | | console.log(result) |
| | | axios({ |
| | | method: "post", |
| | | url: `/api/blade-jfpts/rvideo/rVoid`, |
| | | timeout: 600000, |
| | | params: { |
| | | sourcePath: result.data.data.flv, |
| | | jid: that.form.id, |
| | | }, |
| | | }).then((resdata) => {}); |
| | | }); |
| | | }); |
| | | if ( |
| | | response.data.data[0].waringType == "紧急求救" && |
| | | response.data.data[0].alarmId == userId |
| | | ) { |
| | | response.data.data[0].waringType = "一键求助"; |
| | | that.form = response.data.data[0]; |
| | | |
| | | that.peopleList = [ |
| | | { label: that.form.oneContacts, value: that.form.onePhone }, |
| | | { label: that.form.twoContacts, value: that.form.twoPhone }, |
| | |
| | | that.peoplePhone = that.form.onePhone; |
| | | that.dialogTableVisible = true; |
| | | // Recorder.getPermiRecorderssion().then(() => {}); |
| | | |
| | | newAxios |
| | | .post( |
| | | "/api_control", |
| | | {}, |
| | | { |
| | | params: { |
| | | param: JSON.stringify({ PktType: "GetAccessToken" }), |
| | | }, |
| | | } |
| | | ) |
| | | .then((res) => { |
| | | newAxios |
| | | .get( |
| | | `https://web.byisf.com:18000/GetPlayUrl?deviceCode=${that.form.serialNumber}&chl=${that.form.channelNumber}` |
| | | ) |
| | | .then((result) => { |
| | | axios({ |
| | | method: "post", |
| | | url: `/api/blade-jfpts/rvideo/rVoid`, |
| | | timeout: 600000, |
| | | params: { |
| | | sourcePath: result.data.data.flv, |
| | | jid: that.form.id, |
| | | }, |
| | | }).then((resdata) => {}); |
| | | }); |
| | | }); |
| | | |
| | | that.ofX = null; |
| | | that.ofY = null; |
| | |
| | | ></iframe> |
| | | |
| | | <el-dialog |
| | | class="ss-video-dialog" |
| | | class="old-video-dialog-box" |
| | | width="100%" |
| | | title="历史回放" |
| | | :visible.sync="oldVideoSatart" |
| | | :close-on-press-escape="false" |
| | | :close-on-click-modal="false" |
| | | @close="vaddress = ''" |
| | | append-to-body |
| | | > |
| | | <video |
| | |
| | | baseUrl: "", |
| | | oldVideoSatart: false, |
| | | vaddress: null, |
| | | peopleListX: [], |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | getList() { |
| | | var that = this; |
| | | axios |
| | | .get( |
| | | `/api/blade-user/page?current=1&size=9999&work_status=&deptId=` |
| | | ) |
| | | .get(`/api/blade-user/page?current=1&size=9999&work_status=&deptId=`) |
| | | .then(function (res) { |
| | | that.tableData = []; |
| | | var i = 0; |
| | |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleStart(row)" |
| | | >视频回放 |
| | | >实时视频 |
| | | </el-button> |
| | | <el-button |
| | | icon="el-icon-video-camera-solid" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="oldStartVideo(row)" |
| | | >查看历史 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | height="600px" |
| | | ></iframe> |
| | | </el-drawer> |
| | | |
| | | <el-dialog |
| | | class="old-video-dialog-box" |
| | | width="100%" |
| | | title="历史回放" |
| | | :visible.sync="oldVideoSatart" |
| | | :close-on-press-escape="false" |
| | | :close-on-click-modal="false" |
| | | @close="vaddress = ''" |
| | | append-to-body |
| | | > |
| | | <video |
| | | :src="vaddress" |
| | | muted="muted" |
| | | autoplay="autoplay" |
| | | loop |
| | | id="old_video" |
| | | style="width: 100%; height: 100%; object-fit: fill" |
| | | controls |
| | | ></video> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | | |
| | |
| | | height: "auto", |
| | | indexLabel: "序号", |
| | | calcHeight: 30, |
| | | menuWidth: 160, |
| | | menuWidth: 240, |
| | | size: "mini", |
| | | labelWidth: "100", |
| | | dialogWidth: 950, |
| | |
| | | ], |
| | | }, |
| | | data: [], |
| | | oldVideoSatart: false, |
| | | vaddress: null, |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | handleAdd11() { |
| | | this.qwe = true; |
| | | }, |
| | | oldStartVideo(row) { |
| | | this.vaddress = row.vaddress; |
| | | this.oldVideoSatart = true; |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | .old-video-dialog-box { |
| | | position: absolute !important; |
| | | top: 0px !important; |
| | | left: 0px !important; |
| | | right: 0px !important; |
| | | bottom: 0px !important; |
| | | margin: auto !important; |
| | | width: 720px !important; |
| | | z-index: 2200 !important; |
| | | } |
| | | |
| | | .old-video-dialog-box .el-dialog { |
| | | position: absolute !important; |
| | | top: 0 !important; |
| | | left: 0 !important; |
| | | right: 0 !important; |
| | | bottom: 0 !important; |
| | | margin: auto !important; |
| | | height: 558px; |
| | | border-radius: 10px 10px 10px 10px; |
| | | } |
| | | |
| | | .old-video-dialog-box .el-dialog .el-dialog__header { |
| | | padding-top: 10px; |
| | | } |
| | | |
| | | .old-video-dialog-box .el-dialog .el-dialog__body { |
| | | padding: 10px !important; |
| | | height: calc(100% - 44px); |
| | | box-sizing: border-box; |
| | | } |
| | | </style> |