Explorar el Código

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

Zhangvinjo hace 2 años
padre
commit
ed18758c61
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  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);
     },
   },
 };