39 lines
1.1 KiB
JavaScript
39 lines
1.1 KiB
JavaScript
|
|
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
|
|||
|
|
})
|
|||
|
|
// 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', {})
|