From 1245ae7874fd97c70ec6048f4d90ee70831d17ba Mon Sep 17 00:00:00 2001
From: PengOu <595466820@qq.com>
Date: 星期二, 30 一月 2024 10:59:25 +0800
Subject: [PATCH] Fix 推流列表-> 添加通道 报错: 错误: 字段 "gbStreamId" 不存在 ,改为:gb_stream_id 自测试通过
---
web_src/src/components/dialog/chooseChannelForCatalog.vue | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/web_src/src/components/dialog/chooseChannelForCatalog.vue b/web_src/src/components/dialog/chooseChannelForCatalog.vue
old mode 100644
new mode 100755
index 82d1f58..ae79e64
--- a/web_src/src/components/dialog/chooseChannelForCatalog.vue
+++ b/web_src/src/components/dialog/chooseChannelForCatalog.vue
@@ -28,7 +28,7 @@
</span>
</el-tree>
</div>
- <catalogEdit ref="catalogEdit" :platformId="platformId"></catalogEdit>
+ <catalogEdit ref="catalogEdit" :platformId="platformId" :platformDeviceId="platformDeviceId"></catalogEdit>
</div>
</template>
@@ -38,7 +38,7 @@
import catalogEdit from './catalogEdit.vue'
export default {
name: 'chooseChannelForCatalog',
- props: ['platformId', 'platformDeviceId', 'platformName', 'defaultCatalogId', 'catalogIdChange', 'treeType'],
+ props: ['platformId', 'platformDeviceId', 'platformName', 'defaultCatalogId', 'catalogIdChange'],
created() {
this.chooseId = this.defaultCatalogId;
this.defaultCatalogIdSign = this.defaultCatalogId;
@@ -82,7 +82,7 @@
let that = this;
this.$axios({
method:"get",
- url:`./api/platform/catalog`,
+ url:`/api/platform/catalog`,
params: {
platformId: that.platformId,
parentId: parentId
@@ -101,9 +101,10 @@
},
addCatalog: function (parentId, node){
let that = this;
- console.log(this.treeType)
+ console.log(this.platformId)
+ console.log(parentId)
// 鎵撳紑娣诲姞寮圭獥
- that.$refs.catalogEdit.openDialog(false, null, null, parentId, this.treeType, node.level, ()=>{
+ that.$refs.catalogEdit.openDialog(false, null, null, parentId, node.level, ()=>{
node.loaded = false
node.expand();
});
@@ -134,7 +135,7 @@
removeCatalog: function (id, node){
this.$axios({
method:"delete",
- url:`./api/platform/catalog/del`,
+ url:`/api/platform/catalog/del`,
params: {
id: id,
platformId: this.platformId,
@@ -156,7 +157,7 @@
setDefaultCatalog: function (id){
this.$axios({
method:"post",
- url:`./api/platform/catalog/default/update`,
+ url:`/api/platform/catalog/default/update`,
params: {
platformId: this.platformId,
catalogId: id,
@@ -201,7 +202,7 @@
onClick: () => {
this.$axios({
method:"delete",
- url:"./api/platform/catalog/relation/del",
+ url:"/api/platform/catalog/relation/del",
data: data
}).then((res)=>{
console.log("绉婚櫎鎴愬姛")
--
Gitblit v1.8.0