融合服务:一键申请的存储数组更改

This commit is contained in:
guoyue 2022-07-07 14:31:52 +08:00
parent 4aef24c734
commit 5d2c39fb44
1 changed files with 26 additions and 16 deletions

View File

@ -277,6 +277,11 @@ export default {
let shoppingKey = ref(1) let shoppingKey = ref(1)
// //
const orderList = ref([ const orderList = ref([
{
value: 'collectCount',
name: '收藏量',
orderType: 'DESC'
},
{ {
value: 'create_date', value: 'create_date',
name: '发布时间', name: '发布时间',
@ -478,24 +483,29 @@ export default {
// -- // --
const handleAKeyApplication = (item) => { const handleAKeyApplication = (item) => {
let _applyList = [];
(item.fuseResourceList || []).map(v => {
let resource = v.resource || {}
let obj = {
arr: [
{
delFlag: resource.delFlag,
description: resource.description,
resourceId: resource.id,
resourceName: resource.name,
time: resource.createDate,
type: resource.type,
},
],
deptId: resource.deptId,
deptName: resource.deptName,
}
_applyList.push(obj)
})
localStorage.setItem( localStorage.setItem(
'applyList', 'applyList',
JSON.stringify([ JSON.stringify(_applyList)
{
arr: [
{
delFlag: item.delFlag,
description: item.description,
resourceId: item.id,
resourceName: item.name,
time: item.createDate,
type: item.type,
},
],
deptId: item.deptId,
deptName: item.deptName,
},
])
) )
router.push({ router.push({
path: '/apply', path: '/apply',