|
@@ -647,12 +647,19 @@ export default {
|
|
|
},
|
|
|
getMenuEventType() {
|
|
|
let that = this
|
|
|
- getMenuEventType().then(res => {
|
|
|
+ let eventType = []
|
|
|
+ let eventTypeDl = []
|
|
|
+ selectByMenuId({
|
|
|
+ menuId: 6
|
|
|
+ }).then(req => {
|
|
|
+ req.data.forEach(item => {
|
|
|
+ eventType.push(item.eventTypeXl)
|
|
|
+ eventTypeDl.push(item.eventType)
|
|
|
+ })
|
|
|
that.websockSid.userId = Cookies.get('userId')
|
|
|
- that.websockSid.eventTypeDl = res.data.eventTypeDl
|
|
|
- that.websockSid.eventType = res.data.eventType
|
|
|
+ that.websockSid.eventTypeDl = eventTypeDl
|
|
|
+ that.websockSid.eventType = eventType
|
|
|
that.initWebSocket(that.websockSid.userId, that.websockSid.eventTypeDl, that.websockSid.eventType)
|
|
|
- console.log(that.websockSid)
|
|
|
})
|
|
|
},
|
|
|
setEventTypeId(data) {
|