Commit 59698e43 by heshihao

feat: 代码格式修改

parent 63c2b205
import api from '@/utils/http' import api from "@/utils/http";
const assess = { const assess = {
DownList: "/api/address/DownList", DownList: "/api/address/DownList",
...@@ -15,61 +14,37 @@ const assess = { ...@@ -15,61 +14,37 @@ const assess = {
SearchFactory: "/api/address/SearchFactory", SearchFactory: "/api/address/SearchFactory",
SearchBuild: "/api/address/SearchBuild", SearchBuild: "/api/address/SearchBuild",
CheckDetail: "/api/address/CheckDetail", CheckDetail: "/api/address/CheckDetail",
} };
// 编辑 查看 详情 // 编辑 查看 详情
const CheckDetail = ({ const CheckDetail = ({ id, carrier_type }) => {
id, carrier_type
}) => {
return api.post(assess.CheckDetail, { return api.post(assess.CheckDetail, {
id, carrier_type id,
}) carrier_type,
} });
const SearchLand = ({ };
key_words, const SearchLand = ({ key_words, land_nature, industry_name, land_name, district_name, page, perpage }) => {
land_nature,
industry_name,
land_name,
district_name,
page,
perpage
}) => {
return api.post(assess.SearchLand, { return api.post(assess.SearchLand, {
key_words, key_words,
land_nature, land_nature,
industry_name, industry_name,
land_name, land_name,
land_code: '', land_code: "",
district_name, district_name,
page, page,
per_page: perpage per_page: perpage,
}) });
} };
const SearchFactory = ({ const SearchFactory = ({ industry_name, key_words, factory_name, district_name, page, perpage }) => {
industry_name,
key_words,
factory_name,
district_name,
page,
perpage
}) => {
return api.post(assess.SearchFactory, { return api.post(assess.SearchFactory, {
industry_name, industry_name,
key_words, key_words,
factory_name, factory_name,
district_name, district_name,
page, page,
per_page: perpage per_page: perpage,
}) });
} };
const SearchBuild = ({ const SearchBuild = ({ key_words, industry_name, build_name, build_type, district_name, page, perpage }) => {
key_words,
industry_name,
build_name,
build_type,
district_name,
page,
perpage
}) => {
return api.post(assess.SearchBuild, { return api.post(assess.SearchBuild, {
key_words, key_words,
industry_name, industry_name,
...@@ -77,9 +52,9 @@ const SearchBuild = ({ ...@@ -77,9 +52,9 @@ const SearchBuild = ({
build_type, build_type,
district_name, district_name,
page, page,
per_page: perpage per_page: perpage,
}) });
} };
// const ChooseAddress = (industry_id, // const ChooseAddress = (industry_id,
// product, // product,
// budget, // budget,
...@@ -103,15 +78,7 @@ const SearchBuild = ({ ...@@ -103,15 +78,7 @@ const SearchBuild = ({
// key_words // key_words
// }) // })
// } // }
const SearchAll = ({ const SearchAll = ({ key_words, industry_name, district_name, carrier_type_id, preference, page, per_page }) => {
key_words,
industry_name,
district_name,
carrier_type_id,
preference,
page,
per_page
}) => {
return api.post(assess.SearchAll, { return api.post(assess.SearchAll, {
key_words, key_words,
industry_name, industry_name,
...@@ -119,39 +86,36 @@ const SearchAll = ({ ...@@ -119,39 +86,36 @@ const SearchAll = ({
carrier_type_id, carrier_type_id,
preference, preference,
page, page,
per_page per_page,
}) });
} };
const DefaultAddress = ( const DefaultAddress = (district, page, perpage) => {
district,
page,
perpage) => {
return api.post(assess.DefaultAddress, { return api.post(assess.DefaultAddress, {
district, district,
page, page,
perpage, perpage,
}) });
} };
// 产业集群 // 产业集群
const DownList = () => { const DownList = () => {
return api.get(assess.DownList) return api.get(assess.DownList);
} };
const ShowArea = ({ district_name }) => { const ShowArea = ({ district_name }) => {
return api.post(assess.ShowArea, { return api.post(assess.ShowArea, {
district_name district_name,
}) });
} };
const ShowCarrierRate = ({ district_name }) => { const ShowCarrierRate = ({ district_name }) => {
return api.post(assess.ShowCarrierRate, { return api.post(assess.ShowCarrierRate, {
district_name district_name,
}) });
} };
const ShowCarrierEnergy = () => { const ShowCarrierEnergy = () => {
return api.get(assess.ShowCarrierEnergy) return api.get(assess.ShowCarrierEnergy);
} };
const GetLoansRate = () => { const GetLoansRate = () => {
return api.get(assess.GetLoansRate) return api.get(assess.GetLoansRate);
} };
export default { export default {
SearchAll, SearchAll,
...@@ -165,7 +129,5 @@ export default { ...@@ -165,7 +129,5 @@ export default {
SearchLand, SearchLand,
SearchFactory, SearchFactory,
SearchBuild, SearchBuild,
CheckDetail CheckDetail,
} };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment