diff --git a/config/dev.env.js b/config/dev.env.js index 57c3f9a..f9fae85 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -18,7 +18,7 @@ module.exports = merge(prodEnv, { VUE_APP_BASE_API: '"/api"', // VUE_APP_BASE_APIURL: '"http://ds2.hzzxq.com/api2"', - VUE_APP_BASE_APIURL: '"http://crm.hzzxq.com/ds"', + VUE_APP_BASE_APIURL: '"http://test.gopmas.com/ds"', VUE_APP_FULL_API: '"http://10.10.151.5:5555"', VUE_APP_BASE_API_FRONT: '"http://10.10.150.128:8080/satellitePub/pub/index.html"', VUE_APP_FILE_API: '"http://10.10.151.5:5555/archives"', diff --git a/config/index.js b/config/index.js index 2261511..9494e60 100644 --- a/config/index.js +++ b/config/index.js @@ -17,7 +17,7 @@ module.exports = { // target: 'http://10.0.90.70', // 测试环境 // target: 'http://1.95.42.191:8080', // 测试环境 // target: 'http://ds2.hzzxq.com/api2', // 测试环境 - target: 'http://crm.hzzxq.com/ds', // 测试环境 + target: 'http://test.gopmas.com/ds', // 测试环境 changeOrigin: true, // 是否跨域 secure: false, // 是否使用https pathRewrite: { diff --git a/src/api/statistics.js b/src/api/statistics.js new file mode 100644 index 0000000..a8901ad --- /dev/null +++ b/src/api/statistics.js @@ -0,0 +1,111 @@ +import request from '@/utils/request' + +// 报表配置查询接口 +export function reportList(data) { + return request({ + url: '/report/type/list.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +// 科考船汇总统计属性 +export function shipTotal(data) { + return request({ + url: '/report/ship/total.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +// 科考船航次统计 +export function shipVoyage(data) { + return request({ + url: '/report/ship/voyage.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +// 科考船参航单位统计 +export function shipUnit(data) { + return request({ + url: '/report/ship/unit.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +// 科考船参航单位统计(年度) +export function shipUnitYear(data) { + return request({ + url: '/report/ship/unit/year.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +// 载人潜水器汇总统计属性 +export function platformHov(data) { + return request({ + url: '/report/platform/hov.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +// 载人潜水器潜次统计 +export function hovDiving(data) { + return request({ + url: '/report/platform/hov/diving.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +// 载人潜水器参航单位统计 +export function hovUnit(data) { + return request({ + url: '/report/platform/hov/unit.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +// 载人潜水器参航单位统计(年度) +export function hovUnitYear(data) { + return request({ + url: '/report/platform/hov/unit/year.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +// 无人航行潜水器统计 +export function platformAuv(data) { + return request({ + url: '/report/platform/auv.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +// 遥控潜水器潜水器统计 +export function platformRov(data) { + return request({ + url: '/report/platform/rov.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} diff --git a/src/api/sysManage.js b/src/api/sysManage.js new file mode 100644 index 0000000..e1e5a6e --- /dev/null +++ b/src/api/sysManage.js @@ -0,0 +1,87 @@ +import request from '@/utils/request' + +/* ********************************* 角色列表 **************************************/ + +// 角色列表 +export function roleList(data) { + return request({ + url: '/frame/role/page.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +/* ********************************* 用户列表 **************************************/ + +// 用户列表 +export function optrList(data) { + return request({ + url: '/frame/optr/page.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +// 用户新增 +export function optrAdd(data) { + return request({ + url: '/frame/optr/add.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +// 用户编辑 +export function optrEdit(data) { + return request({ + url: '/frame/optr/edit.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +// 用户删除 +export function optrDelete(data) { + return request({ + url: '/frame/optr/delete.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +/* ********************************* 航次管理 **************************************/ +// 航次列表 +export function regList(data) { + return request({ + url: '/voyage/reg/list.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +// 分配航次 +export function regGrant(data) { + return request({ + url: '/voyage/reg/optr/grant.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + +// 清除航次 +export function regClear(data) { + return request({ + url: '/voyage/reg/optr/clear.htm', + method: 'post', + type: 'application/x-www-form-urlencoded', + data + }) +} + diff --git a/src/components/public/Header.vue b/src/components/public/Header.vue index 034c657..1fc56e7 100644 --- a/src/components/public/Header.vue +++ b/src/components/public/Header.vue @@ -170,11 +170,11 @@ export default { path:"visitorUnit", children:[] }, - { - name:"共享单位", - path:"sharedUnit", - children:[] - }, + // { + // name:"共享单位", + // path:"sharedUnit", + // children:[] + // }, { name:"资助机构", path:"fundingAgencies", @@ -195,11 +195,11 @@ export default { path:"roleManage", children:[] }, - { - name:"单位管理", - path:"unitManage", - children:[] - } + // { + // name:"单位管理", + // path:"unitManage", + // children:[] + // } ] }, ], diff --git a/src/router/index.js b/src/router/index.js index cc44b4a..4219a69 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -358,6 +358,16 @@ export const constantRoutes = [ loginAuthority: true } }, + { + path: 'hov', + name: 'hov', + component: () => import('@/views/statistics/HovStatistics.vue'), + meta: { + title: '载人潜水器汇总统计', + icon: 'peoples', + loginAuthority: true + } + }, { path: 'AboutUs', name: 'AboutUs', diff --git a/src/utils/index.js b/src/utils/index.js new file mode 100644 index 0000000..a5b0ab4 --- /dev/null +++ b/src/utils/index.js @@ -0,0 +1,27 @@ +export function getYearRange(date) { + // 获取传入日期的年份 + const year = date.getFullYear() + + // 创建年份开始日期 (当年1月1日) + const startOfYear = new Date(year, 0, 1) + + // 创建年份结束日期 (当年12月31日) + const endOfYear = new Date(year, 11, 31) + + // 格式化日期为 YYYY-MM-DD + function formatDate(dateObj) { + const y = dateObj.getFullYear() + const m = String(dateObj.getMonth() + 1).padStart(2, '0') // 月份从0开始,需要+1 + const d = String(dateObj.getDate()).padStart(2, '0') + return `${y}-${m}-${d}` + } + + return { + start: formatDate(startOfYear), + end: formatDate(endOfYear) + } +} + +export function filterDictItems(data, dictName) { + return data.filter(item => item.report_type === dictName) +} diff --git a/src/views/aboutUs.vue b/src/views/aboutUs.vue index aca35bd..bad55f5 100644 --- a/src/views/aboutUs.vue +++ b/src/views/aboutUs.vue @@ -2,7 +2,7 @@
- +
+

{{ item.dataset_name }} {{ item.file_total }}

+ {{ item.create_time }} +
+
    +
  • {{ sample.sample_name }} +
  • +

航次:

- {{ item.voyage_name }} + {{ item.voyage_name }}

平台类型:

@@ -65,24 +73,15 @@
-
-

{{ item.dataset_name }} {{ item.file_total }}

- {{ item.create_time }} -
-
    -
  • {{ sample.sample_name }} -
  • -
-
-
+
-

{{ item.voyage_name }} {{ item.voyage_mileage }}海里

+

+ {{ item.voyage_name }} + {{ item.voyage_mileage }}海里

{{ item.funding_org }}
@@ -271,9 +270,6 @@ export default { rendered: [] } }, - created() { - this.getParams() - }, watch: { radio(val) { this.dataList = [] @@ -314,23 +310,11 @@ export default { } }, }, + mounted() { + this.imageryViewModels = setImageryViewModels(this.CesiumHostAddr) + this.initCesium() + }, methods: { - // 获取从参数列表 - getParams() { - getParamsList().then(res => { - const arr = res.array - if (arr.length) { - arr.forEach(item => { - if (item.param_name === 'CesiumHostAddr') { - // this.CesiumHostAddr = item.param_value - this.CesiumHostAddr = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/tiles/` - this.imageryViewModels = setImageryViewModels(this.CesiumHostAddr) - this.initCesium() - } - }) - } - }) - }, // 获取菜单 handleMenu() { this.dataList = [] @@ -642,12 +626,13 @@ export default { this.viewer.imageryLayers.addImageryProvider(contour6000) }, turnDeatilPage(item) { - this.$router.push({ + const routeData = this.$router.resolve({ name: 'dataDetail', query: { voyage_name: item.voyage_name } }) + window.open(routeData.href, '_blank') }, shousuo() { this.show = true @@ -807,12 +792,13 @@ export default { font-size: 16px; color: #212121; font-weight: bold; - display: flex; - justify-content: space-between; + //display: flex; + //justify-content: space-between; .mileage { font-size: 12px; color: #909fa7; + float: right; } } diff --git a/src/views/dataTransfer/sampleViews/formViews/SampleList.vue b/src/views/dataTransfer/sampleViews/formViews/SampleList.vue index 9ec3637..7267242 100644 --- a/src/views/dataTransfer/sampleViews/formViews/SampleList.vue +++ b/src/views/dataTransfer/sampleViews/formViews/SampleList.vue @@ -172,6 +172,13 @@ + + + + + + + @@ -264,7 +271,8 @@ export default { start_lat: '', end_lon: '', end_lat: '', - line_deep: '' + line_deep: '', + conver_width: '' }, rules: { publish_rule: [ @@ -308,6 +316,9 @@ export default { ], line_deep: [ { required: true, message: '此处为必填项', trigger: 'blur' } + ], + conver_width: [ + { required: true, message: '此处为必填项', trigger: 'blur' } ] }, // 公开期限下拉数据 @@ -445,7 +456,8 @@ export default { start_lat: '', end_lon: '', end_lat: '', - line_deep: '' + line_deep: '', + conver_width: '' } this.dynamicTags = [] this.$refs['form'].resetFields() diff --git a/src/views/dataTransfer/voyageReg.vue b/src/views/dataTransfer/voyageReg.vue index e57e550..f127969 100644 --- a/src/views/dataTransfer/voyageReg.vue +++ b/src/views/dataTransfer/voyageReg.vue @@ -365,8 +365,11 @@ import { voyageRegNav, uploadNavigation, voyageRegPeople, - voyageRegPeopleDelete, voyageRegPeopleEdit, voyageRegPeopleUpload, voyageRegImport -} from '@/api/dataTransfer' + voyageRegPeopleDelete, + voyageRegPeopleEdit, + voyageRegPeopleUpload, + voyageRegImport +} from '../../api/dataTransfer' import { time } from '@/utils/validate' import { fundingAll } from '@/api/dicManage' diff --git a/src/views/dicManage/visitorUnit.vue b/src/views/dicManage/visitorUnit.vue index 933d51f..261a9e8 100644 --- a/src/views/dicManage/visitorUnit.vue +++ b/src/views/dicManage/visitorUnit.vue @@ -21,6 +21,7 @@ + @@ -61,6 +62,9 @@ + + + @@ -99,6 +103,7 @@ export default { unit_addr: '', unit_lon: '', unit_lat: '', + unit_type: '', unit_remark: '' }, rules: { @@ -110,6 +115,9 @@ export default { ], unit_lat: [ { required: true, message: '此处为必填项', trigger: 'blur' } + ], + unit_type: [ + { required: true, message: '此处为必填项', trigger: 'blur' } ] } } diff --git a/src/views/home.vue b/src/views/home.vue index 32462ba..e62f235 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -284,7 +284,7 @@ export default { }, { pic: require('../../static/images/shuju2_bg3.png'), - title: '支撑大科学计划', + title: '构建应急搜寻处置快速响应能力', des: '应急搜捞应用', routerName: 'SalvageHome' } diff --git a/src/views/personalCenter.vue b/src/views/personalCenter.vue index 2dc503b..ab3e01d 100644 --- a/src/views/personalCenter.vue +++ b/src/views/personalCenter.vue @@ -281,7 +281,7 @@ export default { }, updateInfoVisible: false, updateInfoForm: { - tsy_id: '', + optr_id: '', optr_name: '', optr_sex: '', optr_status: '', @@ -310,7 +310,7 @@ export default { this.info = data - this.updateInfoForm.tsy_id = data.tsy_id + this.updateInfoForm.optr_id = data.optr_id this.updateInfoForm.optr_name = data.optr_name this.updateInfoForm.optr_sex = data.optr_sex this.updateInfoForm.optr_status = data.optr_status @@ -337,7 +337,7 @@ export default { this.$refs[formName].validate((valid) => { if (valid) { updatePassword({ - tsy_id: this.info.tsy_id, + optr_id: this.info.optr_id, old_password: this.updatePwdForm.old_password, new_pass: this.updatePwdForm.new_pass }).then(res => { diff --git a/src/views/statistics/HovStatistics.vue b/src/views/statistics/HovStatistics.vue new file mode 100644 index 0000000..6c3fcb1 --- /dev/null +++ b/src/views/statistics/HovStatistics.vue @@ -0,0 +1,489 @@ + + + + + + + diff --git a/src/views/statistics/ShipStatistics.vue b/src/views/statistics/ShipStatistics.vue index 34ea8fc..eb1d54d 100644 --- a/src/views/statistics/ShipStatistics.vue +++ b/src/views/statistics/ShipStatistics.vue @@ -1,681 +1,505 @@ + diff --git a/src/views/statistics/components/BarChart.vue b/src/views/statistics/components/BarChart.vue new file mode 100644 index 0000000..4de1168 --- /dev/null +++ b/src/views/statistics/components/BarChart.vue @@ -0,0 +1,435 @@ + + + diff --git a/src/views/statistics/components/PieChart.vue b/src/views/statistics/components/PieChart.vue new file mode 100644 index 0000000..9dfc1b7 --- /dev/null +++ b/src/views/statistics/components/PieChart.vue @@ -0,0 +1,178 @@ + + + diff --git a/src/views/statistics/index.vue b/src/views/statistics/index.vue index 14e0077..5ca244e 100644 --- a/src/views/statistics/index.vue +++ b/src/views/statistics/index.vue @@ -19,8 +19,8 @@

科考船汇总统计

-

4艘

-

探索一号、探索二号、探索三号、海警101船

+

{{ ship.length }}艘

+

{{ item.report_name }}

@@ -39,8 +39,8 @@

载人潜水器汇总统计

-

2型

-

深海勇士、奋斗者等

+

{{ hov.length }}艘

+

{{ item.report_name }}

@@ -59,8 +59,8 @@

遥控潜水器汇总统计

-

数据加载中

-

+

{{ rov.length }}艘

+

{{ item.report_name }}

@@ -79,8 +79,8 @@

无人航行潜水器汇总统计

-

数据加载中

-

+

{{ uuv.length }}艘

+

{{ item.report_name }}

@@ -100,7 +100,6 @@

基站汇总统计

暂无数据

-

深海站、深渊站、国际站

@@ -130,17 +129,34 @@ diff --git a/src/views/sysManage/roleManage.vue b/src/views/sysManage/roleManage.vue index a2c8b79..762dc86 100644 --- a/src/views/sysManage/roleManage.vue +++ b/src/views/sysManage/roleManage.vue @@ -8,380 +8,71 @@ 角色管理 -
-
- 添加角色 -
-
- + - - - - - - + +
- diff --git a/src/views/sysManage/userManage.vue b/src/views/sysManage/userManage.vue index 62487df..ba52908 100644 --- a/src/views/sysManage/userManage.vue +++ b/src/views/sysManage/userManage.vue @@ -10,31 +10,33 @@
- 添加用户 + 添加用户
- + - - - - - - - + + + + + + + + + @@ -42,54 +44,64 @@
+ + diff --git a/static/img/01.png b/static/img/01.png index 28958f9..fad1340 100644 Binary files a/static/img/01.png and b/static/img/01.png differ diff --git a/static/img/011.png b/static/img/011.png index 731d7b1..493842d 100644 Binary files a/static/img/011.png and b/static/img/011.png differ