|
@@ -24,7 +24,8 @@
|
|
|
style="cursor: default" @sort-change="sortChange">
|
|
|
<el-table-column width="50" label="序号">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ (currentPage - 1) * pageSize + scope.$index + 1 }}
|
|
|
+ {{(sorts.page-1)*sorts.limit+scope.$index + 1}}
|
|
|
+ <!-- {{ (currentPage - 1) * pageSize + scope.$index + 1 }} -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="pictureTitle" label="作品名称" :show-overflow-tooltip="true" width="120">
|
|
@@ -107,7 +108,7 @@
|
|
|
</el-table>
|
|
|
<div class="block">
|
|
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
- :current-page="currentPage" :page-sizes="[10, 20, 30, 40, 50]" :page-size="pageSize"
|
|
|
+ :current-page="sorts.page" :page-sizes="[10, 20, 30, 40, 50]" :page-size="sorts.limit"
|
|
|
layout="prev, pager,next,jumper,total,sizes" :total="total">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
@@ -484,7 +485,6 @@
|
|
|
style="margin-left:20px;height: 40px;margin-right: 30px;line-height: 40px">专辑
|
|
|
</el-checkbox>
|
|
|
</div>
|
|
|
-
|
|
|
<el-select style="width: 149px;" v-model="examdata.albumPeople"
|
|
|
@change="handleSelectChange" v-if="examdata.isAlbum != ''" placeholder="请选择">
|
|
|
<el-option v-for="item in albumPeople" :key="item.value" :label="item.name"
|
|
@@ -775,6 +775,18 @@ export default {
|
|
|
obj: [],
|
|
|
examdata: {},//审核的数据
|
|
|
column: null,
|
|
|
+ sorts:{
|
|
|
+ page:1,
|
|
|
+ limit:10,
|
|
|
+ isAlbum:'',
|
|
|
+ examineState:'',
|
|
|
+ pictureType:'',
|
|
|
+ uploadTime:'',
|
|
|
+ updateTime:'',
|
|
|
+ uploaderPhone:'',
|
|
|
+ pictureTitle:'',
|
|
|
+ pictureAuthor:'',
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -789,180 +801,260 @@ export default {
|
|
|
//排序
|
|
|
sortChange(column) {
|
|
|
this.column = { ...column }
|
|
|
- console.log(column.prop)
|
|
|
+ // console.log(column.prop)
|
|
|
if (column.prop === 'isAlbum') {
|
|
|
if (column.order === "ascending") {
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: this.pageSize,
|
|
|
- isAlbum: 'ASC'
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // isAlbum: 'ASC'
|
|
|
+ // }
|
|
|
+ this.sorts.isAlbum='DESC'
|
|
|
+ this.sorts.examineState='';
|
|
|
+ this.sorts.pictureType='';
|
|
|
+ this.sorts.uploadTime='';
|
|
|
+ this.sorts.updateTime='';
|
|
|
+ this.sorts.page = 1
|
|
|
+ let params=this.sorts;
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
|
this.total = r.data.count
|
|
|
this.tableData = r.data.data
|
|
|
- this.currentPage = 1
|
|
|
+ // this.currentPage = 1
|
|
|
})
|
|
|
} else if (column.order === "descending") {
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: this.pageSize,
|
|
|
- isAlbum: 'DESC'
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // isAlbum: 'DESC'
|
|
|
+ // }
|
|
|
+ this.sorts.isAlbum='ASC'
|
|
|
+ this.sorts.examineState='';
|
|
|
+ this.sorts.pictureType='';
|
|
|
+ this.sorts.uploadTime='';
|
|
|
+ this.sorts.updateTime='';
|
|
|
+ this.sorts.page = 1
|
|
|
+ let params=this.sorts;
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
|
this.total = r.data.count
|
|
|
this.tableData = r.data.data
|
|
|
- this.currentPage = 1
|
|
|
+ // this.currentPage = 1
|
|
|
})
|
|
|
} else {
|
|
|
this.column = null
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: this.pageSize,
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // }
|
|
|
+ this.sorts.isAlbum = '';
|
|
|
+ let params=this.sorts;
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
|
this.total = r.data.count
|
|
|
this.tableData = r.data.data
|
|
|
- this.currentPage = 1
|
|
|
+ this.sorts.page = 1
|
|
|
})
|
|
|
}
|
|
|
} else if (column.prop === 'examineState') {
|
|
|
if (column.order === "ascending") {
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: this.pageSize,
|
|
|
- examineState: 'ASC'
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // examineState: 'ASC'
|
|
|
+ // }
|
|
|
+ this.sorts.isAlbum=''
|
|
|
+ this.sorts.examineState='ASC';
|
|
|
+ this.sorts.pictureType='';
|
|
|
+ this.sorts.uploadTime='';
|
|
|
+ this.sorts.updateTime='';
|
|
|
+ this.sorts.page = 1
|
|
|
+ let params=this.sorts;
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
|
this.total = r.data.count
|
|
|
this.tableData = r.data.data
|
|
|
- this.currentPage = 1
|
|
|
+ // this.currentPage = 1
|
|
|
})
|
|
|
} else if (column.order === "descending") {
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: this.pageSize,
|
|
|
- examineState: 'DESC'
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // examineState: 'DESC'
|
|
|
+ // }
|
|
|
+ this.sorts.isAlbum=''
|
|
|
+ this.sorts.examineState='DESC';
|
|
|
+ this.sorts.pictureType='';
|
|
|
+ this.sorts.uploadTime='';
|
|
|
+ this.sorts.updateTime='';
|
|
|
+ this.sorts.page = 1
|
|
|
+ let params=this.sorts;
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
|
this.total = r.data.count
|
|
|
this.tableData = r.data.data
|
|
|
- this.currentPage = 1
|
|
|
+ // this.currentPage = 1
|
|
|
})
|
|
|
} else {
|
|
|
this.column = null
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: this.pageSize,
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // }
|
|
|
+ this.sorts.examineState = '';
|
|
|
+ let params=this.sorts;
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
|
this.total = r.data.count
|
|
|
this.tableData = r.data.data
|
|
|
- this.currentPage = 1
|
|
|
+ this.sorts.page = 1
|
|
|
})
|
|
|
}
|
|
|
} else if (column.prop === 'pictureType') {
|
|
|
if (column.order === "ascending") {
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: this.pageSize,
|
|
|
- pictureType: 'ASC'
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // pictureType: 'ASC'
|
|
|
+ // }
|
|
|
+ this.sorts.isAlbum=''
|
|
|
+ this.sorts.examineState='';
|
|
|
+ this.sorts.pictureType='ASC';
|
|
|
+ this.sorts.uploadTime='';
|
|
|
+ this.sorts.updateTime='';
|
|
|
+ this.sorts.page = 1
|
|
|
+ let params=this.sorts;
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
|
this.total = r.data.count
|
|
|
this.tableData = r.data.data
|
|
|
- this.currentPage = 1
|
|
|
+ // this.currentPage = 1
|
|
|
})
|
|
|
} else if (column.order === "descending") {
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: this.pageSize,
|
|
|
- pictureType: 'DESC'
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // pictureType: 'DESC'
|
|
|
+ // }
|
|
|
+ this.sorts.isAlbum=''
|
|
|
+ this.sorts.examineState='';
|
|
|
+ this.sorts.pictureType='DESC';
|
|
|
+ this.sorts.uploadTime='';
|
|
|
+ this.sorts.updateTime='';
|
|
|
+ this.sorts.page = 1;
|
|
|
+ let params=this.sorts;
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
|
this.total = r.data.count
|
|
|
this.tableData = r.data.data
|
|
|
- this.currentPage = 1
|
|
|
+ // this.currentPage = 1
|
|
|
})
|
|
|
} else {
|
|
|
this.column = null
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: this.pageSize,
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // }
|
|
|
+ this.sorts.pictureType='';
|
|
|
+ let params=this.sorts;
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
|
this.total = r.data.count
|
|
|
this.tableData = r.data.data
|
|
|
- this.currentPage = 1
|
|
|
+ this.sorts.page = 1
|
|
|
})
|
|
|
}
|
|
|
} else if (column.prop === 'uploadTime') {
|
|
|
if (column.order === "ascending") {
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: this.pageSize,
|
|
|
- uploadTime: 'ASC'
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // uploadTime: 'ASC'
|
|
|
+ // }
|
|
|
+ this.sorts.isAlbum=''
|
|
|
+ this.sorts.examineState='';
|
|
|
+ this.sorts.pictureType='';
|
|
|
+ this.sorts.uploadTime='ASC';
|
|
|
+ this.sorts.updateTime='';
|
|
|
+ this.sorts.page = 1;
|
|
|
+ let params=this.sorts;
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
|
this.total = r.data.count
|
|
|
this.tableData = r.data.data
|
|
|
- this.currentPage = 1
|
|
|
+ // this.currentPage = 1
|
|
|
})
|
|
|
} else if (column.order === "descending") {
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: this.pageSize,
|
|
|
- uploadTime: 'DESC'
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // uploadTime: 'DESC'
|
|
|
+ // }
|
|
|
+ this.sorts.isAlbum=''
|
|
|
+ this.sorts.examineState='';
|
|
|
+ this.sorts.pictureType='';
|
|
|
+ this.sorts.uploadTime='DESC';
|
|
|
+ this.sorts.updateTime='';
|
|
|
+ this.sorts.page = 1;
|
|
|
+ let params=this.sorts;
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
|
this.total = r.data.count
|
|
|
this.tableData = r.data.data
|
|
|
- this.currentPage = 1
|
|
|
+ // this.currentPage = 1
|
|
|
})
|
|
|
} else {
|
|
|
this.column = null
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: this.pageSize,
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // }
|
|
|
+ this.sorts.uploadTime='';
|
|
|
+ let params=this.sorts;
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
|
this.total = r.data.count
|
|
|
this.tableData = r.data.data
|
|
|
- this.currentPage = 1
|
|
|
+ this.sorts.page = 1
|
|
|
})
|
|
|
}
|
|
|
} else if (column.prop === 'updateTime') {
|
|
|
if (column.order === "ascending") {
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: this.pageSize,
|
|
|
- updateTime: 'ASC'
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // updateTime: 'ASC'
|
|
|
+ // }
|
|
|
+ this.sorts.isAlbum=''
|
|
|
+ this.sorts.examineState='';
|
|
|
+ this.sorts.pictureType='';
|
|
|
+ this.sorts.uploadTime='';
|
|
|
+ this.sorts.updateTime='ASC';
|
|
|
+ this.sorts.page = 1;
|
|
|
+ let params=this.sorts;
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
|
this.total = r.data.count
|
|
|
this.tableData = r.data.data
|
|
|
- this.currentPage = 1
|
|
|
+ // this.currentPage = 1
|
|
|
})
|
|
|
} else if (column.order === "descending") {
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: this.pageSize,
|
|
|
- updateTime: 'DESC'
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // updateTime: 'DESC'
|
|
|
+ // }
|
|
|
+ this.sorts.isAlbum=''
|
|
|
+ this.sorts.examineState='';
|
|
|
+ this.sorts.pictureType='';
|
|
|
+ this.sorts.uploadTime='';
|
|
|
+ this.sorts.updateTime='DESC';
|
|
|
+ this.sorts.page = 1;
|
|
|
+ let params=this.sorts;
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
|
this.total = r.data.count
|
|
|
this.tableData = r.data.data
|
|
|
- this.currentPage = 1
|
|
|
+ // this.currentPage = 1
|
|
|
})
|
|
|
} else {
|
|
|
this.column = null
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: this.pageSize,
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // }
|
|
|
+ this.sorts.updateTime='';
|
|
|
+ let params=this.sorts;
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
|
this.total = r.data.count
|
|
|
this.tableData = r.data.data
|
|
|
- this.currentPage = 1
|
|
|
+ this.sorts.page = 1;
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -1154,18 +1246,18 @@ export default {
|
|
|
openModifyWorkDialog(data) {
|
|
|
let obj = { ...data }//避免数据缓存
|
|
|
this.impressionNanan = obj
|
|
|
- if (this.impressionNanan.isAlbum > 0) {
|
|
|
- this.impressionNanan.isAlbum = true
|
|
|
-
|
|
|
- } else {
|
|
|
- this.impressionNanan.isAlbum = false
|
|
|
- }
|
|
|
+ // if (this.impressionNanan.isAlbum > 0) {
|
|
|
+ // this.impressionNanan.isAlbum = true
|
|
|
+ // } else {
|
|
|
+ // this.impressionNanan.isAlbum = 0
|
|
|
+ // }
|
|
|
|
|
|
this.modifyWorkDialog = true
|
|
|
if (data.isAlbum == 0) {
|
|
|
api.queryAlbum().then(res => {
|
|
|
if (res.data.result) {
|
|
|
this.albumPeople = res.data.data;
|
|
|
+ this.impressionNanan.albumPeople = data.isAlbum;
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
@@ -1173,7 +1265,6 @@ export default {
|
|
|
if (res.data.result) {
|
|
|
this.albumPeople = res.data.data;
|
|
|
this.impressionNanan.albumPeople = data.isAlbum;
|
|
|
-
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -1205,52 +1296,85 @@ export default {
|
|
|
|
|
|
//选取条件
|
|
|
selectRegion() {
|
|
|
- console.log(this.form.region)
|
|
|
+ // console.log(this.form.region)
|
|
|
},
|
|
|
|
|
|
//根据条件查询印象南岸
|
|
|
serachWork() {
|
|
|
if (this.form.region !== '') {
|
|
|
if (this.form.region === 'uploaderPhone') {
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: 10,
|
|
|
- uploaderPhone: this.form.name
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: 10,
|
|
|
+ // uploaderPhone: this.form.name
|
|
|
+ // }
|
|
|
+ this.sorts.uploaderPhone = this.form.name;
|
|
|
+ this.sorts.pictureTitle = '';
|
|
|
+ this.sorts.pictureAuthor = '';
|
|
|
+ this.sorts.page = 1;
|
|
|
+ let params = this.sorts;
|
|
|
api.queryWork({ params }).then(res => {
|
|
|
this.total = res.data.count
|
|
|
this.tableData = res.data.data
|
|
|
})
|
|
|
}
|
|
|
if (this.form.region === 'pictureTitle') {
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: 10,
|
|
|
- pictureTitle: this.form.name
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: 10,
|
|
|
+ // pictureTitle: this.form.name
|
|
|
+ // }
|
|
|
+ this.sorts.pictureTitle = this.form.name;
|
|
|
+ this.sorts.uploaderPhone = '';
|
|
|
+ this.sorts.pictureAuthor = '';
|
|
|
+ this.sorts.page = 1;
|
|
|
+ let params = this.sorts;
|
|
|
api.queryWork({ params }).then(res => {
|
|
|
this.total = res.data.count
|
|
|
this.tableData = res.data.data
|
|
|
- console.log(this.tableData);
|
|
|
+ // console.log(this.tableData);
|
|
|
})
|
|
|
}
|
|
|
if (this.form.region === 'pictureAuthor') {
|
|
|
- let params = {
|
|
|
- page: 1,
|
|
|
- limit: 10,
|
|
|
- pictureAuthor: this.form.name
|
|
|
- }
|
|
|
+ // let params = {
|
|
|
+ // page: 1,
|
|
|
+ // limit: 10,
|
|
|
+ // pictureAuthor: this.form.name
|
|
|
+ // }
|
|
|
+ this.sorts.pictureTitle = '';
|
|
|
+ this.sorts.uploaderPhone = '';
|
|
|
+ this.sorts.pictureAuthor = this.form.name;
|
|
|
+ this.sorts.page = 1;
|
|
|
+ let params = this.sorts;
|
|
|
api.queryWork({ params }).then(res => {
|
|
|
this.total = res.data.count
|
|
|
this.tableData = res.data.data
|
|
|
- console.log(this.tableData);
|
|
|
+ // console.log(this.tableData);
|
|
|
})
|
|
|
}
|
|
|
} else {
|
|
|
this.$refs.multipleTable.clearSort();
|
|
|
this.column = undefined
|
|
|
- this.currentPage = 1
|
|
|
- this.getData()
|
|
|
+ this.sorts.page = 1
|
|
|
+ this.sorts={
|
|
|
+ page: 1,
|
|
|
+ limit: 10,
|
|
|
+ isAlbum:'',
|
|
|
+ examineState:'',
|
|
|
+ pictureType:'',
|
|
|
+ uploadTime:'',
|
|
|
+ updateTime:'',
|
|
|
+ uploaderPhone:'',
|
|
|
+ pictureTitle:'',
|
|
|
+ pictureAuthor:'',
|
|
|
+ }
|
|
|
+ let params = this.sorts
|
|
|
+ // this.getData()
|
|
|
+ api.queryWork({ params }).then(res => {
|
|
|
+ this.total = res.data.count
|
|
|
+ this.tableData = res.data.data
|
|
|
+ // console.log(this.tableData);
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -1261,7 +1385,7 @@ export default {
|
|
|
let obj = { ...data }
|
|
|
this.examdata = obj
|
|
|
if (this.examdata.isAlbum > 0) {
|
|
|
- console.log(this.examdata)
|
|
|
+ // console.log(this.examdata)
|
|
|
api.queryAlbum().then(res => {
|
|
|
if (res.data.result) {
|
|
|
this.albumPeople = res.data.data;
|
|
@@ -1300,198 +1424,208 @@ export default {
|
|
|
|
|
|
//显示每条数据
|
|
|
handleSizeChange(pageSize) {
|
|
|
- this.pageSize = pageSize;
|
|
|
- this.currentPage = 1;
|
|
|
- this.getData();
|
|
|
+ this.sorts.limit = pageSize
|
|
|
+ let params = this.sorts;
|
|
|
+ this.sorts.page = 1;
|
|
|
+ api.getYxnaList({ params }).then(r => {
|
|
|
+ this.total = r.data.count
|
|
|
+ this.tableData = r.data.data
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
//切换页码
|
|
|
handleCurrentChange(currentPage) {
|
|
|
this.$refs.multipleTable.bodyWrapper.scrollTop = 0;
|
|
|
- this.currentPage = currentPage
|
|
|
- if (this.column == null) {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- } else {
|
|
|
- if (this.column.prop === 'isAlbum') {
|
|
|
- if (this.column.order === "ascending") {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- isAlbum: 'ASC'
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- } else if (this.column === "descending") {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- isAlbum: 'DESC'
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- } else {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- isAlbum: 'DESC'
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- }
|
|
|
- } else if (this.column.prop === 'examineState') {
|
|
|
- if (this.column.order === "ascending") {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- examineState: 'ASC'
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- } else if (this.column.order === "descending") {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- examineState: 'DESC'
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- } else {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- isAlbum: 'DESC'
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- }
|
|
|
- } else if (this.column.prop === 'pictureType') {
|
|
|
- if (this.column.order === "ascending") {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- pictureType: 'ASC'
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- } else if (this.column.order === "descending") {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- pictureType: 'DESC'
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- } else {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- isAlbum: 'DESC'
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- }
|
|
|
- } else if (this.column.prop === 'uploadTime') {
|
|
|
- if (this.column.order === "ascending") {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- uploadTime: 'ASC'
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- } else if (this.column.order === "descending") {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- uploadTime: 'DESC'
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- } else {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- isAlbum: 'DESC'
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- }
|
|
|
- } else if (this.column.prop === 'updateTime') {
|
|
|
- if (this.column.order === "ascending") {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- updateTime: 'ASC'
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- } else if (this.column.order === "descending") {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- updateTime: 'DESC'
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- } else {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- isAlbum: 'DESC'
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- else {
|
|
|
- let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
- isAlbum: 'DESC'
|
|
|
- }
|
|
|
- api.getYxnaList({ params }).then(r => {
|
|
|
- this.total = r.data.count
|
|
|
- this.tableData = r.data.data
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
+ this.sorts.page = currentPage;
|
|
|
+ let params = this.sorts;
|
|
|
+ api.getYxnaList({ params }).then(r => {
|
|
|
+ this.total = r.data.count
|
|
|
+ this.tableData = r.data.data
|
|
|
+ })
|
|
|
+ // this.currentPage = currentPage
|
|
|
+ // if (this.column == null) {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ // if (this.column.prop === 'isAlbum') {
|
|
|
+ // if (this.column.order === "ascending") {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // isAlbum: 'ASC'
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // } else if (this.column === "descending") {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // isAlbum: 'DESC'
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // isAlbum: 'DESC'
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // } else if (this.column.prop === 'examineState') {
|
|
|
+ // if (this.column.order === "ascending") {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // examineState: 'ASC'
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // } else if (this.column.order === "descending") {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // examineState: 'DESC'
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // isAlbum: 'DESC'
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // } else if (this.column.prop === 'pictureType') {
|
|
|
+ // if (this.column.order === "ascending") {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // pictureType: 'ASC'
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // } else if (this.column.order === "descending") {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // pictureType: 'DESC'
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // isAlbum: 'DESC'
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // } else if (this.column.prop === 'uploadTime') {
|
|
|
+ // if (this.column.order === "ascending") {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // uploadTime: 'ASC'
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // } else if (this.column.order === "descending") {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // uploadTime: 'DESC'
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // isAlbum: 'DESC'
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // } else if (this.column.prop === 'updateTime') {
|
|
|
+ // if (this.column.order === "ascending") {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // updateTime: 'ASC'
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // } else if (this.column.order === "descending") {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // updateTime: 'DESC'
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // isAlbum: 'DESC'
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // else {
|
|
|
+ // let params = {
|
|
|
+ // page: this.currentPage,
|
|
|
+ // limit: this.pageSize,
|
|
|
+ // isAlbum: 'DESC'
|
|
|
+ // }
|
|
|
+ // api.getYxnaList({ params }).then(r => {
|
|
|
+ // this.total = r.data.count
|
|
|
+ // this.tableData = r.data.data
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // }
|
|
|
},
|
|
|
//删除
|
|
|
handleDelete(id, index) {
|
|
@@ -1531,12 +1665,11 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getData() {
|
|
|
-
|
|
|
if (this.form.region !== '') {
|
|
|
if (this.form.region === 'uploaderPhone') {
|
|
|
let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
+ page: this.sorts.page,
|
|
|
+ limit: this.sorts.limit,
|
|
|
uploaderPhone: this.form.name
|
|
|
}
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
@@ -1546,8 +1679,8 @@ export default {
|
|
|
}
|
|
|
if (this.form.region === 'pictureTitle') {
|
|
|
let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
+ page: this.sorts.page,
|
|
|
+ limit: this.sorts.limit,
|
|
|
pictureTitle: this.form.name
|
|
|
}
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
@@ -1557,8 +1690,8 @@ export default {
|
|
|
}
|
|
|
if (this.form.region === 'pictureAuthor') {
|
|
|
let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
+ page: this.sorts.page,
|
|
|
+ limit: this.sorts.limit,
|
|
|
pictureAuthor: this.form.name
|
|
|
}
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
@@ -1568,8 +1701,8 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
let params = {
|
|
|
- page: this.currentPage,
|
|
|
- limit: this.pageSize,
|
|
|
+ page: this.sorts.page,
|
|
|
+ limit: this.sorts.limit,
|
|
|
}
|
|
|
api.getYxnaList({ params }).then(r => {
|
|
|
this.total = r.data.count
|
|
@@ -1586,7 +1719,7 @@ export default {
|
|
|
reset() {
|
|
|
this.form.region = ''
|
|
|
this.form.name = ''
|
|
|
- this.getData()
|
|
|
+ // this.getData()
|
|
|
}
|
|
|
}
|
|
|
,
|