From 08c2fa45f7f5e6626f83270363a0d16f7d752d4c Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期二, 14 三月 2023 16:56:13 +0800
Subject: [PATCH] Merge pull request #771 from mrjackwang/wvp-28181-2.0
---
web_src/src/components/dialog/chooseChannelForCatalog.vue | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/web_src/src/components/dialog/chooseChannelForCatalog.vue b/web_src/src/components/dialog/chooseChannelForCatalog.vue
index 4303a2f..82d1f58 100644
--- a/web_src/src/components/dialog/chooseChannelForCatalog.vue
+++ b/web_src/src/components/dialog/chooseChannelForCatalog.vue
@@ -38,7 +38,7 @@
import catalogEdit from './catalogEdit.vue'
export default {
name: 'chooseChannelForCatalog',
- props: ['platformId', 'platformName', 'defaultCatalogId', 'catalogIdChange', 'treeType'],
+ props: ['platformId', 'platformDeviceId', 'platformName', 'defaultCatalogId', 'catalogIdChange', 'treeType'],
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
@@ -134,7 +134,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 +156,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,
@@ -171,6 +171,7 @@
});
},
loadNode: function(node, resolve){
+ console.log("this.platformDeviceId锛� " + this.platformDeviceId)
if (node.level === 0) {
resolve([
{
@@ -179,7 +180,7 @@
type: -1
},{
name: this.platformName,
- id: this.platformId,
+ id: this.platformDeviceId,
type: 0
}
]);
@@ -200,7 +201,7 @@
onClick: () => {
this.$axios({
method:"delete",
- url:"/api/platform/catalog/relation/del",
+ url:"./api/platform/catalog/relation/del",
data: data
}).then((res)=>{
console.log("绉婚櫎鎴愬姛")
@@ -298,6 +299,8 @@
return false;
},
nodeClickHandler: function (data, node, tree){
+ console.log(data)
+ console.log(node)
this.chooseId = data.id;
this.chooseName = data.name;
if (this.catalogIdChange)this.catalogIdChange(this.chooseId, this.chooseName);
--
Gitblit v1.8.0