luobisheng
2022-12-09 a82d79851affba166693ba617fdeea43f1848e7f
接口参数修改
9个文件已修改
252 ■■■■ 已修改文件
src/api/operate/basecase.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/helper.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/intelligentPatrol/studyJudge/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/dispatch/index.vue 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/escalation/index.vue 99 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/learn/index.vue 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/notDeal/index.vue 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/pool/index.vue 41 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/management/myIndex/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/operate/basecase.js
@@ -1,6 +1,10 @@
import http from "@/http";
export default {
    baseCasePoolList: (params) => {
        return http.get('/sccg/base_case/query', params);
    },
    baseCaseQuery: (params) => {
        return http.get('/sccg/base_case/query_case', params);
    },
src/utils/helper.js
@@ -135,3 +135,8 @@
    { label: '上报', value: '01' },
    { label: '处置', value: '02' }
]
export const RESOURCE_OPTIONS = [
    { label: '人工上报', value: 1 },
    { label: '视频巡查', value: 2 }
]
src/views/intelligentPatrol/studyJudge/index.vue
@@ -1,7 +1,7 @@
<template>
  <div class="study-judge">
    <div class="study-judge-header">
      <span>您有{{ countData.register }}条待审核报警信息,今日立案{{ countData.review }}条,再学习{{ countData.study }}条</span>
      <span>您有{{ countData.review }}条待审核报警信息,今日立案{{ countData.register }}条,再学习{{ countData.study }}条</span>
    </div>
    <div class="study-judge-main">
      <div class="sjm-header">
src/views/operate/disposal/casepool/dispatch/index.vue
@@ -5,8 +5,8 @@
                <div class="search">
                    <span>筛选条件:</span>
                    <div class="option">
                        <el-select v-model="mystatus" placeholder="违规" @change="setMystatus">
                            <el-option v-for="item in typeList" :key="item.label" :label="item.name"
                        <el-select v-model="resource" placeholder="请选择">
                            <el-option v-for="item in resourceOptions" :key="item.label" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </el-select>
@@ -124,6 +124,9 @@
import MyIllDetail from '@/components/illdetail'
import casequery from "@/api/operate/basecase";
import helper from '@/utils/mydate'
import basecase from "@/api/operate/basecase";
import { RESOURCE_OPTIONS } from "@/utils/helper";
export default {
    components: {
        uploadVio, uploadIll, MyDetail,MyIllDetail
@@ -180,7 +183,9 @@
            caseId: '',
            caseCode: null,
            vioData: null,
            illData: null
            illData: null,
            resource: null,
            resourceOptions: RESOURCE_OPTIONS
        }
    },
    created() {
@@ -195,8 +200,7 @@
    methods: {
        // 顶部下拉框
        setMystatus(value) {
            this.statusArr[1] = value;
            this.changeTypeChecked(value - 1);
          this.resource = value;
            this.getUserList();
        },
        // 批量删除
@@ -266,14 +270,19 @@
        },
        // 获取用户列表
        getUserList() {
            const { currentPage, pageSize, context, statusArr } = this;
            this.$axios({
                method: 'get',
                url: `sccg/base_case/query?state=${statusArr[0]}&current=${currentPage}&size=${pageSize}&resource=2&type=${statusArr[1]}`
            }).then(res => {
                this.totalNum = res.data.total;
                this.tableData = res.data.records;
            })
          const params = {
            current: this.currentPage,
            state: this.statusArr[0] ?? null,
            size: this.pageSize,
            resource: this.resource,
            type: this.statusArr[1] ?? null
          }
          basecase.baseCasePoolList(params)
              .then(({ records, total }) => {
                this.tableData = records;
                this.totalNum = total;
              })
              .catch(err => this.$message.error(err))
        },
        // 更改违规/违建
        changeTypeChecked(idx) {
src/views/operate/disposal/casepool/escalation/index.vue
@@ -8,12 +8,11 @@
            <el-select
              v-model="mystatus"
              placeholder="违规"
              @change="setMystatus"
            >
              <el-option
                v-for="item in typeList"
                v-for="item in resourceOptions"
                :key="item.label"
                :label="item.name"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
@@ -23,31 +22,11 @@
            <el-button type="primary" @click="getUserList">查询</el-button>
          </div>
        </div>
        <!-- <div class="addUser">
                    <el-button class="addBtn" type="primary" @click="dialogCreate = true">添加</el-button>
                    <el-dialog :before-close="handleClose" :visible.sync="dialogCreate" title="请选择上报事件类型" width="45%"
                        v-if="dialogCreate">
                        <createUser @getPageProp=setDialog />
                    </el-dialog>
                    <el-dialog :before-close="handleClose" :visible.sync="dialogNewAdd"
                        :title="newAddType === 0 ? '违规事件登记' : '违建事件登记' " width="60%" v-if="dialogNewAdd">
                        <MyIll v-if="newAddType === 1" :mytype=newAddType @changeDialog=changeDialog />
                        <myVio v-else :mytype=newAddType @changeDialog=changeDialog />
                    </el-dialog>
                </div> -->
      </div>
    </header>
    <main>
      <div class="mainContent">
        <!-- 导航状态标签 -->
        <!-- <div class="nav">
                    <div @click="changeNavChecked(index)" :class="[item.checked ? 'is-active':'','nav-item']"
                        v-for="(item,index) in tagList" :key="item.name">{{item.name}}</div>
                </div>
                <div class="type-nav">
                    <div @click="changeTypeChecked(index)" v-for="(item,index) in typeList" :key="item.name"
                        :class="[item.checked ? 'is-active':'','type-item']">{{item.name}}</div>
                </div> -->
        <!-- 数据展示 -->
        <el-table
          ref="multipleTable"
@@ -90,19 +69,6 @@
          </el-table-column>
          <el-table-column prop="continueTime" label="持续时间" min-width="10">
          </el-table-column>
          <!--  <el-table-column prop="operation" label="操作" min-width="20">
            <template slot-scope="scope">
              <div class="operation">
                                <span @click="handleFind(scope.row)">上报</span>
                                <span class="line">|</span>
                                <span @click="handleDelete(scope.row)">调度</span>
                                <span class="line">|</span>
                                <span @click="handleDelete(scope.row)">在学习</span>
                                <span class="line">|</span>
                                <span @click="handleDelete(scope.row)">暂不处理</span>
                            </div>
            </template>
          </el-table-column>-->
        </el-table>
        <!-- 详情页展示 -->
        <el-dialog
@@ -163,31 +129,17 @@
  </div>
</template>
<script>
import { CATEGOTY, EVENT_SOURCE } from "@/utils/helper";
// import updateUser from "./updateUser"
import { RESOURCE_OPTIONS, EVENT_SOURCE } from "@/utils/helper";
import MyDetail from "@/components/detail";
// import createUser from "./createUser"
// import MyIll from './createUser/ill'
// import MyVio from './createUser/vio'
import basecase from "@/api/operate/basecase";
export default {
  components: {
    MyDetail,
  },
  data() {
    return {
      tableData: [
        // {
        //     code:1,
        //     eventSource:1,
        //     category:1,
        //     type:1,
        //     actionCause:'案由1111',
        //     site:'你好',
        //     streetId:1,
        //     alarmTime:'2022-21-20',
        //     continueTime:'8小时',
        // }
      ],
      tableData: [],
      context: "",
      dialogCreate: false,
      dialogView: false,
@@ -262,6 +214,8 @@
      ],
      mystatus: "",
      statusArr: [],
      resource: null,
      resourceOptions: RESOURCE_OPTIONS
    };
  },
  created() {
@@ -278,11 +232,6 @@
    this.getUserList();
  },
  methods: {
    setMystatus(value) {
      this.statusArr[1] = value;
      this.changeTypeChecked(value - 1);
      this.getUserList();
    },
    setDialog({ flag, type }) {
      this.dialogCreate = flag;
      this.dialogNewAdd = true;
@@ -339,11 +288,7 @@
      list.forEach((item) => {
        this.tempList.push(item.code);
      });
      if (list.length === this.tableData.length) {
        this.all = true;
      } else {
        this.all = false;
      }
      this.all = list.length === this.tableData.length;
    },
    // 全选
    selectAll() {
@@ -357,23 +302,27 @@
    },
    // 获取用户列表
    getUserList() {
      const { currentPage, pageSize, context, statusArr } = this;
      this.$axios({
        method: "get",
        url: `sccg/base_case/query?state=${statusArr[0]}&current=${currentPage}&size=${pageSize}&resource=2&type=${statusArr[1]}`,
      }).then((res) => {
        this.totalNum = res.data.total;
        this.tableData = res.data.records;
      });
      const params = {
        current: this.currentPage,
        state: this.statusArr[0] ?? null,
        size: this.pageSize,
        resource: this.resource,
        type: this.statusArr[1] ?? null
      }
      basecase.baseCasePoolList(params)
          .then(({ records, total }) => {
            this.tableData = records;
            this.totalNum = total;
          })
          .catch(err => this.$message.error(err))
    },
    // 设置表格斑马纹
    tableRowClassName({ row, rowIndex }) {
      if ((rowIndex + 1) % 2 == 0) {
      if ((rowIndex + 1) % 2 === 0) {
        return "warning-row";
      } else {
        return "success-row";
      }
      return "";
    },
    // 查看用户信息(不可修改)
    handleFind(rowData) {
src/views/operate/disposal/casepool/learn/index.vue
@@ -5,8 +5,8 @@
                <div class="search">
                    <span>筛选条件:</span>
                    <div class="option">
                        <el-select v-model="mystatus" placeholder="违规" @change="setMystatus">
                            <el-option v-for="item in typeList" :key="item.label" :label="item.name"
                        <el-select v-model="resource" placeholder="违规" @change="setMystatus">
                            <el-option v-for="item in resourceList" :key="item.label" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </el-select>
@@ -122,6 +122,9 @@
import MyDetail from '@/components/detail'
import MyIllDetail from '@/components/illdetail'
import helper from '@/utils/mydate'
import { RESOURCE_OPTIONS } from "@/utils/helper";
import basecase from "@/api/operate/basecase";
export default {
    components: {
        uploadVio, uploadIll, MyDetail, MyIllDetail
@@ -175,6 +178,8 @@
            statusArr: [],
            mystatus: 1,
            caseId: '',
            resource: null,
            resourceList: RESOURCE_OPTIONS
        }
    },
    created() {
@@ -189,9 +194,8 @@
    methods: {
        // 顶部下拉框
        setMystatus(value) {
            this.statusArr[1] = value;
            this.changeTypeChecked(value - 1);
            this.getUserList();
          this.resource = value;
          this.getUserList();
        },
        // 批量删除
        mulDelete(idArr) {
@@ -260,14 +264,19 @@
        },
        // 获取用户列表
        getUserList() {
            const { currentPage, pageSize, context, statusArr } = this;
            this.$axios({
                method: 'get',
                url: `sccg/base_case/query?state=${statusArr[0]}&current=${currentPage}&size=${pageSize}&resource=2&type=${statusArr[1]}`
            }).then(res => {
                this.totalNum = res.data.total;
                this.tableData = res.data.records;
            })
          const params = {
            current: this.currentPage,
            state: this.statusArr[0] ?? null,
            size: this.pageSize,
            resource: this.resource,
            type: this.statusArr[1] ?? null
          }
          basecase.baseCasePoolList(params)
              .then(({ records, total }) => {
                this.tableData = records;
                this.totalNum = total;
              })
              .catch(err => this.$message.error(err))
        },
        // 更改违规/违建
        changeTypeChecked(idx) {
src/views/operate/disposal/casepool/notDeal/index.vue
@@ -6,7 +6,7 @@
                    <span>筛选条件:</span>
                    <div class="option">
                        <el-select v-model="mystatus" placeholder="违规" @change="setMystatus">
                            <el-option v-for="item in typeList" :key="item.label" :label="item.name"
                            <el-option v-for="item in resourceOptions" :key="item.label" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </el-select>
@@ -114,6 +114,9 @@
import MyDetail from '@/components/detail'
import helper from '@/utils/mydate'
import MyIllDetail from '@/components/illdetail'
import basecase from "@/api/operate/basecase";
import { RESOURCE_OPTIONS } from "@/utils/helper";
export default {
    components: {
        uploadVio,uploadIll,MyDetail,MyIllDetail
@@ -123,7 +126,6 @@
            tableData: [],
            context: "",
            dialogUpload:false,
            // dialogUpdate: false,
            dialogView:false,
            info: {},
            totalNum: null,
@@ -168,6 +170,8 @@
            statusArr:[],
            mystatus:1,
            caseId:'',
          resource: null,
          resourceOptions: RESOURCE_OPTIONS
        }
    },
    created() {
@@ -253,14 +257,19 @@
        },
        // 获取用户列表
        getUserList() {
            const { currentPage, pageSize, context, statusArr } = this;
            this.$axios({
                method: 'get',
                url: `sccg/base_case/query?state=${statusArr[0]}&current=${currentPage}&size=${pageSize}&resource=2&type=${statusArr[1]}`
            }).then(res => {
                this.totalNum = res.data.total;
                this.tableData = res.data.records;
            })
          const params = {
            current: this.currentPage,
            state: this.statusArr[0] ?? null,
            size: this.pageSize,
            resource: this.resource,
            type: this.statusArr[1] ?? null
          }
          basecase.baseCasePoolList(params)
              .then(({ records, total }) => {
                this.tableData = records;
                this.totalNum = total;
              })
              .catch(err => this.$message.error(err))
        },
        // 更改违规/违建
        changeTypeChecked(idx) {
src/views/operate/disposal/casepool/pool/index.vue
@@ -5,8 +5,8 @@
                <div class="search">
                    <span>来源查询:</span>
                    <div class="option">
                        <el-select v-model="mystatus" placeholder="违规" @change="setMyStatus">
                            <el-option v-for="item in typeList" :key="item.label" :label="item.name"
                        <el-select clearable v-model="resource" placeholder="请选择来源">
                            <el-option v-for="item in eventSourceOptions" :key="item.label" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </el-select>
@@ -59,7 +59,7 @@
                    </el-table-column>
                    <el-table-column prop="eventSource" label="问题来源" min-width="8">
                        <template slot-scope="scope">
                            <span>{{scope.row.eventSource === 2 ? '人工上报' : '视频上传'}}</span>
                            <span>{{scope.row.eventSource === 2 ? '视频上传' : '人工上传'}}</span>
                        </template>
                    </el-table-column>
                    <el-table-column :prop="mystatus === 1 ? 'category' :'category'"
@@ -152,6 +152,9 @@
import MyVio from './createUser/vio'
import MyDispatch from '@/components/dispatch'
import helper from '@/utils/mydate'
import { RESOURCE_OPTIONS } from "@/utils/helper";
import basecase from "@/api/operate/basecase";
export default {
    components: {
        createUser, MyIll, MyVio, MyDetail, MyDispatch, MyIllDetail
@@ -231,10 +234,11 @@
                    checked: false,
                },
            ],
            eventSourceOptions: RESOURCE_OPTIONS,
            mystatus: 1,
            statusArr: [],
            baseId: 0
            baseId: 0,
            resource: null
        }
    },
    created() {
@@ -255,11 +259,6 @@
        handleDispatch(data) {
            this.baseId = data.id;
            this.dialogDispatch = true;
        },
        // 顶部下拉框
        setMyStatus(value) {
            this.statusArr[1] = value;
            this.changeTypeChecked(value - 1);
        },
        // 选择违规违建
        setDialog({ flag, type }) {
@@ -327,17 +326,19 @@
        },
        // 获取用户列表
        getUserList() {
            const { currentPage, pageSize, statusArr } = this;
            this.$axios({
                method: 'get',
                url: `sccg/base_case/query?state=${statusArr[0]}&current=${currentPage}&size=${pageSize}&resource=2&type=${statusArr[1]}`
            }).then(res => {
                this.totalNum = res.data.total;
                this.tableData = res.data.records;
            })
                .catch(err => {
                    this.tableData = [];
          const params = {
            current: this.currentPage,
            state: this.statusArr[0] ?? null,
            size: this.pageSize,
            resource: this.resource,
            type: this.statusArr[1] ?? null
          }
            basecase.baseCasePoolList(params)
                .then(({ records, total }) => {
                  this.tableData = records;
                  this.totalNum = total;
                })
                .catch(err => this.$message.error(err))
        },
        // 设置表格斑马纹
        tableRowClassName({ row, rowIndex }) {
src/views/operate/management/myIndex/index.vue
@@ -253,7 +253,7 @@
            const { currentPage, pageSize, instatus, myproblem } = this;
            this.$axios({
                method: 'get',
                url: `sccg/base_case/query?state=${instatus}&current=${currentPage}&size=${pageSize}&resource=2&type=${myproblem}`
                url: `sccg/base_case/query?state=${instatus}&current=${currentPage}&size=${pageSize}&type=${myproblem}`
            }).then(res => {
                this.totalNum = res.data.total;
                this.tableData = res.data.records;