修改冀北页面
This commit is contained in:
@@ -30,9 +30,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<div>
|
||||
<statistics :params="statisticsList" />
|
||||
|
||||
|
||||
<statistics :params="statisticsList" @change="change" />
|
||||
</div>
|
||||
</el-card>
|
||||
<el-card class="mt10">
|
||||
@@ -82,7 +80,7 @@
|
||||
<span
|
||||
style="width: 90px; color: #388e3c"
|
||||
class="text text-style"
|
||||
@click="renderTable(o.list, o.name+'_')"
|
||||
@click="renderTable(o.list, o.name + '_')"
|
||||
>
|
||||
{{ o.count }}
|
||||
</span>
|
||||
@@ -197,7 +195,7 @@ import statistics from './components/statistics.vue'
|
||||
import MyEchart from '@/components/echarts/MyEchart.vue'
|
||||
import { getMonitorVerifyDay } from '@/api/device-boot/dataVerify'
|
||||
defineOptions({
|
||||
name: 'harmonic-boot/harmonic/getIntegrityData'
|
||||
name: 'runManage/runEvaluate'
|
||||
})
|
||||
|
||||
const dictData = useDictData()
|
||||
@@ -267,9 +265,9 @@ const tableStore = new TableStore({
|
||||
|
||||
// tableStore.table.data
|
||||
statisticsList.value.allNum = totalData.value.length
|
||||
statisticsList.value.runNum = tableStore.table.data.allNum
|
||||
statisticsList.value.checkNum = tableStore.table.data.allNum
|
||||
statisticsList.value.stopRunNum = tableStore.table.data.allNum
|
||||
statisticsList.value.runNum = totalData.value.filter(item => item.runFlag === '运行').length
|
||||
statisticsList.value.checkNum = totalData.value.filter(item => item.runFlag === '调试').length
|
||||
statisticsList.value.stopRunNum = totalData.value.filter(item => item.runFlag === '停运').length
|
||||
|
||||
abnormal.value = tableStore.table.data
|
||||
// 合并子集数据 并去重
|
||||
@@ -423,6 +421,16 @@ const totalTable = (num: number, t: string) => {
|
||||
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
const change = (e: string) => {
|
||||
title.value = e==''?'' : e+'_'
|
||||
loading.value = true
|
||||
pageNum.value = 1
|
||||
dataList.value = []
|
||||
dataList.value = totalData.value.filter(item => item.runFlag == e)
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
// 渲染表格
|
||||
const renderTable = (list: any, t: string) => {
|
||||
title.value = t
|
||||
|
||||
Reference in New Issue
Block a user