eslint
This commit is contained in:
parent
68bd64e134
commit
b76f6322c8
@ -5,7 +5,6 @@ import {CheckOutlined, EditOutlined, ReloadOutlined} from "@ant-design/icons";
|
||||
import { get } from "../../../util/AjaxUtils.ts";
|
||||
import { useParams } from "react-router-dom";
|
||||
import {
|
||||
|
||||
message
|
||||
} from "antd";
|
||||
type PropsType = {
|
||||
@ -33,7 +32,7 @@ export default function AiHelperText(props: PropsType) {
|
||||
|
||||
}, [])
|
||||
|
||||
const [messageApi, contextHolder] = message.useMessage();
|
||||
const [messageApi] = message.useMessage();
|
||||
|
||||
const [text, setText] = useState('');
|
||||
const [newText, setNewText] = useState('');
|
||||
|
@ -3,19 +3,17 @@ import './card-proj.css';
|
||||
import {
|
||||
CheckOutlined,
|
||||
ClockCircleOutlined,
|
||||
CloseCircleOutlined,
|
||||
CreditCardOutlined, DeleteOutlined,
|
||||
CloseCircleOutlined, DeleteOutlined,
|
||||
DownloadOutlined, DownOutlined,
|
||||
EditOutlined,
|
||||
EyeOutlined,
|
||||
LoadingOutlined,
|
||||
SearchOutlined,
|
||||
SettingOutlined,
|
||||
WarningOutlined,
|
||||
FolderOutlined
|
||||
} from '@ant-design/icons';
|
||||
import { Button, ConfigProvider, Dropdown, Tag } from 'antd';
|
||||
import { GenerateStatus, IProj, PayStatus, ProjChargeType } from "../../interfaces/proj/IProj.ts";
|
||||
import { Button, Dropdown, Tag } from 'antd';
|
||||
import { GenerateStatus, IProj, ProjChargeType } from "../../interfaces/proj/IProj.ts";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { Axios, put } from "../../util/AjaxUtils.ts";
|
||||
import { useContext, useEffect, useState } from "react";
|
||||
@ -24,7 +22,6 @@ import useMessage from "antd/es/message/useMessage";
|
||||
import setImg from '../../static/right/set.png'
|
||||
import orderImg from '../../static/right/order.png'
|
||||
import menuImg from '../../static/right/menu.png'
|
||||
import testImg from '../../static/test.jpg'
|
||||
export default function CardProj(props: { item: IProj }) {
|
||||
const nav = useNavigate();
|
||||
// const [showZpi,setShowZpi] = useState(false)
|
||||
@ -60,64 +57,6 @@ export default function CardProj(props: { item: IProj }) {
|
||||
return <Tag color="red"><CloseCircleOutlined /> 错误</Tag>
|
||||
}
|
||||
|
||||
const renderOption = () => {
|
||||
if (data.pay.payStatus == PayStatus.UNPAID) {
|
||||
return (
|
||||
<>
|
||||
<div className="option">
|
||||
<Button size="small" type="text"><CreditCardOutlined /> 待付款</Button>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<div className="option">
|
||||
<Button size="small" type="text" onClick={() => {
|
||||
if (data.generate.generateStatus == GenerateStatus.SUCCESS) {
|
||||
nav(`/proj-edit/config-loginpage-show/${data.projId}`)
|
||||
} else {
|
||||
nav(`/proj-edit/config-loginpage/${data.projId}`)
|
||||
}
|
||||
}}><SettingOutlined /> 登录界面设置</Button>
|
||||
<Button size="small" type="text" onClick={() => {
|
||||
if (data.generate.generateStatus == GenerateStatus.SUCCESS) {
|
||||
nav(`/proj-edit/config-mod-list-show/${data.projId}`)
|
||||
} else {
|
||||
nav(`/proj-edit/config-mod-list/${data.projId}`)
|
||||
}
|
||||
}}><SettingOutlined /> 系统菜单管理({data.projModCount})</Button>
|
||||
<Button size="small" type="text" onClick={() => {
|
||||
if (data.generate.generateStatus == GenerateStatus.SUCCESS) {
|
||||
nav(`/proj-edit/config-menu-list-show/${data.projId}`)
|
||||
} else {
|
||||
nav(`/proj-edit/config-menu-list/${data.projId}`)
|
||||
|
||||
}
|
||||
}}><SettingOutlined /> 菜单排序({data.projModCount})</Button>
|
||||
</div>
|
||||
{
|
||||
data.generate.generateStatus == GenerateStatus.SUCCESS ? (
|
||||
<div className="option">
|
||||
<Button size="small" type="text" onClick={() => {
|
||||
window.open(`${Axios.defaults?.baseURL}/route/proj/download/apply/${data.projId}`)
|
||||
}}><DownloadOutlined /> 申请表</Button>
|
||||
<Button size="small" type="text" onClick={() => {
|
||||
window.open(`${Axios.defaults?.baseURL}/route/proj/download/manual/${data.projId}`)
|
||||
}}><DownloadOutlined /> 操作手册</Button>
|
||||
<Button size="small" type="text" onClick={() => {
|
||||
window.open(`${Axios.defaults?.baseURL}/route/proj/download/code-zip/${data.projId}`)
|
||||
}}><DownloadOutlined /> 代码压缩包</Button>
|
||||
<Button size="small" type="text" onClick={() => {
|
||||
window.open(`${Axios.defaults?.baseURL}/route/proj/download/code/${data.projId}`)
|
||||
}}><DownloadOutlined /> 代码文档</Button>
|
||||
</div>
|
||||
) : <></>
|
||||
}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
const goEdit = () => {
|
||||
if (charge == ProjChargeType.ALL) {
|
||||
nav(`/proj-eall/${data.projId}`);
|
||||
|
@ -26,7 +26,7 @@ export default function ListProjAgent() {
|
||||
const [agents, setAgents] = useState<IAgent[]>([]);
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const [keywords, setKeywords] = useState('');
|
||||
const [keywords] = useState('');
|
||||
const domHeight = window.innerHeight - 280;
|
||||
|
||||
useEffect(() => {
|
||||
|
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
export default function CopyrightGgoods() {
|
||||
return (
|
||||
<div>
|
||||
|
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
export default function ProductRelease() {
|
||||
return (
|
||||
<div>
|
||||
|
@ -1,4 +1,3 @@
|
||||
import React from 'react'
|
||||
import { useLocation } from 'react-router-dom';
|
||||
import './searchList.css'
|
||||
import { Pagination, Spin, Image, message } from 'antd';
|
||||
|
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
export default function TradingGoods() {
|
||||
return (
|
||||
<div>交易商品页面</div>
|
||||
|
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
export default function TransactionOrder() {
|
||||
return (
|
||||
<div>交易订单页面</div>
|
||||
|
@ -681,14 +681,14 @@ export default function ProjEditStep2() {
|
||||
<Column
|
||||
title="所属类型"
|
||||
dataIndex="type"
|
||||
render={(text, record: any) => (
|
||||
render={(_text, record: any) => (
|
||||
record.type === 'PERSONAL' ? '自然人' : '企业/组织'
|
||||
)}
|
||||
/>
|
||||
<Column
|
||||
title="所属证件类型"
|
||||
dataIndex="idCardType"
|
||||
render={(text, record: any) => (
|
||||
render={(_text, record: any) => (
|
||||
record.idCardType === 'ID_CARD' ? '身份证' : '营业执照'
|
||||
)}
|
||||
/>
|
||||
|
@ -678,14 +678,14 @@ export default function ProjEditStep2() {
|
||||
<Column
|
||||
title="所属类型"
|
||||
dataIndex="type"
|
||||
render={(text, record: any) => (
|
||||
render={(_text, record: any) => (
|
||||
record.type === 'PERSONAL' ? '自然人' : '企业/组织'
|
||||
)}
|
||||
/>
|
||||
<Column
|
||||
title="所属证件类型"
|
||||
dataIndex="idCardType"
|
||||
render={(text, record: any) => (
|
||||
render={(_text, record: any) => (
|
||||
record.idCardType === 'ID_CARD' ? '身份证' : '营业执照'
|
||||
)}
|
||||
/>
|
||||
|
@ -4,13 +4,14 @@ import type {MessageInstance} from "antd/es/message/interface";
|
||||
export const Axios = axios;
|
||||
|
||||
// axios.defaults.baseURL = 'http://192.168.0.163:7025/copyright';
|
||||
axios.defaults.baseURL = 'http://192.168.0.15:7025/copyright';
|
||||
// axios.defaults.baseURL = '/copyright';
|
||||
export const WebSocketBaseUrl: string = 'ws://192.168.0.15:7025/copyright';
|
||||
// export const WebSocketBaseUrl: string = '/copyright';
|
||||
export const DevUserId: string = '80d3365e-0597-4988-979e-18ef1c3ec671'; // 18634604067
|
||||
// axios.defaults.baseURL = 'http://192.168.0.15:7025/copyright';
|
||||
// axios.defaults.baseURL = 'https://www.aimzhu.com/copyright';
|
||||
axios.defaults.baseURL = '/copyright';
|
||||
// export const WebSocketBaseUrl: string = 'wss://www.aimzhu.com/copyright';
|
||||
export const WebSocketBaseUrl: string = '/copyright';
|
||||
// export const DevUserId: string = '80d3365e-0597-4988-979e-18ef1c3ec671'; // 18634604067
|
||||
// export const DevUserId: string = 'c2438eb8-2685-49a9-bf02-5111a5192d96'; // 18647109157
|
||||
// export const DevUserId: string = '';
|
||||
export const DevUserId: string = '';
|
||||
|
||||
type Req<T> = {
|
||||
messageApi: MessageInstance;
|
||||
@ -44,10 +45,12 @@ export function websocketUrl() {
|
||||
}
|
||||
const location = window.location;
|
||||
const protocol = location.protocol;
|
||||
console.log(protocol);
|
||||
let wsProtocol = 'ws';
|
||||
if (protocol == 'https') {
|
||||
wsProtocol = 'wss';
|
||||
}
|
||||
console.log(wsProtocol);
|
||||
return `${wsProtocol}://${location.host}${WebSocketBaseUrl}`;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user