Commit acda59ca authored by ninglx's avatar ninglx

效率评价查询时间配置 readme更新 注释暂不涉及模块的打包构建

parent 45fc82de
# holo-web
## `node` 版本为 `16.20.0`
### 项目目录介绍
1. `build-tools`
* 打包构建工具,负责整合 `cdn` && `login` && `wj-manage-web` 模块
* 在此目录下执行 `npm build-dist` 即可打包所有模块
* 在此目录下执行 `npm build` 即可打包所有模块到 `build-tools``dist` 目录下
2. `cdn`
* `js/css/img/font` 项目部分引用静态资源目录模块
3. `login`
* 项目登录模块
4. `wj-manage-web`
* 全息模块
5. `wj-smartcity`
* 微观大数据模块
* 辅助决策系统模块
5. `wj-smartcity & wj-data-vision & wj-data-vision-new & wj-developer`
* 其他模块 暂不需要关注
### 启动步骤
1. `node` 版本为 `16.20.0`
2. 在每个模块目录下打开一个终端,并对每个模块执行 `npm i`
3.`build-tools` 目录下执行 `npm run build-dist` 并执行 `npm start` 以提供 `cdn` 静态资源依赖
4. 访问其他模块前,需要先启动 `login` 模块,账号密码为 `dev/123456`
5. 打开其他模块地址进行开发调试
1. 在每个模块目录下打开一个终端,并对每个模块执行 `npm i`
2.`build-tools` 目录下执行 `npm run build` 并执行 `npm start` 以提供 `cdn` 静态资源依赖
3. 访问其他模块前,需要先启动 `login` 模块,账号密码为 `dev/123456`
4. 打开其他模块地址进行开发调试
\ No newline at end of file
......@@ -16,29 +16,29 @@ module.exports = {
static: './dist/wj-manage-web',
resource: '../wj-manage-web',
},
'wj-data-vision': {
port: '9200',
path: '/wj-data-vision',
static: './dist/wj-data-vision',
resource: '../wj-data-vision',
},
'wj-data-vision-new': {
port: '9300',
path: '/wj-data-vision-new',
static: './dist/wj-data-vision-new',
resource: '../wj-data-vision-new',
},
'wj-developer': {
port: '9400',
path: '/wj-developer',
static: './dist/wj-developer',
resource: '../wj-developer',
},
'wj-smartcity': {
port: '9500',
path: '/wj-smartcity',
static: './dist/wj-smartcity',
resource: '../wj-smartcity',
},
// 'wj-data-vision': {
// port: '9200',
// path: '/wj-data-vision',
// static: './dist/wj-data-vision',
// resource: '../wj-data-vision',
// },
// 'wj-data-vision-new': {
// port: '9300',
// path: '/wj-data-vision-new',
// static: './dist/wj-data-vision-new',
// resource: '../wj-data-vision-new',
// },
// 'wj-developer': {
// port: '9400',
// path: '/wj-developer',
// static: './dist/wj-developer',
// resource: '../wj-developer',
// },
// 'wj-smartcity': {
// port: '9500',
// path: '/wj-smartcity',
// static: './dist/wj-smartcity',
// resource: '../wj-smartcity',
// },
}
......@@ -8,7 +8,7 @@ let system = process.argv.splice(2);
async function build(key) {
return new Promise((resolve, reject) => {
const command = `cd ../${key} && npm run build`;
const command = `cd ../${key} && npm i && npm run build`;
console.log(chalk.yellow(`开始构建子系统${key},执行:${command}`));
shell.exec(
command,
......
......@@ -876,9 +876,6 @@ export default {
startTime: this.tableCurrentData.windowStartTime,
endTime: this.tableCurrentData.windowEndTime,
crossId: this.currentCrossId,
// startTime: "2023-05-21 18:00:25",
// endTime: "2023-05-21 18:00:30",
// crossId: "12F6S08J8T0",
};
this.pathApiName = "vehicleTrack";
this.$nextTick(() => {
......@@ -887,17 +884,26 @@ export default {
}
if (!this.chart_vehicle) {
this.tab3Loading = true;
_periodCrossingData({
// if(time_config.efficiency_tab3_time?.length){
// this.pathParam.startTime = time_config.efficiency_tab3_time[0]
// this.pathParam.startTime = time_config.efficiency_tab3_time[0]
// }
let params = {
crossId: this.currentCrossId,
granularity: this.timeInterval,
end: this.tableCurrentData.windowEndTime,
start: this.tableCurrentData.windowStartTime,
}).then(res => {
}
if(time_config.efficiency_tab3_time?.length){
params.start = time_config.efficiency_tab3_time[0]
params.end = time_config.efficiency_tab3_time[1]
}
_periodCrossingData(params).then(res => {
this.tab3Loading = false;
console.log('机动车效率', res.content)
let toShow = [
{type:'saturation',label:'路口饱和度'},
{type:'flow',label:'机动车流量'},
{type:'saturation',label:'路口饱和度'},
{type:'delayTime',label:'平均延误'},
{type:'stopTimes',label:'平均停车次数'},
{type:'crossNoClearRate',label:'未清空率'},
......
......@@ -366,7 +366,7 @@ export default {
},
// 获取单方向的流量
async getSingleDirFlow(param) {
return await inletWayTimeBetw(param);
return inletWayTimeBetw(param);
},
// polygon 点击事件
async crossPolygonClick(e) {
......
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