// /* // * @Descripttion: // * @version: 1.0.0 // * @Author: glc // * @Date: 2023-02-26 14:26:06 // * @LastEditors: Andy // * @LastEditTime: 2023-02-26 14:27:34 // */ // import request from "@/utils/request"; // export function getMaterialByCaseId(params) { // return request.get("/cim/material/getMaterialByCaseId", { params: params }); // } // export function saveOrUpdateMaterial(params) { // return request({ // url: "/cim/material/saveOrUpdateMaterial", // headers: { 'Content-Type': 'application/json;charset=UTF-8' }, // method: 'post', // data: params // }); // } // export function getCaseList(params) { // return request({ // url: "/cim/material/case/getCaseList", // headers: { 'Content-Type': 'application/json;charset=UTF-8' }, // method: 'post', // data: params // }); // } // export function saveCase(params) { // return request({ // url: "/cim/material/case/saveCase", // headers: { 'Content-Type': 'application/json;charset=UTF-8' }, // method: 'post', // data: params // }); // } // export function updateCase(params) { // return request({ // url: "/cim/material/case/updateCase", // headers: { 'Content-Type': 'application/json;charset=UTF-8' }, // method: 'post', // data: params // }); // } // export function setDefaultCase(params) { // return request({ // url: "/cim/material/case/saveDefaultCase", // headers: { 'Content-Type': 'application/json;charset=UTF-8' }, // method: 'post', // data: params // }); // } // export function deleteCase(params) { // return request({ // url: "/cim/material/case/deleteCase?id=" + params.id, // method: 'get' // }); // } /* * @Descripttion: * @version: 1.0.0 * @Author: glc * @Date: 2023-02-26 14:26:06 * @LastEditors: Andy * @LastEditTime: 2023-02-26 14:27:34 */ import request from "@/utils/request"; export function getMaterialByCaseId(params) { return request.get("/dataapi/scene/material/getMaterialByCaseId", { params: params }); } export function saveOrUpdateMaterial(params) { return request({ url: "/dataapi/scene/material/saveOrUpdateMaterial", headers: { 'Content-Type': 'application/json;charset=UTF-8' }, method: 'post', data: params }); } export function getCaseList(params) { return request({ url: "/dataapi/scene/material/case/getCaseList", headers: { 'Content-Type': 'application/json;charset=UTF-8' }, method: 'post', data: params }); } export function saveCase(params) { return request({ url: "/dataapi/scene/material/case/saveCase", headers: { 'Content-Type': 'application/json;charset=UTF-8' }, method: 'post', data: params }); } export function updateCase(params) { return request({ url: "/dataapi/scene/material/case/updateCase", headers: { 'Content-Type': 'application/json;charset=UTF-8' }, method: 'post', data: params }); } export function setDefaultCase(params) { return request({ url: "/dataapi/scene/material/case/saveDefaultCase", headers: { 'Content-Type': 'application/json;charset=UTF-8' }, method: 'post', data: params }); } export function deleteCase(params) { return request({ url: "/dataapi/scene/material/case/deleteCase?id=" + params.id, method: 'get' }); }