Files
apt-nl-new/src/config/getData.js
2024-10-21 16:03:57 +08:00

43 lines
1.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import {post} from '@config/http.js'
// import store from '../vuex/store'
// 首页
// 1.1 查询首页
export const queryHomePage = () => post('api/home/queryHomePage', {})
// 1.2 按钮点击确认
export const clickSave = (code) => post('api/home/clickSave', {
button_code: code
})
// 任务管理
// 1.1 查询站点
export const queryPoint = () => post('api/task/queryPoint', {})
// 1.2 选择站点确认
export const confirmPoint = (code, type, ncode) => post('api/task/confirmPoint', {
point_code: code,
type: type, // 对应按钮type=1: | type=2
next_point_code: ncode
})
// 1.3查询任务列表
export const queryTaskList = () => post('api/task/queryTaskList', {})
// 1.4删除任务列表
export const deleteTask = (taskNum) => post('api/task/deleteTask', {
task_num: taskNum
})
export const querySingleTask = () => post('api/task/querySingleTask', {})
export const deleteSingleTask = (taskNum) => post('api/task/deleteSingleTask', {
task_num: taskNum
})
// 1.5调整任务顺序
export const updateTask = (arr) => post('api/task/updateTask', {
param: arr
})
// 1.7校验密码
export const checkPassword = (pwd) => post('api/task/check', {
password: pwd
})
// 故障管理
// 1.1查询故障信息
export const querryError = () => post('api/error/querryError', {})