@@ -35,9 +31,9 @@ import { getMaterialList } from '@/api/material/material'
import { getSeconds } from '@/utils/index.js'
export default {
name: 'MaterialList',
- components: { },
+ components: {},
filters: {
- getSeconds(s) {
+ getSeconds (s) {
return getSeconds(s)
}
},
@@ -47,7 +43,7 @@ export default {
required: true
}
},
- data() {
+ data () {
return {
orga_id: '133221333123111', // 机构ID
rootFolderId: null, // 根目录文件夹ID
@@ -64,26 +60,26 @@ export default {
}
},
computed: {
- changePlaceholder() {
+ changePlaceholder () {
return this.publishType === 0 ? '即时发布 2022-01-01' : '定时发布 2022-01-01'
},
- defaultImg() {
+ defaultImg () {
return 'this.src="' + require('@/assets/images/menu_bg_02.png') + '"'
}
},
watch: {
- isMultiSelected(newName, oldName) {
+ isMultiSelected (newName, oldName) {
if (newName === false) {
this.selectedListId = []
}
}
},
- mounted() {
+ mounted () {
this.getMaterialList()
},
methods: {
// 获取素材库list
- getMaterialList() {
+ getMaterialList () {
this.materialFolders = []
this.materialList = []
let params
@@ -100,6 +96,7 @@ export default {
'folder_id': folder_id,
'material_name': null,
'material_type': null,
+ 'material_type_not': '2',
'orga_id': this.orga_id
}
} else {
@@ -109,6 +106,7 @@ export default {
'folder_id': null,
'material_name': null,
'material_type': null,
+ 'material_type_not': '2',
'orga_id': this.orga_id
}
}
@@ -119,6 +117,7 @@ export default {
}
this.materialFolders = res.data.materialFolders
this.materialList = res.data.pageThemeVO
+
// 创建文件夹获取data
this.thisFoldId = res.data.thisFoldId
// 素材类型格式处理
@@ -136,14 +135,14 @@ export default {
}
})
},
- returnFolder() {
+ returnFolder () {
this.isReturn = false
this.isToFolder = false
this.rootFolderId = localStorage.getItem('rootFolderId')
this.getMaterialList()
},
// 文件夹双击操作
- floderDbClick(item, index) {
+ floderDbClick (item, index) {
this.isToFolder = true
this.currentFolderId = item.id
localStorage.setItem('currentFolderId', this.currentFolderId)
@@ -151,8 +150,8 @@ export default {
this.selectedListId = []
},
// 素材 - 多选
- checkedItem(item) {
- const id = item.material_id
+ checkedItem (item) {
+ let id = item.material_id
const inFolderId = item.in_folder_id
const type = item.material_type
const arr = this.selectedListId
diff --git a/src/views/immediateRelease/index.vue b/src/views/immediateRelease/index.vue
index 0b0a5f1..5c85681 100644
--- a/src/views/immediateRelease/index.vue
+++ b/src/views/immediateRelease/index.vue
@@ -139,7 +139,7 @@
{{ mulitText }}