Compare commits

...

4 Commits

Author SHA1 Message Date
guoyue d6c971ab23 西海岸顶部导航提示正在建设中 2022-10-08 19:20:18 +08:00
guoyue b2c2958fdb 删除无用代码 2022-10-08 18:01:53 +08:00
guoyue 7d513edafc 配置环境 2022-10-08 16:00:37 +08:00
guoyue c71784567c 西海岸-购物车收藏功能 2022-10-08 16:00:26 +08:00
6 changed files with 63 additions and 79 deletions

View File

@ -62,8 +62,9 @@ var CONFIGITEM = {
}, },
backUrl: 'http://10.134.135.9:9797', backUrl: 'http://10.134.135.9:9797',
previewUrl: 'http://10.134.135.9:9796/', previewUrl: 'http://10.134.135.9:9796/',
websocketURL: '10.134.135.9:8888/renren-admin', // // websocketURL: '10.134.135.9:8888/renren-admin', //
websocketURL: '10.134.135.92:8888/renren-admin', // // websocketURL: '10.134.135.92:8888/renren-admin', //
websocketURL: '192.168.124.254:8888/renren-admin', // -
// websocketURL: '10.18.1.99:8889/renren-admin', // // websocketURL: '10.18.1.99:8889/renren-admin', //
POI_URL: POI_URL:
'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address',

View File

@ -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,
}) })

View File

@ -23,8 +23,8 @@
> >
{{ item.name }} {{ item.name }}
</div> </div>
<a-badge :count="sgcNum"> <!-- 购物车 -->
<!-- 购物车 --> <!-- <a-badge :count="sgcNum">
<svg <svg
t="1650455446850" t="1650455446850"
class="icon" class="icon"
@ -42,8 +42,7 @@
p-id="2070" p-id="2070"
></path> ></path>
</svg> </svg>
<!-- <a-avatar shape="square" size="large" /> --> </a-badge> -->
</a-badge>
<a-badge :count="mynoticeNum" style="margin-left: 0.2rem"> <a-badge :count="mynoticeNum" style="margin-left: 0.2rem">
<!-- 消息提醒 --> <!-- 消息提醒 -->
<svg <svg
@ -182,7 +181,8 @@
} }
// //
const jumpPage = (item) => { const jumpPage = (item) => {
if(item.name !== '能力集市') { let _arr = ['共享门户', '能力云图', '能力统计', '需求中心', '赋能案例']
if(_arr.includes(item.name)) {
return message.warn('正在建设中!') return message.warn('正在建设中!')
} }
// console.log(item) // console.log(item)

View File

@ -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%',

View File

@ -498,6 +498,7 @@
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
@ -524,30 +525,13 @@
} }
// console.log('===============>', load.value) // console.log('===============>', load.value)
// //
debugger
list.value = res.data.data.list list.value = res.data.data.list
if (index || index === 0) { if (index || index === 0) {
debugger
list.value[index].show = true list.value[index].show = true
// console.log('1111', list.value[index])
showNew(list.value[index]) showNew(list.value[index])
// showBottom()
} }
// list.value = res.data.data.list
console.log(
'重新请求值',
index,
// res.data.data.list[index].show,
list.value
)
total.value = res.data.data.deptCount total.value = res.data.data.deptCount
console.log(
'重新请求值2',
index,
// res.data.data.list[index].show,
list.value
)
showKey.value++ showKey.value++
if (type == 'init' || type == 'changePage') { if (type == 'init' || type == 'changePage') {
getListByDeptId(list.value[0]) getListByDeptId(list.value[0])
@ -557,7 +541,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,

View File

@ -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'))