1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| // 煤质方案维护
| import request from '@/utils/request'
|
| // 导出一个函数,用于获取煤计划列表
| export function getCoalPlanList(query) {
| // 发送一个get请求,请求的url为'/coalPlan/list',请求参数为query
| return request({
| url: '/coalPlan/list',
| method: 'get',
| params: query
| })
| }
| // 导出一个函数,用于新增或编辑煤计划
| export function addOrEditCoalPlan(query) {
| // 发送一个post请求,请求的url为'/coalPlan/addOrEdit',请求参数为query
| return request({
| url: '/coalPlan/addOrEditCoalPlan',
| method: 'post',
| data: query
| })
| }
| // 导出一个函数delCoalPlan,用于发送delete请求,删除coalPlan
| export function delCoalPlan(query) {
| // 发送一个delete请求,请求的url为'/coalPlan/delCoalPlan',请求参数为query
| return request({
| url: '/coalPlan/delCoalPlan',
| method: 'delete',
| data: query
| })
| }
|
| // 获取煤质字段信息
| export function getCoalFieldList(query){
| return request({
| url: '/coalField/coalFieldList',
| method: 'get',
| data: query
| })
| }
|
|