提交代码

This commit is contained in:
jiang 2024-11-20 17:54:57 +08:00
parent c9e5d8aee8
commit 7c6c85e21b
1 changed files with 5 additions and 4 deletions

View File

@ -210,7 +210,7 @@
<el-form ref="pasteForm" :model="pasteForm" :rules="pasteRules" label-width="80px">
<el-form-item label="位置" prop="parentId">
<treeselect
v-model="copyForm.parentId"
v-model="pasteForm.parentId"
:options="fileTree"
:normalizer="normalizer"
:show-count="true"
@ -397,6 +397,7 @@ export default {
},
//
cancel() {
this.pasteOpen = false;
this.copyOpen =false;
this.open = false;
this.reset();
@ -505,12 +506,12 @@ export default {
this.$refs["pasteForm"].validate(valid => {
if (valid) {
let data = {
fileId: this.copyForm.fileId,
parentId : this.copyForm.parentId,
fileId: this.pasteForm.fileId,
parentId : this.pasteForm.parentId,
}
updateFile(data).then(response => {
this.$modal.msgSuccess("修改成功");
this.copyOpen = false;
this.pasteOpen = false;
this.getList();
});
}