| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- import {
- request
- } from '@/utils/request.js';
- export function getRecordFillingList(params) {
- return request({
- url: '/rq/iot-opeation-fill/page1',
- method: 'GET',
- params
- });
- }
- export function getRecordFillingDetailGetPage(params) {
- return request({
- url: '/rq/iot-opeation-fill/page',
- method: 'GET',
- params
- });
- }
- export function getRecordFillingDetailGetAttrs(params) {
- return request({
- url: '/rq/iot-opeation-fill/getAttrs',
- method: 'GET',
- params
- });
- }
- // 运行记录填报
- export function recordFillingDetailInsertLog(data) {
- return request({
- url: '/rq/iot-opeation-fill/insertLog',
- method: 'POST',
- data
- });
- }
- /**
- * 运气记录详情
- * @param id
- */
- export const getRecordFillingDetail = (id) =>
- request({
- url: '/rq/iot-opeation-fill/get',
- method: 'GET',
- params: { id }
- })
- /**
- * 运行记录模板列表
- */
- export const getRecordFillingTemplateList = () =>
- request({
- url: '/rq/iot-model-template/page',
- method: 'GET',
- params: { pageNo: 1, pageSize: 100, status: 0 },
- })
- /**
- * 获取设备模板属性列表
- * @param deviceCategoryId
- */
- export const getRecordFillingOptionList = (deviceCategoryId) =>
- request({
- url: 'rq/iot-model-template-attrs/page',
- method: 'GET',
- params: { pageNo: 1, pageSize: 100, deviceCategoryId },
- })
-
- // 忽略运行工单
- export function recordFillingIgnore(data) {
- return request({
- url: '/rq/iot-opeation-fill/update1',
- method: 'put',
- data: data
- })
- }
- // 运行记录填报后更新工单状态
- export function recordFillingUpOperationOrder(data) {
- return request({
- url: '/rq/iot-opeation-fill/upOperationOrder',
- method: 'POST',
- data: data
- })
- }
|