提交 478c538d 作者: ZhangLingKun

功能:eslint --fix

上级 cbe2f726
// 分页通用接口
export interface PaginationProps {
pageSize: number;
pageNo: number;
pageSize?: number;
pageNo?: number;
}
// 通用返回接口(分页)
......
......@@ -27,11 +27,11 @@ export interface categoryEntity {
// 分类目录
export interface categoryDec {
"id": number,
"directoryName": string,
"pid": null,
"type": number,
directoryType: string
id: number;
directoryName: string;
pid: null;
type: number;
directoryType: string;
}
//分类列表类型
......
......@@ -5,21 +5,22 @@ import { categoryListType, directoryListType } from '~/api/interface/categoryMan
export class CategoryManageAPI {
// 分类目录
static directoryList = (params) => {
return axios.get("pms/classify/directoryList", {
params
return axios.get('pms/classify/directoryList', {
params,
});
}
};
//目录列表不含分页
static getDirectoryList = (params) => {
return axios.get("pms/classify/getDirectoryList", {
params
return axios.get('pms/classify/getDirectoryList', {
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);
};
......@@ -36,7 +37,7 @@ export class CategoryManageAPI {
// 分类列表
static getClassificationList = (data: object): any => {
return axios.post(`/pms/classify/getClassificationList`, data);
}
};
static getCategoryList: categoryListType = (data) => {
return axios.post('/pms/classify/getClassificationList', data);
......@@ -83,9 +84,7 @@ export class CategoryManageAPI {
};
// 分类详情
static getGoodsTypeDetail = (
obj: { id: number },
) => {
static getGoodsTypeDetail = (obj: { id: number }) => {
return axios.get('/pms/classify/getClassifyDetails', { params: obj });
};
......
......@@ -30,8 +30,8 @@
.ant-table-row:nth-child(odd) > td {
background: #fcfcfc;
}
.ant-table-cell-fix-right{
.ant-btn{
.ant-table-cell-fix-right {
.ant-btn {
padding: 0 8px !important;
}
}
......
......@@ -5,7 +5,7 @@
padding: 20px 10px;
border-radius: 5px;
.message-action{
.message-action {
position: absolute;
bottom: 0;
left: 0;
......@@ -48,7 +48,7 @@
width: 32px;
height: 32px;
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%;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
......
......@@ -3,7 +3,8 @@
//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;
height: 50px !important;
}
......
......@@ -26,7 +26,7 @@ import './index.scss';
import events from '~/events';
const Category: FC = (props: any) => {
let location = useLocation();
const location = useLocation();
console.log('location', location);
const navigate = useNavigate();
const baseRef: any = useRef();
......@@ -48,8 +48,8 @@ const Category: FC = (props: any) => {
}
return false;
};
let pathArr = window.location.pathname.split('/');
let type = pathArr.pop(); //分类所属模块id(0:通用分类 1:作业服务分类 2:设备租赁分类 3:飞手培训分类 4:产品商城分类)
const pathArr = window.location.pathname.split('/');
const type = pathArr.pop(); //分类所属模块id(0:通用分类 1:作业服务分类 2:设备租赁分类 3:飞手培训分类 4:产品商城分类)
const columns = [
{
title: '分类名称',
......@@ -272,7 +272,7 @@ const Category: FC = (props: any) => {
//目录列表取到后设置第一个目录为激活状态
useEffect(() => {
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);
handleTabChange(String(key));
}
......
......@@ -66,7 +66,7 @@ const DirectoryManage: FC = (props: any) => {
key: 'type',
align: 'center',
render: (value) => {
let find = typeOptions.find((item) => {
const find = typeOptions.find((item) => {
return item.value == value;
});
return <div>{find?.label}</div>;
......
.error-page{
.error-page {
//body,div,h3,h4,li,ol{margin:0;padding:0}
//body{font:14px/1.5 ‘Microsoft YaHei’,’微软雅黑’,Helvetica,Sans-serif;background:#f0f1f3;}
background: #f0f1f3;display: flex;align-items: center;justify-content: center;
width: 100%;height:100%;
:focus{outline:0}
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}
background: #f0f1f3;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
:focus {
outline: 0;
}
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 h3{font-size:24px;font-weight:400;border-bottom:1px solid #d0d0d0}
.error-page-main h3 strong{font-size:54px;font-weight:400;margin-right:20px}
.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}
.error-page-main h3 {
font-size: 24px;
font-weight: 400;
border-bottom: 1px solid #d0d0d0;
}
.error-page-main h3 strong {
font-size: 54px;
font-weight: 400;
margin-right: 20px;
}
.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{
&-title{
.base-info {
&-title {
font-size: 15px;
font-weight: bold;
margin-bottom: 20px;
&::before{
content: "*";
&::before {
content: '*';
color: red;
}
}
}
.goods-introduce{
&-title{
.goods-introduce {
&-title {
font-size: 15px;
font-weight: bold;
margin: 20px 0;
}
&-content{
&-content {
margin-left: 50px;
}
}
......
.other-info{
&-title{
.other-info {
&-title {
font-size: 15px;
font-weight: bold;
margin: 20px 0;
}
&-form{
&-form {
margin-left: 50px;
}
}
.stock-sku{
&-title{
.stock-sku {
&-title {
font-size: 15px;
font-weight: bold;
margin: 20px 0;
}
&-content{
&-content {
margin-left: 50px;
}
&-operate{
&-operate {
margin-bottom: 10px;
}
}
.goods-info{
&-operate{
.goods-info {
&-operate {
margin-top: 50px;
display: flex;
justify-content: center;
button{
button {
width: 100px;
height: 40px;
&:first-child{
&:first-child {
margin-right: 50px;
}
}
......
.base-info{
&-title{
.base-info {
&-title {
font-size: 15px;
font-weight: bold;
margin-bottom: 20px;
&::before{
content: "*";
&::before {
content: '*';
color: red;
}
}
}
.goods-introduce{
&-title{
.goods-introduce {
&-title {
font-size: 15px;
font-weight: bold;
margin: 20px 0;
}
&-content{
&-content {
margin-left: 50px;
}
}
.other-info{
&-title{
.other-info {
&-title {
font-size: 15px;
font-weight: bold;
margin: 20px 0;
}
&-form{
&-form {
margin-left: 50px;
}
}
.stock-sku{
&-title{
.stock-sku {
&-title {
font-size: 15px;
font-weight: bold;
margin: 20px 0;
}
&-content{
&-content {
margin-left: 50px;
}
&-operate{
&-operate {
margin-bottom: 10px;
}
}
.rent-info{
&-operate{
.rent-info {
&-operate {
margin-top: 50px;
display: flex;
justify-content: center;
button{
button {
width: 100px;
height: 40px;
&:first-child{
&:first-child {
margin-right: 50px;
}
}
......
......@@ -34,7 +34,7 @@ function EquipmentOrderDetail() {
});
if (res && res.code === '200') {
setOrderDetail(res.result);
console.log('获取订单详情 --->', res.result);
// console.log('获取订单详情 --->', res.result);
}
};
// componentDidMount
......
import { configureStore } from "@reduxjs/toolkit";
import { Menu } from "./module/menu";
import { UserInfo } from "./module/userInfo";
import { configureStore } from '@reduxjs/toolkit';
import { Menu } from './module/menu';
import { UserInfo } from './module/userInfo';
export const store = configureStore({
reducer: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论