Browse Source

modified: src/views/modules/visi/design-inputnode-config1.vue

Zhangvinjo 2 years ago
parent
commit
ed18758c61
1 changed files with 10 additions and 1 deletions
  1. 10 1
      src/views/modules/visi/design-inputnode-config1.vue

+ 10 - 1
src/views/modules/visi/design-inputnode-config1.vue

@@ -144,6 +144,7 @@ export default {
       st_totalPage: 0,
       dy_totalPage: 0,
       datasetName: "",
+      userID: this.$store.state.user.id, // 用户编号
     };
   },
   methods: {
@@ -154,6 +155,7 @@ export default {
         url: this.$http.adornUrl("/dataset/list"),
         method: "get",
         params: this.$http.adornParams({
+          currentUserId: this.userID,
           page: this.pageIndex,
           limit: this.pageSize,
           datasetName: this.datasetName,
@@ -174,6 +176,7 @@ export default {
         url: this.$http.adornUrl("/datasetdy/list"),
         method: "get",
         params: this.$http.adornParams({
+          currentUserId: this.userID,
           page: this.pageIndex,
           limit: this.pageSize,
           datasetName: this.datasetName,
@@ -223,9 +226,13 @@ export default {
                 fileitem["name"] = stdatasetname;
                 fileitem["bucketname"] = "dataset";
                 fileitem["fileurl"] = data.downloadUrl;
+                // console.log("data.downloadUrl")
+                // console.log(data.downloadUrl)
 
                 this.st_dataListmap.push(fileitem);
+                //this.st_dataListmap.push({"name":stdatasetname,"bucketname":"dataset","fileurl":data.downloadUrl});
                 this.allfilemap.push(fileitem);
+                //this.allfilemap.push({"name":stdatasetname,"bucketname":"dataset","fileurl":data.downloadUrl});
                 // celldata.allfilemap = this.allfilemap;
               } else {
                 // this.$message.error("下载失败");
@@ -250,6 +257,8 @@ export default {
                 fileitem["fileurl"] = data.downloadUrl;
 
                 this.dy_dataListmap.push(fileitem);
+                //this.dy_dataListmap.push({"name":dydatasetname,"bucketname":"dydataset","fileurl":data.downloadUrl});
+                //this.allfilemap.push({"name":dydatasetname,"bucketname":"dydataset","fileurl":data.downloadUrl});
                 this.allfilemap.push(fileitem);
                 // celldata.allfilemap = this.allfilemap;
               } else {
@@ -348,7 +357,7 @@ export default {
     // 文件改变时
     fileChange(file, fileList) {
       this.fileList = fileList;
-      this.fileList.append(file);
+      this.fileList.push(file);
     },
   },
 };