西海岸:基础设施添加到申购车,api更改

This commit is contained in:
guoyue 2022-10-12 17:41:21 +08:00
parent 85fa71f4b9
commit 56696c6266
2 changed files with 14 additions and 3 deletions

View File

@ -74,7 +74,15 @@ export function getHls(params) {
//
export function sgcInsert(data) {
return request({
// url: '/resourcecar/insert',
url: '/resourcecar/insert',
method: 'post',
data,
})
}
// 西--
export function xhaAddCart(data) {
return request({
url: '/resourcecar/batchInsert', // 西-
method: 'post',
data,

View File

@ -669,6 +669,7 @@
:title="wrjName + '详情'"
@ok="wrjVisible = false"
>
<template #footer></template>
<div v-for="(db, key) in wrjData" :key="key">
<template v-if="typeof db == 'object'">
<div
@ -721,6 +722,7 @@
import { getCameraByCondition } from '@/api/file'
import {
sgcInsert,
xhaAddCart,
getRoomSearch,
getDate,
setSubmit,
@ -1396,7 +1398,6 @@
}
selectType.value = '视频资源'
console.log('444------------>', 444);
} else if (name == '政务云资源') {
room.value = true
tableHeight.value = 600
@ -1578,6 +1579,8 @@
clickList.value[1].content = []
}
clickList.value[indexFather].content[0] = name
console.log('clickList.value[indexFather].content[0]------------>', clickList.value[indexFather].content[0]);
if (tabList.value[1]) {
tabList.value[1].title = ''
tabList.value[1].content = []
@ -1888,7 +1891,7 @@
note1: [v],
})
})
sgcInsert(_arr).then((res) => {
xhaAddCart(_arr).then((res) => {
if(res.data.code !== 0) {
return message.error(res.data.msg)
}