|
|
@@ -5,6 +5,7 @@
|
|
|
background: stype2 == 2 ? '#fff' : '',
|
|
|
padding: stype2 == 2 ? '10px' : '',
|
|
|
}"
|
|
|
+ v-loading="delLoading"
|
|
|
>
|
|
|
<!-- <div class="f_box_top" >
|
|
|
<div class="f_box_top_left">
|
|
|
@@ -648,6 +649,7 @@ export default {
|
|
|
copy1: copy1,
|
|
|
isHover: false,
|
|
|
isHover2: false,
|
|
|
+ delLoading: false,
|
|
|
isLoading: false,
|
|
|
proVisible: false,
|
|
|
stype: 2,
|
|
|
@@ -857,10 +859,12 @@ export default {
|
|
|
type: "warning",
|
|
|
})
|
|
|
.then(() => {
|
|
|
+ this.delLoading = true;
|
|
|
let params = [{ ids: id, folderids: folderid }];
|
|
|
this.ajax
|
|
|
.post(this.$store.state.fileApi + "deleteFolder", params)
|
|
|
.then((res) => {
|
|
|
+ this.delLoading = false;
|
|
|
this.$message({
|
|
|
message: this.lang.deleteSuccess,
|
|
|
type: "success",
|
|
|
@@ -873,6 +877,7 @@ export default {
|
|
|
this.getData();
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
+ this.delLoading = false;
|
|
|
this.$message.error(this.lang.deleteFail);
|
|
|
console.error(err);
|
|
|
});
|