Commit 9d1513ed authored by 卢均锐's avatar 卢均锐

chore: 修改pages/transaction/purchaseAbility里接口引入方式

parent 491920ff
......@@ -5,7 +5,7 @@ import { PageHeaderWrapper } from '@ant-design/pro-layout';
import { Card, Row, Col, Button, Popconfirm, Typography } from 'antd';
import { StandardTable } from 'god';
import { ColumnType } from 'antd/lib/table/interface';
import { PublicApi } from '@/services/api';
import { postTemplateWebSeoWebUpdateStatus, postTemplateWebSeoWebDelete, getTemplateWebSeoWebPage } from '@/services/TemplateV2Api';
import NiceForm from '@/components/NiceForm';
import { FORM_FILTER_PATH } from '@/formSchema/const';
import { createFormActions, FormEffectHooks } from '@formily/antd';
......@@ -19,7 +19,7 @@ const PurchasSeo = () => {
/** 修改状态 */
const confirm = (e: any) => {
const status = e.status === 1 ? 0 : 1;
PublicApi.postTemplateWebSeoWebUpdateStatus({ id: e.id, status }).then(res => {
postTemplateWebSeoWebUpdateStatus({ id: e.id, status }).then(res => {
if (res.code !== 1000) {
return
}
......@@ -30,7 +30,7 @@ const PurchasSeo = () => {
}
/** 删除 */
const handleDelete = (id: number) => {
PublicApi.postTemplateWebSeoWebDelete({ id }).then(res => {
postTemplateWebSeoWebDelete({ id }).then(res => {
if (res.code !== 1000) {
return
}
......@@ -51,7 +51,7 @@ const PurchasSeo = () => {
title: '页面名称',
key: 'name',
dataIndex: 'name',
render: (text: any,record: any) => <Typography.Link href={`/memberCenter/procurementAbility/purchasDoor/purchasSeo/detail?id=${record.id}`}>{text}</Typography.Link>
render: (text: any, record: any) => <Typography.Link href={`/memberCenter/procurementAbility/purchasDoor/purchasSeo/detail?id=${record.id}`}>{text}</Typography.Link>
},
{
title: '访问链接',
......@@ -112,7 +112,7 @@ const PurchasSeo = () => {
const fetchData = (params: any) => {
return new Promise(resolve => {
PublicApi.getTemplateWebSeoWebPage({ ...params, doorType: 3 }).then(res => {
getTemplateWebSeoWebPage({ ...params, doorType: 3 }).then(res => {
resolve(res.data)
}).catch(error => {
console.warn(error)
......
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