From 575c6f0ce61b6fc3c08cecf4911d81c03bf94f45 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Thu, 21 Jul 2022 10:29:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=93=E8=B7=AF=E6=95=B0=E6=8D=AE=E5=BD=95?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/道路/quanju/actions/example.js | 15 ----- .../data/道路/quanju/actions/index.js | 7 --- .../data/道路/quanju/containers/example.js | 53 ---------------- .../quanju/containers/footer/build/index.js | 8 --- .../quanju/containers/footer/build/left.js | 0 .../quanju/containers/footer/build/right.js | 0 .../containers/footer/conserve/index.js | 8 --- .../quanju/containers/footer/guanli/index.js | 8 --- .../道路/quanju/containers/footer/index.js | 29 --------- .../footer/leadership/centerLeft.js | 17 ------ .../footer/leadership/centerRight.js | 19 ------ .../centerRight/center-right-bottom.js | 14 ----- .../centerRight/center-right-center.js | 14 ----- .../centerRight/center-right-centertop.js | 14 ----- .../centerRight/center-right-top.js | 15 ----- .../centerleft/center-left-bottom.js | 14 ----- .../centerleft/center-left-center.js | 16 ----- .../centerleft/center-left-centertop.js | 14 ----- .../leadership/centerleft/center-left-top.js | 15 ----- .../containers/footer/leadership/index.js | 18 ------ .../containers/footer/leadership/left.js | 17 ------ .../footer/leadership/left/left-bottom.js | 14 ----- .../footer/leadership/left/left-center.js | 14 ----- .../footer/leadership/left/left-top.js | 14 ----- .../containers/footer/leadership/right.js | 16 ----- .../footer/leadership/right/right-bottom.js | 14 ----- .../footer/leadership/right/right-center.js | 9 --- .../footer/leadership/right/right-top.js | 13 ---- .../containers/footer/operation/index.js | 8 --- .../道路/quanju/containers/heand/index.js | 40 ------------ .../道路/quanju/containers/heand/style.less | 23 ------- .../data/道路/quanju/containers/index.js | 6 -- .../道路/quanju/containers/public/font.css | 4 -- .../道路/quanju/containers/public/module.js | 22 ------- .../data/道路/quanju/index.js | 15 ----- .../data/道路/quanju/nav-item.js | 16 ----- .../data/道路/quanju/reducers/index.js | 5 -- .../data/道路/quanju/routes.js | 21 ------- .../data/道路/quanju/style.less | 3 - .../工具脚本(无需执行)/dataIn.js | 61 +++++++++++++------ .../工具脚本(无需执行)/index.js | 8 +-- .../道路_数据脚本对应.sql | 4 +- 42 files changed, 47 insertions(+), 598 deletions(-) delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/actions/example.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/actions/index.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/example.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/build/index.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/build/left.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/build/right.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/conserve/index.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/guanli/index.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/index.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerLeft.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-bottom.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-center.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-centertop.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-top.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-bottom.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-center.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-centertop.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-top.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/index.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left/left-bottom.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left/left-center.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left/left-top.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right/right-bottom.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right/right-center.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right/right-top.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/operation/index.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/heand/index.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/heand/style.less delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/index.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/public/font.css delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/public/module.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/index.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/nav-item.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/reducers/index.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/routes.js delete mode 100644 scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/style.less diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/actions/example.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/actions/example.js deleted file mode 100644 index b9b2ffbd..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/actions/example.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -import { basicAction } from '@peace/utils' -import { ApiTable } from '$utils' - -export function getMembers(orgId) { - return dispatch => basicAction({ - type: 'get', - dispatch: dispatch, - actionType: 'GET_MEMBERS', - url: `${ApiTable.getEnterprisesMembers.replace('{enterpriseId}', orgId)}`, - msg: { error: '获取用户列表失败' }, - reducer: { name: 'members' } - }); -} diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/actions/index.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/actions/index.js deleted file mode 100644 index 090c73f2..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/actions/index.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -import * as example from './example' - -export default { - ...example -} \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/example.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/example.js deleted file mode 100644 index d38abe45..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/example.js +++ /dev/null @@ -1,53 +0,0 @@ -import React, { useEffect, useState } from 'react'; -import { connect } from 'react-redux'; -import { Spin, Card } from 'antd'; -import Build from './footer/build' -import '../style.less'; -import Header from './heand'; -import Footer from './footer'; -import ProTable, { TableDropdown } from '@ant-design/pro-table'; - -const Example = (props) => { - const { dispatch, actions, user, loading } = props - const [tabKey, setTabKey] = useState('leadership') - - useEffect(() => { - dispatch(actions.example.getMembers(user.orgId)) - }, []) - const tabChange = (tab) => { - //leader 领导驾驶舱 site 工地 toilet 公厕 light 照明 water水质 encomic经济 environment 生态环境 security 智慧安监 - // setCurrentTab(tab); - setTabKey(tab) - // dispatch({ type: 'TAB-CHANGE', data: tab }) - } - - return ( - -
-
-
-
-
-
-
-
-
- ) -} - -function mapStateToProps(state) { - const { auth, global, members } = state; - return { - loading: members.isRequesting, - user: auth.user, - actions: global.actions, - members: members.data - }; -} - -export default connect(mapStateToProps)(Example); diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/build/index.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/build/index.js deleted file mode 100644 index 1b0f3f0f..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/build/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import React from 'react' - -const Build = () => { - return ( - <>Build - ) -} -export default Build diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/build/left.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/build/left.js deleted file mode 100644 index e69de29b..00000000 diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/build/right.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/build/right.js deleted file mode 100644 index e69de29b..00000000 diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/conserve/index.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/conserve/index.js deleted file mode 100644 index e48f40cb..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/conserve/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import React from 'react' - -const Conserve = () => { - return ( - <>1212121 - ) -} -export default Conserve \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/guanli/index.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/guanli/index.js deleted file mode 100644 index d20e2d29..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/guanli/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import React from 'react' - -const Guanli = () => { - return ( - <>管理 - ) -} -export default Guanli \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/index.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/index.js deleted file mode 100644 index 485c6839..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/index.js +++ /dev/null @@ -1,29 +0,0 @@ -import React from 'react' -import Build from './build' -import Conserve from './conserve' -import Guanli from './guanli' -import Leadership from './leadership' -import Operation from './operation' -const Footer = ({ tabKey }) => { - return ( - <> - { - (() => { - switch (tabKey) { - case 'build': - return - case 'conserve': - return - case "leadership": - return - case "guanli": - return - case "operation": - return - } - })() - } - - ) -} -export default Footer diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerLeft.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerLeft.js deleted file mode 100644 index f5745538..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerLeft.js +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react' -import Centerlefttop from "./centerleft/center-left-top" -import Centerleftcenter from "./centerleft/center-left-center" -import Centerleftcentertop from "./centerleft/center-left-centertop" -import Centerleftbottom from "./centerleft/center-left-bottom" - -const CenterLeft = () => { - return ( - <> -
- - -
- - ) -} -export default CenterLeft \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight.js deleted file mode 100644 index 4fb8cce5..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight.js +++ /dev/null @@ -1,19 +0,0 @@ -import React from 'react' -import Centerrighttop from "./centerRight/center-right-top" -import Centerrightcenter from "./centerRight/center-right-center" -import CenterRightcentertop from "./centerRight/center-right-centertop" -import Centerrightbottom from "./centerRight/center-right-bottom" - -const CenterLeft = () => { - return ( - <> -
- - - - -
- - ) -} -export default CenterLeft \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-bottom.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-bottom.js deleted file mode 100644 index 5a75b55b..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-bottom.js +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react' -import Module from '../../../public/module' - -const Rightbottom = () => { - const style = { height: "33%" } - return ( - <> - -
-
- - ) -} -export default Rightbottom \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-center.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-center.js deleted file mode 100644 index 604b5330..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-center.js +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react' -import Module from '../../../public/module' - -const Rightcenter = () => { - const style = { height: "17%" } - return ( - <> - -
-
- - ) -} -export default Rightcenter \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-centertop.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-centertop.js deleted file mode 100644 index 71e56878..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-centertop.js +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react' -import Module from '../../../public/module' - -const Rightcentertop = () => { - const style = { height: "23%" } - return ( - <> - -
-
- - ) -} -export default Rightcentertop \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-top.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-top.js deleted file mode 100644 index 722a855d..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-top.js +++ /dev/null @@ -1,15 +0,0 @@ -import React from 'react' -import Module from '../../../public/module' - -const Righttop = (props) => { - const { } = props - const style = { height: "17%" } - return ( - <> - -
-
- - ) -} -export default Righttop \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-bottom.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-bottom.js deleted file mode 100644 index cd33b97d..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-bottom.js +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react' -import Module from '../../../public/module' - -const Leftbottom = () => { - const style = { height: "23%", marginTop: "5%" } - return ( - <> - -
-
- - ) -} -export default Leftbottom \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-center.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-center.js deleted file mode 100644 index 08ff5043..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-center.js +++ /dev/null @@ -1,16 +0,0 @@ -import React from 'react' -import Module from '../../../public/module' - -const Leftcenter = () => { - const style = { - height: "23%" - } - return ( - <> - -
-
- - ) -} -export default Leftcenter \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-centertop.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-centertop.js deleted file mode 100644 index 393e3164..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-centertop.js +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react' -import Module from '../../../public/module' - -const Leftcentertop = () => { - const style = { height: "23%" } - return ( - <> - -
-
- - ) -} -export default Leftcentertop \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-top.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-top.js deleted file mode 100644 index 9c7e922c..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-top.js +++ /dev/null @@ -1,15 +0,0 @@ -import React from 'react' -import Module from '../../../public/module' - -const Lefttop = (props) => { - const { } = props - const style = { height: "23%" } - return ( - <> - -
-
- - ) -} -export default Lefttop \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/index.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/index.js deleted file mode 100644 index cbd1980a..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/index.js +++ /dev/null @@ -1,18 +0,0 @@ -import React from 'react' -import Left from './left' -import Right from './right' -import CenterLeft from "./centerLeft" -import Centerright from "./centerRight" - -const Leadership = () => { - return ( - <> - - - - {/* */} - - - ) -} -export default Leadership \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left.js deleted file mode 100644 index 5461c2fc..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left.js +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react' -import Lefttop from './left/left-top' -import Leftcenter from "./left/left-center" -import Leftbottom from './left/left-bottom' - -const Left = () => { - return ( - <> -
- - - -
- - ) -} -export default Left \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left/left-bottom.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left/left-bottom.js deleted file mode 100644 index bd992c86..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left/left-bottom.js +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react' -import Module from '../../../public/module' - -const Leftbottom = () => { - const style = { height: "25%", marginTop: "5%" } - return ( - <> - - - - - ) -} -export default Leftbottom \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left/left-center.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left/left-center.js deleted file mode 100644 index 767e2d38..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left/left-center.js +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react' -import Module from '../../../public/module' - -const Leftcenter = () => { - const style = { height: "30%", marginTop: "5%" } - return ( - <> - -
-
- - ) -} -export default Leftcenter \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left/left-top.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left/left-top.js deleted file mode 100644 index 14af9db5..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left/left-top.js +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react' -import Module from '../../../public/module' - -const Lefttop = () => { - const style = { height: "25%" } - return ( - <> - - {/*
*/} -
- - ) -} -export default Lefttop \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right.js deleted file mode 100644 index d690515f..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right.js +++ /dev/null @@ -1,16 +0,0 @@ -import React from 'react' -import Righttop from './right/right-top' -import Rightcenter from './right/right-center' -import Rightbottom from './right/right-bottom' - -const Right = () => { - return ( - <> -
- - -
- - ) -} -export default Right \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right/right-bottom.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right/right-bottom.js deleted file mode 100644 index f6a8aa24..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right/right-bottom.js +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react' -import Module from '../../../public/module' - -const Rightbottom = () => { - const style = { height: "45%", marginTop: "5%" } - return ( - <> - -
-
- - ) -} -export default Rightbottom \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right/right-center.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right/right-center.js deleted file mode 100644 index 609facf8..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right/right-center.js +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react' - -const Rightcenter = () => { - return ( - <>
-
- ) -} -export default Rightcenter \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right/right-top.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right/right-top.js deleted file mode 100644 index d1955b88..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right/right-top.js +++ /dev/null @@ -1,13 +0,0 @@ -import React from 'react' -import Module from '../../../public/module' - -const Righttop = () => { - const style = { height: "45%" } - return ( - <> - - - - ) -} -export default Righttop \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/operation/index.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/operation/index.js deleted file mode 100644 index c8b81208..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/operation/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import React from 'react' - -const Operation = () => { - return ( - <>运营 - ) -} -export default Operation \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/heand/index.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/heand/index.js deleted file mode 100644 index 339ff20a..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/heand/index.js +++ /dev/null @@ -1,40 +0,0 @@ -import React, { useState, uesEffect } from 'react' -import { push } from 'react-router-redux'; -import "./style.less" -import { Tabs } from 'antd'; - - -const { TabPane } = Tabs; -const Header = (props) => { - const { dispatch, tabChange, tabKey } = props - // const [tab, setTad] = useState("base") - const onClick = (tab) => { - // setTad({ tab }) - tabChange(tab) - } - const dianji = () => { - dispatch(push('/fillion/infor')) - } - return ( -
- -
{ - onClick("build") - }}>建设
-
{ - onClick("conserve") - }}>养护
-
{ - onClick("leadership") - }}>领导驾驶舱
-
{ - onClick("guanli") - }}>管理
-
{ - onClick("operation") - }}>运营
-
dianji()}>南昌县运输交通总局
-
- ) -} -export default Header diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/heand/style.less b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/heand/style.less deleted file mode 100644 index 7beaadfe..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/heand/style.less +++ /dev/null @@ -1,23 +0,0 @@ -.tabKey-map{ - width: 12%; - height: 45px; - text-align: center; - position: absolute; - top: 30px; - a{ - color: #c3d4f5; - line-height: 45px; - } -} -.notabKey{ - width:12%; - height: 45px; - position: absolute; - top: 30px; - text-align: center; - a{ - color: #6593c6; - line-height: 45px; - } - -} \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/index.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/index.js deleted file mode 100644 index a4321ad0..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/index.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -import Example from './example'; -import Build from './footer/build' - -export { Example, Build }; \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/public/font.css b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/public/font.css deleted file mode 100644 index 5a30fb99..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/public/font.css +++ /dev/null @@ -1,4 +0,0 @@ -@font-face { - font-family: "YouSheBiaoTiHei"; - src: url("/assets/fontziti/YouSheBiaoTiHei-2.ttf") format("truetype"); - } \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/public/module.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/public/module.js deleted file mode 100644 index 29682c4e..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/public/module.js +++ /dev/null @@ -1,22 +0,0 @@ -import React from 'react' -import "./font.css" - -const Module = (props) => { - const { style, children, title } = props - return ( - <> -
-
- {/*

{title || []}

*/} - - {title || []} - -
-
- {children} -
-
- - ) -} -export default Module \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/index.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/index.js deleted file mode 100644 index c7296b0c..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/index.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -import reducers from './reducers'; -import routes from './routes'; -import actions from './actions'; -import { getNavItem } from './nav-item'; - -export default { - key: 'example2', - name: '书写示例', - reducers: reducers, - routes: routes, - actions: actions, - getNavItem: getNavItem -}; \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/nav-item.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/nav-item.js deleted file mode 100644 index 74bdd2a2..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/nav-item.js +++ /dev/null @@ -1,16 +0,0 @@ -import React from 'react'; -import { Link } from 'react-router-dom'; -import { Menu } from 'antd'; -import { SettingOutlined } from '@ant-design/icons'; - -const SubMenu = Menu.SubMenu; - -export function getNavItem(user, dispatch) { - return ( - } title={'举个栗子'}> - - 举个棒子2 - - - ); -} \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/reducers/index.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/reducers/index.js deleted file mode 100644 index 7ed10886..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/reducers/index.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -export default { - -} \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/routes.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/routes.js deleted file mode 100644 index cb7dd73a..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/routes.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; -import { Example, Build } from './containers'; - -export default [{ - type: 'outer', - route: { - path: '/quanju', - key: 'quanju', - breadcrumb: '栗子222', - exact: false, - component: Example, - // 不设置 component 则面包屑禁止跳转 - // childRoutes: [{ - // path: '/e2', - // key: 'e2', - // exact: false, - // component: Build, - // breadcrumb: '棒子', - // }] - } -}]; \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/style.less b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/style.less deleted file mode 100644 index 33234528..00000000 --- a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/style.less +++ /dev/null @@ -1,3 +0,0 @@ -#example:hover { - font-size: larger; -} \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/dataIn.js b/scripts/0.0.1/data/工具脚本(无需执行)/dataIn.js index 06c9ef98..0c29e2b2 100644 --- a/scripts/0.0.1/data/工具脚本(无需执行)/dataIn.js +++ b/scripts/0.0.1/data/工具脚本(无需执行)/dataIn.js @@ -9,10 +9,10 @@ try { // 连接数据库 const pool = new Pool({ - user: 'FashionAdmin', - host: '10.8.30.156', - database: 'SmartEmergency', - password: '123456', + user: 'postgres', + host: '10.8.30.32', + database: 'highways4good', + password: '123', port: 5432, }) @@ -56,11 +56,27 @@ try { await client.query('BEGIN') const fileList = [ - { - path: './data/道路/乡道第三方.xls', - n: '道路', - tableName: 'road' - }, + // { + // path: './data/道路/村道第三方.xls', + // n: '道路', + // tableName: 'road', + // defaultKey: ['level'], + // defaultValue: ['村'], + // }, + // { + // path: './data/道路/县道第三方.xls', + // n: '道路', + // tableName: 'road', + // defaultKey: ['level'], + // defaultValue: ['县'], + // }, + // { + // path: './data/道路/乡道第三方.xls', + // n: '道路', + // tableName: 'road', + // defaultKey: ['level'], + // defaultValue: ['乡'], + // }, ] for (let f of fileList) { @@ -70,23 +86,28 @@ try { let firstSheetName = workbook.SheetNames[0]; let worksheet = workbook.Sheets[firstSheetName]; let res = XLSX.utils.sheet_to_json(worksheet); - console.log(res[0]); - const keyMap = require(`./${f.n}_字段对应.json`); - console.log(keyMap); + const keyMap = require(`./${f.n}_数据库表对应.json`); + // console.log(keyMap); for (let d of res) { - let data = {}; + let insertStr = `INSERT INTO "${f.tableName}" (`; + let insertKeys = (f.defaultKey || []).concat([]); + let insertValues = (f.defaultValue || []).concat([]); for (let k in keyMap) { - let v = d[keyMap[k]]; + // 没做判重 + let v = d[k]; if (v) { - if (k == 'name') { - v = await getAnswer(v); - } - data[k] = v; + insertKeys.push(keyMap[k]); + insertValues.push(v); } } - console.log(data); - await client.query(`INSERT INTO ${f.tableName} SET ?`, data); + insertStr += insertKeys.join(',') + ') VALUES ('; + insertStr += insertKeys.map((k, i) => `$${i + 1}`).join(',') + ')'; + // console.log(insertStr, insertValues); + console.log(`插入 ${f.tableName}:${insertStr}`); + await client.query(insertStr, insertValues); + // break; } + // break; } // await client.query('ROLLBACK') diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/index.js b/scripts/0.0.1/data/工具脚本(无需执行)/index.js index 972cee97..ac407ae1 100644 --- a/scripts/0.0.1/data/工具脚本(无需执行)/index.js +++ b/scripts/0.0.1/data/工具脚本(无需执行)/index.js @@ -9,10 +9,10 @@ try { // 连接数据库 const pool = new Pool({ - user: 'FashionAdmin', - host: '10.8.30.156', - database: 'SmartEmergency', - password: '123456', + user: 'postgres', + host: '10.8.30.32', + database: 'highways4good', + password: '123', port: 5432, }) diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/道路_数据脚本对应.sql b/scripts/0.0.1/data/工具脚本(无需执行)/道路_数据脚本对应.sql index 5b8392bb..c903d9f1 100644 --- a/scripts/0.0.1/data/工具脚本(无需执行)/道路_数据脚本对应.sql +++ b/scripts/0.0.1/data/工具脚本(无需执行)/道路_数据脚本对应.sql @@ -32,8 +32,8 @@ ON column road.Urban_Management_Section_Or_Not is '是否城管路段'; alter TA ON column road.Management_And_Maintenance_Unit is '管养单位'; alter TABLE road add Road_Administration_Unit varchar(1024); comment ON column road.Road_Administration_Unit is '路政管理单位'; alter TABLE road add Alimentation varchar(1024); comment ON column road.Alimentation is '列养情况'; alter TABLE road add Source_Of_Listed_Maintenance_Funds varchar(1024); comment -ON column road.Source_Of_Listed_Maintenance_Funds is '列养资金来源'; alter TABLE road add Curing_Time_ varchar(1024); comment -ON column road.Curing_Time_ is '养护时间'; alter TABLE road add Greening_Mileage varchar(1024); comment +ON column road.Source_Of_Listed_Maintenance_Funds is '列养资金来源'; alter TABLE road add Curing_Time varchar(1024); comment +ON column road.Curing_Time is '养护时间'; alter TABLE road add Greening_Mileage varchar(1024); comment ON column road.Greening_Mileage is '可绿化里程'; alter TABLE road add Greening_Mileaged varchar(1024); comment ON column road.Greening_Mileaged is '已绿化里程'; alter TABLE road add Type_Of_Repeated_Road_Section varchar(1024); comment ON column road.Type_Of_Repeated_Road_Section is '重复道路路段类型'; alter TABLE road add Serial_Number_Of_Repeated_Section varchar(1024); comment