|
@@ -5,7 +5,7 @@
|
|
|
<slot name="upload"></slot>
|
|
|
</div>
|
|
|
<div class="flex-align-center">
|
|
|
- <el-input size="small" style="width:160px;margin-right:16px" prefix-icon="el-icon-search" v-model="params.content.where.condition" @keyup.enter.native="queryAttachment(params.content.pageNumber = 1)" @clear="queryAttachment(params.content.pageNumber = 1)" placeholder="搜索全部" clearable></el-input>
|
|
|
+ <el-input size="small" style="width:160px;margin-right:16px" prefix-icon="el-icon-search" v-model="params.content.where.condition" @keyup.enter.native="(queryAttachment(params.content.where.parentid),params.content.pageNumber = 1)" @clear="(queryAttachment(params.content.where.parentid),params.content.pageNumber = 1)" placeholder="搜索全部" clearable></el-input>
|
|
|
<sort :sort="sort" @onSort="onSort"></sort>
|
|
|
<i class="el-icon-refresh" style="margin-left:16px" @click="queryAttachment(params.content.where.condition = '')"></i>
|
|
|
</div>
|
|
@@ -135,11 +135,11 @@ export default {
|
|
|
this.$emit('folderChecked',checkArray)
|
|
|
},
|
|
|
async folderDetails (folder,index) {
|
|
|
- console.log(folder,index)
|
|
|
if (folder.postfix === 'FOLDER') {
|
|
|
if (index === undefined) {
|
|
|
let _isSame = this.fileRouter.some(m=>folder.attachmentid === m.attachmentid)
|
|
|
_isSame?'':this.fileRouter.push(folder)
|
|
|
+ this.params.content.where.parentid = folder.attachmentid
|
|
|
this.$emit('toFolderDetail',folder.attachmentid)
|
|
|
} else {
|
|
|
this.fileRouter = this.fileRouter.slice(0,index + 1)
|