Commit c6f777e8 authored by 陈帅's avatar 陈帅

fix tslint error

parent 4b28cfb9
...@@ -29,7 +29,7 @@ export interface INotice { ...@@ -29,7 +29,7 @@ export interface INotice {
memberLink: string; memberLink: string;
} }
export interface currentuser { export interface CurrentUser {
name: string; name: string;
avatar: string; avatar: string;
userid: string; userid: string;
......
...@@ -29,7 +29,7 @@ export interface INotice { ...@@ -29,7 +29,7 @@ export interface INotice {
memberLink: string; memberLink: string;
} }
export interface currentuser { export interface CurrentUser {
name: string; name: string;
avatar: string; avatar: string;
userid: string; userid: string;
......
export interface ivisitdata { export interface IVisitData {
x: string; x: string;
y: number; y: number;
} }
export interface ivisitdata2 { export interface IVisitData2 {
x: string; x: string;
y: number; y: number;
} }
export interface isalesdata { export interface ISalesData {
x: string; x: string;
y: number; y: number;
} }
export interface isearchdata { export interface ISearchData {
index: number; index: number;
keyword: string; keyword: string;
count: number; count: number;
...@@ -21,39 +21,39 @@ export interface isearchdata { ...@@ -21,39 +21,39 @@ export interface isearchdata {
status: number; status: number;
} }
export interface iofflinedata { export interface IOfflineData {
name: string; name: string;
cvr: number; cvr: number;
} }
export interface iofflinechartdata { export interface IOfflineChartData {
x: any; x: any;
y1: number; y1: number;
y2: number; y2: number;
} }
export interface isalestypedata { export interface ISalesTypeData {
x: string; x: string;
y: number; y: number;
} }
export interface isalestypedataonline { export interface ISalesTypeDataOnline {
x: string; x: string;
y: number; y: number;
} }
export interface isalestypedataoffline { export interface ISalesTypeDataOffline {
x: string; x: string;
y: number; y: number;
} }
export interface iradardata { export interface IRadarData {
name: string; name: string;
label: string; label: string;
value: number; value: number;
} }
export interface ianalysisdata { export interface IAnalysisData {
visitData: IVisitData[]; visitData: IVisitData[];
visitData2: IVisitData2[]; visitData2: IVisitData2[];
salesData: ISalesData[]; salesData: ISalesData[];
......
export interface itag { export interface ITag {
key: string; key: string;
label: string; label: string;
} }
export interface iprovince { export interface IProvince {
label: string; label: string;
key: string; key: string;
} }
export interface icity { export interface ICity {
label: string; label: string;
key: string; key: string;
} }
export interface geographic { export interface IGeographic {
province: IProvince; province: IProvince;
city: ICity; city: ICity;
} }
export interface inotice { export interface INotice {
id: string; id: string;
title: string; title: string;
logo: string; logo: string;
...@@ -29,7 +29,7 @@ export interface inotice { ...@@ -29,7 +29,7 @@ export interface inotice {
memberLink: string; memberLink: string;
} }
export interface icurrentuser { export interface ICurrentUser {
name: string; name: string;
avatar: string; avatar: string;
userid: string; userid: string;
...@@ -42,18 +42,17 @@ export interface icurrentuser { ...@@ -42,18 +42,17 @@ export interface icurrentuser {
notifyCount: number; notifyCount: number;
unreadCount: number; unreadCount: number;
country: string; country: string;
geographic: Geographic; geographic: IGeographic;
address: string; address: string;
phone: string; phone: string;
} }
export interface IMember {
export interface imember {
avatar: string; avatar: string;
name: string; name: string;
id: string; id: string;
} }
export interface iactivities { export interface IActivities {
id: string; id: string;
updatedAt: string; updatedAt: string;
user: { user: {
...@@ -72,7 +71,7 @@ export interface iactivities { ...@@ -72,7 +71,7 @@ export interface iactivities {
template: string; template: string;
} }
export interface iradardata { export interface IRadarData {
label: string; label: string;
name: string; name: string;
value: number; value: number;
......
import React from 'react'; import React from 'EditorFlow/node_modules/_@types_react@16.8.18@@types/react';
import { Card } from 'antd'; import { Card } from 'EditorFlow/node_modules/_antd@3.18.2@antd/lib';
import { ItemPanel, Item } from 'gg-editor'; import { ItemPanel, Item } from 'gg-editor';
import styles from './index.less'; import styles from './index.less';
......
import React from 'react'; import React from 'react';
import { RouteContext } from '@ant-design/pro-layout'; import { RouteContext, GridContent } from '@ant-design/pro-layout';
import { PageHeader, Tabs, Typography } from 'antd'; import { PageHeader, Tabs, Typography } from 'antd';
import styles from './index.less'; import styles from './index.less';
import { GridContent } from '@ant-design/pro-layout';
import { TabsProps } from 'antd/lib/tabs'; import { TabsProps } from 'antd/lib/tabs';
interface IPageHeaderTabConfig { interface IPageHeaderTabConfig {
tabList?: Array<{ tabList?: Array<{
......
import React from 'react'; import React from 'EditorFlow/node_modules/_@types_react@16.8.18@@types/react';
import { Row, Col } from 'antd'; import { Row, Col } from 'EditorFlow/node_modules/_antd@3.18.2@antd/lib';
import GGEditor, { Flow } from 'gg-editor'; import GGEditor, { Flow } from 'gg-editor';
import EditorMinimap from './components/EditorMinimap'; import EditorMinimap from './components/EditorMinimap';
import { FlowContextMenu } from './components/EditorContextMenu'; import { FlowContextMenu } from './components/EditorContextMenu';
......
export interface member { export interface Member {
avatar: string; avatar: string;
name: string; name: string;
id: string; id: string;
} }
export interface listitemdatatype { export interface ListItemDataType {
id: string; id: string;
owner: string; owner: string;
title: string; title: string;
......
export interface member { export interface Member {
avatar: string; avatar: string;
name: string; name: string;
id: string; id: string;
} }
export interface listitemdatatype { export interface ListItemDataType {
id: string; id: string;
owner: string; owner: string;
title: string; title: string;
......
export interface tablelistitem { export interface TableListItem {
key: number; key: number;
disabled?: boolean; disabled?: boolean;
href: string; href: string;
...@@ -14,18 +14,18 @@ export interface tablelistitem { ...@@ -14,18 +14,18 @@ export interface tablelistitem {
progress: number; progress: number;
} }
export interface tablelistpagination { export interface TableListPagination {
total: number; total: number;
pageSize: number; pageSize: number;
current: number; current: number;
} }
export interface tablelistdate { export interface TableListDate {
list: TableListItem[]; list: TableListItem[];
pagination: Partial<TableListPagination>; pagination: Partial<TableListPagination>;
} }
export interface tablelistparams { export interface TableListParams {
sorter: string; sorter: string;
status: string; status: string;
name: string; name: string;
......
export interface advancedoperation1 { export interface AdvancedOperation1 {
key: string; key: string;
type: string; type: string;
name: string; name: string;
...@@ -7,7 +7,7 @@ export interface advancedoperation1 { ...@@ -7,7 +7,7 @@ export interface advancedoperation1 {
memo: string; memo: string;
} }
export interface advancedoperation2 { export interface AdvancedOperation2 {
key: string; key: string;
type: string; type: string;
name: string; name: string;
...@@ -16,7 +16,7 @@ export interface advancedoperation2 { ...@@ -16,7 +16,7 @@ export interface advancedoperation2 {
memo: string; memo: string;
} }
export interface advancedoperation3 { export interface AdvancedOperation3 {
key: string; key: string;
type: string; type: string;
name: string; name: string;
...@@ -25,7 +25,7 @@ export interface advancedoperation3 { ...@@ -25,7 +25,7 @@ export interface advancedoperation3 {
memo: string; memo: string;
} }
export interface advancedprofiledata { export interface AdvancedProfileData {
advancedOperation1: AdvancedOperation1[]; advancedOperation1: AdvancedOperation1[];
advancedOperation2: AdvancedOperation2[]; advancedOperation2: AdvancedOperation2[];
advancedOperation3: AdvancedOperation3[]; advancedOperation3: AdvancedOperation3[];
......
export interface basicgood { export interface BasicGood {
id: string; id: string;
name: string; name: string;
barcode: string; barcode: string;
...@@ -7,7 +7,7 @@ export interface basicgood { ...@@ -7,7 +7,7 @@ export interface basicgood {
amount: string | number; amount: string | number;
} }
export interface basicprogress { export interface BasicProgress {
key: string; key: string;
time: string; time: string;
rate: string; rate: string;
...@@ -16,7 +16,7 @@ export interface basicprogress { ...@@ -16,7 +16,7 @@ export interface basicprogress {
cost: string; cost: string;
} }
export interface basicprofiledatatype { export interface BasicProfileDataType {
basicGoods: BasicGood[]; basicGoods: BasicGood[];
basicProgress: BasicProgress[]; basicProgress: BasicProgress[];
} }
...@@ -5,13 +5,12 @@ ...@@ -5,13 +5,12 @@
"lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier", "lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier",
"lint-staged": "lint-staged", "lint-staged": "lint-staged",
"lint-staged:ts": "tslint", "lint-staged:ts": "tslint",
"lint:fix": "npm run tslint:fix && npm run lint:style", "lint:fix": "npm run lint:style",
"lint:prettier": "check-prettier write", "lint:prettier": "check-prettier write",
"lint:style": "stylelint --syntax less --fix **/**.less ", "lint:style": "stylelint --syntax less --fix **/**.less ",
"lint:ts": "tslint -p . -c tslint.yml", "lint:ts": "tslint -p . -c tslint.yml",
"prettier": "node ./_scripts/prettier.js", "prettier": "node ./_scripts/prettier.js",
"tslint": "npm run tslint:fix", "tslint": "npm run tslint:fix"
"tslint:fix": "tslint -p . -c tslint.yml --fix "
}, },
"husky": { "husky": {
"hooks": { "hooks": {
......
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