| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form style="margin-left :20px" :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form style="margin-left :20px" :model="queryParams" ref="queryForm" size="small" :inline="true" |
| | | v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="考核类型" prop="examineCategory"> |
| | | <el-select v-model="queryParams.examineCategory" placeholder="考核类型" clearable @keyup.enter.native="handleQuery"> |
| | | <el-option |
| | |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | @click="handleAdd" |
| | | >新增</el-button> |
| | | >新增 |
| | | </el-button> |
| | | </el-col> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button |
| | |
| | | <div class="card-container"> |
| | | <el-card class="box-card" v-for="item in checkTemplateList" :key="item"> |
| | | <div class="text item">模板名称:{{ item.templateName }}</div> |
| | | <div class="text item">考核标签:{{ item.examineTag == 0 ? '省厅考核' : '市局考核' }}</div> |
| | | <div class="text item">考核标签:{{ |
| | | item.examineTag === 0 ? '省厅考核' : |
| | | item.examineTag === 1 ? '区县考核' : |
| | | item.examineTag === 2 ? '公安部考核' : '未知' |
| | | }} |
| | | </div> |
| | | <div class="text item" style="display: flex"> |
| | | <span>考核类型:</span> |
| | | <dict-tag :options="dict.type.platform_examine_category" :value="item.examineCategory"/> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="规则描述" prop="description"> |
| | | <el-input v-model="form.description" type="textarea" :autosize="{ minRows: 4, maxRows: 6}" placeholder="请输入规则描述"/> |
| | | <el-input v-model="form.description" type="textarea" :autosize="{ minRows: 4, maxRows: 6}" |
| | | placeholder="请输入规则描述"/> |
| | | </el-form-item> |
| | | <el-form-item label="状态" prop="status"> |
| | | <el-radio v-model="form.status" label="0" >启用</el-radio> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listCheckTemplate, getCheckTemplate, delCheckTemplate, addCheckTemplate, updateCheckTemplate,copyCheckTemplate } from "@/api/platform/check-template"; |
| | | import { |
| | | listCheckTemplate, |
| | | getCheckTemplate, |
| | | delCheckTemplate, |
| | | addCheckTemplate, |
| | | updateCheckTemplate, |
| | | copyCheckTemplate |
| | | } from "@/api/platform/check-template"; |
| | | import { areaSelect } from '@/api/system/dept' |
| | | import { listCheckRule } from "../../../../api/platform/check-rule"; |
| | | |
| | |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess(text + "成功"); |
| | | }).catch(() => {}); |
| | | }).catch(() => { |
| | | }); |
| | | |
| | | }, |
| | | /** 修改按钮操作 */ |
| | |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | }).catch(() => {}); |
| | | }).catch(() => { |
| | | }); |
| | | }, |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | |
| | | .margin-5 { |
| | | margin-left: 5px; |
| | | } |
| | | |
| | | .row-warp { |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | | |
| | | .row { |
| | | display: flex; |
| | | flex-direction: row; |
| | |
| | | justify-content: center; |
| | | margin: 5px 0; |
| | | } |
| | | |
| | | .row-left { |
| | | flex: 1; |
| | | display: flex; |
| | | flex-direction: row; |
| | | } |
| | | |
| | | .row-right { |
| | | flex: 1; |
| | | display: flex; |
| | | flex-direction: row; |
| | | } |
| | | |
| | | .text { |
| | | font-size: 14px; |
| | | } |
| | |
| | | margin-right: 50px; |
| | | margin-bottom: 30px; |
| | | } |
| | | |
| | | .card-container { |
| | | display: flex; |
| | | flex-wrap: wrap; |