|
@@ -610,20 +610,20 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.$http.get({
|
|
this.$http.get({
|
|
|
- url: '/arContent/page',
|
|
|
|
|
|
|
+ url: '/arContent/all',
|
|
|
data: data
|
|
data: data
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
if (res.success) {
|
|
if (res.success) {
|
|
|
- res.data.pp.forEach(item => {
|
|
|
|
|
- if (item.type == '1004' && item.movie) {
|
|
|
|
|
- this.fileList = [item.movie]
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- this.totalNumber = res.data.page.totalNumber;
|
|
|
|
|
- this.tableData = res.data.pp;
|
|
|
|
|
|
|
+ // res.data.forEach(item => {
|
|
|
|
|
+ // if (item.type == '1004' && item.movie) {
|
|
|
|
|
+ // this.fileList = [item.movie]
|
|
|
|
|
+ // }
|
|
|
|
|
+ // })
|
|
|
|
|
+ //this.totalNumber = res.data.page.totalNumber;
|
|
|
|
|
+ this.tableData = res.data;
|
|
|
if (index || index == 0) {
|
|
if (index || index == 0) {
|
|
|
- if (res.data.pp.length > index) {
|
|
|
|
|
- this.eltabsPane = res.data.pp[index].id.toString()
|
|
|
|
|
|
|
+ if (res.data.length > index) {
|
|
|
|
|
+ this.eltabsPane = res.data[index].id.toString()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -783,7 +783,7 @@ export default {
|
|
|
this.fileList.splice(0, 1, jsonp)
|
|
this.fileList.splice(0, 1, jsonp)
|
|
|
var list = [...this.tableData]
|
|
var list = [...this.tableData]
|
|
|
list.forEach(todo => {
|
|
list.forEach(todo => {
|
|
|
- if (todo.type == '1004') {
|
|
|
|
|
|
|
+ if (Number(todo.id) == Number(this.eltabsPane)) {
|
|
|
todo.movie = item
|
|
todo.movie = item
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|