Browse Source

bug--素材分组查询问题

master
taochengbo 4 years ago
parent
commit
588e6249f3
  1. 7
      src/components/editorMaterial/index.vue
  2. 6
      src/components/material/index.vue
  3. 10
      src/components/singlematerial/index.vue

7
src/components/editorMaterial/index.vue

@ -260,10 +260,10 @@ export default {
this.materialgroupLoading = true
materialgroupPage({
total: 0, //
currentPage: 1, //
pageSize: 100, //
page: 1, //
size: 100, //
ascs: [], //
descs: 'create_time'//
sort: 'create_time,desc'//
}).then(response => {
this.materialgroupLoading = false
const materialgroupList = response.content
@ -466,7 +466,6 @@ export default {
this.urls.forEach(item => {
str += '<img src="' + item + '">'
// this.$set(this.value, this.value.length, item)
})
nowEditor.dialog.close(true)
nowEditor.editor.setContent(str, true)

6
src/components/material/index.vue

@ -256,10 +256,10 @@ export default {
this.materialgroupLoading = true
materialgroupPage({
total: 0, //
currentPage: 1, //
pageSize: 100, //
page: 1, //
size: 100, //
ascs: [], //
descs: 'create_time'//
sort: 'create_time,desc'//
}).then(response => {
this.materialgroupLoading = false
const materialgroupList = response.content

10
src/components/singlematerial/index.vue

@ -210,7 +210,7 @@ export default {
])
},
watch: {
value: function (val) {
value: function(val) {
this.myValue = val
}
},
@ -252,10 +252,10 @@ export default {
this.materialgroupLoading = true
materialgroupPage({
total: 0, //
currentPage: 1, //
pageSize: 100, //
page: 1, //
size: 100, //
ascs: [], //
descs: 'create_time'//
sort: 'create_time,desc'//
}).then(response => {
this.materialgroupLoading = false
const materialgroupList = response.content
@ -454,7 +454,7 @@ export default {
return isPic && isLt2M
},
sureUrls() {
console.log('this.urls:'+this.urls)
console.log('this.urls:' + this.urls)
this.myValue = this.urls[0]
this.$emit('input', this.urls[0])
this.listDialogVisible = false

Loading…
Cancel
Save