| | |
| | | <template> |
| | | <basicContainer > |
| | | <avue-crud |
| | | :option="option" |
| | | :table-loading="pageF.loading" |
| | | :data="tableData" |
| | | :page="page" |
| | | :permission="permissionList" |
| | | :before-open="beforeOpen" |
| | | v-model="form" |
| | | ref="crudRef" |
| | | @row-update="rowUpdate" |
| | | @row-save="rowSave" |
| | | @refresh-change="refreshChange" |
| | | @row-del="rowDel" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @selection-change="selectionChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @on-load="onLoad" |
| | | > |
| | | <avue-crud :option="option" :table-loading="pageF.loading" :data="tableData" :page="page" |
| | | :permission="permissionList" :before-open="beforeOpen" v-model="form" ref="crudRef" @row-update="rowUpdate" |
| | | @row-save="rowSave" @refresh-change="refreshChange" @row-del="rowDel" @search-change="searchChange" |
| | | @search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange" |
| | | @size-change="sizeChange" @on-load="onLoad"> |
| | | <template #menu-left> |
| | | <el-button |
| | | type="success" |
| | | icon="Edit" |
| | | :disabled="pageF.single" |
| | | v-hasPermi="['cwgl:data:edit']" |
| | | <!-- <el-button type="success" icon="Edit" :disabled="pageF.single" v-hasPermi="['cwgl:data:edit']" |
| | | @click="handleUpdate">修改 |
| | | </el-button> |
| | | <el-button |
| | | type="danger" |
| | | icon="Delete" |
| | | :disabled="pageF.multiple" |
| | | @click="handleDelete" |
| | | v-hasPermi="['cwgl:data:remove']" |
| | | >删除 |
| | | </el-button> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="Download" |
| | | @click="handleExport" |
| | | v-hasPermi="['cwgl:data:export']" |
| | | >导出 |
| | | <el-button type="danger" icon="Delete" :disabled="pageF.multiple" @click="handleDelete" |
| | | v-hasPermi="['cwgl:data:remove']">删除 |
| | | </el-button> --> |
| | | <el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['cwgl:data:export']">导出 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | const option = ref({ |
| | | pageKey: 'Data', |
| | | rowKey: 'id', |
| | | editDisplay: false, |
| | | addBtn: false, |
| | | editBtn: false, |
| | | menu: false, |
| | | delBtn: false, |
| | | viewBtn: false, |
| | | searchLabelWidth: 100, |
| | | labelWidth: 120, |
| | | column: { |
| | | id: { |
| | | label: '主键ID', |
| | | }, |
| | | // id: { |
| | | // label: '主键ID', |
| | | // }, |
| | | vin: { |
| | | label: '车架号', |
| | | minWidth: 200, |
| | | search: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "车架号不能为空", trigger: "blur" } |
| | | ], }, |
| | | message: "车架号不能为空", trigger: "blur" |
| | | } |
| | | ], |
| | | }, |
| | | chassisType: { |
| | | label: '底盘类型', |
| | | minWidth: 200, |
| | | }, |
| | | eventDate: { |
| | | label: '数据日期', |
| | | minWidth: 200, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "数据日期不能为空", trigger: "blur" } |
| | | ], }, |
| | | message: "数据日期不能为空", trigger: "blur" |
| | | } |
| | | ], |
| | | }, |
| | | distance: { |
| | | label: '行驶里程', |
| | | minWidth: 150, |
| | | }, |
| | | duration: { |
| | | label: '用车时长', |
| | | minWidth: 100, |
| | | }, |
| | | shutdownDuration: { |
| | | label: '熄火停车时长', |
| | | minWidth: 120, |
| | | }, |
| | | drivingDuration: { |
| | | label: '行驶时长', |
| | | minWidth: 100, |
| | | }, |
| | | drivingDurationRatio: { |
| | | label: '行驶时长占比', |
| | | minWidth: 120, |
| | | }, |
| | | idleDurationRatio: { |
| | | label: '怠速时长占比', |
| | | minWidth: 120, |
| | | }, |
| | | idleDuration: { |
| | | label: '怠速时长', |
| | | minWidth: 100, |
| | | }, |
| | | coastingDistanceRatio: { |
| | | label: '滑行距离占比', |
| | | minWidth: 120, |
| | | }, |
| | | coastingDistance: { |
| | | label: '滑行距离', |
| | | minWidth: 100, |
| | | }, |
| | | cruisingDistanceRatio: { |
| | | label: '巡航距离占比', |
| | | minWidth: 120, |
| | | }, |
| | | cruisingDistance: { |
| | | label: '巡航距离', |
| | | minWidth: 100, |
| | | }, |
| | | avgSpeed: { |
| | | label: '平均速度', |
| | | minWidth: 100, |
| | | }, |
| | | avgDrivingSpeed: { |
| | | label: '平均行车速度', |
| | | minWidth: 120, |
| | | }, |
| | | avgEngineSpeed: { |
| | | label: '发动机平均转速', |
| | | minWidth: 120, |
| | | }, |
| | | economicEngineSpeedDurationRatio: { |
| | | label: '经济转速时长占比', |
| | | minWidth: 150, |
| | | }, |
| | | economicEngineSpeedDuration: { |
| | | label: '经济转速时长', |
| | | minWidth: 120, |
| | | }, |
| | | avgEnergyConsumption: { |
| | | label: '百公里能耗', |
| | | minWidth: 100, |
| | | }, |
| | | energyConsumption: { |
| | | label: '耗油量', |
| | | }, |
| | | drivingEnergyConsumption: { |
| | | label: '行驶耗油量', |
| | | minWidth: 100, |
| | | }, |
| | | drivingEnergyConsumptionRatio: { |
| | | label: '行驶耗油量占比', |
| | | minWidth: 150, |
| | | }, |
| | | idleEnergyConsumptionRatio: { |
| | | label: '怠速耗油量占比', |
| | | minWidth: 150, |
| | | }, |
| | | idleEnergyConsumption: { |
| | | label: '怠速耗油量', |
| | | minWidth: 100, |
| | | }, |
| | | avgAdblueConsumption: { |
| | | label: '百公里尿素消耗', |
| | | minWidth: 150, |
| | | }, |
| | | adblueConsumption: { |
| | | label: '尿素消耗', |
| | | minWidth: 100, |
| | | }, |
| | | avgGrossWeight: { |
| | | label: '平均整车质量', |
| | | minWidth: 120, |
| | | }, |
| | | brakeTimes: { |
| | | label: '刹车次数', |
| | | minWidth: 100, |
| | | }, |
| | | harshBrakeTimes: { |
| | | label: '急刹车次数', |
| | | minWidth: 100, |
| | | }, |
| | | accelerationTimes: { |
| | | label: '急加速次数', |
| | | minWidth: 100, |
| | | }, |
| | | avgBrakeTimes: { |
| | | label: '百公里刹车次数', |
| | | minWidth: 120, |
| | | }, |
| | | avgHarshBrakeTimes: { |
| | | label: '百公里急刹车次数', |
| | | minWidth: 140, |
| | | |
| | | }, |
| | | avgAccelerationTimes: { |
| | | label: '百公里急加速次数', |
| | | minWidth: 140, |
| | | |
| | | }, |
| | | odometer: { |
| | | label: '里程表里程', |
| | | minWidth: 120, |
| | | |
| | | }, |
| | | createTime: { |
| | | label: '创建时间', |
| | | minWidth: 180, |
| | | |
| | | }, |
| | | updateTime: { |
| | | label: '更新时间', |
| | | minWidth: 180, |
| | | |
| | | }, |
| | | } |
| | | }) |