|
11 | 11 | </span> |
12 | 12 | </template> |
13 | 13 | <template #default> |
14 | | - <el-row :gutter="20"> |
15 | | - <el-col :xs="24" :md="6" :offset="0"> |
16 | | - <ItemGroup> |
17 | | - <el-button size="small" @click="back"> |
18 | | - <i class="el-icon-pie-chart"></i> {{ $t("schedule.backToConsole") }} |
19 | | - </el-button> |
20 | | - <el-button size="small" @click="refresh"> |
21 | | - <i class="el-icon-refresh"></i> {{ $t("general.refresh") }} |
22 | | - </el-button> |
23 | | - </ItemGroup> |
24 | | - </el-col> |
25 | | - <el-col :xs="24" :md="18" :offset="0" class="text-align-right"> |
26 | | - <ItemGroup> |
27 | | - <el-button size="small" @click="toUpDir"> |
28 | | - <i class="el-icon-pie-chart"></i> {{ $t("fileManager.upperDir") }} |
29 | | - </el-button> |
30 | | - <el-button size="small" @click="mkdir"> |
31 | | - <i class="el-icon-folder-add"></i> {{ $t("fileManager.mkdir") }} |
32 | | - </el-button> |
33 | | - <el-button size="small" @click="compress(1)"> |
34 | | - <i class="el-icon-box"></i> {{ $t("fileManager.zip") }} |
35 | | - </el-button> |
36 | | - <el-button size="small" @click="compress(2)"> |
37 | | - <i class="el-icon-files"></i> {{ $t("fileManager.unzip") }} |
38 | | - </el-button> |
39 | | - <el-button size="small" @click="rename"> |
40 | | - <i class="el-icon-document"></i> {{ $t("fileManager.rename") }} |
41 | | - </el-button> |
42 | | - <el-button size="small" @click="move"> |
43 | | - <i class="el-icon-scissors"></i> {{ $t("fileManager.cut") }} |
44 | | - </el-button> |
45 | | - <el-button size="small" @click="copy"> |
46 | | - <i class="el-icon-document-copy"></i> {{ $t("fileManager.copy") }} |
47 | | - </el-button> |
48 | | - <el-button size="small" @click="paste"> |
49 | | - <i class="el-icon-tickets"></i> {{ $t("fileManager.paste") }} |
50 | | - </el-button> |
51 | | - <!-- <el-button size="small" type="success" @click="upload"> |
52 | | - <i class="el-icon-plus"></i> {{ $t("fileManager.uploadFile") }} |
53 | | - </el-button> --> |
54 | | - <el-upload |
55 | | - action="" |
56 | | - ref="upload" |
57 | | - :before-upload="handleUploadBefore" |
58 | | - :auto-upload="true" |
59 | | - :show-file-list="false" |
60 | | - :limit="1" |
61 | | - style="display: inline-block" |
62 | | - > |
63 | | - <el-button size="small" type="success" @click="upload"> |
64 | | - <i class="el-icon-plus"></i> {{ $t("fileManager.uploadFile") }} |
65 | | - </el-button> |
66 | | - </el-upload> |
67 | | - |
68 | | - <el-button size="small" type="danger" @click="deleteFiles"> |
69 | | - <i class="el-icon-document-delete"></i> {{ $t("general.delete") }} |
70 | | - </el-button> |
71 | | - </ItemGroup> |
72 | | - </el-col> |
73 | | - </el-row> |
| 14 | + <div> |
| 15 | + <el-row :gutter="20"> |
| 16 | + <el-col :span="24" :offset="0"> |
| 17 | + <FunctionGroup :container="true"> |
| 18 | + <FunctionComponent> |
| 19 | + <el-button size="small" @click="back"> |
| 20 | + <i class="el-icon-pie-chart"></i> {{ $t("schedule.backToConsole") }} |
| 21 | + </el-button> |
| 22 | + </FunctionComponent> |
| 23 | + |
| 24 | + <FunctionComponent> |
| 25 | + <el-button size="small" @click="refresh"> |
| 26 | + <i class="el-icon-refresh"></i> {{ $t("general.refresh") }} |
| 27 | + </el-button> |
| 28 | + </FunctionComponent> |
| 29 | + |
| 30 | + <FunctionGroup align="right"> |
| 31 | + <FunctionComponent> |
| 32 | + <el-button size="small" @click="toUpDir"> |
| 33 | + <i class="el-icon-pie-chart"></i> {{ $t("fileManager.upperDir") }} |
| 34 | + </el-button> |
| 35 | + </FunctionComponent> |
| 36 | + <FunctionComponent> |
| 37 | + <el-button size="small" @click="mkdir"> |
| 38 | + <i class="el-icon-folder-add"></i> {{ $t("fileManager.mkdir") }} |
| 39 | + </el-button> |
| 40 | + </FunctionComponent> |
| 41 | + <FunctionComponent> |
| 42 | + <el-button size="small" @click="compress(1)"> |
| 43 | + <i class="el-icon-box"></i> {{ $t("fileManager.zip") }} |
| 44 | + </el-button> |
| 45 | + </FunctionComponent> |
| 46 | + <FunctionComponent> |
| 47 | + <el-button size="small" @click="compress(2)"> |
| 48 | + <i class="el-icon-files"></i> {{ $t("fileManager.unzip") }} |
| 49 | + </el-button> |
| 50 | + </FunctionComponent> |
| 51 | + <FunctionComponent> |
| 52 | + <el-button size="small" @click="rename"> |
| 53 | + <i class="el-icon-document"></i> {{ $t("fileManager.rename") }} |
| 54 | + </el-button> |
| 55 | + </FunctionComponent> |
| 56 | + <FunctionComponent> |
| 57 | + <el-button size="small" @click="move"> |
| 58 | + <i class="el-icon-scissors"></i> {{ $t("fileManager.cut") }} |
| 59 | + </el-button> |
| 60 | + </FunctionComponent> |
| 61 | + <FunctionComponent> |
| 62 | + <el-button size="small" @click="copy"> |
| 63 | + <i class="el-icon-document-copy"></i> {{ $t("fileManager.copy") }} |
| 64 | + </el-button> |
| 65 | + </FunctionComponent> |
| 66 | + <FunctionComponent> |
| 67 | + <el-button size="small" @click="paste"> |
| 68 | + <i class="el-icon-tickets"></i> {{ $t("fileManager.paste") }} |
| 69 | + </el-button> |
| 70 | + </FunctionComponent> |
| 71 | + <FunctionComponent> |
| 72 | + <el-button size="small" type="danger" @click="deleteFiles"> |
| 73 | + <i class="el-icon-document-delete"></i> {{ $t("general.delete") }} |
| 74 | + </el-button> |
| 75 | + </FunctionComponent> |
| 76 | + </FunctionGroup> |
| 77 | + |
| 78 | + <FunctionComponent> |
| 79 | + <el-upload |
| 80 | + action="" |
| 81 | + ref="fileForm" |
| 82 | + :before-upload="handleUploadBefore" |
| 83 | + :auto-upload="true" |
| 84 | + :show-file-list="false" |
| 85 | + :limit="1" |
| 86 | + style="display: inline-block" |
| 87 | + > |
| 88 | + <el-button size="small" type="success" @click="upload"> |
| 89 | + <i class="el-icon-plus"></i> {{ $t("fileManager.uploadFile") }} |
| 90 | + </el-button> |
| 91 | + </el-upload> |
| 92 | + </FunctionComponent> |
| 93 | + </FunctionGroup></el-col |
| 94 | + > |
| 95 | + </el-row> |
| 96 | + </div> |
74 | 97 |
|
75 | 98 | <div class="row-mt page-pagination"> |
76 | 99 | <div> |
@@ -646,7 +669,7 @@ export default { |
646 | 669 | }); |
647 | 670 | this.$message({ message: this.$t("fileManager.uploadOk"), type: "success" }); |
648 | 671 | await this.refresh(); |
649 | | - this.$refs.fileForm.reset(); |
| 672 | + // this.$refs.fileForm.reset(); |
650 | 673 | this.percentComplete = -1; |
651 | 674 | } catch (error) { |
652 | 675 | this.$message({ message: `Error: ${error}`, type: "error" }); |
|
0 commit comments