diff --git a/api/app/lib/controllers/data/road.js b/api/app/lib/controllers/data/road.js new file mode 100644 index 00000000..eb109abb --- /dev/null +++ b/api/app/lib/controllers/data/road.js @@ -0,0 +1,2 @@ +'use strict'; + diff --git a/api/app/lib/models/road.js b/api/app/lib/models/road.js new file mode 100644 index 00000000..4b26044b --- /dev/null +++ b/api/app/lib/models/road.js @@ -0,0 +1,457 @@ +/* eslint-disable*/ +'use strict'; + +module.exports = dc => { + const DataTypes = dc.ORM; + const sequelize = dc.orm; + const Road = sequelize.define("road", { + id: { + type: DataTypes.INTEGER, + allowNull: false, + defaultValue: null, + comment: null, + primaryKey: true, + field: "id", + autoIncrement: true, + unique: "road_id_uindex" + }, + routeName: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "路线名称", + primaryKey: false, + field: "route_name", + autoIncrement: false + }, + routeCode: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "路线代码", + primaryKey: false, + field: "route_code", + autoIncrement: false + }, + sectionNo: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "路段序号", + primaryKey: false, + field: "section_no", + autoIncrement: false + }, + townshipCode: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "乡镇编码", + primaryKey: false, + field: "township_code", + autoIncrement: false + }, + startingPlaceName: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "起点地名", + primaryKey: false, + field: "starting_place_name", + autoIncrement: false + }, + startStation: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "起点桩号", + primaryKey: false, + field: "start_station", + autoIncrement: false + }, + categoryOfStartingPointAndDividingPoint: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "起点分界点类别", + primaryKey: false, + field: "category_of_starting_point_and_dividing_point", + autoIncrement: false + }, + stopPlaceName: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "止点地名", + primaryKey: false, + field: "stop_place_name", + autoIncrement: false + }, + categoryOfDeadCenterAndDividingPoint: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "止点分界点类别", + primaryKey: false, + field: "category_of_dead_center_and_dividing_point", + autoIncrement: false + }, + stopStation: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "止点桩号", + primaryKey: false, + field: "stop_station", + autoIncrement: false + }, + sectionType: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "路段类型", + primaryKey: false, + field: "section_type", + autoIncrement: false + }, + natureOfRoadSection: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "路段性质", + primaryKey: false, + field: "nature_of_road_section", + autoIncrement: false + }, + completionTime: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "建成时间", + primaryKey: false, + field: "completion_time", + autoIncrement: false + }, + gbmAndCivilizedModelRoad: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "GBM及文明样板路", + primaryKey: false, + field: "gbm_and_civilized_model_road", + autoIncrement: false + }, + landforms: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "地貌", + primaryKey: false, + field: "landforms", + autoIncrement: false + }, + natureOfCharges: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "收费性质", + primaryKey: false, + field: "nature_of_charges", + autoIncrement: false + }, + numberOfCulverts: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "涵洞数量", + primaryKey: false, + field: "number_of_culverts", + autoIncrement: false + }, + technicalLevel: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "技术等级", + primaryKey: false, + field: "technical_level", + autoIncrement: false + }, + pavementType: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "路面类型", + primaryKey: false, + field: "pavement_type", + autoIncrement: false + }, + pavementWidth: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "路面宽度", + primaryKey: false, + field: "pavement_width", + autoIncrement: false + }, + subgradeWidth: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "路基宽度", + primaryKey: false, + field: "subgrade_width", + autoIncrement: false + }, + laneCharacteristics: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "车道特征", + primaryKey: false, + field: "lane_characteristics", + autoIncrement: false + }, + whetherItIsOpenToTrafficInSunnyOrRainyDays: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "是否晴雨通车", + primaryKey: false, + field: "whether_it_is_open_to_traffic_in_sunny_or_rainy_days", + autoIncrement: false + }, + designSpeedPerHour: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "设计时速", + primaryKey: false, + field: "design_speed_per_hour", + autoIncrement: false + }, + urbanManagementSectionOrNot: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "是否城管路段", + primaryKey: false, + field: "urban_management_section_or_not", + autoIncrement: false + }, + managementAndMaintenanceUnit: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "管养单位", + primaryKey: false, + field: "management_and_maintenance_unit", + autoIncrement: false + }, + roadAdministrationUnit: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "路政管理单位", + primaryKey: false, + field: "road_administration_unit", + autoIncrement: false + }, + alimentation: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "列养情况", + primaryKey: false, + field: "alimentation", + autoIncrement: false + }, + sourceOfListedMaintenanceFunds: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "列养资金来源", + primaryKey: false, + field: "source_of_listed_maintenance_funds", + autoIncrement: false + }, + curingTime: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "养护时间", + primaryKey: false, + field: "curing_time_", + autoIncrement: false + }, + greeningMileage: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "可绿化里程", + primaryKey: false, + field: "greening_mileage", + autoIncrement: false + }, + greeningMileaged: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "已绿化里程", + primaryKey: false, + field: "greening_mileaged", + autoIncrement: false + }, + typeOfRepeatedRoadSection: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "重复道路路段类型", + primaryKey: false, + field: "type_of_repeated_road_section", + autoIncrement: false + }, + serialNumberOfRepeatedSection: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "重复路段序号", + primaryKey: false, + field: "serial_number_of_repeated_section", + autoIncrement: false + }, + repeatedSectionRouteCode: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "重复路段路线编码", + primaryKey: false, + field: "repeated_section_route_code", + autoIncrement: false + }, + reportingUnit: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "填报单位", + primaryKey: false, + field: "reporting_unit", + autoIncrement: false + }, + reasonForChange: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "变更原因", + primaryKey: false, + field: "reason_for_change", + autoIncrement: false + }, + changeTime: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "变更时间", + primaryKey: false, + field: "change_time", + autoIncrement: false + }, + whetherMaintenanceManagedHighway: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "是否按干线公路管理接养", + primaryKey: false, + field: "whether_maintenance_managed_highway", + autoIncrement: false + }, + remarks: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "备注", + primaryKey: false, + field: "remarks", + autoIncrement: false + }, + routeCodeOfLastYear: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "上年路线编码", + primaryKey: false, + field: "route_code_of_last_year", + autoIncrement: false + }, + routeNameOfLastYear: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "上年路线名称", + primaryKey: false, + field: "route_name_of_last_year", + autoIncrement: false + }, + startingStationOfLastYear: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "上年起点桩号", + primaryKey: false, + field: "starting_station_of_last_year", + autoIncrement: false + }, + lastYearsEndingPointStakeNumber: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "上年止点桩号", + primaryKey: false, + field: "last_years_ending_point_stake_number", + autoIncrement: false + }, + graphicMileage: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "图形里程", + primaryKey: false, + field: "graphic_mileage", + autoIncrement: false + }, + chainageMileage: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "桩号里程", + primaryKey: false, + field: "chainage_mileage", + autoIncrement: false + }, + districtcounty: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "所在区县", + primaryKey: false, + field: "districtcounty", + autoIncrement: false + }, + locationCity: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: null, + comment: "所在地市", + primaryKey: false, + field: "location_city", + autoIncrement: false + } + }, { + tableName: "road", + comment: "", + indexes: [] + }); + dc.models.Road = Road; + return Road; +}; \ No newline at end of file diff --git a/api/log/development.log b/api/log/development.log index 59c90e16..79297b2f 100644 --- a/api/log/development.log +++ b/api/log/development.log @@ -7528,3 +7528,9 @@ 2022-07-19 15:47:51.340 - debug: [FS-LOGGER] Init. 2022-07-19 15:47:51.401 - info: [FS-ATTACHMENT] Inject attachment mw into router. 2022-07-19 15:47:51.401 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-20 09:51:45.661 - debug: [FS-LOGGER] Init. +2022-07-20 09:51:49.127 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-20 09:51:49.128 - info: [FS-AUTH] Inject auth and api mv into router. +2022-07-20 15:29:10.116 - debug: [FS-LOGGER] Init. +2022-07-20 15:29:10.195 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-07-20 15:29:10.195 - info: [FS-AUTH] Inject auth and api mv into router. diff --git a/api/sequelize-automate.config.js b/api/sequelize-automate.config.js index edec7df5..a77aeb8d 100644 --- a/api/sequelize-automate.config.js +++ b/api/sequelize-automate.config.js @@ -26,7 +26,7 @@ module.exports = { dir: './app/lib/models', // 指定输出 models 文件的目录 typesDir: 'models', // 指定输出 TypeScript 类型定义的文件目录,只有 TypeScript / Midway 等会有类型定义 emptyDir: false, // !!! 谨慎操作 生成 models 之前是否清空 `dir` 以及 `typesDir` - tables: null, // 指定生成哪些表的 models,如 ['user', 'user_post'];如果为 null,则忽略改属性 + tables: ['road'], // 指定生成哪些表的 models,如 ['user', 'user_post'];如果为 null,则忽略改属性 skipTables: ['user', 'department', 'user_token'], // 指定跳过哪些表的 models,如 ['user'];如果为 null,则忽略改属性 tsNoCheck: false, // 是否添加 `@ts-nocheck` 注释到 models 文件中 ignorePrefix: [], // 生成的模型名称忽略的前缀,因为 项目中有以下表名是以 t_ 开头的,在实际模型中不需要, 可以添加多个 [ 't_data_', 't_',] ,长度较长的 前缀放前面 diff --git a/scripts/1_update_user_data.sql b/scripts/0.0.1/data/1_update_user_data.sql similarity index 100% rename from scripts/1_update_user_data.sql rename to scripts/0.0.1/data/1_update_user_data.sql diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/.vscode/launch.json b/scripts/0.0.1/data/工具脚本(无需执行)/.vscode/launch.json new file mode 100644 index 00000000..3a3fcba2 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + // 使用 IntelliSense 了解相关属性。 + // 悬停以查看现有属性的描述。 + // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "启动程序", + "skipFiles": [ + "/**" + ], + "program": "${workspaceFolder}\\index.js" + } + ] +} \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/actions/example.js b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/actions/example.js new file mode 100644 index 00000000..b9b2ffbd --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/actions/example.js @@ -0,0 +1,15 @@ +'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 new file mode 100644 index 00000000..090c73f2 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/actions/index.js @@ -0,0 +1,7 @@ +'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 new file mode 100644 index 00000000..d38abe45 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/example.js @@ -0,0 +1,53 @@ +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 new file mode 100644 index 00000000..1b0f3f0f --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/build/index.js @@ -0,0 +1,8 @@ +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 new file mode 100644 index 00000000..e69de29b 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 new file mode 100644 index 00000000..e69de29b 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 new file mode 100644 index 00000000..e48f40cb --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/conserve/index.js @@ -0,0 +1,8 @@ +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 new file mode 100644 index 00000000..d20e2d29 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/guanli/index.js @@ -0,0 +1,8 @@ +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 new file mode 100644 index 00000000..485c6839 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/index.js @@ -0,0 +1,29 @@ +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 new file mode 100644 index 00000000..f5745538 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerLeft.js @@ -0,0 +1,17 @@ +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 new file mode 100644 index 00000000..4fb8cce5 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight.js @@ -0,0 +1,19 @@ +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 new file mode 100644 index 00000000..5a75b55b --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-bottom.js @@ -0,0 +1,14 @@ +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 new file mode 100644 index 00000000..604b5330 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-center.js @@ -0,0 +1,14 @@ +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 new file mode 100644 index 00000000..71e56878 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-centertop.js @@ -0,0 +1,14 @@ +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 new file mode 100644 index 00000000..722a855d --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerRight/center-right-top.js @@ -0,0 +1,15 @@ +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 new file mode 100644 index 00000000..cd33b97d --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-bottom.js @@ -0,0 +1,14 @@ +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 new file mode 100644 index 00000000..08ff5043 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-center.js @@ -0,0 +1,16 @@ +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 new file mode 100644 index 00000000..393e3164 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-centertop.js @@ -0,0 +1,14 @@ +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 new file mode 100644 index 00000000..9c7e922c --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/centerleft/center-left-top.js @@ -0,0 +1,15 @@ +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 new file mode 100644 index 00000000..cbd1980a --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/index.js @@ -0,0 +1,18 @@ +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 new file mode 100644 index 00000000..5461c2fc --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left.js @@ -0,0 +1,17 @@ +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 new file mode 100644 index 00000000..bd992c86 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left/left-bottom.js @@ -0,0 +1,14 @@ +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 new file mode 100644 index 00000000..767e2d38 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left/left-center.js @@ -0,0 +1,14 @@ +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 new file mode 100644 index 00000000..14af9db5 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/left/left-top.js @@ -0,0 +1,14 @@ +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 new file mode 100644 index 00000000..d690515f --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right.js @@ -0,0 +1,16 @@ +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 new file mode 100644 index 00000000..f6a8aa24 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right/right-bottom.js @@ -0,0 +1,14 @@ +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 new file mode 100644 index 00000000..609facf8 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right/right-center.js @@ -0,0 +1,9 @@ +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 new file mode 100644 index 00000000..d1955b88 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/leadership/right/right-top.js @@ -0,0 +1,13 @@ +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 new file mode 100644 index 00000000..c8b81208 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/footer/operation/index.js @@ -0,0 +1,8 @@ +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 new file mode 100644 index 00000000..339ff20a --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/heand/index.js @@ -0,0 +1,40 @@ +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 new file mode 100644 index 00000000..7beaadfe --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/heand/style.less @@ -0,0 +1,23 @@ +.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 new file mode 100644 index 00000000..a4321ad0 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/index.js @@ -0,0 +1,6 @@ +'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 new file mode 100644 index 00000000..5a30fb99 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/public/font.css @@ -0,0 +1,4 @@ +@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 new file mode 100644 index 00000000..29682c4e --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/containers/public/module.js @@ -0,0 +1,22 @@ +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 new file mode 100644 index 00000000..c7296b0c --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/index.js @@ -0,0 +1,15 @@ +'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 new file mode 100644 index 00000000..74bdd2a2 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/nav-item.js @@ -0,0 +1,16 @@ +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 new file mode 100644 index 00000000..7ed10886 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/reducers/index.js @@ -0,0 +1,5 @@ +'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 new file mode 100644 index 00000000..cb7dd73a --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/routes.js @@ -0,0 +1,21 @@ +'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 new file mode 100644 index 00000000..33234528 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/quanju/style.less @@ -0,0 +1,3 @@ +#example:hover { + font-size: larger; +} \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/乡道第三方.xls b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/乡道第三方.xls new file mode 100644 index 00000000..577906e9 Binary files /dev/null and b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/乡道第三方.xls differ diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/县道第三方.xls b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/县道第三方.xls new file mode 100644 index 00000000..0e3a1aa7 Binary files /dev/null and b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/县道第三方.xls differ diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/村道第三方.xls b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/村道第三方.xls new file mode 100644 index 00000000..9a7dc066 Binary files /dev/null and b/scripts/0.0.1/data/工具脚本(无需执行)/data/道路/村道第三方.xls differ diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/index.js b/scripts/0.0.1/data/工具脚本(无需执行)/index.js new file mode 100644 index 00000000..fe631f25 --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/index.js @@ -0,0 +1,126 @@ +try { + const { Pool, Client } = require('pg') + const request = require('superagent'); + const Hex = require('crypto-js/enc-hex'); + const MD5 = require('crypto-js/md5'); + const XLSX = require('xlsx') + const path = require('path') + const fs = require("fs"); + + // 连接数据库 + const pool = new Pool({ + user: 'FashionAdmin', + host: '10.8.30.156', + database: 'SmartEmergency', + password: '123456', + port: 5432, + }) + + let appid = '20200917000567738'; + let key = 'xXm4jsuuD38JIkkhEcK6'; + const getAnswer = async (query) => { + let start = (new Date()).getTime(); + let salt = start; + let str1 = appid + query + salt + key; + let sign = Hex.stringify(MD5(str1)); + console.log(`翻译:${query}`); + let answer = await request.get('http://api.fanyi.baidu.com/api/trans/vip/translate').timeout(1000 * 30).query({ + q: query, + appid: appid, + salt: salt, + from: 'zh', + to: 'en', + sign: sign + }); + if (answer.body.error_code) { + console.warn(answer.body); + throw '百度不给力,快快debug' + } + let rslt = answer.body.trans_result; + // let upperCaseRslt = rslt[0].dst.toLowerCase().replace(/( |^)[a-z]/g, (L) => L.toUpperCase()).replace(/ /g, ''); + // let upperCaseRslt = rslt[0].dst.toUpperCase().replace(/ /g, '_'); + // let upperCaseRslt = rslt[0].dst.toLowerCase().replace(/ /g, '_'); + let upperCaseRslt = rslt[0].dst.replace(/\//g, ' ').replace(/'/g, '').replace(/\s{2,}/g, ''); + console.log(`翻译结果:${upperCaseRslt}`); + while (((new Date()).getTime() - start) < (1000 / 8)) {//每s只能调用10次 + continue; + } + return upperCaseRslt + } + + const fun = async () => { + // note: we don't try/catch this because if connecting throws an exception + // we don't need to dispose of the client (it will be undefined) + const client = await pool.connect() + try { + await client.query('BEGIN') + + const fileList = [ + // { + // path: './data/道路/乡道第三方.xls', + // n: '道路', + // tableName: 'road' + // }, + ] + + for (let f of fileList) { + console.log(`读取 ${f.path}`); + // 读取数据文件 + let workbook = XLSX.readFile(path.join(__dirname, f.path)) + let firstSheetName = workbook.SheetNames[0]; + let worksheet = workbook.Sheets[firstSheetName]; + let res = XLSX.utils.sheet_to_json(worksheet); + console.log(res[0]); + let dataEx = res[0]; + transResult = '' + sql = ` + -- ${f.n} + create table if not exists "${f.tableName}" + ( + id serial not null + ); + + create unique index if not exists ${f.tableName}_id_uindex + on ${f.tableName} (id); + + alter table ${f.tableName} + add constraint ${f.tableName}_pk + primary key (id); + ` + let upperEngTArr = [] + for (let t in dataEx) { + const engT = await getAnswer(t); + let upperEngT = engT + .replace(/( |^)[a-z]/g, (L) => L.toUpperCase()) + .replace(/ /g, '_') + + transResult += `"${t}" : "${upperEngT + .replace(/_/g, '') + .replace(/( |^)[A-Z]/g, (L) => L.toLowerCase()) + }", \n + ` + sql += ` + alter table ${f.tableName} add ${upperEngT} varchar(1024); + comment on column ${f.tableName}.${upperEngT} is '${t}'; + ` + } + fs.writeFileSync(`${f.n}_字段对应.json`, `{${transResult}}`, 'utf-8'); + // fs.writeFileSync(`${f.n}_数据脚本对应.sql`, sql, 'utf-8'); + } + + // await client.query('ROLLBACK') + await client.query('COMMIT') + console.log('执行完毕~') + } catch (e) { + await client.query('ROLLBACK') + console.log('执行错误~') + throw e + } finally { + client.release(); + } + } + + fun() +} catch (error) { + console.error(error) +} diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/package.json b/scripts/0.0.1/data/工具脚本(无需执行)/package.json new file mode 100644 index 00000000..5bcaed1a --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/package.json @@ -0,0 +1,18 @@ +{ + "name": "appkey-generator", + "version": "1.0.0", + "description": "tool", + "main": "index.js", + "scripts": { + "test": "mocha", + "start": "set NODE_ENV=development&&node index" + }, + "author": "liu", + "license": "ISC", + "dependencies": { + "crypto-js": "^4.1.1", + "pg": "^7.18.2", + "superagent": "^8.0.0", + "xlsx": "^0.17.1" + } +} diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/道路_字段对应.json b/scripts/0.0.1/data/工具脚本(无需执行)/道路_字段对应.json new file mode 100644 index 00000000..0fb97a7f --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/道路_字段对应.json @@ -0,0 +1,50 @@ +{ + "路线名称": "routeName", + "路线代码": "routeCode", + "路段序号": "sectionNo", + "乡镇编码": "townshipCode", + "起点地名": "startingPlaceName", + "起点桩号": "startStation", + "起点分界点类别": "categoryOfStartingPointAndDividingPoint", + "止点地名": "stopPlaceName", + "止点分界点类别": "categoryOfDeadCenterAndDividingPoint", + "止点桩号": "stopStation", + "路段类型": "sectionType", + "路段性质": "natureOfRoadSection", + "建成时间": "completionTime", + "GBM及文明样板路": "gBMAndCivilizedModelRoad", + "地貌": "landforms", + "收费性质": "natureOfCharges", + "涵洞数量": "numberOfCulverts", + "技术等级": "technicalLevel", + "路面类型": "pavementType", + "路面宽度": "pavementWidth", + "路基宽度": "subgradeWidth", + "车道特征": "laneCharacteristics", + "是否晴雨通车": "whetherItIsOpenToTrafficInSunnyOrRainyDays", + "设计时速": "designSpeedPerHour", + "是否城管路段": "urbanManagementSectionOrNot", + "管养单位": "managementAndMaintenanceUnit", + "路政管理单位": "roadAdministrationUnit", + "列养情况": "alimentation", + "列养资金来源": "sourceOfListedMaintenanceFunds", + "养护时间": "curingTime", + "可绿化里程": "greeningMileage", + "已绿化里程": "greeningMileaged", + "重复道路路段类型": "typeOfRepeatedRoadSection", + "重复路段序号": "serialNumberOfRepeatedSection", + "重复路段路线编码": "repeatedSectionRouteCode", + "填报单位": "reportingUnit", + "变更原因": "reasonForChange", + "变更时间": "changeTime", + "是否按干线公路管理接养": "whetherMaintenanceManagedHighway", + "备注": "remarks", + "上年路线编码": "routeCodeOfLastYear", + "上年路线名称": "routeNameOfLastYear", + "上年起点桩号": "startingStationOfLastYear", + "上年止点桩号": "lastYearsEndingPointStakeNumber", + "图形里程": "graphicMileage", + "桩号里程": "chainageMileage", + "所在区县": "districtcounty", + "所在地市": "locationCity" +} \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/道路_数据脚本对应.sql b/scripts/0.0.1/data/工具脚本(无需执行)/道路_数据脚本对应.sql new file mode 100644 index 00000000..5b8392bb --- /dev/null +++ b/scripts/0.0.1/data/工具脚本(无需执行)/道路_数据脚本对应.sql @@ -0,0 +1,54 @@ +-- 道路 + +CREATE TABLE if not exists "road" ( id serial not null ); + +CREATE unique index if not exists road_id_uindex +ON road (id); alter TABLE road add constraint road_pk primary key (id); alter TABLE road add Route_Name varchar(1024); comment +ON column road.Route_Name is '路线名称'; alter TABLE road add Route_Code varchar(1024); comment +ON column road.Route_Code is '路线代码'; alter TABLE road add Section_No varchar(1024); comment +ON column road.Section_No is '路段序号'; alter TABLE road add Township_Code varchar(1024); comment +ON column road.Township_Code is '乡镇编码'; alter TABLE road add Starting_Place_Name varchar(1024); comment +ON column road.Starting_Place_Name is '起点地名'; alter TABLE road add Start_Station varchar(1024); comment +ON column road.Start_Station is '起点桩号'; alter TABLE road add Category_Of_Starting_Point_And_Dividing_Point varchar(1024); comment +ON column road.Category_Of_Starting_Point_And_Dividing_Point is '起点分界点类别'; alter TABLE road add Stop_Place_Name varchar(1024); comment +ON column road.Stop_Place_Name is '止点地名'; alter TABLE road add Category_Of_Dead_Center_And_Dividing_Point varchar(1024); comment +ON column road.Category_Of_Dead_Center_And_Dividing_Point is '止点分界点类别'; alter TABLE road add Stop_Station varchar(1024); comment +ON column road.Stop_Station is '止点桩号'; alter TABLE road add Section_Type varchar(1024); comment +ON column road.Section_Type is '路段类型'; alter TABLE road add Nature_Of_Road_Section varchar(1024); comment +ON column road.Nature_Of_Road_Section is '路段性质'; alter TABLE road add Completion_Time varchar(1024); comment +ON column road.Completion_Time is '建成时间'; alter TABLE road add GBM_And_Civilized_Model_Road varchar(1024); comment +ON column road.GBM_And_Civilized_Model_Road is 'GBM及文明样板路'; alter TABLE road add Landforms varchar(1024); comment +ON column road.Landforms is '地貌'; alter TABLE road add Nature_Of_Charges varchar(1024); comment +ON column road.Nature_Of_Charges is '收费性质'; alter TABLE road add Number_Of_Culverts varchar(1024); comment +ON column road.Number_Of_Culverts is '涵洞数量'; alter TABLE road add Technical_Level varchar(1024); comment +ON column road.Technical_Level is '技术等级'; alter TABLE road add Pavement_Type varchar(1024); comment +ON column road.Pavement_Type is '路面类型'; alter TABLE road add Pavement_Width varchar(1024); comment +ON column road.Pavement_Width is '路面宽度'; alter TABLE road add Subgrade_Width varchar(1024); comment +ON column road.Subgrade_Width is '路基宽度'; alter TABLE road add Lane_Characteristics varchar(1024); comment +ON column road.Lane_Characteristics is '车道特征'; alter TABLE road add Whether_It_Is_Open_To_Traffic_In_Sunny_Or_Rainy_Days varchar(1024); comment +ON column road.Whether_It_Is_Open_To_Traffic_In_Sunny_Or_Rainy_Days is '是否晴雨通车'; alter TABLE road add Design_Speed_Per_Hour varchar(1024); comment +ON column road.Design_Speed_Per_Hour is '设计时速'; alter TABLE road add Urban_Management_Section_Or_Not varchar(1024); comment +ON column road.Urban_Management_Section_Or_Not is '是否城管路段'; alter TABLE road add Management_And_Maintenance_Unit varchar(1024); comment +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.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 +ON column road.Serial_Number_Of_Repeated_Section is '重复路段序号'; alter TABLE road add Repeated_Section_Route_Code varchar(1024); comment +ON column road.Repeated_Section_Route_Code is '重复路段路线编码'; alter TABLE road add Reporting_Unit varchar(1024); comment +ON column road.Reporting_Unit is '填报单位'; alter TABLE road add Reason_For_Change varchar(1024); comment +ON column road.Reason_For_Change is '变更原因'; alter TABLE road add Change_Time varchar(1024); comment +ON column road.Change_Time is '变更时间'; alter TABLE road add Whether_Maintenance_Managed_Highway varchar(1024); comment +ON column road.Whether_Maintenance_Managed_Highway is '是否按干线公路管理接养'; alter TABLE road add Remarks varchar(1024); comment +ON column road.Remarks is '备注'; alter TABLE road add Route_Code_Of_Last_Year varchar(1024); comment +ON column road.Route_Code_Of_Last_Year is '上年路线编码'; alter TABLE road add Route_Name_Of_Last_Year varchar(1024); comment +ON column road.Route_Name_Of_Last_Year is '上年路线名称'; alter TABLE road add Starting_Station_Of_Last_Year varchar(1024); comment +ON column road.Starting_Station_Of_Last_Year is '上年起点桩号'; alter TABLE road add Last_Years_Ending_Point_Stake_Number varchar(1024); comment +ON column road.Last_Years_Ending_Point_Stake_Number is '上年止点桩号'; alter TABLE road add Graphic_Mileage varchar(1024); comment +ON column road.Graphic_Mileage is '图形里程'; alter TABLE road add Chainage_Mileage varchar(1024); comment +ON column road.Chainage_Mileage is '桩号里程'; alter TABLE road add Districtcounty varchar(1024); comment +ON column road.Districtcounty is '所在区县'; alter TABLE road add Location_City varchar(1024); comment +ON column road.Location_City is '所在地市'; \ No newline at end of file