From 061749548c0b603774582f823768c23f351a39e1 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期一, 22 五月 2023 11:23:48 +0800
Subject: [PATCH] 修复字段名错误
---
web_src/src/components/DeviceList.vue | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/web_src/src/components/DeviceList.vue b/web_src/src/components/DeviceList.vue
index 5f2495e..bff0d1d 100644
--- a/web_src/src/components/DeviceList.vue
+++ b/web_src/src/components/DeviceList.vue
@@ -25,11 +25,13 @@
</el-table-column>
<el-table-column prop="manufacturer" label="鍘傚" min-width="120" >
</el-table-column>
+ <el-table-column prop="transport" label="淇′护浼犺緭妯″紡" min-width="120" >
+ </el-table-column>
<el-table-column label="娴佷紶杈撴ā寮�" min-width="160" >
<template slot-scope="scope">
<el-select size="mini" @change="transportChange(scope.row)" v-model="scope.row.streamMode" placeholder="璇烽�夋嫨" style="width: 120px">
<el-option key="UDP" label="UDP" value="UDP"></el-option>
- <el-option key="TCP-ACTIVE" label="TCP涓诲姩妯″紡" :disabled="true" value="TCP-ACTIVE"></el-option>
+ <el-option key="TCP-ACTIVE" label="TCP涓诲姩妯″紡" value="TCP-ACTIVE"></el-option>
<el-option key="TCP-PASSIVE" label="TCP琚姩妯″紡" value="TCP-PASSIVE"></el-option>
</el-select>
</template>
@@ -152,7 +154,7 @@
this.getDeviceListLoading = true;
this.$axios({
method: 'get',
- url: `./api/device/query/devices`,
+ url: `/api/device/query/devices`,
params: {
page: this.currentPage,
count: this.count
@@ -182,7 +184,7 @@
}).then(() => {
this.$axios({
method: 'delete',
- url: `./api/device/query/devices/${row.deviceId}/delete`
+ url: `/api/device/query/devices/${row.deviceId}/delete`
}).then((res) => {
this.getDeviceList();
}).catch((error) => {
@@ -208,7 +210,7 @@
let that = this;
this.$axios({
method: 'get',
- url: './api/device/query/devices/' + itemData.deviceId + '/sync'
+ url: '/api/device/query/devices/' + itemData.deviceId + '/sync'
}).then((res) => {
console.log("鍒锋柊璁惧缁撴灉锛�" + JSON.stringify(res));
if (res.data.code !== 0) {
@@ -242,7 +244,7 @@
await this.$axios({
method: 'get',
async: false,
- url: `./api/device/query/${deviceId}/sync_status/`,
+ url: `/api/device/query/${deviceId}/sync_status/`,
}).then((res) => {
if (res.data.code == 0) {
if (res.data.data.errorMsg !== null) {
@@ -261,7 +263,7 @@
let that = this;
this.$axios({
method: 'post',
- url: './api/device/query/transport/' + row.deviceId + '/' + row.streamMode
+ url: '/api/device/query/transport/' + row.deviceId + '/' + row.streamMode
}).then(function (res) {
}).catch(function (e) {
--
Gitblit v1.8.0