10个文件已修改
3个文件已添加
8 文件已复制
13 文件已重命名
2个文件已删除
File was renamed from src/api/platform/publish.js |
| | |
| | | // 查询考核发布列表 |
| | | export function listPublish(query) { |
| | | return request({ |
| | | url: '/system/publish/list', |
| | | url: '/check/publish/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | |
| | | // 查询考核发布详细 |
| | | export function getPublish(id) { |
| | | return request({ |
| | | url: '/system/publish/' + id, |
| | | url: '/check/publish/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | // 新增考核发布 |
| | | export function addPublish(data) { |
| | | return request({ |
| | | url: '/system/publish', |
| | | url: '/check/publish', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | // 修改考核发布 |
| | | export function updatePublish(data) { |
| | | return request({ |
| | | url: '/system/publish', |
| | | url: '/check/publish', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | |
| | | // 删除考核发布 |
| | | export function delPublish(id) { |
| | | return request({ |
| | | url: '/system/publish/' + id, |
| | | url: '/check/publish/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | | |
| | | // 获取考核下拉列表 |
| | | export function publishSelect() { |
| | | return request({ |
| | | url: '/system/publish/all', |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | // 查询考核结果列表 |
| | | export function listCheckResult(query) { |
| | | return request({ |
| | | url: '/check-result/page', |
| | | method: 'post', |
| | | url: '/check/result/list', |
| | | method: 'get', |
| | | data: query |
| | | }) |
| | | } |
| | |
| | | // 查询考核结果详细 |
| | | export function getCheckResult(id) { |
| | | return request({ |
| | | url: '/check-result/' + id, |
| | | url: '/check/result/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | // 新增考核结果 |
| | | export function addCheckResult(data) { |
| | | return request({ |
| | | url: '/check-result', |
| | | url: '/check/result', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | // 修改考核结果 |
| | | export function updateCheckResult(data) { |
| | | return request({ |
| | | url: '/check-result', |
| | | url: '/check/result', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | |
| | | // 删除考核结果 |
| | | export function delCheckResult(id) { |
| | | return request({ |
| | | url: '/check-result/' + id, |
| | | url: '/check/result/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | |
| | | // 发布考核结果 |
| | | export function publishCheckResult(id) { |
| | | return request({ |
| | | url: '/check-result/publish/' + id, |
| | | url: '/check/result/publish/' + id, |
| | | method: 'put' |
| | | }) |
| | | } |
| | |
| | | // 提交人工分数 |
| | | export function manualScore(data) { |
| | | return request({ |
| | | url: '/check-result/manual-score', |
| | | url: '/check/result/manual-score', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | // 查询考核规则列表 |
| | | export function listCheckRule(query) { |
| | | return request({ |
| | | url: '/check-rule/page', |
| | | method: 'post', |
| | | url: '/check/rule/list', |
| | | method: 'get', |
| | | data: query |
| | | }) |
| | | } |
| | |
| | | // 查询考核规则详细 |
| | | export function getCheckRule(id) { |
| | | return request({ |
| | | url: '/check-rule/' + id, |
| | | url: '/check/rule/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | // 新增考核规则 |
| | | export function addCheckRule(data) { |
| | | return request({ |
| | | url: '/check-rule', |
| | | url: '/check/rule', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | // 修改考核规则 |
| | | export function updateCheckRule(data) { |
| | | return request({ |
| | | url: '/check-rule', |
| | | url: '/check/rule', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | |
| | | // 删除考核规则 |
| | | export function delCheckRule(id) { |
| | | return request({ |
| | | url: '/check-rule/' + id, |
| | | url: '/check/rule/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | | |
| | | // 获取运维单位下拉列表 |
| | | // 获取下拉列表 |
| | | export function ruleSelect() { |
| | | return request({ |
| | | url: '/check-rule/list', |
File was renamed from src/api/platform/score.js |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // 查询考核计分列表 |
| | | // 查询考核积分明细列表 |
| | | export function listScore(query) { |
| | | return request({ |
| | | url: '/platform/score/list', |
| | | url: '/check/score/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // 查询考核计分详细 |
| | | // 查询考核积分明细详细 |
| | | export function getScore(id) { |
| | | return request({ |
| | | url: '/platform/score/' + id, |
| | | url: '/check/score/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // 新增考核计分 |
| | | // 新增考核积分明细 |
| | | export function addScore(data) { |
| | | return request({ |
| | | url: '/platform/score', |
| | | url: '/check/score', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 修改考核计分 |
| | | // 修改考核积分明细 |
| | | export function updateScore(data) { |
| | | return request({ |
| | | url: '/platform/score', |
| | | url: '/check/score', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 删除考核计分 |
| | | // 删除考核积分明细 |
| | | export function delScore(id) { |
| | | return request({ |
| | | url: '/platform/score/' + id, |
| | | url: '/check/score/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | |
| | | // 查询考核模板列表 |
| | | export function listCheckTemplate(query) { |
| | | return request({ |
| | | url: '/check-template/page', |
| | | method: 'post', |
| | | url: '/check/template/list', |
| | | method: 'get', |
| | | data: query |
| | | }) |
| | | } |
| | |
| | | // 查询考核模板详细 |
| | | export function getCheckTemplate(id) { |
| | | return request({ |
| | | url: '/check-template/' + id, |
| | | url: '/check/template/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | // 新增考核模板 |
| | | export function addCheckTemplate(data) { |
| | | return request({ |
| | | url: '/check-template', |
| | | url: '/check/template', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | // 修改考核模板 |
| | | export function updateCheckTemplate(data) { |
| | | return request({ |
| | | url: '/check-template', |
| | | url: '/check/template', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | |
| | | // 删除考核模板 |
| | | export function delCheckTemplate(id) { |
| | | return request({ |
| | | url: '/check-template/' + id, |
| | | url: '/check/template/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | |
| | | // 获取运维单位下拉列表 |
| | | export function templateSelect() { |
| | | return request({ |
| | | url: '/check-template/list', |
| | | url: '/check/template/list', |
| | | method: 'get' |
| | | }) |
| | | } |
copy from src/api/platform/publish.js
copy to src/api/platform/default-publish.js
File was copied from src/api/platform/publish.js |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // 查询考核发布列表 |
| | | // 查询合同考核发布列表 |
| | | export function listPublish(query) { |
| | | return request({ |
| | | url: '/system/publish/list', |
| | | url: '/default/publish/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // 查询考核发布详细 |
| | | // 查询合同考核发布详细 |
| | | export function getPublish(id) { |
| | | return request({ |
| | | url: '/system/publish/' + id, |
| | | url: '/default/publish/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // 新增考核发布 |
| | | // 新增合同考核发布 |
| | | export function addPublish(data) { |
| | | return request({ |
| | | url: '/system/publish', |
| | | url: '/default/publish', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 修改考核发布 |
| | | // 修改合同考核发布 |
| | | export function updatePublish(data) { |
| | | return request({ |
| | | url: '/system/publish', |
| | | url: '/default/publish', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 删除考核发布 |
| | | // 删除合同考核发布 |
| | | export function delPublish(id) { |
| | | return request({ |
| | | url: '/system/publish/' + id, |
| | | url: '/default/publish/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | | |
| | | // 获取考核下拉列表 |
| | | // 获取合同考核下拉列表 |
| | | export function publishSelect() { |
| | | return request({ |
| | | url: '/system/publish/all', |
| | | url: '/default/publish/all', |
| | | method: 'get' |
| | | }) |
| | | } |
New file |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // 查询合同考核结果列表 |
| | | export function listResult(query) { |
| | | return request({ |
| | | url: '/default/result/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // 查询合同考核结果详细 |
| | | export function getResult(id) { |
| | | return request({ |
| | | url: '/default/result/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // 新增合同考核结果 |
| | | export function addResult(data) { |
| | | return request({ |
| | | url: '/default/result', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 修改合同考核结果 |
| | | export function updateResult(data) { |
| | | return request({ |
| | | url: '/default/result', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 删除合同考核结果 |
| | | export function delResult(id) { |
| | | return request({ |
| | | url: '/default/result/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | |
| | | // 查询违约规则列表 |
| | | export function listRule(data) { |
| | | return request({ |
| | | url: '/default-rule/page', |
| | | method: 'post', |
| | | url: '/default/rule/list', |
| | | method: 'get', |
| | | data: data |
| | | }) |
| | | } |
| | |
| | | // 查询违约规则详细 |
| | | export function getRule(id) { |
| | | return request({ |
| | | url: '/default-rule/' + id, |
| | | url: '/default/rule/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | // 新增违约规则 |
| | | export function addRule(data) { |
| | | return request({ |
| | | url: '/default-rule', |
| | | url: '/default/rule', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | // 修改违约规则 |
| | | export function updateRule(data) { |
| | | return request({ |
| | | url: '/default-rule', |
| | | url: '/default/rule', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | |
| | | // 删除违约规则 |
| | | export function delRule(id) { |
| | | return request({ |
| | | url: '/default-rule/' + id, |
| | | url: '/default/rule/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | |
| | | // 启用/停用违约规则 |
| | | export function setRule(data) { |
| | | return request({ |
| | | url: '/default-rule/set', |
| | | url: '/default/rule/set', |
| | | method: 'post', |
| | | data: data |
| | | }) |
File was renamed from src/api/platform/default-auditing.js |
| | |
| | | // 查询违规审核列表 |
| | | export function listAuditing(data) { |
| | | return request({ |
| | | url: '/default-auditing/page', |
| | | method: 'post', |
| | | url: '/default/score/list', |
| | | method: 'get', |
| | | data: data |
| | | }) |
| | | } |
| | |
| | | // 查询违规审核详细 |
| | | export function getAuditing(id) { |
| | | return request({ |
| | | url: '/default-auditing/' + id, |
| | | url: '/default/score/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | // 新增违规审核 |
| | | export function addAuditing(data) { |
| | | return request({ |
| | | url: '/default-auditing', |
| | | url: '/default/score', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | // 修改违规审核 |
| | | export function updateAuditing(data) { |
| | | return request({ |
| | | url: '/default-auditing', |
| | | url: '/default/score', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | |
| | | // 删除违规审核 |
| | | export function delAuditing(id) { |
| | | return request({ |
| | | url: '/default-auditing/' + id, |
| | | url: '/default/score/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | |
| | | // 审核 |
| | | export function auditing(data) { |
| | | return request({ |
| | | url: '/default-auditing/auditing', |
| | | url: '/default/score/auditing', |
| | | method: 'post', |
| | | data: data |
| | | }) |
New file |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // 查询违约规则模板列表 |
| | | export function listTemplate(query) { |
| | | return request({ |
| | | url: '/default/template/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // 查询违约规则模板详细 |
| | | export function getTemplate(id) { |
| | | return request({ |
| | | url: '/default/template/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // 新增违约规则模板 |
| | | export function addTemplate(data) { |
| | | return request({ |
| | | url: '/default/template', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 修改违约规则模板 |
| | | export function updateTemplate(data) { |
| | | return request({ |
| | | url: '/default/template', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 删除违约规则模板 |
| | | export function delTemplate(id) { |
| | | return request({ |
| | | url: '/default/template/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | |
| | | // 查询核算规则列表 |
| | | export function listRules(query) { |
| | | return request({ |
| | | url: '/platform/rules/list', |
| | | url: '/check/calculateRule/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | |
| | | // 查询核算规则详细 |
| | | export function getRules(id) { |
| | | return request({ |
| | | url: '/platform/rules/' + id, |
| | | url: '/check/calculateRule/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | // 新增核算规则 |
| | | export function addRules(data) { |
| | | return request({ |
| | | url: '/platform/rules', |
| | | url: '/check/calculateRule', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | // 修改核算规则 |
| | | export function updateRules(data) { |
| | | return request({ |
| | | url: '/platform/rules', |
| | | url: '/check/calculateRule', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | |
| | | // 删除核算规则 |
| | | export function delRules(id) { |
| | | return request({ |
| | | url: '/platform/rules/' + id, |
| | | url: '/check/calculateRule/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | |
| | | { |
| | | path: 'detail', |
| | | name: 'check-result-contract', |
| | | component: () => import('@/views/system/check-result/contract/detail'), |
| | | component: () => import('@/views/system/result/default/detail'), |
| | | meta: { title: '合同结果详情', activeMenu: '/system/check-result/contract' } |
| | | } |
| | | ] |
| | |
| | | { |
| | | path: 'detail', |
| | | name: 'check-result-city', |
| | | component: () => import('@/views/system/check-result/city/detail'), |
| | | component: () => import('@/views/system/result/city/detail'), |
| | | meta: { title: '市局考核结果详情', activeMenu: '/system/check-result/city' } |
| | | } |
| | | ] |
| | |
| | | { |
| | | path: 'detail', |
| | | name: 'check-result-province', |
| | | component: () => import('@/views/system/check-result/province/detail'), |
| | | component: () => import('@/views/system/result/province/detail'), |
| | | meta: { title: '省厅考核结果详情', activeMenu: '/system/check-result/province' } |
| | | } |
| | | ] |
| | |
| | | |
| | | <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", |
| | |
| | | <el-table v-loading="loading" :data="pointList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="点位名称" align="center" prop="pointName" /> |
| | | <el-table-column label="标签" align="center" prop="tag" > |
| | | <span>{{important}}</span> |
| | | </el-table-column> |
| | | <el-table-column label="点位开始时间" align="center" prop="startTime" width="180"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.startTime, '{y}-{m}-{d}') }}</span> |
| | |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="120px"> |
| | | <el-form-item label="点位名称" prop="pointName"> |
| | | <el-input v-model="form.pointName" placeholder="请输入点位名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="点位标签" prop="tag"> |
| | | <el-select v-model="form.tag" placeholder="点位标签"> |
| | | <el-option label="普通点位" value="普通点位"/> |
| | | <el-option label="重点点位" value="重点点位"/> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="点位所在地" prop="region"> |
| | | <el-cascader v-model="form.region" :options="regionList" placeholder="点位所在地" :props="props" collapse-tags></el-cascader> |
| | |
| | | editingIndex: null, |
| | | // 遮罩层 |
| | | loading: true, |
| | | important: '重点点位', |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
copy from src/views/system/publish/index.vue
copy to src/views/system/publish/city/index.vue
File was copied from src/views/system/publish/index.vue |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listPublish, getPublish, delPublish, addPublish, updatePublish } from "@/api/platform/publish"; |
| | | import { listPublish, getPublish, delPublish, addPublish, updatePublish } from "@/api/platform/check-publish"; |
| | | import { templateSelect } from "@/api/platform/check-template"; |
| | | export default { |
| | | name: "Publish", |
File was renamed from src/views/system/publish/index.vue |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listPublish, getPublish, delPublish, addPublish, updatePublish } from "@/api/platform/publish"; |
| | | import { listPublish, getPublish, delPublish, addPublish, updatePublish } from "@/api/platform/default-publish"; |
| | | import { templateSelect } from "@/api/platform/check-template"; |
| | | export default { |
| | | name: "Publish", |
copy from src/views/system/publish/index.vue
copy to src/views/system/publish/province/index.vue
File was copied from src/views/system/publish/index.vue |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listPublish, getPublish, delPublish, addPublish, updatePublish } from "@/api/platform/publish"; |
| | | import { listPublish, getPublish, delPublish, addPublish, updatePublish } from "@/api/platform/check-publish"; |
| | | import { templateSelect } from "@/api/platform/check-template"; |
| | | export default { |
| | | name: "Publish", |
| | |
| | | <el-form-item label="报备内容"> |
| | | <el-input v-model="auditingForm.pointName" disabled /> |
| | | </el-form-item> |
| | | <el-form-item label="上报材料"> |
| | | <el-upload v-model="auditingForm.reportMaterials" disabled/> |
| | | </el-form-item> |
| | | <el-form-item label="审核结果" prop="auditing"> |
| | | <el-radio v-model="auditingForm.auditing" label="pass">通过</el-radio> |
| | | <el-radio v-model="auditingForm.auditing" label="reject">驳回</el-radio> |
copy from src/views/system/check-result/province/detail.vue
copy to src/views/system/result/city/detail.vue
File was copied from src/views/system/check-result/province/detail.vue |
| | |
| | | <script> |
| | | import { listCheckResult, getCheckResult, delCheckResult, addCheckResult, updateCheckResult,manualScore, publishCheckResult } from "@/api/platform/check-result"; |
| | | import { listCheckRule, getCheckRule, delCheckRule, addCheckRule, updateCheckRule } from "@/api/platform/check-rule"; |
| | | import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/score"; |
| | | import {unitSelect} from "../../../../api/platform/unit"; |
| | | import {publishSelect} from "../../../../api/platform/publish"; |
| | | import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/check-score"; |
| | | import {unitSelect} from "@/api/platform/unit"; |
| | | import {publishSelect} from "@/api/platform/check-publish"; |
| | | |
| | | export default { |
| | | name: "CheckResult", |
| | |
| | | scoreQueryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | examineCategory: 1, |
| | | examineCategory: 2, |
| | | }, |
| | | // 表单校验 |
| | | rules: { |
File was renamed from src/views/system/check-result/contract/detail.vue |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listCheckResult, getCheckResult, delCheckResult, addCheckResult, updateCheckResult,manualScore, publishCheckResult } from "@/api/platform/check-result"; |
| | | import { listCheckResult, getCheckResult, delCheckResult, addCheckResult, updateCheckResult,manualScore, publishCheckResult } from "@/api/platform/default-result"; |
| | | import { listRule, getRule, delRule, addRule, updateRule, setRule } from "@/api/platform/default-rule"; |
| | | 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/check-publish"; |
| | | export default { |
| | | name: "CheckResult", |
| | | data() { |
File was renamed from src/views/system/check-result/contract/index.vue |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listCheckResult, getCheckResult, delCheckResult, addCheckResult, updateCheckResult,manualScore, publishCheckResult } from "@/api/platform/check-result"; |
| | | import { listCheckResult, getCheckResult, delCheckResult, addCheckResult, updateCheckResult,manualScore, publishCheckResult } from "@/api/platform/default-result"; |
| | | |
| | | export default { |
| | | name: "CheckResult", |
File was renamed from src/views/system/check-result/province/detail.vue |
| | |
| | | <script> |
| | | import { listCheckResult, getCheckResult, delCheckResult, addCheckResult, updateCheckResult,manualScore, publishCheckResult } from "@/api/platform/check-result"; |
| | | import { listCheckRule, getCheckRule, delCheckRule, addCheckRule, updateCheckRule } from "@/api/platform/check-rule"; |
| | | import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/score"; |
| | | import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/check-score"; |
| | | import {unitSelect} from "../../../../api/platform/unit"; |
| | | import {publishSelect} from "../../../../api/platform/publish"; |
| | | import {publishSelect} from "../../../../api/platform/check-publish"; |
| | | |
| | | export default { |
| | | name: "CheckResult", |
File was renamed from src/views/system/check-rule/index.vue |
| | |
| | | <el-table v-loading="loading" :data="checkRuleList" @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="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="category"> |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.category === 1">视频监控</div> |
| | |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="规则名称" prop="ruleName"> |
| | | <el-input v-model="form.ruleName" placeholder="请输入规则名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="考核类型" prop="examineCategory"> |
| | | <el-select v-model="form.examineCategory" placeholder="规则类型"> |
| | | <el-option |
| | | v-for="item in examineList" |
| | | :key="item.id" |
| | | :label="item.value" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="规则类型" prop="category"> |
| | | <el-select v-model="form.category" placeholder="规则类型"> |
| | |
| | | <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="规则类型"> |
| | | <el-option |
| | | v-for="item in examineList" |
| | | :key="item.id" |
| | | :label="item.value" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="规则类型" prop="category"> |
| | | <el-select v-model="form.category" placeholder="规则类型" disabled> |
| | |
| | | { id: 2, value: '车辆识别' }, |
| | | { id: 3, value: '人脸识别' }, |
| | | ], |
| | | // 运维类型 |
| | | examineList: [ |
| | | { id: 1, value: '省厅考核' }, |
| | | { id: 2, value: '区县考核' }, |
| | | { id: 3, value: '人脸识别' }, |
| | | ], |
| | | // 考核规则表格数据 |
| | | checkRuleList: [], |
| | | daterangeCreateTime: [], |
New file |
| | |
| | | <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="ruleName"> |
| | | <el-input |
| | | v-model="queryParams.ruleName" |
| | | placeholder="请输入规则名称" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="扣减方式" prop="deductCategory"> |
| | | <el-select v-model="queryParams.deductCategory" placeholder="请选择扣减方式" clearable> |
| | | <el-option |
| | | v-for="dict in dict.type.platform_deduct_category" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="规则状态" prop="ruleStatus"> |
| | | <el-select v-model="queryParams.ruleStatus" placeholder="请选择规则状态" clearable> |
| | | <el-option |
| | | v-for="dict in dict.type.sys_normal_disable" |
| | | :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="['system:rule:add']" |
| | | >新增</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="info" |
| | | plain |
| | | icon="el-icon-sort" |
| | | size="mini" |
| | | @click="toggleExpandAll" |
| | | >展开/折叠</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table |
| | | v-if="refreshTable" |
| | | v-loading="loading" |
| | | :data="ruleList" |
| | | row-key="id" |
| | | :default-expand-all="isExpandAll" |
| | | :tree-props="{children: 'children', hasChildren: 'hasChildren'}" |
| | | > |
| | | <el-table-column label="规则名称" prop="ruleName" /> |
| | | <el-table-column label="扣减方式" align="center" prop="deductCategory"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.platform_deduct_category" :value="scope.row.deductCategory"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="规则描述" align="center" prop="ruleDesc" /> |
| | | <el-table-column label="规则状态" align="center" prop="ruleStatus"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.ruleStatus"/> |
| | | </template> |
| | | </el-table-column> |
| | | <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="['system:rule:edit']" |
| | | >修改</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-plus" |
| | | @click="handleAdd(scope.row)" |
| | | v-hasPermi="['system:rule:add']" |
| | | >新增</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:rule:remove']" |
| | | >删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <!-- 添加或修改违约规则对话框 --> |
| | | <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="ruleName"> |
| | | <el-input v-model="form.ruleName" placeholder="请输入规则名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="扣减方式" prop="deductCategory"> |
| | | <el-select v-model="form.deductCategory" placeholder="请选择扣减方式"> |
| | | <el-option |
| | | v-for="dict in dict.type.platform_deduct_category" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="parseInt(dict.value)" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="规则描述" prop="ruleDesc"> |
| | | <el-input v-model="form.ruleDesc" placeholder="请输入规则描述" /> |
| | | </el-form-item> |
| | | <el-form-item label="规则状态" prop="ruleStatus"> |
| | | <el-radio-group v-model="form.ruleStatus"> |
| | | <el-radio |
| | | v-for="dict in dict.type.sys_normal_disable" |
| | | :key="dict.value" |
| | | :label="dict.value" |
| | | >{{dict.label}}</el-radio> |
| | | </el-radio-group> |
| | | </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 { listRule, getRule, delRule, addRule, updateRule } from "@/api/platform/default-rule"; |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
| | | |
| | | export default { |
| | | name: "Rule", |
| | | dicts: ['platform_deduct_category', 'sys_normal_disable'], |
| | | components: { |
| | | Treeselect |
| | | }, |
| | | data() { |
| | | return { |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 违约规则表格数据 |
| | | ruleList: [], |
| | | // 违约规则树选项 |
| | | ruleOptions: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 是否展开,默认全部展开 |
| | | isExpandAll: true, |
| | | // 重新渲染表格状态 |
| | | refreshTable: true, |
| | | // 查询参数 |
| | | queryParams: { |
| | | ruleName: null, |
| | | deductCategory: null, |
| | | ruleStatus: null, |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | // 表单校验 |
| | | rules: { |
| | | ruleName: [ |
| | | { required: true, message: "规则名称不能为空", trigger: "blur" } |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | /** 查询违约规则列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listRule(this.queryParams).then(response => { |
| | | this.ruleList = this.handleTree(response.data, "id", "parentId"); |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | /** 转换违约规则数据结构 */ |
| | | normalizer(node) { |
| | | if (node.children && !node.children.length) { |
| | | delete node.children; |
| | | } |
| | | return { |
| | | id: node.id, |
| | | label: node.ruleName, |
| | | children: node.children |
| | | }; |
| | | }, |
| | | /** 查询违约规则下拉树结构 */ |
| | | getTreeselect() { |
| | | listRule().then(response => { |
| | | this.ruleOptions = []; |
| | | const data = { id: 0, ruleName: '顶级节点', children: [] }; |
| | | data.children = this.handleTree(response.data, "id", "parentId"); |
| | | this.ruleOptions.push(data); |
| | | }); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | ruleName: null, |
| | | parentId: null, |
| | | deductCategory: null, |
| | | deductWay: null, |
| | | ruleDesc: null, |
| | | ruleStatus: null, |
| | | createTime: null, |
| | | updateTime: null, |
| | | deleted: null |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.getList(); |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | handleAdd(row) { |
| | | this.reset(); |
| | | this.getTreeselect(); |
| | | if (row != null && row.id) { |
| | | this.form.parentId = row.id; |
| | | } else { |
| | | this.form.parentId = 0; |
| | | } |
| | | this.open = true; |
| | | this.title = "添加违约规则"; |
| | | }, |
| | | /** 展开/折叠操作 */ |
| | | toggleExpandAll() { |
| | | this.refreshTable = false; |
| | | this.isExpandAll = !this.isExpandAll; |
| | | this.$nextTick(() => { |
| | | this.refreshTable = true; |
| | | }); |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | this.getTreeselect(); |
| | | if (row != null) { |
| | | this.form.parentId = row.id; |
| | | } |
| | | getRule(row.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) { |
| | | updateRule(this.form).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addRule(this.form).then(response => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | this.$modal.confirm('是否确认删除违约规则编号为"' + row.id + '"的数据项?').then(function() { |
| | | return delRule(row.id); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | }).catch(() => {}); |
| | | } |
| | | } |
| | | }; |
| | | </script> |
copy from src/views/system/check-rule/index.vue
copy to src/views/system/rule/province/index.vue
File was copied from src/views/system/check-rule/index.vue |
| | |
| | | <el-table v-loading="loading" :data="checkRuleList" @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="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="category"> |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.category === 1">视频监控</div> |
| | |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="规则名称" prop="ruleName"> |
| | | <el-input v-model="form.ruleName" placeholder="请输入规则名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="考核类型" prop="examineCategory"> |
| | | <el-select v-model="form.examineCategory" placeholder="规则类型"> |
| | | <el-option |
| | | v-for="item in examineList" |
| | | :key="item.id" |
| | | :label="item.value" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="规则类型" prop="category"> |
| | | <el-select v-model="form.category" placeholder="规则类型"> |
| | |
| | | <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="规则类型"> |
| | | <el-option |
| | | v-for="item in examineList" |
| | | :key="item.id" |
| | | :label="item.value" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="规则类型" prop="category"> |
| | | <el-select v-model="form.category" placeholder="规则类型" disabled> |
| | |
| | | { id: 2, value: '车辆识别' }, |
| | | { id: 3, value: '人脸识别' }, |
| | | ], |
| | | // 运维类型 |
| | | examineList: [ |
| | | { id: 1, value: '省厅考核' }, |
| | | { id: 2, value: '区县考核' }, |
| | | { id: 3, value: '人脸识别' }, |
| | | ], |
| | | // 考核规则表格数据 |
| | | checkRuleList: [], |
| | | daterangeCreateTime: [], |
File was renamed from src/views/system/score/index.vue |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/score"; |
| | | import {unitSelect} from "../../../api/platform/unit"; |
| | | import {publishSelect} from "../../../api/platform/publish"; |
| | | import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/check-score"; |
| | | import {unitSelect} from "@/api/platform/unit"; |
| | | import {publishSelect} from "@/api/platform/check-publish"; |
| | | |
| | | export default { |
| | | name: "Score", |
File was renamed from src/views/system/default-auditing/index.vue |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listAuditing, getAuditing, delAuditing, addAuditing, updateAuditing,auditing } from "@/api/platform/default-auditing"; |
| | | import { listAuditing, getAuditing, delAuditing, addAuditing, updateAuditing,auditing } from "@/api/platform/default-score"; |
| | | import { unitSelect } from "@/api/platform/unit"; |
| | | |
| | | export default { |
copy from src/views/system/score/index.vue
copy to src/views/system/score/province/index.vue
File was copied from src/views/system/score/index.vue |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/score"; |
| | | import {unitSelect} from "../../../api/platform/unit"; |
| | | import {publishSelect} from "../../../api/platform/publish"; |
| | | import { listScore, getScore, delScore, addScore, updateScore } from "@/api/platform/check-score"; |
| | | import {unitSelect} from "@/api/platform/unit"; |
| | | import {publishSelect} from "@/api/platform/check-publish"; |
| | | |
| | | export default { |
| | | name: "Score", |
File was renamed from src/views/system/check-template/index.vue |
| | |
| | | <el-form-item label="模板名称" prop="templateName"> |
| | | <el-input v-model="form.templateName" placeholder="请输入模板名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="考核类型" prop="examineCategory"> |
| | | <el-select v-model="form.examineCategory" placeholder="请选择考核类型"> |
| | | <el-option label="省厅考核" value="省厅考核"/> |
| | | <el-option label="区县考核" value="区县考核"/> |
| | | <el-option label="运维考核" value="公司考核"/> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="考核对象" prop="unitName"> |
| | | <div class="block"> |
| | | <span class="demonstration"></span> |
| | |
| | | |
| | | <script> |
| | | import { listCheckTemplate, getCheckTemplate, delCheckTemplate, addCheckTemplate, updateCheckTemplate } from "@/api/platform/check-template"; |
| | | import { ruleSelect } from '../../../api/platform/check-rule' |
| | | import { unitSelect } from '../../../api/platform/unit' |
| | | // import { ruleSelect } from '@/api/platform/check-rule' |
| | | import { unitSelect } from '@/api/platform/unit' |
| | | |
| | | export default { |
| | | name: "CheckTemplate", |
copy from src/views/system/check-template/index.vue
copy to src/views/system/template/default/index.vue
File was copied from src/views/system/check-template/index.vue |
| | |
| | | <div v-else-if="scope.row.unitId === 3">富顺县,荣县,高新区,自流井区,贡井区,大安区,沿滩区</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="调整系数" align="center" prop="adjustCoefficient" /> |
| | | <el-table-column label="调整系数计算方式" align="center" prop="adjustWay"/> |
| | | <el-table-column label="状态" align="center" prop="status" /> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | |
| | | <el-form-item label="模板名称" prop="templateName"> |
| | | <el-input v-model="form.templateName" placeholder="请输入模板名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="考核类型" prop="examineCategory"> |
| | | <el-select v-model="form.examineCategory" placeholder="请选择考核类型"> |
| | | <el-option label="省厅考核" value="省厅考核"/> |
| | | <el-option label="区县考核" value="区县考核"/> |
| | | <el-option label="运维考核" value="公司考核"/> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="考核对象" prop="unitName"> |
| | | <div class="block"> |
| | | <span class="demonstration"></span> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="row-right"> |
| | | <div>权重</div> |
| | | <div>数值</div> |
| | | <div class="margin-5"> |
| | | <el-input type="number" v-model="form.weight"/> |
| | | </div> |
| | |
| | | <el-button type="success" @click="nextAdd" size="mini" plain>添加</el-button> |
| | | </div> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="调整系数" prop="adjustCoefficient"> |
| | | <el-input v-model="form.adjustCoefficient" placeholder="请输入系数值" /> |
| | | </el-form-item> |
| | | <el-form-item label="调整方式" prop="adjustWay"> |
| | | <el-select v-model="form.adjustWay" placeholder="请选择调整系数计算方式"> |
| | | <el-option |
| | | label="乘" |
| | | value="*"> |
| | | </el-option> |
| | | <el-option |
| | | label="除" |
| | | value="/"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="状态" prop="status"> |
| | | <el-radio v-model="form.status" label="use">启用</el-radio> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listCheckTemplate, getCheckTemplate, delCheckTemplate, addCheckTemplate, updateCheckTemplate } from "@/api/platform/check-template"; |
| | | import { ruleSelect } from '../../../api/platform/check-rule' |
| | | import { unitSelect } from '../../../api/platform/unit' |
| | | import { listTemplate, getTemplate, delTemplate, addTemplate, updateTemplate } from "@/api/platform/default-template"; |
| | | // import { ruleSelect } from '@/api/platform/default-rule' |
| | | import { unitSelect } from '@/api/platform/unit' |
| | | |
| | | export default { |
| | | name: "CheckTemplate", |
| | |
| | | templateName: [ |
| | | { required: true, message: "模板名称不能为空", trigger: "blur" } |
| | | ], |
| | | adjustCoefficient: [ |
| | | { required: true, message: "调整系数不能为空", trigger: "blur" } |
| | | ], |
| | | adjustWay: [ |
| | | { required: true, message: "调整方式:乘除不能为空", trigger: "blur" } |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | |
| | | this.tempRuleFormList.push({"ruleId": null, "weight": null}) |
| | | }, |
| | | // 考核规则下拉数据 |
| | | selectCheckRule() { |
| | | ruleSelect().then(res => { |
| | | this.ruleList = res.data; |
| | | }) |
| | | }, |
| | | // selectCheckRule() { |
| | | // ruleSelect().then(res => { |
| | | // this.ruleList = res.data; |
| | | // }) |
| | | // }, |
| | | // 运维公司下拉数据 |
| | | selectUnit() { |
| | | unitSelect().then(res => { |
| | |
| | | this.queryParams["start"] = this.daterangeCreateTime[0]; |
| | | this.queryParams["end"] = this.daterangeCreateTime[1]; |
| | | } |
| | | listCheckTemplate(this.queryParams).then(response => { |
| | | listTemplate(this.queryParams).then(response => { |
| | | this.checkTemplateList = response.data; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | const id = row.id || this.ids |
| | | getCheckTemplate(id).then(response => { |
| | | getTemplate(id).then(response => { |
| | | this.form = response.data; |
| | | this.tempRuleFormList = this.form.ruleFormList; |
| | | this.ruleFormList = this.form.ruleFormList; |
| | |
| | | if (valid) { |
| | | this.form.ruleFormList = this.tempRuleFormList; |
| | | if (this.form.id != null) { |
| | | updateCheckTemplate(this.form).then(response => { |
| | | updateTemplate(this.form).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |
| | | this.tempRuleFormList = []; |
| | |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addCheckTemplate(this.form).then(response => { |
| | | addTemplate(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 delCheckTemplate(ids); |
| | | return delTemplate(ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("删除成功"); |
copy from src/views/system/check-template/index.vue
copy to src/views/system/template/province/index.vue
File was copied from src/views/system/check-template/index.vue |
| | |
| | | <el-form-item label="模板名称" prop="templateName"> |
| | | <el-input v-model="form.templateName" placeholder="请输入模板名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="考核类型" prop="examineCategory"> |
| | | <el-select v-model="form.examineCategory" placeholder="请选择考核类型"> |
| | | <el-option label="省厅考核" value="省厅考核"/> |
| | | <el-option label="区县考核" value="区县考核"/> |
| | | <el-option label="运维考核" value="公司考核"/> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="考核对象" prop="unitName"> |
| | | <div class="block"> |
| | | <span class="demonstration"></span> |
| | |
| | | |
| | | <script> |
| | | import { listCheckTemplate, getCheckTemplate, delCheckTemplate, addCheckTemplate, updateCheckTemplate } from "@/api/platform/check-template"; |
| | | import { ruleSelect } from '../../../api/platform/check-rule' |
| | | import { unitSelect } from '../../../api/platform/unit' |
| | | // import { ruleSelect } from '@/api/platform/check-rule' |
| | | import { unitSelect } from '@/api/platform/unit' |
| | | |
| | | export default { |
| | | name: "CheckTemplate", |
| | |
| | | this.tempRuleFormList.push({"ruleId": null, "weight": null}) |
| | | }, |
| | | // 考核规则下拉数据 |
| | | selectCheckRule() { |
| | | ruleSelect().then(res => { |
| | | this.ruleList = res.data; |
| | | }) |
| | | }, |
| | | // selectCheckRule() { |
| | | // ruleSelect().then(res => { |
| | | // this.ruleList = res.data; |
| | | // }) |
| | | // }, |
| | | // 运维公司下拉数据 |
| | | selectUnit() { |
| | | unitSelect().then(res => { |
| | |
| | | |
| | | const CompressionPlugin = require('compression-webpack-plugin') |
| | | |
| | | const name = process.env.VUE_APP_TITLE || '自贡公安天网运维平台' // 网页标题 |
| | | const name = process.env.VUE_APP_TITLE || '运维考核平台' // 网页标题 |
| | | |
| | | const port = process.env.port || process.env.npm_config_port || 80 // 端口 |
| | | |