| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- /*
- * @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;
- const adminPath = process.uniEnv.VUE_APP_AdminPath + 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
- );
- },
- // 获取公告信息
- getEntityByKey(query) {
- return micro_request.postRequest(
- adminPath,
- "Config",
- "GetEntityByKey",
- query
- );
- },
- };
|