提交代码
This commit is contained in:
		
							parent
							
								
									c9e5d8aee8
								
							
						
					
					
						commit
						7c6c85e21b
					
				| 
						 | 
				
			
			@ -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();
 | 
			
		||||
          });
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue