fuliqi
2024-04-03 bce10b2db48c97a23543189368ceb6a8f3737fb3
src/views/system/result/city/detail.vue
@@ -5,6 +5,39 @@
    <el-container>
      <el-main style="padding-top: 0px">
        <h2>考核分数明细</h2>
        <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
          <el-form-item label="考核对象" prop="ruleName">
            <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="createTime">
            <div class="block">
              <el-date-picker
                v-model="value2"
                align="right"
                type="date"
                placeholder="选择日期"
                :picker-options="pickerOptions">
              </el-date-picker>
            </div>
          </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
@@ -31,13 +64,12 @@
        <el-table v-loading="loading" :data="scoreList" @selection-change="handleSelectionChange">
          <el-table-column type="selection" width="55" align="center" />
          <el-table-column label="考核名" align="center" prop="examineName" />
          <el-table-column label="考核类型" align="center" prop="examineCategory">
            <template slot-scope="scope">
              <div v-if="scope.row.examineCategory == 1">省厅考核</div>
              <div v-else-if="scope.row.examineCategory == 2">市局考核</div>
              <div v-else-if="scope.row.examineCategory == 3">合同考核</div>
            </template>
          <el-table-column label="考核规则" align="center" prop="ruleId">
          <template slot-scope="scope">
            <div v-if="scope.row.ruleId == 5">一机一档注册率</div>
            <div v-else-if="scope.row.ruleId == 4">一机一档合格率</div>
            <div v-else-if="scope.row.ruleId == 3">平台在线率</div>
          </template>
          </el-table-column>
          <el-table-column label="考核对象" align="center" prop="unitName">
            <template slot-scope="scope">
@@ -46,17 +78,7 @@
            </template>
          </el-table-column>
          <el-table-column label="分值" align="center" prop="score" />
          <el-table-column label="考核规则" align="center" prop="ruleCategory">
            <template slot-scope="scope">
              <div v-if="scope.row.ruleCategory == 1">视频在线率</div>
              <div v-else-if="scope.row.ruleCategory == 2">存储故障</div>
              <div v-else-if="scope.row.ruleCategory == 3">视图库对接稳定性</div>
              <div v-else-if="scope.row.ruleCategory == 4">一机一档24小时未修复</div>
              <div v-else-if="scope.row.ruleCategory == 5">时钟不同步24小时未修复</div>
            </template>
          </el-table-column>
          <el-table-column label="创建人" align="center" prop="createBy" />
          <el-table-column label="创建时间" align="center" prop="createTime" />
          <el-table-column label="考核时间" align="center" prop="createTime" />
          <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
            <template slot-scope="scope">
              <el-button
@@ -74,7 +96,13 @@
            </template>
          </el-table-column>
        </el-table>
        <pagination
          v-show="total>0"
          :total="scoreTotal"
          :page.sync="queryParams.pageNum"
          :limit.sync="queryParams.pageSize"
          @pagination="getRuleList"
        />
      </el-main>
    </el-container>
   <el-container>
@@ -101,39 +129,13 @@
             @click="handleDelete"
           >删除</el-button>
         </el-col>
         <!--      <el-col :span="1.5">-->
         <!--        <el-button-->
         <!--          type="warning"-->
         <!--          plain-->
         <!--          icon="el-icon-download"-->
         <!--          size="mini"-->
         <!--          @click="handleExport"-->
         <!--          v-hasPermi="['system:checkRule:export']"-->
         <!--        >导出</el-button>-->
         <!--      </el-col>-->
         <right-toolbar :showSearch.sync="showSearch" @queryTable="getRuleList"></right-toolbar>
       </el-row>
       <el-table v-loading="loading" :data="ruleList" @selection-change="handleSelectionChange">
         <el-table-column type="selection" width="55" align="center" />
         <el-table-column label="规则名称" align="center" prop="ruleName" />
         <el-table-column label="运维类别" align="center" prop="category">
           <template slot-scope="scope">
             <div v-if="scope.row.category === 1">视频监控</div>
             <div v-else-if="scope.row.category === 2">车辆识别</div>
             <div v-else-if="scope.row.category === 3">人脸识别</div>
           </template>
         </el-table-column>
         <el-table-column label="规则描述" align="center" prop="ruleDetail" />
         <el-table-column label="创建时间" align="center" prop="createTime" />
         <el-table-column label="审核状态" align="center" prop="auditState">
           <template slot-scope="scope">
             <dict-tag :options="dict.type.platform_audit_state" :value="scope.row.auditState"/>
           </template>
         </el-table-column>
         <el-table-column label="审核人" align="center" prop="auditUser" />
         <el-table-column label="审核时间" align="center" prop="auditTime" />
         <el-table-column label="审核意见" align="center" prop="auditDescription" />
         <el-table-column label="规则权重" align="center" prop="ruleWeight" />
         <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
           <template slot-scope="scope">
             <el-button
@@ -165,113 +167,78 @@
    <el-container>
      <el-main>
        <h2>考核成绩</h2>
          <el-collapse v-model="activeNames" @change="handleChange" >
            <el-collapse-item  name="1">
              <template slot="title">
                <div style="width: 10%" >自流井区</div><div style="margin-left: 75%">得分:0.97</div>
              </template>
              <div>视图库对接稳定性:95.32%</div>
              <div>点位在线率:96.46%</div>
              <div>联网卡口设备目录一致率:97.26%</div>
              <div>车辆卡口信息采集准确率:92.33%</div>
              <div>车辆卡口设备抓拍数据完整性:94.26%</div>
              <div>车辆卡口设备抓拍数据准确性:94.78%</div>
              <div>车辆卡口设备时钟准确性:93.98%</div>
              <div>车辆卡口设备抓拍数据上传及时性:95.86%</div>
              <div>车辆卡口设备url可用性:94.56%</div>
              <div>车辆卡口设备抓拍数据大图可用性:91.77%</div>
            </el-collapse-item>
            <el-collapse-item  name="2">
              <template slot="title">
                <div style="width: 10%">贡井区</div><div style="margin-left: 75%">得分:0.94</div>
              </template>
              <div>视图库对接稳定性:95.32%</div>
              <div>点位在线率:96.46%</div>
              <div>联网卡口设备目录一致率:97.26%</div>
              <div>车辆卡口信息采集准确率:92.33%</div>
              <div>车辆卡口设备抓拍数据完整性:94.26%</div>
              <div>车辆卡口设备抓拍数据准确性:94.78%</div>
              <div>车辆卡口设备时钟准确性:93.98%</div>
              <div>车辆卡口设备抓拍数据上传及时性:95.86%</div>
              <div>车辆卡口设备url可用性:94.56%</div>
              <div>车辆卡口设备抓拍数据大图可用性:91.77%</div>
            </el-collapse-item>
            <el-collapse-item title="大安区" name="3">
              <template slot="title">
                <div style="width: 10%">大安区</div><div style="margin-left: 75%">得分:0.95</div>
              </template>
              <div>视图库对接稳定性:95.32%</div>
              <div>点位在线率:96.46%</div>
              <div>联网卡口设备目录一致率:97.26%</div>
              <div>车辆卡口信息采集准确率:92.33%</div>
              <div>车辆卡口设备抓拍数据完整性:94.26%</div>
              <div>车辆卡口设备抓拍数据准确性:94.78%</div>
              <div>车辆卡口设备时钟准确性:93.98%</div>
              <div>车辆卡口设备抓拍数据上传及时性:95.86%</div>
              <div>车辆卡口设备url可用性:94.56%</div>
              <div>车辆卡口设备抓拍数据大图可用性:91.77%</div>
            </el-collapse-item>
            <el-collapse-item title="沿滩区" name="4">
              <template slot="title">
                <div style="width: 10%">沿滩区</div><div style="margin-left: 75%">得分:0.94</div>
              </template>
              <div>视图库对接稳定性:95.32%</div>
              <div>点位在线率:96.46%</div>
              <div>联网卡口设备目录一致率:97.26%</div>
              <div>车辆卡口信息采集准确率:92.33%</div>
              <div>车辆卡口设备抓拍数据完整性:94.26%</div>
              <div>车辆卡口设备抓拍数据准确性:94.78%</div>
              <div>车辆卡口设备时钟准确性:93.98%</div>
              <div>车辆卡口设备抓拍数据上传及时性:95.86%</div>
              <div>车辆卡口设备url可用性:94.56%</div>
              <div>车辆卡口设备抓拍数据大图可用性:91.77%</div>
            </el-collapse-item>
            <el-collapse-item title="荣县" name="5">
              <template slot="title">
                <div style="width: 10%">荣县</div><div style="margin-left: 75%">得分:0.93</div>
              </template>
              <div>视图库对接稳定性:95.32%</div>
              <div>点位在线率:96.46%</div>
              <div>联网卡口设备目录一致率:97.26%</div>
              <div>车辆卡口信息采集准确率:92.33%</div>
              <div>车辆卡口设备抓拍数据完整性:94.26%</div>
              <div>车辆卡口设备抓拍数据准确性:94.78%</div>
              <div>车辆卡口设备时钟准确性:93.98%</div>
              <div>车辆卡口设备抓拍数据上传及时性:95.86%</div>
              <div>车辆卡口设备url可用性:94.56%</div>
              <div>车辆卡口设备抓拍数据大图可用性:91.77%</div>
            </el-collapse-item>
            <el-collapse-item title="富顺区" name="6">
              <template slot="title">
                <div style="width: 10%">富顺区</div><div style="margin-left: 75%">得分:0.95</div>
              </template>
              <div>视图库对接稳定性:95.32%</div>
              <div>点位在线率:96.46%</div>
              <div>联网卡口设备目录一致率:97.26%</div>
              <div>车辆卡口信息采集准确率:92.33%</div>
              <div>车辆卡口设备抓拍数据完整性:94.26%</div>
              <div>车辆卡口设备抓拍数据准确性:94.78%</div>
              <div>车辆卡口设备时钟准确性:93.98%</div>
              <div>车辆卡口设备抓拍数据上传及时性:95.86%</div>
              <div>车辆卡口设备url可用性:94.56%</div>
              <div>车辆卡口设备抓拍数据大图可用性:91.77%</div>
            </el-collapse-item>
            <el-collapse-item title="高新区" name="7">
              <template slot="title">
                <div style="width: 10%">高新区</div><div style="margin-left: 75%;">得分:0.96</div>
              </template>
              <div>视图库对接稳定性:95.32%</div>
              <div>点位在线率:96.46%</div>
              <div>联网卡口设备目录一致率:97.26%</div>
              <div>车辆卡口信息采集准确率:92.33%</div>
              <div>车辆卡口设备抓拍数据完整性:94.26%</div>
              <div>车辆卡口设备抓拍数据准确性:94.78%</div>
              <div>车辆卡口设备时钟准确性:93.98%</div>
              <div>车辆卡口设备抓拍数据上传及时性:95.86%</div>
              <div>车辆卡口设备url可用性:94.56%</div>
              <div>车辆卡口设备抓拍数据大图可用性:91.77%</div>
            </el-collapse-item>
          </el-collapse>
        <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
          <el-form-item label="考核对象" prop="ruleName">
            <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="createTime">
            <div class="block">
              <el-date-picker
                v-model="value2"
                align="right"
                type="date"
                placeholder="选择日期"
                :picker-options="pickerOptions">
              </el-date-picker>
            </div>
          </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"
            v-hasPermi="['system:checkRule:export']"
          >导出</el-button>
        </el-col>
          <right-toolbar :showSearch.sync="showSearch" @queryTable="getRuleList"></right-toolbar>
        </el-row>
        <el-table v-loading="loading" :data="checkResultList" @selection-change="handleSelectionChange">
          <el-table-column type="selection" width="55" align="center" />
          <el-table-column label="考核日期" align="center" prop="date" width="120px"/>
          <el-table-column label="考核对象" align="center" prop="target" width="120px"/>
          <el-table-column label="平台在线率(权重:0.5)" align="center" prop="platformOnline" width="120px"/>
          <el-table-column label="一机一档合格率(权重:0.5)" align="center" prop="monitorQualification" width="120px"/>
          <el-table-column label="一机一档注册率(权重:0.5)" align="center" prop="monitorRegistration" width="120px"/>
          <el-table-column label="档案考核比(权重:0.5)" align="center" prop="archivesRate" width="120px"/>
          <el-table-column label="点位在线率(权重:1)" align="center" prop="siteOnline" width="120px"/>
          <el-table-column label="录像可用率(权重:1)" align="center" prop="videoAvailable" width="120px"/>
          <el-table-column label="标注正确率(权重:0.5)" align="center" prop="annotationAccuracy" width="120px"/>
          <el-table-column label="校时正确率(权重:0.5)" align="center" prop="timingAccuracy" width="120px"/>
          <el-table-column label="重点点位在线率(权重:0.5)" align="center" prop="keySiteOnline" width="120px"/>
          <el-table-column label="重点点位录像可用率(权重:0.5)" align="center" prop="keyVideoAvailable" width="120px"/>
          <el-table-column label="重点点位标注正确率(权重:0.5)" align="center" prop="keyAnnotationAccuracy" width="120px"/>
          <el-table-column label="重点点位按时正确率(权重:0.5)" align="center" prop="keyTimingAccuracy" width="120px"/>
          <el-table-column label="重点指挥图像公安部巡检结果(权重:0.2)" align="center" prop="keyCommandImageInspection" width="120px"/>
          <el-table-column label="重点指挥图像目录树(权重:0.8)" align="center" prop="keyCommandImageDirectoryTree" width="120px"/>
          <el-table-column label="在线检查平台部署及运行率(权重:0.075)" align="center" prop="onlineInspectionPlatform" width="120px"/>
          <el-table-column label="视频传输网资产准确率(权重:0.075)" align="center" prop="videoTransmissionAssetsAccuracy" width="120px"/>
          <el-table-column label="视频传输网资产弱口令得分比例(权重:0.075)" align="center" prop="videoTransmissionAssetsWeakPasswordScore" width="120px"/>
          <el-table-column label="视频传输网危险资产得分比重(权重:0.075)" align="center" prop="videoTransmissionDangerousAssetsScore" width="120px"/>
          <el-table-column label="视频传输网边界完整性检测扣分项(权重:0.2)" align="center" prop="videoTransmissionBoundaryIntegrityDetection" width="120px"/>
          <el-table-column label="月运行率" align="center" prop="operatingRate"/>
        </el-table>
    </el-main>
    </el-container>
@@ -481,7 +448,58 @@
      // 总条数
      total: 0,
      // 考核结果表格数据
      checkResultList: [],
      checkResultList: [
        {
          date: '2024-04-02',
          target: '自流井区',
          platformOnline: '97%',
          monitorQualification: '97%',
          monitorRegistration: '97%',
          archivesRate: '97%',
          siteOnline: '97%',
          videoAvailable: '97%',
          annotationAccuracy: '97%',
          timingAccuracy: '97%',
          keySiteOnline: '97%',
          keyVideoAvailable: '97%',
          keyAnnotationAccuracy: '97%',
          keyTimingAccuracy: '97%',
          keyCommandImageInspection: '97%',
          keyCommandImageDirectoryTree: '97%',
          onlineInspectionPlatform: '97%',
          videoTransmissionAssetsAccuracy: '97%',
          videoTransmissionAssetsWeakPasswordScore: '97%',
          videoTransmissionDangerousAssetsScore: '97%',
          videoTransmissionBoundaryIntegrityDetection: '97%',
          operatingRate: '97%',
        },
        {
          date: '2024-04-03',
          target: '自流井区',
          platformOnline: '97%',
          monitorQualification: '97%',
          monitorRegistration: '97%',
          archivesRate: '97%',
          siteOnline: '97%',
          videoAvailable: '97%',
          annotationAccuracy: '97%',
          timingAccuracy: '97%',
          keySiteOnline: '97%',
          keyVideoAvailable: '97%',
          keyAnnotationAccuracy: '97%',
          keyTimingAccuracy: '97%',
          keyCommandImageInspection: '97%',
          keyCommandImageDirectoryTree: '97%',
          onlineInspectionPlatform: '97%',
          videoTransmissionAssetsAccuracy: '97%',
          videoTransmissionAssetsWeakPasswordScore: '97%',
          videoTransmissionDangerousAssetsScore: '97%',
          videoTransmissionBoundaryIntegrityDetection: '97%',
          operatingRate: '97%',
        }
      ],
      scoreTotal: 3,
      // 弹出层标题
      title: "",
      // 是否显示弹出层
@@ -490,13 +508,18 @@
      ruleDetailOpen: false,
      // 逻辑删除时间范围
      daterangeCheckTime: [],
      // 表单参数
      form: {},
      scoreForm: {},
      ruleForm: {},
      jsonRule: {},
      // 考核规则列表
      ruleList: [],
      ruleList: [
        {ruleName: '平台在线率',ruleWeight: 0.5},
        {ruleName: '一机一档合格率',ruleWeight: 0.5},
        {ruleName: '一机一档在线率',ruleWeight: 0.5},
      ],
      // 考核计分表格数据
      scoreList: [],
      //违约规则请求参数
@@ -513,6 +536,33 @@
        pageSize: 10,
        examineCategory: 2,
      },
      pickerOptions: {
        disabledDate(time) {
          return time.getTime() > Date.now();
        },
        shortcuts: [{
          text: '今天',
          onClick(picker) {
            picker.$emit('pick', new Date());
          }
        }, {
          text: '昨天',
          onClick(picker) {
            const date = new Date();
            date.setTime(date.getTime() - 3600 * 1000 * 24);
            picker.$emit('pick', date);
          }
        }, {
          text: '一周前',
          onClick(picker) {
            const date = new Date();
            date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
            picker.$emit('pick', date);
          }
        }]
      },
      value1: '',
      value2: '',
      // 表单校验
      rules: {
      }
@@ -525,7 +575,7 @@
      console.log(this.$route.query.detail,"detail------------")
    }
    // 考核规则列表
    this.getRuleList();
    // this.getRuleList();
    // 考核积分列表
    this.getScoreList();
    // this.selectUnit();