龚焕茏
2024-04-09 2e9dc3303941a06935e23c0cc65599471d2e678a
src/views/system/rule/province/index.vue
@@ -65,30 +65,23 @@
    <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">
      <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>
          <dict-tag :options="dict.type.examineCategory" :value="scope.row.examineCategory"/>
        </template>
      </el-table-column>
      <el-table-column label="运维类别" align="center" prop="category">
      <el-table-column label="规则类型" align="center" prop="ruleCategory">
        <template slot-scope="scope">
        <div v-if="scope.row.category === 1">视频监控</div>
        <div v-else-if="scope.row.category === 2">车辆识别</div>
        <div v-else-if="scope.row.category === 3">人脸识别</div>
          <dict-tag :options="dict.type.ruleCategory" :value="scope.row.ruleCategory"/>
        </template>
      </el-table-column>
      <el-table-column label="规则描述" align="center" prop="ruleDetail" />
      <el-table-column label="创建时间" align="center" prop="createTime" />
      <el-table-column label="考核模板" align="center" prop="ruleDetail" />
      <el-table-column label="审核状态" align="center" prop="auditState">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.platform_audit_state" :value="scope.row.auditState"/>
        </template>
      </el-table-column>
      <el-table-column label="审核人" align="center" prop="auditUser" />
      <el-table-column label="审核时间" align="center" prop="auditTime" />
      <el-table-column label="审核意见" align="center" prop="auditDescription" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
          <template slot-scope="scope">
            <el-button
@@ -220,38 +213,7 @@
      <el-form-item label="规则描述" prop="ruleDetail">
        <el-input v-model="form.ruleDetail" type="textarea" show-word-limit maxlength="150" placeholder="请输入规则描述" disabled/>
      </el-form-item>
      <el-form-item label="参数配置" prop="ruleDetail" disabled>
        <div class="row-warp">
          <div class="row">
            <div class="row-left">参数名</div>
            <div class="row-right">条件</div>
          </div>
          <div class="row">
            <div class="row-left">天网视频点位数</div>
            <div class="row-right">
              <div>不少于</div>
              <div>
                <el-input class="input-w" type="number" v-model="form.videoPointNum" disabled/>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="row-left">车辆卡口点位数</div>
            <div class="row-right">
              <div>不少于</div>
              <div><el-input class="input-w" type="number" v-model="form.vehicleCheckpointNum" disabled/></div>
            </div>
          </div>
          <div class="row">
            <div class="row-left">人脸卡口点位数</div>
            <div class="row-right">
              <div>不少于</div>
              <div>
                <el-input class="input-w" type="number" v-model="form.faceChceckpointNum" disabled/></div>
            </div>
          </div>
        </div>
      </el-form-item>
      <el-table-column label="考核模板" align="center" prop="templateId" />
      <el-form-item label="审核结果" prop="auditState" >
        <el-radio-group v-model="form.auditState">
        <el-radio :label="1">通过</el-radio>
@@ -291,18 +253,6 @@
      showSearch: true,
      // 总条数
      total: 0,
      // 运维类型
      categoryList: [
        { id: 1, value: '视频监控' },
        { id: 2, value: '车辆识别' },
        { id: 3, value: '人脸识别' },
      ],
      // 运维类型
      examineList: [
        { id: 1, value: '省厅考核' },
        { id: 2, value: '区县考核' },
        { id: 3, value: '人脸识别' },
      ],
      // 考核规则表格数据
      checkRuleList: [],
      daterangeCreateTime: [],
@@ -318,6 +268,7 @@
        pageSize: 10,
        ruleName: null,
        createTime: null,
        examineCategory: 0,
      },
      // 表单参数
      form: {},
@@ -341,7 +292,7 @@
        this.queryParams["end"] = this.daterangeCreateTime[1];
      }
      listCheckRule(this.queryParams).then(response => {
        this.checkRuleList = response.data;
        this.checkRuleList = response.rows;
        this.total = response.total;
        this.loading = false;
      });