Merge remote-tracking branch 'origin/master'
# Conflicts:
# src/views/system/rule/index.vue
13个文件已修改
7个文件已添加
1 文件已重命名
1个文件已删除
New file |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // 查询平台运行监控列表 |
| | | export function listPlatform(query) { |
| | | return request({ |
| | | url: '/platform/platformMonitor/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // 查询平台运行监控详细 |
| | | export function getPlatform(id) { |
| | | return request({ |
| | | url: '/platform/platformMonitor/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // 新增平台运行监控 |
| | | export function addPlatform(data) { |
| | | return request({ |
| | | url: '/platform/platformMonitor', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 修改平台运行监控 |
| | | export function updatePlatform(data) { |
| | | return request({ |
| | | url: '/platform/platformMonitor', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 删除平台运行监控 |
| | | export function delPlatform(id) { |
| | | return request({ |
| | | url: '/platform/platformMonitor/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | |
| | | |
| | | NProgress.configure({ showSpinner: false }) |
| | | |
| | | const whiteList = ['/login', '/register'] |
| | | const whiteList = ['/login', '/register', '/screen'] |
| | | |
| | | router.beforeEach((to, from, next) => { |
| | | NProgress.start() |
| | |
| | | ] |
| | | }, |
| | | { |
| | | path: '/car/equipment', |
| | | component: Layout, |
| | | hidden: true, |
| | | children: [ |
| | | { |
| | | path: 'index', |
| | | name: 'equipment', |
| | | component: () => import('@/views/system/equipment/index'), |
| | | meta: { title: '资产管理', activeMenu: '/system/equipment' } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/check-result/contract', |
| | | component: Layout, |
| | | hidden: true, |
New file |
| | |
| | | <template> |
| | | <div class="data-container"> |
| | | <wrapper-title :title="'工单数据'" :path="'/monitorServe/car'"></wrapper-title> |
| | | |
| | | <div class="data-content"> |
| | | <div class="data-panel"> |
| | | |
| | | </div> |
| | | <div class="data-panel"> |
| | | <div class="panel-title"> |
| | | <div class="icon"> |
| | | <img src="@/assets/icons/arrow.png" alt=""> |
| | | </div> |
| | | <div class="title"> |
| | | 分区工单数 |
| | | </div> |
| | | </div> |
| | | <div class="echart-container"> |
| | | <div id="barChart" ref="barChart"></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import * as echarts from 'echarts'; |
| | | import WrapperTitle from '../wrapper-title/index'; |
| | | let chart = null; |
| | | export default { |
| | | name: 'ScreenData', |
| | | components: { |
| | | WrapperTitle |
| | | }, |
| | | data() { |
| | | return { |
| | | dataList: { |
| | | name: ['富顺县', '荣县', '高新区', '自流井区', '贡井区', '大安区', '沿滩区'], |
| | | data1: [210, 310, 40, 102, 111, 201, 123], |
| | | data2: [20, 30, 10, 10, 11, 21, 5], |
| | | }, |
| | | } |
| | | }, |
| | | methods: { |
| | | initEchart() { |
| | | const option = { |
| | | grid: { |
| | | right: 0, |
| | | }, |
| | | legend: { |
| | | right: 0, |
| | | textStyle: { |
| | | color: '#447ED6' |
| | | } |
| | | }, |
| | | tooltip: {}, |
| | | xAxis: { |
| | | type: 'category', |
| | | axisLabel: { |
| | | color: '#447ED6', |
| | | rotate: 45 |
| | | }, |
| | | data: this.dataList.name |
| | | }, |
| | | yAxis: { |
| | | axisLabel: { |
| | | color: '#4D76B0', |
| | | }, |
| | | }, |
| | | series: [ |
| | | { |
| | | type: 'bar', |
| | | name: '已处理工单数', |
| | | stack: 'total', |
| | | itemStyle: { |
| | | color: '#4ea8ff' |
| | | }, |
| | | data: this.dataList.data1 |
| | | }, |
| | | { |
| | | type: 'bar', |
| | | name: '未处理工单数', |
| | | stack: 'total', |
| | | itemStyle: { |
| | | color: '#dfc639' |
| | | }, |
| | | data: this.dataList.data2 |
| | | }, |
| | | ] |
| | | } |
| | | chart.setOption(option, true); |
| | | |
| | | } |
| | | }, |
| | | mounted() { |
| | | chart = echarts.init(this.$refs.barChart); |
| | | this.initEchart(); |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .data-container { |
| | | width: 100%; |
| | | height: 450px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | |
| | | .data-content { |
| | | flex: 1; |
| | | background: rgba(67, 102, 155, 0.3); |
| | | border: 1px solid rgba(47, 91, 157, 0.8); |
| | | padding: 20px; |
| | | box-sizing: border-box; |
| | | } |
| | | } |
| | | |
| | | .echart-container { |
| | | width: 100%; |
| | | height: 300px; |
| | | |
| | | #barChart { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | } |
| | | |
| | | .panel-title { |
| | | color: #b9b9b9; |
| | | display: flex; |
| | | align-items: center; |
| | | .icon { |
| | | width: 20px; |
| | | margin-right: 5px; |
| | | img { |
| | | width: 100%; |
| | | display: block; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | { id: 3, name: '档案考核比', value: 60, routerUrl: '/car/vehicle-data-monitor/index' }, |
| | | { id: 4, name: '点位在线率', value: 40, routerUrl: '/car/vehicle-data-monitor/index' }, |
| | | { id: 5, name: '录像可用率', value: 80, routerUrl: '/car/vehicle-data-monitor/index' }, |
| | | { id: 6, name: '重点点位录像可用率', value: 20, routerUrl: '/car/vehicle-data-monitor/index' }, |
| | | { id: 7, name: '信息采集准确率', value: 60, routerUrl: '/car/vehicle-data-monitor/index' }, |
| | | { id: 8, name: '车辆过卡口数据一致性', value: 40, routerUrl: '/car/vehicle-data-monitor/index' }, |
| | | |
| | | { id: 6, name: '重点点位录像可用率', value: 20, routerUrl: '/car/vehicle-data-monitor/index' } |
| | | ] |
| | | } |
| | | }, |
| | |
| | | |
| | | .hola-item { |
| | | flex-shrink: 0; |
| | | width: 180px; |
| | | height: 180px; |
| | | width: 140px; |
| | | height: 140px; |
| | | } |
| | | } |
| | | } |
| | |
| | | <div class="progressChart"> |
| | | <div class="chart" id="progressChart" ref="chartRef"></div> |
| | | <el-link class="bottom le-0-font" :underline="false" @click="handleDetail(routerPath)"> |
| | | <label >{{ bottomTitle }}</label> |
| | | <label>{{ bottomTitle }}</label> |
| | | </el-link> |
| | | </div> |
| | | </template> |
| | |
| | | detail: { |
| | | // width: 50, |
| | | // height: 14, |
| | | fontSize: 14, |
| | | fontSize: 20, |
| | | color: 'auto' |
| | | }, |
| | | data: [ |
| | |
| | | width: 100%; |
| | | color: #01f8ff; |
| | | text-align: center; |
| | | font-size: 16px; |
| | | font-size: 14px; |
| | | margin-top: 10px; |
| | | } |
| | | } |
| | |
| | | |
| | | <style lang="scss" scoped> |
| | | .examine-container { |
| | | flex: 1; |
| | | width: 100%; |
| | | height: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | margin-bottom: 20px |
| | | } |
| | | |
| | | .examine-content { |
| | |
| | | <div class="map-container"> |
| | | <wrapper-title :title="'区域地图'"></wrapper-title> |
| | | <div class="map-content"> |
| | | |
| | | <div ref="map" class="map-style"></div> |
| | | </div> |
| | | </div> |
| | |
| | | import 'echarts-gl'; |
| | | import mapData from '@/assets/map/zigong1.json'; |
| | | import WrapperTitle from '../wrapper-title/index'; |
| | | import ScreenData from '../screen-data/index'; |
| | | |
| | | echarts.registerMap('zigong', mapData); |
| | | let mapChart = null; |
| | |
| | | } |
| | | }, |
| | | components: { |
| | | WrapperTitle |
| | | WrapperTitle, |
| | | ScreenData |
| | | }, |
| | | methods: { |
| | | filterData(name) { |
| | |
| | | |
| | | .map-content { |
| | | flex: 1; |
| | | position: relative; |
| | | // background: rgba(67, 102, 155, 0.3); |
| | | // border: 1px solid rgba(47, 91, 157, 0.8); |
| | | } |
| | |
| | | height: 100%; |
| | | } |
| | | } |
| | | |
| | | .data-container { |
| | | width: 100%; |
| | | display: flex; |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <div class="table-container"> |
| | | <wrapper-title :title="'区域设备数据'" :path="'/monitorServe/face'"></wrapper-title> |
| | | <div class="table-content" ref="tabContent"> |
| | | <el-table :data="tableData" border :height="tableHeight" :max-height="tableHeight" class="rank-table"> |
| | | <el-table-column prop="name" label="地区" align="center" width="100"> |
| | | </el-table-column> |
| | | <div class="table-wrapper"> |
| | | <el-table :data="tableData" border :height="tableHeight" :max-height="tableHeight" class="rank-table"> |
| | | <el-table-column prop="name" label="地区" align="center" width="100"> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="人脸设备正常率" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-tooltip placement="top"> |
| | | <div slot="content"> |
| | | <div class="tip-item"> |
| | | <div class="tip-label">设备正常数:</div> |
| | | <div class="tip-info tip-success">12</div> |
| | | <el-table-column label="人脸设备正常率" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-tooltip placement="top"> |
| | | <div slot="content"> |
| | | <div class="tip-item"> |
| | | <div class="tip-label">设备正常数:</div> |
| | | <div class="tip-info tip-success">12</div> |
| | | </div> |
| | | <div class="tip-item"> |
| | | <div class="tip-label">设备异常数:</div> |
| | | <div class="tip-info tip-danger">4</div> |
| | | </div> |
| | | </div> |
| | | <div class="tip-item"> |
| | | <div class="tip-label">设备异常数:</div> |
| | | <div class="tip-info tip-danger">4</div> |
| | | </div> |
| | | </div> |
| | | <div class="tip-num">75%</div> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <div class="tip-num">75%</div> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="车辆设备正常率" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-tooltip placement="top"> |
| | | <div slot="content"> |
| | | <div class="tip-item"> |
| | | <div class="tip-label">设备正常数:</div> |
| | | <div class="tip-info tip-success">12</div> |
| | | <el-table-column label="车辆设备正常率" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-tooltip placement="top"> |
| | | <div slot="content"> |
| | | <div class="tip-item"> |
| | | <div class="tip-label">设备正常数:</div> |
| | | <div class="tip-info tip-success">12</div> |
| | | </div> |
| | | <div class="tip-item"> |
| | | <div class="tip-label">设备异常数:</div> |
| | | <div class="tip-info tip-danger">4</div> |
| | | </div> |
| | | </div> |
| | | <div class="tip-item"> |
| | | <div class="tip-label">设备异常数:</div> |
| | | <div class="tip-info tip-danger">4</div> |
| | | </div> |
| | | </div> |
| | | <div class="tip-num">75%</div> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <div class="tip-num">75%</div> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="视频设备正常率" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-tooltip placement="top"> |
| | | <div slot="content"> |
| | | <div class="tip-item"> |
| | | <div class="tip-label">设备正常数:</div> |
| | | <div class="tip-info tip-success">12</div> |
| | | <el-table-column label="视频设备正常率" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-tooltip placement="top"> |
| | | <div slot="content"> |
| | | <div class="tip-item"> |
| | | <div class="tip-label">设备正常数:</div> |
| | | <div class="tip-info tip-success">12</div> |
| | | </div> |
| | | <div class="tip-item"> |
| | | <div class="tip-label">设备异常数:</div> |
| | | <div class="tip-info tip-danger">4</div> |
| | | </div> |
| | | </div> |
| | | <div class="tip-item"> |
| | | <div class="tip-label">设备异常数:</div> |
| | | <div class="tip-info tip-danger">4</div> |
| | | </div> |
| | | </div> |
| | | <div class="tip-num">75%</div> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div class="tip-num">75%</div> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import WrapperTitle from '../wrapper-title/index'; |
| | | |
| | | export default { |
| | | name: 'ScreenTable', |
| | | |
| | | components: { |
| | | WrapperTitle |
| | | }, |
| | | data() { |
| | | return { |
| | | tableHeight: 40, |
| | |
| | | // flex: 1; |
| | | height: 350px; |
| | | position: relative; |
| | | background: rgba(67, 102, 155, 0.3); |
| | | border: 1px solid rgba(47, 91, 157, 0.8); |
| | | |
| | | display: flex; |
| | | flex-direction: column; |
| | | |
| | | .table-content { |
| | | position: absolute; |
| | | width: 100%; |
| | | top: 0; |
| | | bottom: 0; |
| | | flex: 1; |
| | | background: rgba(67, 102, 155, 0.3); |
| | | border: 1px solid rgba(47, 91, 157, 0.8); |
| | | // position: absolute; |
| | | // width: 100%; |
| | | // top: 0; |
| | | // bottom: 0; |
| | | } |
| | | } |
| | | |
| | |
| | | <template> |
| | | <div class="wrapper-container"> |
| | | <select-item></select-item> |
| | | <div class="return-button"> |
| | | <el-button type="primary" @click="returnPath">管理系统</el-button> |
| | | <div class="return-button" @click="returnPath"> |
| | | 返回 |
| | | </div> |
| | | <div class="wrapper-content"> |
| | | <div class="left-container wrapper"> |
| | |
| | | </div> |
| | | <div class="right-container wrapper"> |
| | | <screen-examine class="animate-enter-x enter-right"></screen-examine> |
| | | <screen-data></screen-data> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | <script> |
| | | import SelectItem from '../select-item/index'; |
| | | import ScreenFace from '../screen-face/index'; |
| | | import ScreenExamine from '../screen-examine/index'; |
| | | import ScreenFace from '../screen-face/index'; |
| | | import ScreenVideo from '../screen-video/index'; |
| | | import ScreenCar from '../screen-car/index'; |
| | | import ScreenMap from '../screen-map/index'; |
| | | import ScreenTable from '../screen-table/index'; |
| | | import ScreenData from '../screen-data/index'; |
| | | export default { |
| | | name: 'ScreenWrapper', |
| | | components: { |
| | | SelectItem, |
| | | ScreenFace, |
| | | ScreenExamine, |
| | | ScreenMap, |
| | | ScreenTable, |
| | | ScreenFace, |
| | | ScreenVideo, |
| | | ScreenCar, |
| | | ScreenMap, |
| | | ScreenTable |
| | | ScreenData |
| | | }, |
| | | methods: { |
| | | returnPath() { |
| | |
| | | .return-button { |
| | | position: absolute; |
| | | right: 20px; |
| | | top: 40px; |
| | | top: 10px; |
| | | border-radius: 4px; |
| | | border: 1px solid #4481DD; |
| | | background-color: rgba(67, 102, 155, 0.4); |
| | | color: #4481DD; |
| | | padding: 5px 20px; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .wrapper-container { |
| | |
| | | |
| | | .wrapper-content { |
| | | width: 100%; |
| | | height: calc(100% - 100px); |
| | | margin-top: 100px; |
| | | height: calc(100% - 60px); |
| | | margin-top: 60px; |
| | | position: relative; |
| | | box-sizing: border-box; |
| | | padding: 20px; |
| | |
| | | } |
| | | |
| | | .wrapper { |
| | | width: 20%; |
| | | width: 25%; |
| | | height: 100%; |
| | | box-sizing: border-box; |
| | | padding: 0 10px; |
| | |
| | | } |
| | | |
| | | .center-wrapper { |
| | | width: 60%; |
| | | width: 50%; |
| | | height: 100%; |
| | | box-sizing: border-box; |
| | | padding: 0 10px; |
| | |
| | | <style lang="scss" scoped> |
| | | .select-container { |
| | | position: absolute; |
| | | top: 40px; |
| | | top: 10px; |
| | | left: 20px; |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | <span class="title">{{ title }}</span> |
| | | |
| | | <div class="more-button" v-if="path" @click="toPath"> |
| | | <dv-border-box-12> |
| | | <div class="button-text"> |
| | | 详情 |
| | | </div> |
| | | </dv-border-box-12> |
| | | <div class="icon"> |
| | | <img src="@/assets/icons/setting.png" alt=""> |
| | | </div> |
| | | <div class="button-text"> |
| | | 查看更多 |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | toPath () { |
| | | toPath() { |
| | | this.$router.push(this.path); |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | .more-button { |
| | | width: 100px; |
| | | height: 40px; |
| | | cursor: pointer; |
| | | display: flex; |
| | | align-items: center; |
| | | .icon { |
| | | width: 20px; |
| | | margin-top: 4px; |
| | | margin-right: 2px; |
| | | img { |
| | | width: 100%; |
| | | display: block; |
| | | } |
| | | } |
| | | |
| | | .button-text { |
| | | width: 100%; |
| | |
| | | justify-content: center; |
| | | align-items: center; |
| | | color: #ffffff81; |
| | | font-size: 20px; |
| | | font-size: 16px; |
| | | } |
| | | } |
| | | } |
| | |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="单位名" prop="checkUnitId"> |
| | | <el-select v-model="queryParams.checkUnitId" clearable @clear="handleQuery" placeholder="请选择单位"> |
| | | <el-select v-model="form.unitId" placeholder="请选择"> |
| | | <el-option |
| | | label="成都x运维" |
| | | value="1"> |
| | | </el-option> |
| | | <el-option |
| | | label="成都a运维" |
| | | value="2"> |
| | | v-for="item in unitList" |
| | | :key="item.id" |
| | | :label="item.value" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <div v-if="scope.row.unitId == 2">成都x运维</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="总服务费" align="center" prop="totalAmount" /> |
| | | <el-table-column label="扣减服务费" align="center" prop="deductAmount" /> |
| | | <!-- <el-table-column label="总服务费" align="center" prop="totalAmount" /> --> |
| | | <!-- <el-table-column label="扣减服务费" align="center" prop="deductAmount" /> --> |
| | | <el-table-column label="考核分数" align="center" prop="score" /> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | |
| | | <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="100px"> |
| | | <el-form-item label="核算对象" prop="checkUnitId"> |
| | | <el-select v-model="queryParams.checkUnitId" clearable @clear="handleQuery" placeholder="核算对象"> |
| | | <el-select v-model="form.unitId" placeholder="请选择"> |
| | | <el-option |
| | | label="成都x运维" |
| | | value="1"> |
| | | v-for="item in unitList" |
| | | :key="item.id" |
| | | :label="item.value" |
| | | :value="item.id"> |
| | | </el-option> |
| | | <el-option |
| | | label="成都a运维" |
| | | value="2"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="核算规则" prop="ruleId"> |
| | | <el-select v-model="form.ruleId" placeholder="请选择"> |
| | | <el-option label="成都x运维考核结果应用规则" value="1">成都x运维考核结果应用规则</el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="核算记录日期" prop="date" > |
| | |
| | | placeholder="请选择核算记录日期"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="总服务费" prop="totalAmount"> |
| | | <!-- <el-form-item label="总服务费" prop="totalAmount"> |
| | | <el-input v-model="form.totalAmount" placeholder="请输入总服务费" /> |
| | | </el-form-item> |
| | | <el-form-item label="扣减服务费" prop="deductAmount"> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="扣减服务费" prop="deductAmount"> |
| | | <el-input v-model="form.deductAmount" placeholder="请输入扣减服务费" /> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | <el-form-item label="考核分数" prop="score"> |
| | | <el-input v-model="form.score" placeholder="请输入考核分数" /> |
| | | </el-form-item> |
| | |
| | | |
| | | <script> |
| | | import { listRecord, getRecord, delRecord, addRecord, updateRecord } from "@/api/platform/calculate-record"; |
| | | |
| | | import {unitSelect} from "@/api/platform/unit"; |
| | | export default { |
| | | name: "Record", |
| | | data() { |
| | |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | this.selectUnit(); |
| | | }, |
| | | methods: { |
| | | // 运维公司下拉数据 |
| | | selectUnit() { |
| | | unitSelect().then(res => { |
| | | this.unitList = res.data; |
| | | }) |
| | | }, |
| | | /** 查询核算记录列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | |
| | | <el-card class="box-card" v-for="(item) in checkResultList"> |
| | | <div slot="header" class="clearfix"> |
| | | <span>{{ checkUnitName }}</span> |
| | | <el-button style="float: right; padding: 3px 0" type="text" @click="handleDetail(item)">详情</el-button> |
| | | <el-button style="float: right; padding: 3px 0" type="text" @click="handleDetail(item)">核算</el-button> |
| | | </div> |
| | | <div class="text item">合同<span class="time">{{ checkUnitName }}</span></div> |
| | | <div class="text item">总金额<span class="time">{{ "1000元" }}</span></div> |
| | |
| | | @pagination="getList" |
| | | /> |
| | | |
| | | <el-dialog :title="detailTitle" :visible.sync="detailOpen" width="700px" append-to-body> |
| | | <el-dialog :title="detailTitle" :visible.sync="detailOpen" width="760px" append-to-body> |
| | | <el-descriptions class="margin-top" :column="3" border> |
| | | <!-- <template slot="extra">--> |
| | | <!-- <el-button type="primary" size="small">操作</el-button>--> |
| | |
| | | :data="tableData" |
| | | show-summary |
| | | :summary-method="getSummaries" |
| | | style="width: 100%"> |
| | | style="width: 100%;text-align:center"> |
| | | <el-table-column |
| | | prop="time" |
| | | label="核算日期" |
| | |
| | | width="180" |
| | | doNotSum> |
| | | </el-table-column> |
| | | <el-table-column |
| | | <el-table-column |
| | | prop="score" |
| | | label="扣分系数" |
| | | width="180"> |
| | | <template slot-scope="scope"> |
| | | <el-tooltip class="item" effect="dark" :content="'考核规则:' + scope.row.description" placement="top"> |
| | | <span>{{ scope.row.value }}</span> |
| | | </el-tooltip> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="扣减金额(元)" |
| | | prop="money" |
| | | label="扣减金额(元)"> |
| | | </el-table-column> |
| | | width="180"> |
| | | <template slot-scope="scope"> |
| | | <el-input type="number" |
| | | :precision="2" :step="0.1" |
| | | :min="0" :max="1000000" |
| | | v-model="scope.row.money" |
| | | placeholder="请输入扣减金额"> |
| | | </el-input> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">确 定</el-button> |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <!-- 添加或修改考核结果对话框 --> |
| | |
| | | tableData: [{ |
| | | time: '2024-03-03', |
| | | score: '94', |
| | | money: '10', |
| | | value: '0.01', |
| | | money: '', |
| | | description: '每少1分扣当月总服务费的1%。例如:当月考核得分91.5分,扣除当月服务费3.5%的金额', |
| | | }, { |
| | | time: '2024-04-03', |
| | | score: '95', |
| | | money: '0', |
| | | value: '0', |
| | | money: '', |
| | | description: '每少1分扣当月总服务费的1%。例如:当月考核得分91.5分,扣除当月服务费3.5%的金额', |
| | | }, ], |
| | | manualScoreOpen: false, |
| | | manualScoreForm: {}, |
| | |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.detailOpen = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | |
| | | }) |
| | | }, |
| | | handleDetail(row) { |
| | | console.log("row", row) |
| | | this.detail = row; |
| | | this.detail.carOnlineRate = '97%'; |
| | | this.detailTitle = row.checkUnitName + '考核结果'; |
| | | this.detailTitle = this.checkUnitName + '考核结果'; |
| | | this.detailOpen = true; |
| | | |
| | | }, |
| | |
| | | }, |
| | | /** 提交按钮 */ |
| | | submitForm() { |
| | | this.detailOpen = false; |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | if (this.form.id != null) { |
| | |
| | | if (column.property === 'score') { |
| | | sums[index] = '-'; // 或者其他你想要显示的内容 |
| | | } |
| | | if (column.property === 'value') { |
| | | sums[index] = '-'; // 或者其他你想要显示的内容 |
| | | } |
| | | } else { |
| | | sums[index] = 'N/A'; |
| | | } |
| | |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | |
| | | <div class="container"> |
| | | <el-row type="flex" justify="center"> |
| | | <el-col :span="24"> |
| | | <h3 style="color: rgb(104,104,103);padding-top: 20px;padding-bottom: 20px;">资产管理</h3> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row type="flex" justify="center"> |
| | | <el-col :span="6" v-for="(item, index) in equipment" :key="index"> |
| | | <el-link @click="handleDetail(item)" :style="item.name == '' ? 'display:none' : ''"> |
| | | <el-card style="width:150px;height: 150px;text-align: center;"> |
| | | <i style="font-size: 40px;padding: 15px;" :class="item.icon"></i> |
| | | <div>{{ item.name }}</div> |
| | | </el-card> |
| | | </el-link> |
| | | </el-col> |
| | | </el-row> |
| | | <br/> |
| | | </div> |
| | | <br/><br/><br/><br/> |
| | | </div> |
| | | </template> |
| | |
| | | { name: '', icon: 'el-icon-timer', description: '描述信息', routerUrl: '/car/vehicle-data-monitor/index' }, |
| | | { name: '', icon: 'el-icon-money', description: '描述信息', routerUrl: '/car/vehicle-data-monitor/index' }, |
| | | { name: '', icon: 'el-icon-data-analysis', description: '描述信息', routerUrl: '/car/vehicle-data-monitor/index' }, |
| | | ], |
| | | equipment: [ |
| | | { name: '资产管理', icon: 'el-icon-wallet', description: '描述信息', routerUrl: '/car/equipment/index' }, |
| | | { name: '', icon: 'el-icon-pie-chart', description: '描述信息', routerUrl: '/car/vehicle-data-monitor/index' }, |
| | | { name: '', icon: 'el-icon-data-line', description: '描述信息', routerUrl: '/car/vehicle-data-monitor/index' }, |
| | | { name: '', icon: 'el-icon-timer', description: '描述信息', routerUrl: '/car/vehicle-data-monitor/index' }, |
| | | { name: '', icon: 'el-icon-money', description: '描述信息', routerUrl: '/car/vehicle-data-monitor/index' }, |
| | | { name: '', icon: 'el-icon-data-analysis', description: '描述信息', routerUrl: '/car/vehicle-data-monitor/index' }, |
| | | ] |
| | | } |
| | | }, |
New file |
| | |
| | | <template> |
| | | |
| | | <div class="app-container"> |
| | | |
| | | <el-card class="box-card" > |
| | | <el-row type="flex" align="middle" justify="space-between"> |
| | | <el-col :xl="8" :lg="8" :md="10" :sm="8" :xs="6"> |
| | | <div class="icon-container" style="background-color: #5599F7"> |
| | | <i class="el-icon-wallet"></i> |
| | | </div> |
| | | </el-col> |
| | | <el-col :xl="14" :lg="14" :md="12" :sm="14" :xs="16"> |
| | | <div class="dashboard"> |
| | | <div class="dashboard-item"> |
| | | <h3 style="color: #5C9BF8">{{ count.totalPosts }}</h3> |
| | | <p>设备总数</p > |
| | | </div> |
| | | <div class="dashboard-item"> |
| | | <h3 style="color: #3eba45">{{ count.totalMembers }}</h3> |
| | | <p>正常数</p > |
| | | </div> |
| | | <div class="dashboard-item"> |
| | | <h3 style="color: #fe640d">{{ count.postsPercentage }}</h3> |
| | | <p>异常数</p > |
| | | </div> |
| | | <div class="dashboard-item"> |
| | | <h3>{{ count.totalViews }}</h3> |
| | | <p>生成异常工单数</p > |
| | | </div> |
| | | <div class="dashboard-item"> |
| | | <h3>{{ count.noStore }}</h3> |
| | | <p>无存储</p > |
| | | </div> |
| | | <div class="dashboard-item"> |
| | | <h3>{{ count.partStore }}</h3> |
| | | <p>部分存储</p > |
| | | </div> |
| | | <div class="dashboard-item"> |
| | | <h3>{{ count.viewsPercentage }}%</h3> |
| | | <p>设备运行率</p > |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | </el-card> |
| | | |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> |
| | | <el-form-item label="关键字" prop="name"> |
| | | <el-input |
| | | v-model="queryParams.name" |
| | | placeholder="请输入关键字" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="区域" prop="onState"> |
| | | <el-select |
| | | v-model="queryParams.address" |
| | | placeholder="请选择区域" |
| | | clearable |
| | | > |
| | | <el-option label="自贡市" value="自贡市"/> |
| | | <el-option label="沿滩区" value="沿滩区"/> |
| | | <el-option label="大安区" value="大安区"/> |
| | | <el-option label="贡井区" value="贡井区"/> |
| | | <el-option label="自流井区" value="自流井区"/> |
| | | <el-option label="高新区" value="高新区"/> |
| | | <el-option label="荣县" value="荣县"/> |
| | | <el-option label="富顺县" value="富顺县"/> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="设备状态" prop="onState"> |
| | | <el-select |
| | | v-model="queryParams.onState" |
| | | placeholder="设备状态" |
| | | clearable |
| | | style="width: 100px" |
| | | > |
| | | <el-option |
| | | v-for="dict in dict.type.camera_state" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="是否生成异常工单" prop="defaultOrder" label-width="130px"> |
| | | <el-select |
| | | v-model="queryParams.defaultOrder" |
| | | placeholder="是否生成异常工单" |
| | | clearable |
| | | style="width: 170px" |
| | | > |
| | | <el-option |
| | | v-for="dict in dict.type.platform_yes_no" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | @click="handleExport" |
| | | >导出</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table v-loading="loading" :data="monitorList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" align="center" /> |
| | | <el-table-column label="设备名称" align="center" prop="name" width="280" fixed/> |
| | | <el-table-column label="设备编码" align="center" prop="serialNumber" width="180"/> |
| | | <el-table-column label="标签" align="center" prop="publicSecurity" width="180" v-if="columns[0].visible"/> |
| | | <el-table-column label="区域" align="center" prop="address" width="180" v-if="columns[1].visible"/> |
| | | <el-table-column label="设备状态" align="center" prop="onState" v-if="columns[2].visible"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.camera_state" :value="scope.row.onState"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="是否生成异常工单" align="center" prop="defaultOrder" width="180" v-if="columns[3].visible"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.platform_yes_no" :value="scope.row.defaultOrder"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="数据时间" align="center" prop="installedTime" width="180" v-if="columns[4].visible"/> |
| | | <el-table-column label="管理单位" align="center" prop="managementUnit" width="180" v-if="columns[5].visible"/> |
| | | <el-table-column label="信令时延(ms)" align="center" prop="sipDelay" width="180" v-if="columns[6].visible"/> |
| | | <el-table-column label="视频时延(ms)" align="center" prop="videoDelay" width="180" v-if="columns[7].visible"/> |
| | | <el-table-column label="关键帧时延(ms)" align="center" prop="iframeDelay" width="180" v-if="columns[8].visible"/> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-view" |
| | | @click="handleView(scope.row,scope.index)" |
| | | >详细</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | |
| | | <!-- 设备资产详情 --> |
| | | <el-dialog title="操作日志详细" :visible.sync="open" width="800px" append-to-body> |
| | | <el-form ref="form" :model="form" label-width="150px" size="mini"> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="设备编码:">{{ form.serialNumber }}</el-form-item> |
| | | <el-form-item label="设备名称:">{{ form.name }} </el-form-item> |
| | | <el-form-item label="地区:">{{ form.address }} </el-form-item> |
| | | <el-form-item label="上报部门:">{{ form.deptName }} </el-form-item> |
| | | <el-form-item label="设备状态:"> |
| | | <div v-if="form.onState === 1">可用</div> |
| | | <div v-else-if="form.onState === 2">不可用</div> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="地址:">{{ form.address }}</el-form-item> |
| | | <el-form-item label="是否生成异常工单:"> |
| | | <div v-if="form.defaultOrder === 1">是</div> |
| | | <div v-else-if="form.defaultOrder === 2">否</div> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="安装时间:">{{ form.installedTime }}</el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="管理单位:">{{ form.managementUnit }}</el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="信令时延(ms):"></el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="视频时延(ms):"></el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="关键帧时延(ms):"></el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="open = false">关 闭</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { videoCount, listMonitor, getMonitor, delMonitor, addMonitor, updateMonitor } from "@/api/platform/monitor"; |
| | | export default { |
| | | name: "Monitor", |
| | | dicts: ['sys_normal_disable', 'platform_yes_no','camera_state'], |
| | | data() { |
| | | return { |
| | | // 列信息 |
| | | columns: [ |
| | | { key: 0, label: `标签`, visible: true }, |
| | | { key: 1, label: `区域`, visible: true }, |
| | | { key: 2, label: `设备状态`, visible: true }, |
| | | { key: 3, label: `是否生成异常工单`, visible: true }, |
| | | { key: 4, label: `数据时间`, visible: true }, |
| | | { key: 5, label: `管理单位`, visible: true }, |
| | | { key: 6, label: `信令时延`, visible: true }, |
| | | { key: 7, label: `视频时延`, visible: true }, |
| | | { key: 8, label: `关键帧时延`, visible: true } |
| | | ], |
| | | count: { |
| | | totalPosts: 0, |
| | | totalMembers: 0, |
| | | postsPercentage: 0, |
| | | totalViews: 0, |
| | | noStore: 0, |
| | | partStore: 0, |
| | | viewsPercentage: 0 |
| | | }, |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | // 设备资产表格数据 |
| | | monitorList: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | serialNumber: null, |
| | | name: null, |
| | | onState: null, |
| | | address: null, |
| | | installedTime: null, |
| | | managementUnit: null, |
| | | defaultOrder: null, |
| | | cameraFunType: 1, |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | // 表单校验 |
| | | rules: { |
| | | serialNumber: [ |
| | | { required: true, message: "设备编码不能为空", trigger: "blur" } |
| | | ], |
| | | name: [ |
| | | { required: true, message: "设备名称不能为空", trigger: "blur" } |
| | | ], |
| | | onState: [ |
| | | { required: true, message: "设备状态", trigger: "blur" } |
| | | ], |
| | | address: [ |
| | | { required: true, message: "地址不能为空", trigger: "blur" } |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getVideoCount(); |
| | | this.getList(); |
| | | this.getCountyList(); |
| | | }, |
| | | methods: { |
| | | /** 查询设备资产列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listMonitor(this.queryParams).then(response => { |
| | | this.monitorList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | /** 查询设备资产统计数 */ |
| | | getVideoCount() { |
| | | videoCount('1').then(response => { |
| | | this.count = response.data; |
| | | }); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | serialNumber: null, |
| | | name: null, |
| | | onState: null, |
| | | address: null, |
| | | installedTime: null, |
| | | managementUnit: null, |
| | | defaultOrder: null, |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | this.queryParams.cameraFunType = 1; |
| | | this.getList(); |
| | | this.getVideoCount(); |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | | |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map(item => item.id) |
| | | this.single = selection.length!==1 |
| | | this.multiple = !selection.length |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | this.open = true; |
| | | this.title = "添加设备资产"; |
| | | }, |
| | | /** 详细按钮操作 */ |
| | | handleView(row) { |
| | | this.open = true; |
| | | this.form = row; |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | const id = row.id || this.ids |
| | | getMonitor(id).then(response => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.title = "修改设备资产"; |
| | | }); |
| | | }, |
| | | /** 提交按钮 */ |
| | | submitForm() { |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | if (this.form.id != null) { |
| | | updateMonitor(this.form).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addMonitor(this.form).then(response => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const ids = row.id || this.ids; |
| | | this.$modal.confirm('是否确认删除设备资产编号为"' + ids + '"的数据项?').then(function() { |
| | | return delMonitor(ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | }).catch(() => {}); |
| | | }, |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | | this.download('system/monitor/export', { |
| | | ...this.queryParams |
| | | }, `monitor_${new Date().getTime()}.xlsx`) |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | |
| | | .box-card { |
| | | background-color: #F5F9FE; |
| | | width: 100%; |
| | | margin-bottom: 20px; |
| | | height: 120px |
| | | } |
| | | .icon-container { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | border-radius: 20px; |
| | | width: 20%; |
| | | height: 80px; |
| | | margin-left: 5%; |
| | | } |
| | | .el-icon-wallet { |
| | | font-size: 50px; |
| | | color: #FFFFFF; |
| | | } |
| | | |
| | | .dashboard { |
| | | display: flex; |
| | | gap: 10%; |
| | | align-items: center; |
| | | margin-left: -50%; |
| | | } |
| | | |
| | | .dashboard-item { |
| | | text-align: center; |
| | | } |
| | | </style> |
New file |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-card class="box-card" > |
| | | <el-row type="flex" align="middle" justify="space-between"> |
| | | <el-col :xl="8" :lg="8" :md="10" :sm="8" :xs="6"> |
| | | <div class="icon-container" style="background-color: #5599F7"> |
| | | <i class="el-icon-connection"></i> |
| | | </div> |
| | | </el-col> |
| | | <el-col :xl="14" :lg="14" :md="12" :sm="14" :xs="16"> |
| | | <div class="dashboard"> |
| | | <div class="dashboard-item"> |
| | | <h3 style="color: #5C9BF8">{{ count.totalPosts }}</h3> |
| | | <p>设备总数</p > |
| | | </div> |
| | | <div class="dashboard-item"> |
| | | <h3 style="color: #3eba45">{{ count.totalMembers }}</h3> |
| | | <p>正常数</p > |
| | | </div> |
| | | <div class="dashboard-item"> |
| | | <h3 style="color: #fe640d">{{ count.postsPercentage }}</h3> |
| | | <p>异常数</p > |
| | | </div> |
| | | <div class="dashboard-item"> |
| | | <h3>{{ count.totalViews }}</h3> |
| | | <p>生成异常工单数</p > |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | </el-card> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="平台编码" prop="platformCode"> |
| | | <el-input |
| | | v-model="queryParams.platformCode" |
| | | placeholder="请输入平台编码" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="平台名称" prop="platformName"> |
| | | <el-input |
| | | v-model="queryParams.platformName" |
| | | placeholder="请输入平台名称" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="设备状态" prop="onState"> |
| | | <el-select |
| | | v-model="queryParams.status" |
| | | placeholder="设备状态" |
| | | clearable |
| | | style="width: 100px" |
| | | > |
| | | <el-option |
| | | v-for="dict in dict.type.camera_state" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="是否生成异常工单" prop="defaultOrder" label-width="130px"> |
| | | <el-select |
| | | v-model="queryParams.status" |
| | | placeholder="是否生成异常工单" |
| | | clearable |
| | | style="width: 170px" |
| | | > |
| | | <el-option |
| | | v-for="dict in dict.type.platform_yes_no" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | @click="handleAdd" |
| | | v-hasPermi="['platform:platform:add']" |
| | | >新增</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="success" |
| | | plain |
| | | icon="el-icon-edit" |
| | | size="mini" |
| | | :disabled="single" |
| | | @click="handleUpdate" |
| | | v-hasPermi="['platform:platform:edit']" |
| | | >修改</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="danger" |
| | | plain |
| | | icon="el-icon-delete" |
| | | size="mini" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | v-hasPermi="['platform:platform:remove']" |
| | | >删除</el-button> |
| | | </el-col> --> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | @click="handleExport" |
| | | v-hasPermi="['platform:platform:export']" |
| | | >导出</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table v-loading="loading" :data="platformList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="平台编码" align="center" prop="platformCode" /> |
| | | <el-table-column label="平台名称" align="center" prop="platformName" /> |
| | | <!-- <el-table-column label="平台联系人" align="center" prop="platformContact" /> |
| | | <el-table-column label="平台联系人电话" align="center" prop="platformContactPhone" /> --> |
| | | <el-table-column label="状态" align="center" prop="status"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.camera_state" :value="scope.row.status"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="是否生成异常工单" align="center" prop="defaultOrder" width="180"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.platform_yes_no" :value="scope.row.status"/> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column label="备注" align="center" prop="remark" /> --> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['platform:platform:edit']" |
| | | >修改</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['platform:platform:remove']" |
| | | >删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | |
| | | <!-- 添加或修改平台运行监控对话框 --> |
| | | <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="平台编码" prop="platformCode"> |
| | | <el-input v-model="form.platformCode" placeholder="请输入平台编码" /> |
| | | </el-form-item> |
| | | <el-form-item label="平台名称" prop="platformName"> |
| | | <el-input v-model="form.platformName" placeholder="请输入平台名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="平台联系人" prop="platformContact"> |
| | | <el-input v-model="form.platformContact" placeholder="请输入平台联系人" /> |
| | | </el-form-item> |
| | | <el-form-item label="平台联系人电话" prop="platformContactPhone"> |
| | | <el-input v-model="form.platformContactPhone" placeholder="请输入平台联系人电话" /> |
| | | </el-form-item> |
| | | <el-form-item label="备注" prop="remark"> |
| | | <el-input v-model="form.remark" placeholder="请输入备注" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">确 定</el-button> |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { listPlatform, getPlatform, delPlatform, addPlatform, updatePlatform } from "@/api/platform/platform"; |
| | | import { videoCount } from "@/api/platform/monitor"; |
| | | export default { |
| | | name: "Platform", |
| | | dicts: ['sys_normal_disable', 'platform_yes_no','camera_state'], |
| | | data() { |
| | | return { |
| | | count: { |
| | | totalPosts: 0, |
| | | totalMembers: 0, |
| | | postsPercentage: 0, |
| | | totalViews: 0, |
| | | noStore: 0, |
| | | partStore: 0, |
| | | viewsPercentage: 0 |
| | | }, |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | // 平台运行监控表格数据 |
| | | platformList: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | platformCode: null, |
| | | platformName: null, |
| | | platformContact: null, |
| | | platformContactPhone: null, |
| | | status: null, |
| | | remark: null, |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | // 表单校验 |
| | | rules: { |
| | | platformCode: [ |
| | | { required: true, message: "平台编码不能为空", trigger: "blur" } |
| | | ], |
| | | platformName: [ |
| | | { required: true, message: "平台名称不能为空", trigger: "blur" } |
| | | ], |
| | | platformContact: [ |
| | | { required: true, message: "平台联系人不能为空", trigger: "blur" } |
| | | ], |
| | | platformContactPhone: [ |
| | | { required: true, message: "平台联系人电话不能为空", trigger: "blur" } |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | this.getVideoCount(); |
| | | }, |
| | | methods: { |
| | | /** 查询平台运行监控列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listPlatform(this.queryParams).then(response => { |
| | | this.platformList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | /** 查询设备资产统计数 */ |
| | | getVideoCount() { |
| | | videoCount('1').then(response => { |
| | | this.count = response.data; |
| | | }); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | platformCode: null, |
| | | platformName: null, |
| | | platformContact: null, |
| | | platformContactPhone: null, |
| | | status: null, |
| | | remark: null, |
| | | createTime: null, |
| | | updateTime: null, |
| | | deleted: null |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map(item => item.id) |
| | | this.single = selection.length!==1 |
| | | this.multiple = !selection.length |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | this.open = true; |
| | | this.title = "添加平台运行监控"; |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | const id = row.id || this.ids |
| | | getPlatform(id).then(response => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.title = "修改平台运行监控"; |
| | | }); |
| | | }, |
| | | /** 提交按钮 */ |
| | | submitForm() { |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | if (this.form.id != null) { |
| | | updatePlatform(this.form).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addPlatform(this.form).then(response => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const ids = row.id || this.ids; |
| | | this.$modal.confirm('是否确认删除平台运行监控编号为"' + ids + '"的数据项?').then(function() { |
| | | return delPlatform(ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | }).catch(() => {}); |
| | | }, |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | | this.download('platform/platform/export', { |
| | | ...this.queryParams |
| | | }, `platform_${new Date().getTime()}.xlsx`) |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | |
| | | .box-card { |
| | | background-color: #F5F9FE; |
| | | width: 100%; |
| | | margin-bottom: 20px; |
| | | height: 120px |
| | | } |
| | | .icon-container { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | border-radius: 20px; |
| | | width: 20%; |
| | | height: 80px; |
| | | margin-left: 5%; |
| | | } |
| | | .el-icon-connection { |
| | | font-size: 50px; |
| | | color: #FFFFFF; |
| | | } |
| | | |
| | | .dashboard { |
| | | display: flex; |
| | | gap: 10%; |
| | | align-items: center; |
| | | margin-left: -50%; |
| | | } |
| | | |
| | | .dashboard-item { |
| | | text-align: center; |
| | | } |
| | | </style> |
New file |
| | |
| | | <template> |
| | | <div> |
| | | |
| | | <div class="container"> |
| | | <el-row type="flex" justify="start"> |
| | | <el-col :span="24"> |
| | | <h3 style="color: rgb(104,104,103);padding-top: 20px;padding-bottom: 20px;">视频考核规则</h3> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row type="flex" justify="start" v-for="(items, index) in groupData(videoData)"> |
| | | <el-col :span="4" v-for="item in items" :key="item.id"> |
| | | <el-card :style="{ borderBottomColor: getStatusColor(item.auditStatus) }"style="width:150px;height: 150px;text-align: center;border-bottom-width: 3px;"> |
| | | <i style="font-size: 40px;padding: 15px;" :class="item.icon"></i> |
| | | <div style="font-size:12px; text-align: center; height: 25px;">{{ item.name }} </div> |
| | | <div class="bottom clearfix"> |
| | | <el-button type="text" class="button" @click="handleAudit(item)">审核</el-button> |
| | | <el-button type="text" class="button" @click="handleUpdate(item)">修改</el-button> |
| | | </div> |
| | | </el-card> |
| | | <br/> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | |
| | | <div class="container"> |
| | | <el-row type="flex" justify="center"> |
| | | <el-col :span="24"> |
| | | <h3 style="color: rgb(104,104,103);padding-top: 20px;padding-bottom: 20px;">车辆考核规则</h3> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row type="flex" justify="start" v-for="(items, index) in groupData(carData)"> |
| | | <el-col :span="4" v-for="item in items" :key="item.id"> |
| | | <el-card :style="{ borderBottomColor: getStatusColor(item.auditStatus) }"style="width:150px;height: 150px;text-align: center;border-bottom-width: 3px;"> |
| | | <i style="font-size: 40px;padding: 15px;" :class="item.icon"></i> |
| | | <div style="font-size:12px; text-align: center; height: 25px;">{{ item.name }} </div> |
| | | <div class="bottom clearfix"> |
| | | <el-button type="text" class="button" @click="handleAudit(item)">审核</el-button> |
| | | <el-button type="text" class="button" @click="handleUpdate(item)">修改</el-button> |
| | | </div> |
| | | </el-card> |
| | | <br/> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | |
| | | <div class="container"> |
| | | <el-row type="flex" justify="center"> |
| | | <el-col :span="24"> |
| | | <h3 style="color: rgb(104,104,103);padding-top: 20px;padding-bottom: 20px;">人脸考核规则</h3> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row type="flex" justify="start" v-for="(items, index) in groupData(faceData)"> |
| | | <el-col :span="4" v-for="item in items" :key="item.id"> |
| | | <el-card :style="{ borderBottomColor: getStatusColor(item.auditStatus) }"style="width:150px;height: 150px;text-align: center;border-bottom-width: 3px;"> |
| | | <i style="font-size: 40px;padding: 15px;" :class="item.icon"></i> |
| | | <div style="font-size:12px; text-align: center; height: 25px;">{{ item.name }} </div> |
| | | <div class="bottom clearfix"> |
| | | <el-button type="text" class="button" @click="handleAudit(item)">审核</el-button> |
| | | <el-button type="text" class="button" @click="handleUpdate(item)">修改</el-button> |
| | | </div> |
| | | </el-card> |
| | | <br/> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <br/><br/><br/><br/> |
| | | |
| | | <!-- 添加或修改考核规则对话框 --> |
| | | <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="规则名称" prop="ruleName"> |
| | | <el-input v-model="form.name" placeholder="请输入规则名称"/> |
| | | </el-form-item> |
| | | <el-form-item label="考核类型" prop="examineCategory"> |
| | | <el-select v-model="form.examineCategory" placeholder="考核类型"> |
| | | <el-option |
| | | v-for="dict in dict.type.platform_examine_category" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="parseInt(dict.value)" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="规则类型" prop="ruleCategory"> |
| | | <el-select v-model="form.ruleCategory" placeholder="规则类型"> |
| | | <el-option |
| | | v-for="dict in dict.type.platform_rule_category" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="规则描述" prop="ruleDescription"> |
| | | <el-input v-model="form.ruleDescription" type="textarea" :autosize="{ minRows: 4, maxRows: 6}" placeholder="请输入规则名称"/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">确 定</el-button> |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | |
| | | <!-- 审核考核规则对话框 --> |
| | | <el-dialog :title="title" :visible.sync="auditOpen" width="600px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="规则名称" prop="ruleName"> |
| | | <el-input v-model="form.ruleName" placeholder="请输入规则名称" disabled/> |
| | | </el-form-item> |
| | | <el-form-item label="考核类型" prop="examineCategory"> |
| | | <el-select v-model="form.examineCategory" placeholder="考核类型" disabled> |
| | | <el-option |
| | | v-for="dict in dict.type.platform_examine_category" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="parseInt(dict.value)" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="规则类型" prop="ruleCategory"> |
| | | <el-select v-model="form.ruleCategory" placeholder="考核类型" disabled> |
| | | <el-option |
| | | v-for="dict in dict.type.platform_rule_category" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="规则描述" prop="ruleDescription"> |
| | | <el-input v-model="form.ruleDescription" type="textarea" placeholder="请输入规则名称" disabled/> |
| | | </el-form-item> |
| | | |
| | | |
| | | <el-form-item label="审核结果" prop="auditState" > |
| | | <el-radio-group v-model="form.auditState"> |
| | | <el-radio :label="1">通过</el-radio> |
| | | <el-radio :label="2">驳回</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="审核说明" prop="auditDescription" > |
| | | <el-input v-model="form.auditDescription" type="textarea" show-word-limit maxlength="100" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">确 定</el-button> |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { listCheckRule, getCheckRule, delCheckRule, addCheckRule, updateCheckRule } from "@/api/platform/check-rule"; |
| | | import { templateSelect} from "@/api/platform/check-template" |
| | | export default { |
| | | name: "CheckRule", |
| | | dicts: ['platform_audit_state','platform_examine_category','platform_rule_category'], |
| | | data() { |
| | | return { |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | templateList:[], |
| | | // 考核规则表格数据 |
| | | checkRuleList: [], |
| | | daterangeCreateTime: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 是否显示弹出层 |
| | | auditOpen: false, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | ruleName: null, |
| | | createTime: null, |
| | | ruleCategory: null, |
| | | templateId: null, |
| | | examineCategory: 1, |
| | | }, |
| | | videoData: [ |
| | | { name: '平台在线率', icon: 'el-icon-connection', ruleDescription: '省厅对市级共享和联网平台进行实时监测,市级共享/联网平台每月离线总时长在30分钟以内的平台在线率为100%,每超过30分钟扣10个百分点,扣完为止。' + |
| | | '每个月底最后4个工作日为预留的调试时间,可进行平台对接调试或者升级改造,平台对接调试或者升级改造须提前向省厅报备。除' + |
| | | '每月底4个工作日,其余时间报备每次扣10个百分点,每次报备不超过24小时,每月不超过3次。(重大特殊情况,如重大自然灾害等报厅领导批示)', examineCategory:0,ruleCategory:'0', auditStatus: 'approved'}, |
| | | { name: '一机一档合格率', icon: 'el-icon-folder', ruleDescription: '运维平台每月初对各地上传至联网平台的“一机一档”数据库中的摄像机档案数据进行质量校验,对必填项填报准确、规范的档案数据视为合格。\n' + |
| | | '一机一档合格率=合格的档案数据条数/档案数据总条数', examineCategory:0,ruleCategory:'0', auditStatus: 'pending' }, |
| | | { name: '一机一档注册率', icon: 'el-icon-folder', ruleDescription: '运维平台每月对省厅视图库的前端摄像机点位数量和一机一档的数据匹配。(上月底最后一天确认一机一档车辆、人脸点位数,1号由视图库侧进行考核)\n' + |
| | | '人脸卡口资产注册率=资产库登记在用的人脸卡口数量/(未注册的在线人脸卡口数量+资产库登记在用的人脸卡口数量)\n' + |
| | | '车辆卡口资产注册率=资产库登记在用的人脸卡口数量/(未注册的在线人脸卡口数量+资产库登记在用的人脸卡口数量)', examineCategory:0,ruleCategory:'0', auditStatus: 'rejected' }, |
| | | { name: '档案考核比', icon: 'el-icon-folder', ruleDescription: '描述信息', examineCategory:0,ruleCategory:'0',auditStatus: 'approved' }, |
| | | { name: '点位在线率', icon: 'el-icon-search', ruleDescription: '描述信息', examineCategory:0,ruleCategory:'0',auditStatus: 'approved'}, |
| | | { name: '录像可用率', icon: 'el-icon-turn-off', ruleDescription: '描述信息',examineCategory:0,ruleCategory:'0',auditStatus: 'approved'}, |
| | | { name: '标注正确率', icon: 'el-icon-place', ruleDescription: '描述信息', examineCategory:0,ruleCategory:'0',auditStatus: 'approved' }, |
| | | { name: '校时正确率', icon: 'el-icon-place', ruleDescription: '描述信息', examineCategory:0,ruleCategory:'0',auditStatus: 'approved' }, |
| | | { name: '重点点位在线率', icon: 'el-icon-place', ruleDescription: '描述信息', examineCategory:0,ruleCategory:'0',auditStatus: 'approved'}, |
| | | { name: '重点点位校时正确率', icon: 'el-icon-place', ruleDescription: '描述信息', examineCategory:0,ruleCategory:'0',auditStatus: 'approved' }, |
| | | { name: '重点指挥图像在线率', icon: 'el-icon-place', ruleDescription: '描述信息', examineCategory:0,ruleCategory:'0',auditStatus: 'approved' }, |
| | | { name: '视频图像资源安全管理', icon: 'el-icon-place', ruleDescription: '描述信息', examineCategory:0,ruleCategory:'0',auditStatus: 'approved' }, |
| | | ], |
| | | carData: [ |
| | | { name: '视图库对接稳定性', icon: 'el-icon-truck', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | { name: '点位在线率', icon: 'el-icon-truck', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | { name: '联网卡口设备目录一致率', icon: 'el-icon-truck', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | { name: '车辆卡口信息采集准确率', icon: 'el-icon-truck', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | { name: '车辆卡口设备抓拍数据完整性', icon: 'el-icon-truck', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | { name: '车辆卡口设备抓拍数据准确性', icon: 'el-icon-truck', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | { name: '车辆卡口设备时钟准确性', icon: 'el-icon-truck', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | { name: '车辆卡口设备抓拍数据上传及时性', icon: 'el-icon-truck', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | { name: '车辆卡口设备url可用性', icon: 'el-icon-truck', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | { name: '车辆卡口设备抓拍数据大图可用性', icon: 'el-icon-truck', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | ], |
| | | faceData: [ |
| | | { name: '视图库对接稳定性', icon: 'el-icon-alarm-clock', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | { name: '点位在线率', icon: 'el-icon-user', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | { name: '目录一致率', icon: 'el-icon-data-line', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | { name: '人脸卡口信息采集准确率', icon: 'el-icon-timer', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | { name: '设备抓拍图片合格性', icon: 'el-icon-money', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | { name: '设备抓拍图片时钟准确性', icon: 'el-icon-data-analysis', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | { name: '抓拍人脸数据上传及时性', icon: 'el-icon-data-analysis', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | { name: '人脸卡口设备抓拍数据大图可用性', icon: 'el-icon-data-analysis', ruleDescription: '描述信息', auditStatus: 'approved' }, |
| | | ], |
| | | activeIndex: '0', |
| | | // 表单参数 |
| | | form: {}, |
| | | // 表单校验 |
| | | rules: { |
| | | ruleName: [ |
| | | { required: true, message: "规则名称不能为空", trigger: "blur" } |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | methods: { |
| | | groupData(data) { |
| | | // 将数据按每六个一组进行分组 |
| | | const groupedData = []; |
| | | for (let i = 0; i < data.length; i += 6) { |
| | | groupedData.push(data.slice(i, i + 6)); |
| | | } |
| | | return groupedData; |
| | | }, |
| | | /** 考核模板下拉列表 */ |
| | | getTemplateSelect() { |
| | | templateSelect().then((res) => { |
| | | this.templateList = res.data; |
| | | }) |
| | | }, |
| | | /** 查询考核规则列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) { |
| | | this.queryParams["start"] = this.daterangeCreateTime[0]; |
| | | this.queryParams["end"] = this.daterangeCreateTime[1]; |
| | | } |
| | | listCheckRule(this.queryParams).then(response => { |
| | | this.checkRuleList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.auditOpen = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | ruleName: null, |
| | | ruleDetail: null, |
| | | videoPointNum: null, |
| | | vehicleCheckpointNum: null, |
| | | faceChceckpointNum: null, |
| | | createTime: null, |
| | | updateTime: null, |
| | | deleted: null |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | handleSelect(key, keyPath) { |
| | | console.log(key, keyPath); |
| | | }, |
| | | getStatusColor(status) { |
| | | switch (status) { |
| | | case 'pending': |
| | | return '#ffffff'; // '#00a1d6'蓝色,表示待审核 |
| | | case 'approved': |
| | | return '#ffffff'; // '#00e297'绿色,表示已审核 |
| | | case 'rejected': |
| | | return '#f56c6c'; // 红色,表示审核未通过 |
| | | default: |
| | | return '#ffffff'; // 白色,默认状态 |
| | | } |
| | | }, |
| | | |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map(item => item.id) |
| | | this.single = selection.length!==1 |
| | | this.multiple = !selection.length |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | this.open = true; |
| | | this.title = "添加考核规则"; |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(item) { |
| | | this.reset(); |
| | | const id = item.id || this.ids |
| | | this.form = item; |
| | | this.open = true; |
| | | this.title = "修改考核规则"; |
| | | }, |
| | | /** 审核按钮操作 */ |
| | | handleAudit(row) { |
| | | this.reset(); |
| | | const id = row.id || this.ids |
| | | getCheckRule(id).then(response => { |
| | | this.form = response.data; |
| | | this.auditOpen = true; |
| | | this.title = "审核考核规则"; |
| | | }); |
| | | }, |
| | | /** 提交按钮 */ |
| | | submitForm() { |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | if (this.form.id != null) { |
| | | updateCheckRule(this.form).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |
| | | this.auditOpen = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addCheckRule(this.form).then(response => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.auditOpen = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const ids = row.id || this.ids; |
| | | this.$modal.confirm('是否确认删除考核规则编号为"' + ids + '"的数据项?').then(function() { |
| | | return delCheckRule(ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | }).catch(() => {}); |
| | | }, |
| | | |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | | this.download('system/checkRule/export', { |
| | | ...this.queryParams |
| | | }, `checkRule_${new Date().getTime()}.xlsx`) |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .container { |
| | | width: 90%; |
| | | margin: 10px auto; |
| | | } |
| | | .el-menu{ |
| | | margin: 10px auto; |
| | | } |
| | | </style> |
File was renamed from src/views/system/template/city/index.vue |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="状态" prop="status"> |
| | | <!-- <el-form-item label="状态" prop="status"> |
| | | <el-input |
| | | v-model="queryParams.status" |
| | | placeholder="请输入状态" |
| | |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | <el-form-item label="考核类型" prop="examineCategory"> |
| | | <el-select v-model="queryParams.status" placeholder="考核类型" clearable @keyup.enter.native="handleQuery"> |
| | | <el-option |
| | | v-for="dict in dict.type.platform_examine_category" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="parseInt(dict.value)" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| | |
| | | @click="handleAdd" |
| | | >新增</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button |
| | | type="success" |
| | | plain |
| | |
| | | size="mini" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | >删除</el-button> |
| | | >删除</el-button> --> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table v-loading="loading" :data="checkTemplateList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="模板名称" align="center" prop="templateName" width="220px"/> |
| | | <el-table-column label="考核类型" align="center" prop="examineCategory" > |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.platform_examine_category" :value="scope.row.examineCategory"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="考核对象" align="center" prop="deptId" width="400px" /> |
| | | <el-table-column label="调整系数" align="center" prop="adjustCoefficient" /> |
| | | <el-table-column label="调整系数计算方式" align="center" prop="adjustWay"/> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | >修改</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | >删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-card class="box-card" v-for="item in checkTemplateList" :key="item"> |
| | | <div class="text item">模板名称:{{ item.templateName }}</div> |
| | | <div class="text item">考核类型:{{ item.examineCategory == 0 ? '省厅考核' : '区域考核' }}</div> |
| | | <div class="text item">考核对象:{{ item.deptId }}</div> |
| | | <div class="text item">发布状态:{{ item.status == 0 ? '启用' : '停用' }}</div> |
| | | <div class="bottom clearfix"> |
| | | <el-button type="text" class="button" @click="">审核</el-button> |
| | | <el-button type="text" class="button" @click="">发布</el-button> |
| | | <el-button type="text" class="button" @click="">复制</el-button> |
| | | <el-button type="text" class="button" @click="handleUpdate(item)">修改</el-button> |
| | | <el-button type="text" class="button" @click="handleDelete(item)">删除</el-button> |
| | | </div> |
| | | </el-card> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | |
| | | display: flex; |
| | | flex-direction: row; |
| | | } |
| | | .text { |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .item { |
| | | margin-bottom: 18px; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | white-space: nowrap; |
| | | } |
| | | |
| | | .box-card { |
| | | width: 20%; |
| | | } |
| | | </style> |