|
@@ -5,6 +5,7 @@
|
|
|
<div class="f_box_top_title">所有文件</div>
|
|
|
</div>
|
|
|
<div class="f_box_top_right">
|
|
|
+ <span v-if="checkArray.length" style="margin-right: 10px;color: #b0b0b0;font-size: 14px;">已选文件{{checkArray.length}}个</span>
|
|
|
<el-button type="primary" size="small" @click="serchFile"
|
|
|
>刷新</el-button
|
|
|
>
|
|
@@ -24,7 +25,7 @@
|
|
|
</div>
|
|
|
<div class="f_box_top">
|
|
|
<div class="f_box_top_left">
|
|
|
- <el-select v-model="checkFolderid" filterable @change="serchFile">
|
|
|
+ <!-- <el-select v-model="checkFolderid" filterable multiple @change="serchFile">
|
|
|
<el-option
|
|
|
v-for="item in myFolderArray"
|
|
|
:key="item.folderid"
|
|
@@ -32,7 +33,14 @@
|
|
|
:value="item.folderid"
|
|
|
>
|
|
|
</el-option>
|
|
|
- </el-select>
|
|
|
+ </el-select> -->
|
|
|
+ <selectTag
|
|
|
+ v-model="checkFolderid"
|
|
|
+ :options="myFolderArray"
|
|
|
+ :placeholder="'前选择文件夹'"
|
|
|
+ style="width: 250px;"
|
|
|
+ @change="serchFile()"
|
|
|
+ />
|
|
|
</div>
|
|
|
<div class="f_box_top_right">
|
|
|
<div class="input">
|
|
@@ -138,9 +146,10 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<el-pagination
|
|
|
+ class="pageBox"
|
|
|
style="margin-top: 10px"
|
|
|
background
|
|
|
- layout="prev, pager, next"
|
|
|
+ layout="total,prev, pager, next"
|
|
|
:page-size="limit"
|
|
|
:total="total"
|
|
|
@current-change="handleCurrentChange"
|
|
@@ -171,6 +180,7 @@ import videoImg from "../../../assets/icon/sourceFile/video.png";
|
|
|
import otherImg from "../../../assets/icon/sourceFile/other.png";
|
|
|
import checkImg from "../../../assets/icon/sourceFile/check.png";
|
|
|
import checkIsImg from "../../../assets/icon/sourceFile/check_is.png";
|
|
|
+import selectTag from "./components/selectTag3.vue";
|
|
|
|
|
|
import wVideo from "../test/file/wVideo.vue";
|
|
|
import wpdf from "../test/file/wPdf2.vue";
|
|
@@ -184,7 +194,8 @@ export default {
|
|
|
wVideo,
|
|
|
wpdf,
|
|
|
wOffice,
|
|
|
- checkDialog
|
|
|
+ checkDialog,
|
|
|
+ selectTag
|
|
|
},
|
|
|
props: {
|
|
|
userid: {
|
|
@@ -214,7 +225,7 @@ export default {
|
|
|
this.fileArray = [];
|
|
|
this.checkArray = [];
|
|
|
this.fileName = "";
|
|
|
- this.checkFolderid = this.moFolderid;
|
|
|
+ this.checkFolderid = [this.moFolderid];
|
|
|
// this.getData();
|
|
|
}
|
|
|
}
|
|
@@ -244,7 +255,7 @@ export default {
|
|
|
limit: 10,
|
|
|
total: 0,
|
|
|
page: 1,
|
|
|
- checkFolderid: ""
|
|
|
+ checkFolderid: []
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -296,7 +307,7 @@ export default {
|
|
|
this.isLoading = true;
|
|
|
let params = {
|
|
|
uid: this.userid,
|
|
|
- folderid: this.checkFolderid,
|
|
|
+ folderid: this.checkFolderid.join(","),
|
|
|
n: this.fileName.trim(),
|
|
|
page: this.page,
|
|
|
num: this.limit
|
|
@@ -936,4 +947,12 @@ export default {
|
|
|
white-space: nowrap;
|
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+.pageBox{
|
|
|
+ display: flex;
|
|
|
+}
|
|
|
+.pageBox >>> .el-pagination__total{
|
|
|
+ margin-right: auto;
|
|
|
+}
|
|
|
</style>
|