|
@@ -50,6 +50,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+
|
|
<el-dialog title="新建网关" :visible.sync="isShowDialog" append-to-body>
|
|
<el-dialog title="新建网关" :visible.sync="isShowDialog" append-to-body>
|
|
<el-form :model="formData" label-width="100px">
|
|
<el-form :model="formData" label-width="100px">
|
|
<el-form-item label="名称:">
|
|
<el-form-item label="名称:">
|
|
@@ -212,6 +213,7 @@ export default {
|
|
if (hid === 4 || hid === 5 || hid === 6) return true;
|
|
if (hid === 4 || hid === 5 || hid === 6) return true;
|
|
else return false;
|
|
else return false;
|
|
},
|
|
},
|
|
|
|
+ // 播放
|
|
handlePlay(row) {
|
|
handlePlay(row) {
|
|
console.log(row);
|
|
console.log(row);
|
|
this.videoData = {
|
|
this.videoData = {
|
|
@@ -221,8 +223,10 @@ export default {
|
|
};
|
|
};
|
|
this.isShowVideo = true;
|
|
this.isShowVideo = true;
|
|
},
|
|
},
|
|
|
|
+ // 编辑
|
|
handleEdit(row) {
|
|
handleEdit(row) {
|
|
console.log(row);
|
|
console.log(row);
|
|
|
|
+ row.meta = JSON.stringify(row.meta)
|
|
if (this.formData.id) {
|
|
if (this.formData.id) {
|
|
delete this.formData.id;
|
|
delete this.formData.id;
|
|
delete this.formData.name;
|
|
delete this.formData.name;
|
|
@@ -240,6 +244,7 @@ export default {
|
|
//row.meta.rtsp
|
|
//row.meta.rtsp
|
|
//row.meta.ws
|
|
//row.meta.ws
|
|
},
|
|
},
|
|
|
|
+ // 编辑的保存按钮
|
|
handleSave() {
|
|
handleSave() {
|
|
let isNew = this.formData.id ? false : true;
|
|
let isNew = this.formData.id ? false : true;
|
|
this.formData.hardTypeId = this.selectArr[
|
|
this.formData.hardTypeId = this.selectArr[
|
|
@@ -248,6 +253,7 @@ export default {
|
|
let api = isNew
|
|
let api = isNew
|
|
? "/device/device-communication/add"
|
|
? "/device/device-communication/add"
|
|
: "/device/device/device-communication/update";
|
|
: "/device/device/device-communication/update";
|
|
|
|
+ this.formData.meta = JSON.parse(this.formData.meta)
|
|
this.fetch({
|
|
this.fetch({
|
|
api,
|
|
api,
|
|
data: this.formData,
|
|
data: this.formData,
|