fuliqi
2024-03-26 dab34ce9fbe468d82cbb6b8c89bd3a0d167e74ae
src/views/system/check-result/contract/detail.vue
@@ -1,5 +1,7 @@
<template>
  <div class="app-container">
    <el-page-header @back="goBack" content="详情页面">
    </el-page-header>
    <el-container>
      <el-main style="padding-top: 0px">
        <h2>考核分数明细</h2>
@@ -30,6 +32,13 @@
        <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>
          <el-table-column label="考核对象" align="center" prop="unitName">
            <template slot-scope="scope">
              <div v-if="scope.row.unitName ==='成都x运维' ">成都x运维</div>
@@ -37,13 +46,13 @@
            </template>
          </el-table-column>
          <el-table-column label="分值" align="center" prop="score" />
          <el-table-column label="考核规则" align="center" prop="scoreCategory">
          <el-table-column label="考核规则" align="center" prop="ruleCategory">
            <template slot-scope="scope">
              <div v-if="scope.row.scoreCategory === 1">视频在线率</div>
              <div v-else-if="scope.row.scoreCategory === 2">存储故障</div>
              <div v-else-if="scope.row.scoreCategory === 3">视图库对接稳定性</div>
              <div v-else-if="scope.row.scoreCategory === 4">一机一档24小时未修复</div>
              <div v-else-if="scope.row.scoreCategory === 5">时钟不同步24小时未修复</div>
              <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" />
@@ -323,10 +332,10 @@
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="考核规则" prop="scoreCategory">
          <el-select v-model="scoreForm.scoreCategory" placeholder="请选择">
        <el-form-item label="考核规则" prop="ruleCategory">
          <el-select v-model="scoreForm.ruleCategory" placeholder="请选择">
            <el-option
              v-for="item in scoreCategoryList"
              v-for="item in ruleCategoryList"
              :key="item.id"
              :label="item.value"
              :value="item.id">
@@ -361,10 +370,10 @@
      },
      examineList: [],
      unitList: [],
      scoreCategoryList: [
        { id: 2, value: '存储故障' },
      ruleCategoryList: [
        { id: 1, value: '视频在线率' },
        { id: 3, value: '保障工作' },
        { id: 2, value: '存储故障' },
        { id: 3, value: '视图库对接稳定性' },
        { id: 4, value: '一机一档24小时未修复' },
        { id: 5, value: '时钟不同步24小时未修复' },
      ],
@@ -427,6 +436,12 @@
        ruleStatus: null,
        createTime: null,
      },
      //考核分数请求参数
      scoreQueryParams: {
        pageNum: 1,
        pageSize: 10,
        examineCategory: 3,
      },
      // 表单校验
      rules: {
      }
@@ -446,6 +461,9 @@
    this.selectExamine();
  },
  methods: {
    goBack() {
      console.log('go back');
    },
    // 运维公司下拉数据
    selectUnit() {
      unitSelect().then(res => {
@@ -461,7 +479,7 @@
    /** 查询考核计分列表 */
    getScoreList() {
      this.loading = true;
      listScore(this.queryParams).then(response => {
      listScore(this.scoreQueryParams).then(response => {
        this.scoreList = response.rows;
        this.loading = false;
      });