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