|
@@ -68,6 +68,7 @@
|
|
<el-button type="primary" icon="ele-Search" @click="onQuery"> 查询 </el-button>
|
|
<el-button type="primary" icon="ele-Search" @click="onQuery"> 查询 </el-button>
|
|
<el-button type="primary" icon="ele-RefreshRight" @click="onReset"> 重置 </el-button>
|
|
<el-button type="primary" icon="ele-RefreshRight" @click="onReset"> 重置 </el-button>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ <el-button type="primary" icon="ele-Document" @click="exportDataToExcel"> 导出 </el-button>
|
|
</el-row>
|
|
</el-row>
|
|
</el-card>
|
|
</el-card>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -75,7 +76,7 @@
|
|
<el-col :xs="24">
|
|
<el-col :xs="24">
|
|
<el-card class="my-fill mt8" shadow="hover">
|
|
<el-card class="my-fill mt8" shadow="hover">
|
|
<el-table v-loading="oilEngineData.loading" stripe :data="oilEngineData.tableModel" row-key="id"
|
|
<el-table v-loading="oilEngineData.loading" stripe :data="oilEngineData.tableModel" row-key="id"
|
|
- style="width: 100%">
|
|
|
|
|
|
+ style="width: 100%" id="myTable" ref="myTable">
|
|
<el-table-column prop="name" label="油机号" />
|
|
<el-table-column prop="name" label="油机号" />
|
|
<el-table-column prop="oilCompany" label="石油公司" />
|
|
<el-table-column prop="oilCompany" label="石油公司" />
|
|
<el-table-column prop="gasStation" label="加油站" />
|
|
<el-table-column prop="gasStation" label="加油站" />
|
|
@@ -89,14 +90,19 @@
|
|
<el-table-column prop="deviceStatus" label="设备状态">
|
|
<el-table-column prop="deviceStatus" label="设备状态">
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
<div :style="{ color: getColor(getOilEngineStatus(row.deviceStatus)) }" class="bold-font">
|
|
<div :style="{ color: getColor(getOilEngineStatus(row.deviceStatus)) }" class="bold-font">
|
|
- {{ getOilEngineStatus(row.deviceStatus) }}
|
|
|
|
|
|
+ <StatusBox :status="getOilEngineStatus(row.deviceStatus)" />
|
|
|
|
+
|
|
|
|
+ <!-- {{ getOilEngineStatus(row.deviceStatus) }} -->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="onlineStatus" label="在线状态">
|
|
<el-table-column prop="onlineStatus" label="在线状态">
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
<div :style="{ color: getColor(getOilEngineStatus(row.onlineStatus)) }" class="bold-font">
|
|
<div :style="{ color: getColor(getOilEngineStatus(row.onlineStatus)) }" class="bold-font">
|
|
- {{ getOilEngineStatus(row.onlineStatus) }}
|
|
|
|
|
|
+ <StatusBox :status="getOilEngineStatus(row.onlineStatus)" />
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <!-- {{ getOilEngineStatus(row.onlineStatus) }} -->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -128,6 +134,9 @@ import { FuelDispenserDto_SearchFilter, PageInputFuelDispenserDto, FuelDispenser
|
|
import eventBus from "/@/utils/mitt";
|
|
import eventBus from "/@/utils/mitt";
|
|
import { useGlobalCacheStore } from "/@/stores/globalCacheStore";
|
|
import { useGlobalCacheStore } from "/@/stores/globalCacheStore";
|
|
import router from "/@/router";
|
|
import router from "/@/router";
|
|
|
|
+import StatusBox from "../../../../components/StatusBox.vue";
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
/**获取全局缓存*/
|
|
/**获取全局缓存*/
|
|
const globalCacheStore = useGlobalCacheStore()
|
|
const globalCacheStore = useGlobalCacheStore()
|
|
@@ -139,6 +148,7 @@ const oilEngineStatus = ref(globalCacheStore.getGlobalStore().get('oilEngineStat
|
|
// 安装日期假数据
|
|
// 安装日期假数据
|
|
const value1 = ref('')
|
|
const value1 = ref('')
|
|
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 油机列表数据对象
|
|
* 油机列表数据对象
|
|
*/
|
|
*/
|
|
@@ -214,6 +224,7 @@ const onCurrentChange = () => {
|
|
const toPage = (row) => {
|
|
const toPage = (row) => {
|
|
router.push({ path: `/statement/${row.fuelId}` })
|
|
router.push({ path: `/statement/${row.fuelId}` })
|
|
}
|
|
}
|
|
|
|
+
|
|
// /**油机列表 - 列表状态 */
|
|
// /**油机列表 - 列表状态 */
|
|
// const getOilEngineStatusType = (val) => {
|
|
// const getOilEngineStatusType = (val) => {
|
|
// val = String(val)
|
|
// val = String(val)
|