Commit 82362766 authored by ww-xxy's avatar ww-xxy

增加ai效能监察报表

parent 5b615cc1
...@@ -185,3 +185,9 @@ export function getCountImpossible(params) { ...@@ -185,3 +185,9 @@ export function getCountImpossible(params) {
export function getImpossibleInfo(params) { export function getImpossibleInfo(params) {
return http.get(`${BASEURL}/admin/impossible/impossibleInfo`, params); return http.get(`${BASEURL}/admin/impossible/impossibleInfo`, params);
} }
/**
* AI效能监察异常行为数据报表
*/
export function getKqalert(params) {
return http.get(`${BASEURL}/admin/kqalert/list`, params);
}
\ No newline at end of file
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
/> />
<a-input <a-input
allowClear allowClear
v-model="searchName" v-model="Query.workman_name"
placeholder="请输入工作人员姓名查询 " placeholder="请输入工作人员姓名查询 "
> >
<a-icon slot="prefix" type="search" /> <a-icon slot="prefix" type="search" />
</a-input> </a-input>
<a-select default-value="001"> <a-select default-value="001" placeholder="请选择窗口">
<!-- <a-select-option <!-- <a-select-option
v-for="(item, index) of selectOptions" v-for="(item, index) of selectOptions"
:key="index" :key="index"
...@@ -31,24 +31,22 @@ ...@@ -31,24 +31,22 @@
<a-select-option value="001"> 窗口001 </a-select-option> <a-select-option value="001"> 窗口001 </a-select-option>
<a-select-option value="002"> 窗口002 </a-select-option> <a-select-option value="002"> 窗口002 </a-select-option>
</a-select> </a-select>
<a-select default-value="001"> <a-select v-model="Query.warn_alert" placeholder="请选择类型">
<!-- <a-select-option <a-select-option value=""> 全部 </a-select-option>
v-for="(item, index) of selectOptions" <a-select-option
:key="index" v-for="(item,i) in warn_alert"
:value="item.value" :key="i"
:value="i"
> >
{{ item.label }} {{ item }}
</a-select-option> --> </a-select-option>
<a-select-option value="001"> 类型001 </a-select-option>
<a-select-option value="002"> 类型002 </a-select-option>
</a-select> </a-select>
<a-range-picker <a-range-picker
format="YYYY年MM月DD日" format="YYYY年MM月DD日"
class="range_picker_style" class="range_picker_style"
@change="rangePickerChange" @change="rangePickerChange"
v-model="BegindAndEndTime" v-model="Query.time"
> >
</a-range-picker> </a-range-picker>
...@@ -71,7 +69,7 @@ ...@@ -71,7 +69,7 @@
:columns="tableHeaders" :columns="tableHeaders"
:dataSource="tableSourceData" :dataSource="tableSourceData"
> >
<template slot="operation" slot-scope="text, record, index"> <template slot="operation" slot-scope="text, record">
<a-button type="link" @click="openDetails" <a-button type="link" @click="openDetails"
>查看详情{{ record.id }}</a-button >查看详情{{ record.id }}</a-button
> >
...@@ -83,17 +81,33 @@ ...@@ -83,17 +81,33 @@
<script> <script>
import table from "@/mixins/table"; import table from "@/mixins/table";
import {getKqalert} from "@/api/dataAdmin"
const warn_alert = {
1:'离岗',
2:'离开',
4:'玩手机',
5:'扶头',
6:'趴桌',
}
export default { export default {
mixins: [table], mixins: [table],
name: "PortalAdminVueReportForm", name: "PortalAdminVueReportForm",
data() { data() {
return { return {
warn_alert,
Query:{
have_process:"",//只看未处理 0
warn_alert:"",//1离岗,2离开 4:玩手机 5:扶头 6:趴桌
window_id:"",//窗口ID
workman_name:"",//工作人员姓名
time:[],//时间段
},//查询条件
checkboxVALUE: [], checkboxVALUE: [],
BegindAndEndTime: [], BegindAndEndTime: [],
checkboxOptions: [ checkboxOptions: [
{ {
label: "只看未处理", label: "只看未处理",
value: "ID001", value: "0",
}, },
], ],
tableHeaders: [ tableHeaders: [
...@@ -107,48 +121,48 @@ export default { ...@@ -107,48 +121,48 @@ export default {
}, },
{ {
title: "报警类型", title: "报警类型",
align: "center", dataIndex: "warn_alert",
dataIndex: "报警类型", customRender:(text, record)=>text?text:'--'
}, },
{ {
title: "发生窗口", title: "发生窗口",
align: "center", dataIndex: "window_name",
dataIndex: "发生窗口", customRender:(text, record)=>text?text:'--'
}, },
{ {
title: "工作人员", title: "工作人员",
align: "center", dataIndex: "workman_name",
dataIndex: "工作人员", customRender:(text, record)=>text?text:'--'
}, },
{ {
title: "所属部门", title: "所属部门",
align: "center", dataIndex: "section_name",
dataIndex: "所属部门", customRender:(text, record)=>text?text:'--'
}, },
{ {
title: "手机号", title: "手机号",
align: "center", dataIndex: "workman_phone",
dataIndex: "手机号", customRender:(text, record)=>text?text:'--'
}, },
{ {
title: "发生时间", title: "发生时间",
align: "center", dataIndex: "out_time",
dataIndex: "发生时间", customRender:(text, record)=>text?text:'--'
}, },
{ {
title: "时长", title: "时长",
align: "center", dataIndex: "duration",
dataIndex: "时长", customRender:(text, record)=>text?text:'--'
}, },
{ {
title: "是否准确", title: "是否准确",
align: "center", dataIndex: "isaccuracy",
dataIndex: "是否准确", customRender:(text, record)=>text?text:'--'
}, },
{ {
title: "是否处理", title: "是否处理",
align: "center", dataIndex: "have_process_name",
dataIndex: "是否处理", customRender:(text, record)=>text?text:'--'
}, },
{ {
title: "操作", title: "操作",
...@@ -165,23 +179,21 @@ export default { ...@@ -165,23 +179,21 @@ export default {
}, },
components: {}, components: {},
mounted() { mounted() {
this.onGetKqalert()
this.setMoment(); this.setMoment();
for (let key = 0; key < 20; key++) {
this.tableSourceData.push({
id: `00${key + 1}`,
报警类型: `离岗${key + 1}`,
发生窗口: `001号窗口${key + 1}`,
工作人员: `刘德华${key + 1}`,
所属部门: `网络理政办${key + 1}`,
手机号: `13080888888${key + 1}`,
发生时间: `2022-07-03 18:00:00${key + 1}`,
时长: `15分32秒${key + 1}`,
是否准确: `准确${key + 1}`,
是否处理: `未处理${key + 1}`,
});
}
}, },
methods: { methods: {
// 报表接口
onGetKqalert(){
getKqalert(this.Query).then(res=>{
const {code,data} = res
if(code == 1){
this.tableSourceData = data.data
this.tablePagination.total = data.total
}
console.log(res)
})
},
openDetails() { openDetails() {
console.log("跳转网页"); console.log("跳转网页");
}, },
...@@ -189,8 +201,11 @@ export default { ...@@ -189,8 +201,11 @@ export default {
console.log(val); console.log(val);
}, },
checkboxonChange(val) { checkboxonChange(val) {
console.log(val); if(val.length == 0){
console.log(this.checkboxVALUE); this.Query.have_process = ""
}else{
this.Query.have_process = "0"
}
}, },
QueueState(type) { QueueState(type) {
switch (type) { switch (type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment