From f20a554bdb24e9dfde9dc6a69d78595944f61d15 Mon Sep 17 00:00:00 2001 From: mark <mark18340872469@163.com> Date: 星期二, 25 十月 2022 14:53:57 +0800 Subject: [PATCH] 设备管理 样式调整 --- src/api/product.ts | 65 +++++++++++++++++++++++++++++--- 1 files changed, 58 insertions(+), 7 deletions(-) diff --git a/src/api/product.ts b/src/api/product.ts index 2c49eef..2c5e046 100644 --- a/src/api/product.ts +++ b/src/api/product.ts @@ -1,4 +1,4 @@ -import request from "./index" +import request from "@/scripts/httpRequest"; import qs from "qs"; // 鏌ヨ浜у搧涓績鍒楄〃 @@ -41,11 +41,10 @@ // 鑾峰彇鏍囩瀛楀吀 // param:type -export const findDicByType = (params: any) => { +export const findDicByType = () => { return request({ - url: "/data/api-s/dic/findDicByType", + url: "/saas/api-s/saasProduct/getProductType?scope=", method: "get", - params: params }); }; @@ -80,7 +79,7 @@ */ export const findAllCenterProduct = (params: any) => { return request({ - url: "/data/api-s/product/findAllCenterProduct", + url: "/saas/api-s/saasProduct/findAllCenterProduct", method: "post", data: params }) @@ -120,7 +119,7 @@ */ export const getReleaseProduct = (params: any) => { return request({ - url: "/data/api-s/product/getAllProductMenu", + url: "/saas/api-s/saasProduct/getAllProductMenu", method: "get", params: params }) @@ -129,7 +128,7 @@ //鏍规嵁璁㈠崟id鏌ヨ璁㈠崟璇︽儏 export const getOrderById = (id: string) => { return request({ - url: `/data/api-s/order/show/${id}`, + url: `/saas/api-s/saasOrder/show/${id}`, method: 'get' }) } @@ -261,3 +260,55 @@ params: params }) } + +//鑾峰彇杞挱鍥� +export const getIndexPics = () => { + return request({ + url: `/cloud/api-i/saasIndex/getIndexPics`, + method: 'get', + }) +} + +//鑾峰彇浜у搧璇︽儏 +export const selectProductById = (data: any) => { + return request({ + url: `/saas/api-s/saasProduct/selectProductById`, + method: 'post', + data, + }) +} + +//鑾峰彇鎺ㄨ崘绠楁硶 +export const getIndexModelRecommend = (data: any) => { + return request({ + url: `/cloud/api-i/saasIndex/getIndexModelRecommend`, + method: 'post', + data, + }) +} + +//鑾峰彇棣栭〉妯″潡 +export const getModelList = () => { + return request({ + url: `/cloud/api-i/saasIndex/getModelList`, + method: 'get', + }) +} + +//璇曠敤涓績 +export const getFreeList = () => { + return request({ + url: `/saas/api-s/saasProduct/getFreeList`, + method: 'post', + }) +} + +//鏍规嵁id鏌ヨ浜у搧 +export const getProductById = (data: any) => { + return request({ + url: `/saas/api-s/saasProduct/getProductById`, + method: 'post', + data + }) +} + -- Gitblit v1.8.0