Commit 9dd5a202 authored by zhengke's avatar zhengke

修改

parent 3d25b8da
...@@ -508,11 +508,11 @@ export function queryEmpChangeLog(data) { ...@@ -508,11 +508,11 @@ export function queryEmpChangeLog(data) {
} }
// 获取用户领用资产的数量(用户教育用户列表 展示资产使用情况) // 获取用户领用资产的数量(用户教育用户列表 展示资产使用情况)
export function getEduEmployeeNumList(data) { export function getEduEmployeeNumList(data) {
// return request_zc({ return request_zc({
// url: '/property/GetEduEmployeeReceiveNumList', url: '/property/GetEduEmployeeReceiveNumList',
// method: 'post', method: 'post',
// data data
// }); });
} }
//获取用户资产列表 //获取用户资产列表
export function propertyGetPageList(data) { export function propertyGetPageList(data) {
......
...@@ -226,10 +226,14 @@ ...@@ -226,10 +226,14 @@
sendSock(SendData, this.getDataFunc) sendSock(SendData, this.getDataFunc)
}, },
getDataFunc(e) { getDataFunc(e) {
console.log("socketData",e);
if (e.data) { if (e.data) {
var newData = JSON.parse(e.data) var newData = JSON.parse(e.data)
this.socektArr = this.socektArr.concat(newData) if(newData.length>0){
for(var i=0;i<newData.length;i++){
this.socektArr.unshift(newData[i])
}
}
// this.socektArr = this.socektArr.concat(newData)
this.showNotification(newData[0].Title, newData[0].Content, newData.CoverImg) this.showNotification(newData[0].Title, newData[0].Content, newData.CoverImg)
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment