修改上传文件目录异常问题
This commit is contained in:
parent
8feda165b2
commit
5c6c0ecc10
|
@ -214,7 +214,7 @@ export default {
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
selectId:"0",
|
selectId:"",
|
||||||
modalTitle:"",
|
modalTitle:"",
|
||||||
modelType:"",
|
modelType:"",
|
||||||
searchFile:{
|
searchFile:{
|
||||||
|
@ -235,7 +235,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
clickfile(){
|
clickfile(){
|
||||||
if(this.selectId == "0"){
|
if(this.selectId.length <= 0){
|
||||||
this.$message.warning("必须选择文件上传目录");
|
this.$message.warning("必须选择文件上传目录");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -288,7 +288,7 @@ export default {
|
||||||
this.getFileList();
|
this.getFileList();
|
||||||
},
|
},
|
||||||
getFileList(){
|
getFileList(){
|
||||||
if(this.selectId == "0"){
|
if(this.selectId.length <= 0){
|
||||||
this.$message.warning("必须选择查询目录");
|
this.$message.warning("必须选择查询目录");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -375,6 +375,7 @@ export default {
|
||||||
},
|
},
|
||||||
changeSelect(selectedKeys,e){
|
changeSelect(selectedKeys,e){
|
||||||
this.selectId = e.node.dataRef.id
|
this.selectId = e.node.dataRef.id
|
||||||
|
this.searchFile.dirId = this.selectId
|
||||||
this.searchgetFileList();
|
this.searchgetFileList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,6 +206,14 @@ export default {
|
||||||
*/
|
*/
|
||||||
customRequestUpload ({ file }) {
|
customRequestUpload ({ file }) {
|
||||||
// 开始执行上传逻辑
|
// 开始执行上传逻辑
|
||||||
|
if(this.dirId == "" || this.dirId ==null && this.dirId == undefined){
|
||||||
|
this.$message.error('文件目录选择异常请刷新页面')
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(this.taskId.length <= 0){
|
||||||
|
this.$message.error('请选择任务')
|
||||||
|
return;
|
||||||
|
}
|
||||||
const currentRow = this.tableDate.find((row) => row.uid === file.uid)
|
const currentRow = this.tableDate.find((row) => row.uid === file.uid)
|
||||||
if (currentRow) {
|
if (currentRow) {
|
||||||
// 当前上传进度归0
|
// 当前上传进度归0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user