zhanghua
2023-03-29 d47e5437da19a4a49762986dcf49eb1ec3195c16
src/views/intelligentPatrol/statistics/unlawful/type/index.vue
@@ -25,13 +25,18 @@
            @click="setTableDataHandle"
            >查询</el-button
          >
          <el-button icon="el-icon-delete-solid" @click="resetTableData"
                    <el-button
                        icon="el-icon-delete-solid"
                        @click="resetTableData"
            >重置</el-button
          >
        </div>
        <div class="main-nav-right">
          <el-button type="primary" icon="el-icon-upload2" @click="handleExport"
                    <el-button
                        type="primary"
                        icon="el-icon-upload2"
                        @click="handleExport"
            >导出</el-button
          >
        </div>
@@ -47,36 +52,68 @@
          :header-cell-style="{
            background: '#F5F5F5',
            'font-weight': '650',
            'line-height': '45px',
                        'line-height': '45px'
          }"
          :row-class-name="tableRowClassName"
          :data="list"
          style="width: 100%"
        >
          <el-table-column type="selection" min-width="5"> </el-table-column>
          <el-table-column prop="name" label="类型名称" min-width="10">
                    <el-table-column type="selection" min-width="5">
          </el-table-column>
          <el-table-column prop="count" label="事件总数" min-width="5">
                    <el-table-column
                        prop="name"
                        label="类型名称"
                        min-width="10"
                    >
                    </el-table-column>
                    <el-table-column
                        prop="count"
                        label="事件总数"
                        min-width="5"
                    >
            <template slot-scope="scope">
              <el-button type="text" @click="seachTotalEvents(scope.row.id)">{{scope.row.count}}</el-button>
                            <el-button
                                type="text"
                                @click="seachTotalEvents(scope.row.id, 1)"
                                >{{ scope.row.count }}</el-button
                            >
            </template>
          </el-table-column>
          <el-table-column prop="ratio" label="占比" min-width="5">
          </el-table-column>
          <el-table-column prop="register" label="立案" min-width="5">
          </el-table-column>
          <el-table-column prop="notRegister" label="暂不立案" min-width="5">
                    <el-table-column
                        prop="notRegister"
                        label="暂不立案"
                        min-width="5"
                    >
          </el-table-column>
          <el-table-column prop="closing" label="结案" min-width="5">
          </el-table-column>
          <el-table-column prop="relearn" label="再学习" min-width="5">
                    <el-table-column
                        prop="relearn"
                        label="再学习"
                        min-width="5"
                    >
          </el-table-column>
          <el-table-column prop="checked" label="已审核" min-width="5">
                    <el-table-column
                        prop="checked"
                        label="已审核"
                        min-width="5"
                    >
          </el-table-column>
          <el-table-column prop="checkedRatio" label="审核率" min-width="5">
                    <el-table-column
                        prop="checkedRatio"
                        label="审核率"
                        min-width="5"
                    >
          </el-table-column>
          <el-table-column prop="registerRatio" label="立案率" min-width="5">
                    <el-table-column
                        prop="registerRatio"
                        label="立案率"
                        min-width="5"
                    >
          </el-table-column>
        </el-table>
      </div>
@@ -103,7 +140,8 @@
          title="事件总数"
          :visible.sync="dialogVisibleEvent"
          width="80%"
          :before-close="handClose">
                :before-close="handClose"
            >
        <el-table
            border
            stripe
@@ -116,9 +154,7 @@
            :data="gridData"
            style="width: 100%"
            :row-class-name="tableRowClassName"
        >
          <el-table-column
              prop="code"
              label="事件编号"
@@ -209,7 +245,6 @@
          >
          </el-pagination>
        </div>
      </el-dialog>
    </main>
  </div>
@@ -278,18 +313,18 @@
      this.dialogVisibleEvent=false
    },
    changeCurrentPages(page){
      this.currentPages = page;
      this.seachTotalEvents(this.seachID)
            this.seachTotalEvents(this.seachID, page)
    },
// 处理时间
    filterTime(time) {
      return helper(time);
    },
    seachTotalEvents(id){
        seachTotalEvents(id, page) {
      this.seachID=id
      this.dialogVisibleEvent =true
      console.log(this.value2)
            this.currentPages = page;
      let params ={
        type:1,
        violationsTypeId:id,
@@ -299,7 +334,7 @@
      params.startTime = this.value2[0]||''
      params.endTime = this.value2[1]||''
      basecase.baseCasePoolList(params).then(res=>{
        console.log(res)
                // console.log(res)
        this.gridData =res.records
        this.pageSizes =res.size
        this.currentPages =res.current