fuliqi
2024-09-24 b3be6406c8105376eef209af3bd6635cb95fa81d
src/views/system/check/template/index.vue
@@ -1,6 +1,7 @@
<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
@@ -35,7 +36,8 @@
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
        >新增</el-button>
        >新增
        </el-button>
      </el-col>
      <!-- <el-col :span="1.5">
        <el-button
@@ -71,7 +73,12 @@
    <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"/>
@@ -205,7 +212,8 @@
          </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>
@@ -221,7 +229,14 @@
</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";
@@ -446,7 +461,8 @@
      }).then(() => {
        this.getList();
        this.$modal.msgSuccess(text + "成功");
      }).catch(() => {});
      }).catch(() => {
      });
    },
    /** 修改按钮操作 */
@@ -500,7 +516,8 @@
      }).then(() => {
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {});
      }).catch(() => {
      });
    },
    /** 导出按钮操作 */
    handleExport() {
@@ -516,10 +533,12 @@
.margin-5 {
  margin-left: 5px;
}
.row-warp {
  display: flex;
  flex-direction: column;
}
.row {
  display: flex;
  flex-direction: row;
@@ -527,16 +546,19 @@
  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;
  }
@@ -554,6 +576,7 @@
    margin-right: 50px;
    margin-bottom: 30px;
  }
.card-container {
  display: flex;
  flex-wrap: wrap;