|
@@ -22,7 +22,7 @@
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<!-- 搜索及分类筛选 -->
|
|
|
- <filterList @changeTypeId="changeTypeId" @startSearch="startSearch">
|
|
|
+ <filterList id="sat_sharematerial_classid" :customParam="select" @changeTypeId="changeTypeId" @startSearch="startSearch">
|
|
|
<!-- <span style="flex: 1;display: flex;justify-content: flex-end;">
|
|
|
<hot-new-control @sortTypeChange="sortTypeChange" />
|
|
|
</span> -->
|
|
@@ -33,10 +33,10 @@
|
|
|
<list :fileData="fileData" @listItemClick="listItemClick"
|
|
|
v-if="tool.checkAuth($route.name, 'read')">
|
|
|
<template v-slot:edit="scope">
|
|
|
- <Edit :fileData="scope.data" v-if="tool.checkAuth($route.name, 'update') && scope.data.isAuth"></Edit>
|
|
|
+ <Edit :fileData="scope.data" :disabled="tool.checkAuth($route.name, 'update') && scope.data.isAuth"></Edit>
|
|
|
</template>
|
|
|
<template v-slot:delete="scope">
|
|
|
- <Delete :data="scope.data" @removeSuccess="getFileList" v-if="tool.checkAuth($route.name, 'delete') && scope.data.isAuth"></Delete>
|
|
|
+ <Delete :data="scope.data" @removeSuccess="getFileList" :disabled="tool.checkAuth($route.name, 'delete') && scope.data.isAuth"></Delete>
|
|
|
</template>
|
|
|
</list>
|
|
|
<pagination :total="total" :pageSize="params.content.pageSize" :currentPage="params.content.pageNumber"
|
|
@@ -118,7 +118,6 @@ export default {
|
|
|
//列表数据
|
|
|
list: [],
|
|
|
//分类列表
|
|
|
- selectList: [],
|
|
|
total: 0,
|
|
|
//当前查看的素材
|
|
|
currentFile: ''
|
|
@@ -143,7 +142,6 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getFileList()
|
|
|
- this.getSelectList()
|
|
|
},
|
|
|
methods: {
|
|
|
inputChange () {
|
|
@@ -193,11 +191,6 @@ export default {
|
|
|
if (res.msg == '成功') this.getFileList()
|
|
|
})
|
|
|
},
|
|
|
- //获取分类列表
|
|
|
- async getSelectList() {
|
|
|
- let res = await this.$api.requested(this.select)
|
|
|
- this.selectList = res.data
|
|
|
- },
|
|
|
sortTypeChange(name) {
|
|
|
for (let i = 0; i < this.params.content.sort.length; i++) {
|
|
|
this.params.content.sort[i].sorted = this.params.content.sort[i].sortname == name ? 1 : 0
|