diff --git a/package.json b/package.json
index 09c7d87..d4a6347 100644
--- a/package.json
+++ b/package.json
@@ -18,7 +18,7 @@
"dependencies": {
"@ant-design-vue/pro-layout": "^1.0.11",
"@antv/data-set": "^0.10.2",
- "@mermaid-js/parser": "^0.6.2",
+ "@mermaid-js/parser": "^0.6.1",
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^1.0.2",
"ant-design-vue": "^1.7.8",
@@ -32,7 +32,7 @@
"lodash.get": "^4.4.2",
"lodash.pick": "^4.4.0",
"md5": "^2.3.0",
- "mermaid": "^11.12.0",
+ "mermaid": "^10.2.4",
"mockjs2": "1.0.8",
"moment": "^2.29.2",
"nprogress": "^0.2.0",
diff --git a/public/index.html b/public/index.html
index 0343eaf..1625d89 100644
--- a/public/index.html
+++ b/public/index.html
@@ -8,7 +8,7 @@
某仿真分析方法工具
-
+
diff --git a/src/components/Common/Layout/AntQueryTable.vue b/src/components/Common/Layout/AntQueryTable.vue
index 21f8c90..74c3bd5 100644
--- a/src/components/Common/Layout/AntQueryTable.vue
+++ b/src/components/Common/Layout/AntQueryTable.vue
@@ -17,6 +17,7 @@
查询
重置
+ {{ qryTime }}
@@ -119,6 +120,8 @@ export default {
actionSlotName,
total: 0,
pageParams: { pageNum: 1, pageSize: defaultPageSize },
+ qryTime: '',
+ begtime: '',
}
},
computed: {
@@ -356,6 +359,7 @@ export default {
try {
let res = { data: [] }
if (this.tableConfig.query && typeof this.tableConfig.query === 'function') {
+ this.begtime = ''
res = await this.tableConfig.query(this.queryParams)
}
if (!this.isPageMode) {
@@ -379,6 +383,10 @@ export default {
this.handleTableResize(this.$refs['qt-table'])
})
}
+ if (this.begtime !== '') {
+ var endtiem = new Date().getTime()
+ this.qryTime = (endtiem - this.begtime) / 1000 + '秒'
+ }
} catch {
this.tableLoading = false
this.tableData = []
@@ -397,11 +405,13 @@ export default {
handleQueryBtnClick() {
this.pageParams.pageNum = 1
this.commitAction('query')
+ this.begtime = new Date().getTime()
},
handleResetBtnClick() {
this.initQueryTemp()
this.pageParams.pageNum = 1
this.commitAction('query')
+ this.begtime = ''
},
handleSelectChange(selectedRowKeys, selectedRows) {
this.selectedRowKeys = selectedRowKeys
@@ -425,12 +435,14 @@ export default {
commitAction(action) {
switch (action) {
case 'query':
+ this.begtime = ''
this.queryTable()
break
case 'reload':
this.queryTemp = {}
this.pageParams.pageNum = 1
this.pageParams.pageSize = defaultPageSize
+ this.begtime = ''
this.queryTable()
break
diff --git a/src/views/functional/guaranteeProcess.vue b/src/views/functional/guaranteeProcess.vue
index 3847d2c..162be79 100644
--- a/src/views/functional/guaranteeProcess.vue
+++ b/src/views/functional/guaranteeProcess.vue
@@ -13,13 +13,13 @@ export default {
txt: `
flowchart TD
- A@{ shape: circle, label: "开始" } --> B[油料保障分队分配油料物资]
+ A[开始] --> B[油料保障分队分配油料物资]
B --> C[派运油车到火力打击分队进行运油]
C --> D[到达火力打击分队后将油进行补充]
D --> E[返回油料保障分队]
E --> F[油料保障分队保障任务完成]
- F --> G@{shape: circle, label: "结束"}
+ F --> G[结束]
`,
}
@@ -31,7 +31,9 @@ export default {
el.style.visibility = 'hidden' // 先隐藏
mermaid.run().then(() => {
el.style.visibility = 'visible' // 渲染完再显示
+ console.log('-------sdsds-sfsds--------')
})
+ console.log('-------sdsds---------')
},
}
diff --git a/src/views/simulationScene/database/zbsjk.vue b/src/views/simulationScene/database/zbsjk.vue
index ccdcdc5..5043a3f 100644
--- a/src/views/simulationScene/database/zbsjk.vue
+++ b/src/views/simulationScene/database/zbsjk.vue
@@ -59,6 +59,8 @@
+
+ 装备记录总数:{{ zbcnt }}
@@ -326,6 +328,7 @@ export default {
selectedKeys: [],
expandedKeys: [],
},
+ zbcnt: '',
zbflModal: {
visible: false,
title: '',
@@ -480,6 +483,7 @@ export default {
},
created() {
this.getZzTree()
+ this.getZbCount()
for (const key in this.dicData) {
this.$http({
url: '/dicdata/' + key + '/getList',
@@ -503,6 +507,17 @@ export default {
console.log(error)
}
},
+ async getZbCount() {
+ try {
+ const res = await this.$http({
+ url: '/basedata/entity/getCount',
+ method: 'get',
+ })
+ this.zbcnt = res.data
+ } catch (error) {
+ console.log(error)
+ }
+ },
handleChangeZbflSelected(data) {
this.zb.entityType = data.entityType
this.zb.entityName = data.entityName
diff --git a/src/views/subsystem/display/index.vue b/src/views/subsystem/display/index.vue
index 390c62a..37e3d73 100644
--- a/src/views/subsystem/display/index.vue
+++ b/src/views/subsystem/display/index.vue
@@ -25,9 +25,11 @@
- {{ roomInfo.mag }}倍速
- {{ roomInfo.statusMapText[roomInfo.status] }}
- 剩余 {{ roomInfo.remainTimeStr }}
+ {{ roomInfo.mag }}倍速
+ {{ roomInfo.statusMapText[roomInfo.status] }}
+ 想定时间 {{ roomInfo.scenarioTime }}
+ 推演时间 {{ roomInfo.currentTime }}
+ 剩余时间 {{ roomInfo.remainTimeStr }}
@@ -67,6 +69,8 @@ export default {
remainTimeStr: '',
remainTime: '',
duringTime: '',
+ currentTime: '',
+ scenarioTime: '',
roomData: [],
},
roomId: '',
@@ -129,6 +133,8 @@ export default {
this.roomInfo.remainTimeStr = response.data.update_time_str
this.roomInfo.remainTime = response.data.remain_time
this.roomInfo.duringTime = response.data.during_time
+ this.roomInfo.currentTime = response.data.current_time
+ this.roomInfo.scenarioTime = response.data.scenario_time
break
case 'start_rain':
this.cesium.addRain()
diff --git a/src/views/subsystem/model/index.vue b/src/views/subsystem/model/index.vue
index 2991f51..b6fe91f 100644
--- a/src/views/subsystem/model/index.vue
+++ b/src/views/subsystem/model/index.vue
@@ -1,8 +1,8 @@