调整消息推送

This commit is contained in:
guanj
2026-04-03 14:48:45 +08:00
parent 9f593bd428
commit db097bc64a
20 changed files with 324 additions and 267 deletions

View File

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