|
@@ -6,7 +6,7 @@
|
|
<div v-for="item in data_ssgl.value" class="plb1-item">
|
|
<div v-for="item in data_ssgl.value" class="plb1-item">
|
|
<img :src="item.iconUrl" alt="">
|
|
<img :src="item.iconUrl" alt="">
|
|
<div>
|
|
<div>
|
|
- <span @click="handleToggleYuji(item)" :class="{'highlight': item.title==='淤积预警'&&isYujiOn}">{{ item.title }}</span>
|
|
|
|
|
|
+ <span @click="handleToggleSsgl(item)" :class="{'highlight': item.isHighlight}">{{ item.title }}</span>
|
|
<div>
|
|
<div>
|
|
<span :class="{'is-warning': item.value>0}">{{ item.value }}</span>
|
|
<span :class="{'is-warning': item.value>0}">{{ item.value }}</span>
|
|
<span>{{ item.unit }}</span>
|
|
<span>{{ item.unit }}</span>
|
|
@@ -14,6 +14,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <water-depth-list v-if="listShow_whss" @close="handleCloseWhss" @pick="item => handlePickWhss(item)"/>
|
|
<div class="pl-b2">
|
|
<div class="pl-b2">
|
|
<span class="title1-left">工程管理</span>
|
|
<span class="title1-left">工程管理</span>
|
|
<span class="title2-left">工程统计</span>
|
|
<span class="title2-left">工程统计</span>
|
|
@@ -149,9 +150,10 @@ export default {
|
|
import {
|
|
import {
|
|
ueCallInitShujun, ueCallClickShujun, ueCallRunShujun, ueCallBeforeShujun, ueCallClearShujun,
|
|
ueCallInitShujun, ueCallClickShujun, ueCallRunShujun, ueCallBeforeShujun, ueCallClearShujun,
|
|
ueCallAfterShujun, ueCallBackShujun, ueCallInitWaterShujun, ueCallStartYjyj, ueCallCloseYjyj,
|
|
ueCallAfterShujun, ueCallBackShujun, ueCallInitWaterShujun, ueCallStartYjyj, ueCallCloseYjyj,
|
|
- ueCallOpenWater, ueCallCloseWater
|
|
|
|
|
|
+ ueCallOpenWater, ueCallCloseWater, ueCallOpenMaintain, ueCallCloseMaintain
|
|
} from '@/utils/UIInteractions'
|
|
} from '@/utils/UIInteractions'
|
|
import bus from '@/utils/bus';
|
|
import bus from '@/utils/bus';
|
|
|
|
+ import WaterDepthList from './cpns/WaterDepthList.vue'
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
setSjjk(document.getElementById('chart_fstj'), chartData_fstj.value)
|
|
setSjjk(document.getElementById('chart_fstj'), chartData_fstj.value)
|
|
@@ -162,32 +164,49 @@ export default {
|
|
})
|
|
})
|
|
|
|
|
|
const data_ssgl = reactive({value: [
|
|
const data_ssgl = reactive({value: [
|
|
- { title: '维护水深', value: 8, unit: '米', iconUrl: require('@/assets/imgs/page_hdsj/logo-whss.png') },
|
|
|
|
- { title: '淤积预警', value: 0, unit: '处', iconUrl: require('@/assets/imgs/page_hdsj/logo-yjyj.png') },
|
|
|
|
|
|
+ { title: '维护水深', isHighlight: false, value: '-', unit: '米', iconUrl: require('@/assets/imgs/page_hdsj/logo-whss.png') },
|
|
|
|
+ { title: '淤积预警', isHighlight: false, value: 0, unit: '处', iconUrl: require('@/assets/imgs/page_hdsj/logo-yjyj.png') },
|
|
]})
|
|
]})
|
|
|
|
|
|
- const isYujiOn = ref(false)
|
|
|
|
|
|
+ const listShow_whss = ref(false)
|
|
|
|
|
|
- function handleToggleYuji(item) {
|
|
|
|
|
|
+ function handlePickWhss(item) {
|
|
|
|
+ data_ssgl.value[0].value = Math.abs(+item.height)
|
|
|
|
+ ueCallCloseMaintain()
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ ueCallOpenMaintain(item.id)
|
|
|
|
+ }, 500);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function handleCloseWhss() {
|
|
|
|
+ data_ssgl.value[0].isHighlight = false
|
|
|
|
+ data_ssgl.value[0].value = '-'
|
|
|
|
+ listShow_whss.value = false
|
|
|
|
+ ueCallCloseMaintain()
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function handleToggleSsgl(item) {
|
|
if(item.title==='淤积预警'&&item.value>0) {
|
|
if(item.title==='淤积预警'&&item.value>0) {
|
|
- if(isYujiOn.value === false) {
|
|
|
|
|
|
+ if(data_ssgl.value[1].isHighlight === false) {
|
|
ueCallCloseWater()
|
|
ueCallCloseWater()
|
|
ueCallStartYjyj()
|
|
ueCallStartYjyj()
|
|
} else {
|
|
} else {
|
|
ueCallOpenWater()
|
|
ueCallOpenWater()
|
|
ueCallCloseYjyj()
|
|
ueCallCloseYjyj()
|
|
}
|
|
}
|
|
- isYujiOn.value = !isYujiOn.value
|
|
|
|
|
|
+ data_ssgl.value[1].isHighlight = !data_ssgl.value[1].isHighlight
|
|
|
|
+ }
|
|
|
|
+ if(item.title==='维护水深') {
|
|
|
|
+ if(listShow_whss.value) {
|
|
|
|
+ handleCloseWhss()
|
|
|
|
+ } else {
|
|
|
|
+ data_ssgl.value[0].isHighlight = true
|
|
|
|
+ listShow_whss.value = true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- const listData_gcxx = reactive({value: [
|
|
|
|
- // { id: '1', prjName: '2022年董家渡弯道疏浚项目',projectStartTime: '2022-11-15',projectEndTime:'2022-11-15',investment: '1567万元', quantities:'17.42万方' },
|
|
|
|
- // { id: '2', prjName: '2022年董家渡弯道疏浚项目',projectStartTime: '2022-11-15',projectEndTime:'2022-11-15',investment: '1567万元', quantities:'17.42万方' },
|
|
|
|
- // { id: '3', prjName: '2022年董家渡弯道疏浚项目',projectStartTime: '2022-11-15',projectEndTime:'2022-11-15',investment: '1567万元', quantities:'17.42万方' },
|
|
|
|
- // { id: '4', prjName: '2022年董家渡弯道疏浚项目',projectStartTime: '2022-11-15',projectEndTime:'2022-11-15',investment: '1567万元', quantities:'17.42万方' },
|
|
|
|
- // { id: '4', prjName: '2022年董家渡弯道疏浚项目',projectStartTime: '2022-11-15',projectEndTime:'2022-11-15',investment: '1567万元', quantities:'17.42万方' },
|
|
|
|
- ]})
|
|
|
|
|
|
+ const listData_gcxx = reactive({value: []})
|
|
|
|
|
|
function handleChangeProject(id) {
|
|
function handleChangeProject(id) {
|
|
currentProjectId.value = id
|
|
currentProjectId.value = id
|
|
@@ -236,21 +255,13 @@ export default {
|
|
sta: [
|
|
sta: [
|
|
{ title: '施工范围长度', value: '-', unit: 'km', iconUrl: require('@/assets/imgs/page_hdsj/logo-hdzc.png') },
|
|
{ title: '施工范围长度', value: '-', unit: 'km', iconUrl: require('@/assets/imgs/page_hdsj/logo-hdzc.png') },
|
|
{ title: '疏浚船舶', value: '-', unit: '艘', iconUrl: require('@/assets/imgs/page_hdsj/logo-sjcb.png') },
|
|
{ title: '疏浚船舶', value: '-', unit: '艘', iconUrl: require('@/assets/imgs/page_hdsj/logo-sjcb.png') },
|
|
- ],
|
|
|
|
- // cata: [
|
|
|
|
- // { name: '工区', value: '-' },
|
|
|
|
- // { name: '排泥场', value: '-' },
|
|
|
|
- // { name: '固化场', value: '-' },
|
|
|
|
- // ]
|
|
|
|
|
|
+ ]
|
|
})
|
|
})
|
|
|
|
|
|
function getBoatNum(id) {
|
|
function getBoatNum(id) {
|
|
GetBoatNum(id).then(res => {
|
|
GetBoatNum(id).then(res => {
|
|
data_gcgk.sta[0].value = 1.469
|
|
data_gcgk.sta[0].value = 1.469
|
|
data_gcgk.sta[1].value = res.data.data || '-'
|
|
data_gcgk.sta[1].value = res.data.data || '-'
|
|
- // data_gcgk.cata[0].value = 6
|
|
|
|
- // data_gcgk.cata[1].value = 17
|
|
|
|
- // data_gcgk.cata[2].value = 3
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|