fuliqi
2024-03-26 dab34ce9fbe468d82cbb6b8c89bd3a0d167e74ae
src/views/system/score/index.vue
@@ -62,6 +62,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>
@@ -69,14 +76,14 @@
      </template>
      </el-table-column>
      <el-table-column label="分值" align="center" prop="score" />
      <el-table-column label="考核规则" align="center" prop="scoreCategory">
      <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>
      </template>
      <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" />
@@ -132,10 +139,10 @@
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="考核规则" prop="scoreCategory">
          <el-select v-model="form.scoreCategory" placeholder="请选择">
        <el-form-item label="考核规则" prop="ruleCategory">
          <el-select v-model="form.ruleCategory" placeholder="请选择">
            <el-option
              v-for="item in scoreCategoryList"
              v-for="item in ruleCategoryList"
              :key="item.id"
              :label="item.value"
              :value="item.id">
@@ -199,14 +206,18 @@
        }, ]
      },
      ],
      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小时未修复' },
      ],
      examineList: [],
      unitList: [
        {id:2,value: '成都x运维'},
        {id:3,value: '自流井区'},
      ],
      // 遮罩层
      loading: true,
      // 选中数组
@@ -244,16 +255,16 @@
  },
  created() {
    this.getList();
    this.selectUnit();
    // this.selectUnit();
    this.selectExamine();
  },
  methods: {
    // 运维公司下拉数据
    selectUnit() {
      unitSelect().then(res => {
        this.unitList = res.data;
      })
    },
    // selectUnit() {
    //   unitSelect().then(res => {
    //     this.unitList = res.data;
    //   })
    // },
    // 考核下拉数据
    selectExamine() {
      publishSelect().then(res => {