提交代码

This commit is contained in:
jiang 2024-11-20 16:54:16 +08:00
parent a1c60ea2cc
commit 7df09a47b1
1 changed files with 16 additions and 9 deletions

View File

@ -61,7 +61,7 @@
v-hasPermi="['dataCenter:teamMember:add']"
>移动</el-button>
</el-col>
<el-col :span="1.5">
<!-- <el-col :span="1.5">
<el-button
type="warning"
icon="el-icon-document-copy"
@ -70,7 +70,7 @@
:disabled="single"
v-hasPermi="['dataCenter:teamMember:add']"
>复制</el-button>
</el-col>
</el-col>-->
<el-col :span="1.5">
<el-button
type="danger"
@ -207,7 +207,7 @@
</el-dialog>
<el-dialog :title="title" :visible.sync="pasteOpen" width="500px" append-to-body>
<el-form ref="copyForm" :model="pasteForm" :rules="pasteRules" label-width="80px">
<el-form ref="pasteForm" :model="pasteForm" :rules="pasteRules" label-width="80px">
<el-form-item label="位置" prop="parentId">
<treeselect
v-model="copyForm.parentId"
@ -220,7 +220,7 @@
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitCopy"> </el-button>
<el-button type="primary" @click="submitPaste"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
@ -285,6 +285,7 @@ export default {
//
copyOpen:false,
renameOpen:false,
pasteOpen:false,
open: false,
//
addOpen:false,
@ -298,6 +299,7 @@ export default {
form: {},
copyForm:{},
renameForm:{},
pasteForm:{},
renameRules:{
newName: [
{ required: true, message: "名称不能为空", trigger: "blur" }
@ -305,7 +307,12 @@ export default {
},
copyRules: {
parentId: [
{ required: true, message: "名称不能为空", trigger: "blur" }
{ required: true, message: "位置不能为空", trigger: "blur" }
],
},
pasteRules:{
parentId: [
{ required: true, message: "位置不能为空", trigger: "blur" }
],
},
//
@ -467,7 +474,7 @@ export default {
getFile(fileId).then(response => {
this.copyForm = response.data;
this.copyOpen = true;
this.title = "移动文件";
this.title = "复制文件";
});
},
submitCopy(){
@ -489,13 +496,13 @@ export default {
const fileId = row.fileId || this.ids
this.getFileTerr(fileId)
getFile(fileId).then(response => {
this.copyForm = response.data;
this.copyOpen = true;
this.pasteForm = response.data;
this.pasteOpen = true;
this.title = "移动文件";
});
},
submitPaste(){
this.$refs["copyForm"].validate(valid => {
this.$refs["pasteForm"].validate(valid => {
if (valid) {
let data = {
fileId: this.copyForm.fileId,