Commit 4b310f92 by 李伟康

修改列表排序

1 parent a01af6b7
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
let { materialName, businessType, groupId, sort } = this let { materialName, businessType, groupId, sort } = this
marketingApi.getPsdList({ materialName, businessType, groupId }).then(data => { marketingApi.getPsdList({ materialName, businessType, groupId }).then(data => {
console.log('素材列表', data) console.log('素材列表', data)
if (sort != 0 && data && data.length) data = this.sortList(data, sort == 1 ? 'sendNum' : 'readNum') if (sort != 0 && data && data.materialToCRpcResponses && data.materialToCRpcResponses.length) data.materialToCRpcResponses = this.sortList(data.materialToCRpcResponses, sort == 1 ? 'sendNum' : 'readNum')
this.list = data.materialToCRpcResponses || [] this.list = data.materialToCRpcResponses || []
this.flag = true this.flag = true
this.hideLoading() this.hideLoading()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!