| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- /*
- * @Author: liuzhenlin 461480418@qq.ocm
- * @Date: 2023-01-19 14:06:58
- * @LastEditors: liuzhenlin
- * @LastEditTime: 2023-02-15 18:45:00
- * @Description: file content
- * @FilePath: \oms\api\system\user.js
- */
- import micro_request from "../../utils/micro_request";
- // console.log(process.uniEnv.VITE_INSTR_ADMIN);
- const service_path = uni.getStorageSync("labsop_service_path") || "";
- const instPath = process.uniEnv.VITE_INSTR_ADMIN + service_path;
- export default {
- // 获取照片
- getPhoto(query) {
- return micro_request.postRequest(
- instPath,
- "TusInstrumentPad",
- "Photo",
- query
- );
- },
- // 仪器信息
- getInstrInfo(query) {
- return micro_request.postRequest(
- instPath,
- "TusInstrumentPad",
- "IndexInfo",
- query
- );
- },
- // 上机
- getOn(query) {
- return micro_request.postRequest(
- instPath,
- "TusInstrumentPad",
- "Geton",
- query
- );
- },
- // 获取上机中的信息
- getOnInfo(query) {
- return micro_request.postRequest(
- instPath,
- "TusInstrumentPad",
- "Current",
- query
- );
- },
- // 获取预约信息
- getAppointInfo(query) {
- return micro_request.postRequest(
- instPath,
- "TusInstrumentPad",
- "AppointmentList",
- query
- );
- },
- // 下机
- geOff(query) {
- return micro_request.postRequest(
- instPath,
- "TusInstrumentPad",
- "Getoff",
- query
- );
- },
- // 获取公告信息
- getNoticeInfo(query) {
- return micro_request.postRequest(
- instPath,
- "TusInstrumentPad",
- "NoticeList",
- query
- );
- },
- // 获取公告信息
- switch(query) {
- return micro_request.postRequest(
- instPath,
- "TusInstrumentPad",
- "Switch",
- query
- );
- },
- };
|