提交代码
This commit is contained in:
parent
a1c60ea2cc
commit
7df09a47b1
|
|
@ -61,7 +61,7 @@
|
||||||
v-hasPermi="['dataCenter:teamMember:add']"
|
v-hasPermi="['dataCenter:teamMember:add']"
|
||||||
>移动</el-button>
|
>移动</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="warning"
|
type="warning"
|
||||||
icon="el-icon-document-copy"
|
icon="el-icon-document-copy"
|
||||||
|
|
@ -70,7 +70,7 @@
|
||||||
:disabled="single"
|
:disabled="single"
|
||||||
v-hasPermi="['dataCenter:teamMember:add']"
|
v-hasPermi="['dataCenter:teamMember:add']"
|
||||||
>复制</el-button>
|
>复制</el-button>
|
||||||
</el-col>
|
</el-col>-->
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
|
|
@ -207,7 +207,7 @@
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<el-dialog :title="title" :visible.sync="pasteOpen" width="500px" append-to-body>
|
<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">
|
<el-form-item label="位置" prop="parentId">
|
||||||
<treeselect
|
<treeselect
|
||||||
v-model="copyForm.parentId"
|
v-model="copyForm.parentId"
|
||||||
|
|
@ -220,7 +220,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<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>
|
<el-button @click="cancel">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
@ -285,6 +285,7 @@ export default {
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
copyOpen:false,
|
copyOpen:false,
|
||||||
renameOpen:false,
|
renameOpen:false,
|
||||||
|
pasteOpen:false,
|
||||||
open: false,
|
open: false,
|
||||||
// 新建文件夹弹出层
|
// 新建文件夹弹出层
|
||||||
addOpen:false,
|
addOpen:false,
|
||||||
|
|
@ -298,6 +299,7 @@ export default {
|
||||||
form: {},
|
form: {},
|
||||||
copyForm:{},
|
copyForm:{},
|
||||||
renameForm:{},
|
renameForm:{},
|
||||||
|
pasteForm:{},
|
||||||
renameRules:{
|
renameRules:{
|
||||||
newName: [
|
newName: [
|
||||||
{ required: true, message: "名称不能为空", trigger: "blur" }
|
{ required: true, message: "名称不能为空", trigger: "blur" }
|
||||||
|
|
@ -305,7 +307,12 @@ export default {
|
||||||
},
|
},
|
||||||
copyRules: {
|
copyRules: {
|
||||||
parentId: [
|
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 => {
|
getFile(fileId).then(response => {
|
||||||
this.copyForm = response.data;
|
this.copyForm = response.data;
|
||||||
this.copyOpen = true;
|
this.copyOpen = true;
|
||||||
this.title = "移动文件";
|
this.title = "复制文件";
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
submitCopy(){
|
submitCopy(){
|
||||||
|
|
@ -489,13 +496,13 @@ export default {
|
||||||
const fileId = row.fileId || this.ids
|
const fileId = row.fileId || this.ids
|
||||||
this.getFileTerr(fileId)
|
this.getFileTerr(fileId)
|
||||||
getFile(fileId).then(response => {
|
getFile(fileId).then(response => {
|
||||||
this.copyForm = response.data;
|
this.pasteForm = response.data;
|
||||||
this.copyOpen = true;
|
this.pasteOpen = true;
|
||||||
this.title = "移动文件";
|
this.title = "移动文件";
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
submitPaste(){
|
submitPaste(){
|
||||||
this.$refs["copyForm"].validate(valid => {
|
this.$refs["pasteForm"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let data = {
|
let data = {
|
||||||
fileId: this.copyForm.fileId,
|
fileId: this.copyForm.fileId,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue