调整消息推送
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import request from '../js/request'
|
||||
import config from '../js/config'
|
||||
|
||||
// 获取设备
|
||||
export function getDeviceList(params) {
|
||||
@@ -15,12 +14,15 @@ export function getDeviceList(params) {
|
||||
* @param {*} id 工程id
|
||||
* @returns
|
||||
*/
|
||||
const date = new Date()
|
||||
const year = date.getFullYear() // 年份 4 位
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0') // 月份自动补 0
|
||||
const currentYearMonth = `${year}-${month}`
|
||||
export function getDevCount(id) {
|
||||
return request({
|
||||
url: '/cs-device-boot/deviceUser/devCount',
|
||||
method: 'post',
|
||||
|
||||
data: { id },
|
||||
data: { id: id, time: currentYearMonth },
|
||||
})
|
||||
}
|
||||
|
||||
@@ -209,11 +211,11 @@ export const engineeringPinToTop = (params) => {
|
||||
// 查询工程树
|
||||
export const lineTree = (params) => {
|
||||
return request({
|
||||
url: '/cs-device-boot/csLedger/lineTree',
|
||||
url: '/cs-device-boot/csLedger/AppLineTree',
|
||||
method: 'POST',
|
||||
data: {
|
||||
type: 'engineering',
|
||||
},
|
||||
// data: {
|
||||
// type: 'engineering',
|
||||
// },
|
||||
// header: {
|
||||
// 'Content-Type': 'application/json',
|
||||
// },
|
||||
@@ -236,6 +238,5 @@ export const queryEquipmentByndid = (params) => {
|
||||
url: '/cs-device-boot/EquipmentDelivery/queryEquipmentByndid',
|
||||
method: 'POST',
|
||||
data: params,
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const debug = true // true 是连地服务端本地,false 是连接线上
|
||||
|
||||
const development = {
|
||||
domain: 'http://192.168.1.103:10215',
|
||||
domain: 'http://192.168.2.126:10215',
|
||||
}
|
||||
|
||||
const production = {
|
||||
|
||||
Reference in New Issue
Block a user