| | |
| | | |
| | | <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="unitName" /> |
| | | <el-table-column label="运维考核名" align="center" prop="examineName" /> |
| | | <el-table-column label="考核对象" align="center" prop="unitName" /> |
| | | <el-table-column label="分值" align="center" prop="score" /> |
| | | <el-table-column label="违约规则" align="center" prop="scoreCategory"> |
| | | <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> |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="违约名" prop="examineId"> |
| | | <el-form-item label="运维考核名" prop="examineId"> |
| | | <el-select v-model="form.examineId" placeholder="请选择"> |
| | | <el-option v-for="item in examineList" :key="item.id" :label="item.value" :value="item.id"> |
| | | </el-option> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/score"; |
| | | import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/default-score"; |
| | | import { unitSelect } from "@/api/platform/unit"; |
| | | import { publishSelect } from "@/api/platform/publish"; |
| | | import { publishSelect } from "@/api/platform/default-publish"; |
| | | |
| | | export default { |
| | | name: "Score", |