融合服务:一键申请的存储数组更改
This commit is contained in:
parent
4aef24c734
commit
5d2c39fb44
|
@ -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) => {
|
||||||
localStorage.setItem(
|
let _applyList = [];
|
||||||
'applyList',
|
(item.fuseResourceList || []).map(v => {
|
||||||
JSON.stringify([
|
let resource = v.resource || {}
|
||||||
{
|
let obj = {
|
||||||
arr: [
|
arr: [
|
||||||
{
|
{
|
||||||
delFlag: item.delFlag,
|
delFlag: resource.delFlag,
|
||||||
description: item.description,
|
description: resource.description,
|
||||||
resourceId: item.id,
|
resourceId: resource.id,
|
||||||
resourceName: item.name,
|
resourceName: resource.name,
|
||||||
time: item.createDate,
|
time: resource.createDate,
|
||||||
type: item.type,
|
type: resource.type,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
deptId: item.deptId,
|
deptId: resource.deptId,
|
||||||
deptName: item.deptName,
|
deptName: resource.deptName,
|
||||||
},
|
}
|
||||||
])
|
_applyList.push(obj)
|
||||||
|
})
|
||||||
|
|
||||||
|
localStorage.setItem(
|
||||||
|
'applyList',
|
||||||
|
JSON.stringify(_applyList)
|
||||||
)
|
)
|
||||||
router.push({
|
router.push({
|
||||||
path: '/apply',
|
path: '/apply',
|
||||||
|
|
Loading…
Reference in New Issue