西海岸-购物车收藏功能
This commit is contained in:
parent
f727efbdcd
commit
c71784567c
|
@ -74,7 +74,8 @@ export function getHls(params) {
|
||||||
// 加入申购车
|
// 加入申购车
|
||||||
export function sgcInsert(data) {
|
export function sgcInsert(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/resourcecar/insert',
|
// url: '/resourcecar/insert',
|
||||||
|
url: '/resourcecar/batchInsert', // 西海岸-加入购物车相当于收藏功能
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data,
|
data,
|
||||||
})
|
})
|
||||||
|
|
|
@ -452,15 +452,6 @@
|
||||||
>
|
>
|
||||||
批量预览
|
批量预览
|
||||||
</a-button>
|
</a-button>
|
||||||
<!-- 批量预览 -->
|
|
||||||
<!-- <a-button
|
|
||||||
type="primary"
|
|
||||||
@click="batchPicturePreview"
|
|
||||||
class="buttonAdd"
|
|
||||||
v-else
|
|
||||||
>
|
|
||||||
批量预览
|
|
||||||
</a-button> -->
|
|
||||||
<!-- 添加至申购车 -->
|
<!-- 添加至申购车 -->
|
||||||
<a-button
|
<a-button
|
||||||
v-if="isXiHaiAn"
|
v-if="isXiHaiAn"
|
||||||
|
@ -1916,13 +1907,20 @@
|
||||||
//加入申购车
|
//加入申购车
|
||||||
const addShoppingCart = () => {
|
const addShoppingCart = () => {
|
||||||
if (selectedList.value.length > 0) {
|
if (selectedList.value.length > 0) {
|
||||||
sgcInsert({
|
let _arr = []
|
||||||
delFlag: '0',
|
selectedList.value.map(v => {
|
||||||
resourceId: '8888888880000000001',
|
_arr.push({
|
||||||
note1: selectedList.value,
|
delFlag: '0',
|
||||||
// userId: userId.value,
|
resourceId: v.idtCameraChannel,
|
||||||
}).then((res) => {
|
note1: [v],
|
||||||
console.log(res)
|
})
|
||||||
|
})
|
||||||
|
console.log('_arr------------>', _arr);
|
||||||
|
sgcInsert(_arr).then((res) => {
|
||||||
|
console.log('res------申购车------>', res);
|
||||||
|
if(res.data.code !== 0) {
|
||||||
|
return message.error(res.data.msg)
|
||||||
|
}
|
||||||
message.success('添加申购车成功!')
|
message.success('添加申购车成功!')
|
||||||
mybus.emit('getSgcNum')
|
mybus.emit('getSgcNum')
|
||||||
})
|
})
|
||||||
|
@ -1958,7 +1956,7 @@
|
||||||
])
|
])
|
||||||
// 西海岸--状态展示
|
// 西海岸--状态展示
|
||||||
if(isXiHaiAn) {
|
if(isXiHaiAn) {
|
||||||
columns.value = columns.value.splice(2, 0, {
|
columns.value.splice(2, 0, {
|
||||||
title: '状态',
|
title: '状态',
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
width: '10%',
|
width: '10%',
|
||||||
|
|
|
@ -498,6 +498,8 @@
|
||||||
pageSize: pageSize.value,
|
pageSize: pageSize.value,
|
||||||
name: name.value,
|
name: name.value,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
console.log('res-----selectResourceCarGroupByDept------->', res);
|
||||||
|
|
||||||
let statistics = 0
|
let statistics = 0
|
||||||
res.data.data.list.map((val) => {
|
res.data.data.list.map((val) => {
|
||||||
val.initLoading = true
|
val.initLoading = true
|
||||||
|
@ -557,7 +559,7 @@
|
||||||
// 通过deptid查询列表
|
// 通过deptid查询列表
|
||||||
const getListByDeptId = (item) => {
|
const getListByDeptId = (item) => {
|
||||||
console.log(item, 'item')
|
console.log(item, 'item')
|
||||||
if (item.children.length == 0) {
|
if (item.children && item.children.length == 0) {
|
||||||
selectResourceListByDept({
|
selectResourceListByDept({
|
||||||
pageNum: item.pageNum,
|
pageNum: item.pageNum,
|
||||||
pageSize: item.pageSize,
|
pageSize: item.pageSize,
|
||||||
|
|
|
@ -40,42 +40,42 @@
|
||||||
imgActive: require('@/assets/personalCenter/demandactive.png'),
|
imgActive: require('@/assets/personalCenter/demandactive.png'),
|
||||||
key: 'PurchaseVehicle',
|
key: 'PurchaseVehicle',
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: '我的发布',
|
// title: '我的发布',
|
||||||
img: require('@/assets/personalCenter/push.png'),
|
// img: require('@/assets/personalCenter/push.png'),
|
||||||
imgActive: require('@/assets/personalCenter/pushactive.png'),
|
// imgActive: require('@/assets/personalCenter/pushactive.png'),
|
||||||
key: 'push',
|
// key: 'push',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
title: '我的申请',
|
// title: '我的申请',
|
||||||
img: require('@/assets/personalCenter/apply.png'),
|
// img: require('@/assets/personalCenter/apply.png'),
|
||||||
imgActive: require('@/assets/personalCenter/applyactive.png'),
|
// imgActive: require('@/assets/personalCenter/applyactive.png'),
|
||||||
key: 'apply',
|
// key: 'apply',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
title: '我的收藏',
|
// title: '我的收藏',
|
||||||
img: require('@/assets/personalCenter/collect.png'),
|
// img: require('@/assets/personalCenter/collect.png'),
|
||||||
imgActive: require('@/assets/personalCenter/collectactive.png'),
|
// imgActive: require('@/assets/personalCenter/collectactive.png'),
|
||||||
key: 'collect',
|
// key: 'collect',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
title: '我的浏览',
|
// title: '我的浏览',
|
||||||
img: require('@/assets/personalCenter/recent.png'),
|
// img: require('@/assets/personalCenter/recent.png'),
|
||||||
imgActive: require('@/assets/personalCenter/recentactive.png'),
|
// imgActive: require('@/assets/personalCenter/recentactive.png'),
|
||||||
key: 'recent',
|
// key: 'recent',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
title: '我的需求',
|
// title: '我的需求',
|
||||||
img: require('@/assets/personalCenter/demand.png'),
|
// img: require('@/assets/personalCenter/demand.png'),
|
||||||
imgActive: require('@/assets/personalCenter/demandactive.png'),
|
// imgActive: require('@/assets/personalCenter/demandactive.png'),
|
||||||
key: 'demand',
|
// key: 'demand',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
title: '我的评论',
|
// title: '我的评论',
|
||||||
img: require('@/assets/personalCenter/remark.png'),
|
// img: require('@/assets/personalCenter/remark.png'),
|
||||||
imgActive: require('@/assets/personalCenter/remarkactive.png'),
|
// imgActive: require('@/assets/personalCenter/remarkactive.png'),
|
||||||
key: 'remark',
|
// key: 'remark',
|
||||||
},
|
// },
|
||||||
]
|
]
|
||||||
const selectedKeys = ref(['PurchaseVehicle'])
|
const selectedKeys = ref(['PurchaseVehicle'])
|
||||||
const type = JSON.parse(window.sessionStorage.getItem('type'))
|
const type = JSON.parse(window.sessionStorage.getItem('type'))
|
||||||
|
|
Loading…
Reference in New Issue