提交代码

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