西海岸:基础设施添加到申购车,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) { export function sgcInsert(data) {
return request({ return request({
// url: '/resourcecar/insert', url: '/resourcecar/insert',
method: 'post',
data,
})
}
// 西--
export function xhaAddCart(data) {
return request({
url: '/resourcecar/batchInsert', // 西- url: '/resourcecar/batchInsert', // 西-
method: 'post', method: 'post',
data, data,

View File

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