提交 478c538d 作者: ZhangLingKun

功能:eslint --fix

上级 cbe2f726
// 分页通用接口 // 分页通用接口
export interface PaginationProps { export interface PaginationProps {
pageSize: number; pageSize?: number;
pageNo: number; pageNo?: number;
} }
// 通用返回接口(分页) // 通用返回接口(分页)
......
...@@ -27,11 +27,11 @@ export interface categoryEntity { ...@@ -27,11 +27,11 @@ export interface categoryEntity {
// 分类目录 // 分类目录
export interface categoryDec { export interface categoryDec {
"id": number, id: number;
"directoryName": string, directoryName: string;
"pid": null, pid: null;
"type": number, type: number;
directoryType: string directoryType: string;
} }
//分类列表类型 //分类列表类型
......
...@@ -5,21 +5,22 @@ import { categoryListType, directoryListType } from '~/api/interface/categoryMan ...@@ -5,21 +5,22 @@ import { categoryListType, directoryListType } from '~/api/interface/categoryMan
export class CategoryManageAPI { export class CategoryManageAPI {
// 分类目录 // 分类目录
static directoryList = (params) => { static directoryList = (params) => {
return axios.get("pms/classify/directoryList", { return axios.get('pms/classify/directoryList', {
params params,
}); });
} };
//目录列表不含分页 //目录列表不含分页
static getDirectoryList = (params) => { static getDirectoryList = (params) => {
return axios.get("pms/classify/getDirectoryList", { return axios.get('pms/classify/getDirectoryList', {
params params,
}); });
}; };
// 新增或编辑目录 // 新增或编辑目录
static addOrEditDirectory = (data: { id?: number; directoryName: string, type: number, relevance: number }[]) => { static addOrEditDirectory = (
data: { id?: number; directoryName: string; type: number; relevance: number }[],
) => {
return axios.post('/pms/classify/addOrEditDirectory', data); return axios.post('/pms/classify/addOrEditDirectory', data);
}; };
...@@ -36,7 +37,7 @@ export class CategoryManageAPI { ...@@ -36,7 +37,7 @@ export class CategoryManageAPI {
// 分类列表 // 分类列表
static getClassificationList = (data: object): any => { static getClassificationList = (data: object): any => {
return axios.post(`/pms/classify/getClassificationList`, data); return axios.post(`/pms/classify/getClassificationList`, data);
} };
static getCategoryList: categoryListType = (data) => { static getCategoryList: categoryListType = (data) => {
return axios.post('/pms/classify/getClassificationList', data); return axios.post('/pms/classify/getClassificationList', data);
...@@ -83,9 +84,7 @@ export class CategoryManageAPI { ...@@ -83,9 +84,7 @@ export class CategoryManageAPI {
}; };
// 分类详情 // 分类详情
static getGoodsTypeDetail = ( static getGoodsTypeDetail = (obj: { id: number }) => {
obj: { id: number },
) => {
return axios.get('/pms/classify/getClassifyDetails', { params: obj }); return axios.get('/pms/classify/getClassifyDetails', { params: obj });
}; };
......
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
.ant-table-row:nth-child(odd) > td { .ant-table-row:nth-child(odd) > td {
background: #fcfcfc; background: #fcfcfc;
} }
.ant-table-cell-fix-right{ .ant-table-cell-fix-right {
.ant-btn{ .ant-btn {
padding: 0 8px !important; padding: 0 8px !important;
} }
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
padding: 20px 10px; padding: 20px 10px;
border-radius: 5px; border-radius: 5px;
.message-action{ .message-action {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
left: 0; left: 0;
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
width: 32px; width: 32px;
height: 32px; height: 32px;
border-radius: 50%; border-radius: 50%;
background-image: url("https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/mine_user.png"); background-image: url('https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/mine_user.png');
background-size: 100% 100%; background-size: 100% 100%;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
} }
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
//width: 200px !important; //width: 200px !important;
} }
.ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-container, .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload.ant-upload-select { .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-container,
.ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload.ant-upload-select {
width: 50px !important; width: 50px !important;
height: 50px !important; height: 50px !important;
} }
......
...@@ -26,7 +26,7 @@ import './index.scss'; ...@@ -26,7 +26,7 @@ import './index.scss';
import events from '~/events'; import events from '~/events';
const Category: FC = (props: any) => { const Category: FC = (props: any) => {
let location = useLocation(); const location = useLocation();
console.log('location', location); console.log('location', location);
const navigate = useNavigate(); const navigate = useNavigate();
const baseRef: any = useRef(); const baseRef: any = useRef();
...@@ -48,8 +48,8 @@ const Category: FC = (props: any) => { ...@@ -48,8 +48,8 @@ const Category: FC = (props: any) => {
} }
return false; return false;
}; };
let pathArr = window.location.pathname.split('/'); const pathArr = window.location.pathname.split('/');
let type = pathArr.pop(); //分类所属模块id(0:通用分类 1:作业服务分类 2:设备租赁分类 3:飞手培训分类 4:产品商城分类) const type = pathArr.pop(); //分类所属模块id(0:通用分类 1:作业服务分类 2:设备租赁分类 3:飞手培训分类 4:产品商城分类)
const columns = [ const columns = [
{ {
title: '分类名称', title: '分类名称',
...@@ -272,7 +272,7 @@ const Category: FC = (props: any) => { ...@@ -272,7 +272,7 @@ const Category: FC = (props: any) => {
//目录列表取到后设置第一个目录为激活状态 //目录列表取到后设置第一个目录为激活状态
useEffect(() => { useEffect(() => {
if (activeTabKey == -1 && tabList.length > 0) { if (activeTabKey == -1 && tabList.length > 0) {
let key = Number(searchParams.get('activeTabKey') || tabList[0]?.key || -1); const key = Number(searchParams.get('activeTabKey') || tabList[0]?.key || -1);
setActiveTabKey(key); setActiveTabKey(key);
handleTabChange(String(key)); handleTabChange(String(key));
} }
......
...@@ -66,7 +66,7 @@ const DirectoryManage: FC = (props: any) => { ...@@ -66,7 +66,7 @@ const DirectoryManage: FC = (props: any) => {
key: 'type', key: 'type',
align: 'center', align: 'center',
render: (value) => { render: (value) => {
let find = typeOptions.find((item) => { const find = typeOptions.find((item) => {
return item.value == value; return item.value == value;
}); });
return <div>{find?.label}</div>; return <div>{find?.label}</div>;
......
.error-page{ .error-page {
//body,div,h3,h4,li,ol{margin:0;padding:0} //body,div,h3,h4,li,ol{margin:0;padding:0}
//body{font:14px/1.5 ‘Microsoft YaHei’,’微软雅黑’,Helvetica,Sans-serif;background:#f0f1f3;} //body{font:14px/1.5 ‘Microsoft YaHei’,’微软雅黑’,Helvetica,Sans-serif;background:#f0f1f3;}
background: #f0f1f3;display: flex;align-items: center;justify-content: center; background: #f0f1f3;
width: 100%;height:100%; display: flex;
:focus{outline:0} align-items: center;
h3,h4,strong{font-weight:700} justify-content: center;
a{color:#428bca;text-decoration:none} width: 100%;
a:hover{text-decoration:underline} height: 100%;
.error-page{background:#f0f1f3;} :focus {
.error-page-container{position:relative;z-index:1} outline: 0;
.error-page-main{position:relative;background:#f9f9f9;margin:0 auto;width:617px;-ms-box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:50px 50px 70px} }
h3,
h4,
strong {
font-weight: 700;
}
a {
color: #428bca;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.error-page {
background: #f0f1f3;
}
.error-page-container {
position: relative;
z-index: 1;
}
.error-page-main {
position: relative;
background: #f9f9f9;
margin: 0 auto;
width: 617px;
-ms-box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 50px 50px 70px;
}
//.error-page-main:before{content:”;display:block;background:url(img/errorPageBorder.png?1427783409637);height:7px;position:absolute;top:-7px;width:100%;left:0} //.error-page-main:before{content:”;display:block;background:url(img/errorPageBorder.png?1427783409637);height:7px;position:absolute;top:-7px;width:100%;left:0}
.error-page-main h3{font-size:24px;font-weight:400;border-bottom:1px solid #d0d0d0} .error-page-main h3 {
.error-page-main h3 strong{font-size:54px;font-weight:400;margin-right:20px} font-size: 24px;
.error-page-main h4{font-size:20px;font-weight:400;color:#333} font-weight: 400;
.error-page-actions{font-size:0;z-index:100} border-bottom: 1px solid #d0d0d0;
.error-page-actions div{font-size:14px;display:inline-block;padding:30px 0 0 10px;width:50%;-ms-box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;color:#838383} }
.error-page-actions ol{list-style:decimal;padding-left:20px} .error-page-main h3 strong {
.error-page-actions li{line-height:2.5em} font-size: 54px;
.error-page-actions:before{content:"";display:block;position:absolute;z-index:-1;bottom:17px;left:50px;width:200px;height:10px;-moz-box-shadow:4px 5px 31px 11px #999;-webkit-box-shadow:4px 5px 31px 11px #999;box-shadow:4px 5px 31px 11px #999;-moz-transform:rotate(-4deg);-webkit-transform:rotate(-4deg);-ms-transform:rotate(-4deg);-o-transform:rotate(-4deg);transform:rotate(-4deg)} font-weight: 400;
.error-page-actions:after{content:"";display:block;position:absolute;z-index:-1;bottom:17px;right:50px;width:200px;height:10px;-moz-box-shadow:4px 5px 31px 11px #999;-webkit-box-shadow:4px 5px 31px 11px #999;box-shadow:4px 5px 31px 11px #999;-moz-transform:rotate(4deg);-webkit-transform:rotate(4deg);-ms-transform:rotate(4deg);-o-transform:rotate(4deg);transform:rotate(4deg)} margin-right: 20px;
.error-page-back{color: #0878DF;cursor: pointer} }
.error-page-main h4 {
font-size: 20px;
font-weight: 400;
color: #333;
}
.error-page-actions {
font-size: 0;
z-index: 100;
}
.error-page-actions div {
font-size: 14px;
display: inline-block;
padding: 30px 0 0 10px;
width: 50%;
-ms-box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
color: #838383;
}
.error-page-actions ol {
list-style: decimal;
padding-left: 20px;
}
.error-page-actions li {
line-height: 2.5em;
}
.error-page-actions:before {
content: '';
display: block;
position: absolute;
z-index: -1;
bottom: 17px;
left: 50px;
width: 200px;
height: 10px;
-moz-box-shadow: 4px 5px 31px 11px #999;
-webkit-box-shadow: 4px 5px 31px 11px #999;
box-shadow: 4px 5px 31px 11px #999;
-moz-transform: rotate(-4deg);
-webkit-transform: rotate(-4deg);
-ms-transform: rotate(-4deg);
-o-transform: rotate(-4deg);
transform: rotate(-4deg);
}
.error-page-actions:after {
content: '';
display: block;
position: absolute;
z-index: -1;
bottom: 17px;
right: 50px;
width: 200px;
height: 10px;
-moz-box-shadow: 4px 5px 31px 11px #999;
-webkit-box-shadow: 4px 5px 31px 11px #999;
box-shadow: 4px 5px 31px 11px #999;
-moz-transform: rotate(4deg);
-webkit-transform: rotate(4deg);
-ms-transform: rotate(4deg);
-o-transform: rotate(4deg);
transform: rotate(4deg);
}
.error-page-back {
color: #0878df;
cursor: pointer;
}
} }
.base-info{ .base-info {
&-title{ &-title {
font-size: 15px; font-size: 15px;
font-weight: bold; font-weight: bold;
margin-bottom: 20px; margin-bottom: 20px;
&::before{ &::before {
content: "*"; content: '*';
color: red; color: red;
} }
} }
} }
.goods-introduce{ .goods-introduce {
&-title{ &-title {
font-size: 15px; font-size: 15px;
font-weight: bold; font-weight: bold;
margin: 20px 0; margin: 20px 0;
} }
&-content{ &-content {
margin-left: 50px; margin-left: 50px;
} }
} }
......
.other-info{ .other-info {
&-title{ &-title {
font-size: 15px; font-size: 15px;
font-weight: bold; font-weight: bold;
margin: 20px 0; margin: 20px 0;
} }
&-form{ &-form {
margin-left: 50px; margin-left: 50px;
} }
} }
.stock-sku{ .stock-sku {
&-title{ &-title {
font-size: 15px; font-size: 15px;
font-weight: bold; font-weight: bold;
margin: 20px 0; margin: 20px 0;
} }
&-content{ &-content {
margin-left: 50px; margin-left: 50px;
} }
&-operate{ &-operate {
margin-bottom: 10px; margin-bottom: 10px;
} }
} }
.goods-info{ .goods-info {
&-operate{ &-operate {
margin-top: 50px; margin-top: 50px;
display: flex; display: flex;
justify-content: center; justify-content: center;
button{ button {
width: 100px; width: 100px;
height: 40px; height: 40px;
&:first-child{ &:first-child {
margin-right: 50px; margin-right: 50px;
} }
} }
......
.base-info{ .base-info {
&-title{ &-title {
font-size: 15px; font-size: 15px;
font-weight: bold; font-weight: bold;
margin-bottom: 20px; margin-bottom: 20px;
&::before{ &::before {
content: "*"; content: '*';
color: red; color: red;
} }
} }
} }
.goods-introduce{ .goods-introduce {
&-title{ &-title {
font-size: 15px; font-size: 15px;
font-weight: bold; font-weight: bold;
margin: 20px 0; margin: 20px 0;
} }
&-content{ &-content {
margin-left: 50px; margin-left: 50px;
} }
} }
.other-info{ .other-info {
&-title{ &-title {
font-size: 15px; font-size: 15px;
font-weight: bold; font-weight: bold;
margin: 20px 0; margin: 20px 0;
} }
&-form{ &-form {
margin-left: 50px; margin-left: 50px;
} }
} }
.stock-sku{ .stock-sku {
&-title{ &-title {
font-size: 15px; font-size: 15px;
font-weight: bold; font-weight: bold;
margin: 20px 0; margin: 20px 0;
} }
&-content{ &-content {
margin-left: 50px; margin-left: 50px;
} }
&-operate{ &-operate {
margin-bottom: 10px; margin-bottom: 10px;
} }
} }
.rent-info{ .rent-info {
&-operate{ &-operate {
margin-top: 50px; margin-top: 50px;
display: flex; display: flex;
justify-content: center; justify-content: center;
button{ button {
width: 100px; width: 100px;
height: 40px; height: 40px;
&:first-child{ &:first-child {
margin-right: 50px; margin-right: 50px;
} }
} }
......
...@@ -34,7 +34,7 @@ function EquipmentOrderDetail() { ...@@ -34,7 +34,7 @@ function EquipmentOrderDetail() {
}); });
if (res && res.code === '200') { if (res && res.code === '200') {
setOrderDetail(res.result); setOrderDetail(res.result);
console.log('获取订单详情 --->', res.result); // console.log('获取订单详情 --->', res.result);
} }
}; };
// componentDidMount // componentDidMount
......
import { configureStore } from "@reduxjs/toolkit"; import { configureStore } from '@reduxjs/toolkit';
import { Menu } from "./module/menu"; import { Menu } from './module/menu';
import { UserInfo } from "./module/userInfo"; import { UserInfo } from './module/userInfo';
export const store = configureStore({ export const store = configureStore({
reducer: { reducer: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论