Commit e8581b91 by xue_wengang

效能评估修改

parent 7f21cb70
......@@ -3,7 +3,7 @@ import base from "@/api/base";
//现场资料质量统计
export const countTbXwXczl = params =>
postform(`${base.alyIP}/ywgz/countTbXwXczl`, params);
post(`${base.alyIP}/ywgz/countTbXwXczl`, params);
//现场信息附件统计
export const countXcxxfj = params =>
......
......@@ -676,12 +676,13 @@
: ''
"
v-if="
(pageBs == 'queryDwxnpg' && (isPremission >= 0 || isAdmin)) ||
pageBs == 'queryDwxnpg' ||
pageBs == 'queryDzrygl' ||
pageBs == 'queryWcqkNew' ||
pageBs == 'queryGxqkNew' ||
pageBs == 'queryXsccNew' ||
pageBs == 'khtj'
pageBs == 'khtj' ||
pageBs == 'queryGrxnpg'
">
<i class="el-icon-setting pzhIcon"
title="可配置化列表"></i>
......
......@@ -20,6 +20,24 @@ const menuLayouts = [
component: () => import("@/views/xnpgbg/dwxnpg.vue")
},
{
path: "/dwxnfxDetail",
name: "dwxnfxDetail",
meta: {
title: '单位效能分析详情',
auth: '5'
},
component: () => import("@/views/xnpgbg/dwxnfxDetail.vue")
},
{
path: "/dwxnfx",
name: "dwxnfx",
meta: {
title: '单位效能分析',
auth: '5'
},
component: () => import("@/views/xnpgbg/dwxnfx.vue")
},
{
path: "/queryWfqdbg",
name: "queryWfqdbg",
meta: {
......
......@@ -390,33 +390,33 @@ export default {
},
],
},
// {
// id: "zwbdxx",
// label: "线索信息质量",
// index: "zwbdxx",
// auth: "M0101",
// className: "iconfont icongongnengfuwu",
// disabled: false,
// hasChildren: true,
// children: [
// {
// id: "zwbdxx",
// label: "指纹比中信息",
// index: "zwbdxx",
// auth: "M0104",
// className: "iconfont icongongnengfuwu",
// disabled: false,
// },
// {
// id: "dnabdxx",
// label: "DNA比中信息",
// index: "dnabdxx",
// auth: "M0105",
// className: "iconfont icongongnengfuwu",
// disabled: false,
// },
// ],
// },
{
id: "zwbdxx",
label: "线索信息质量",
index: "zwbdxx",
auth: "M0101",
className: "iconfont icongongnengfuwu",
disabled: false,
hasChildren: true,
children: [
{
id: "zwbdxx",
label: "指纹比中信息",
index: "zwbdxx",
auth: "M0104",
className: "iconfont icongongnengfuwu",
disabled: false,
},
{
id: "dnabdxx",
label: "DNA比中信息",
index: "dnabdxx",
auth: "M0105",
className: "iconfont icongongnengfuwu",
disabled: false,
},
],
},
// {
// id: "queryGjzchjwcqk",
// label: "关键侦查环节完成情况",
......@@ -531,68 +531,12 @@ export default {
},
{
id: "qzdjs",
label: "全阵地检索",
label: "阵地信息的完整性",
index: "qzdjs",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "zdjycstj",
label: "阵地场所统计",
index: "zdjycstj",
auth: "M0102",
className: "iconfont icongongnengfuwu",
disabled: false,
},
{
id: "zdryxlyj",
label: "人员学历统计",
index: "zdryxlyj",
auth: "M0103",
className: "iconfont iconfangwen",
disabled: false,
},
{
id: "zdhytj",
label: "婚姻状态统计",
index: "zdhytj",
auth: "M0102",
className: "iconfont icongongnengfuwu",
disabled: false,
},
{
id: "zdgmtj",
label: "阵地规模统计",
index: "zdgmtj",
auth: "M0103",
className: "iconfont iconfangwen",
disabled: false,
},
{
id: "zdfxcdtj",
label: "阵地风险程度统计",
index: "zdfxcdtj",
auth: "M0102",
className: "iconfont icongongnengfuwu",
disabled: false,
},
// {
// id: "zdfxcdtj",
// label: "阵地风险程度统计",
// index: "zdfxcdtj",
// auth: "M0102",
// className: "iconfont icongongnengfuwu",
// disabled: false,
// },
{
id: "zdjywptjt",
label: "阵地交易物品统计",
index: "zdjywptjt",
auth: "M0102",
className: "iconfont icongongnengfuwu",
disabled: false,
},
],
},
{
......
......@@ -22,7 +22,7 @@
"
>
<div>
<span class="nr" @click="jsasj1">接受案事件</span>
<span class="nr" @click="jsasj1">获取线索情况</span>
<span class="yuan">{{ jsasj }}</span>
<span class="xian"></span>
</div>
......@@ -32,12 +32,12 @@
<span class="xian"></span>
</div>
<div>
<span class="nr" @click="zczj1">侦查</span>
<span class="nr" @click="zczj1">未处理线索</span>
<span class="yuan">{{ zcdc }}</span>
<span class="xian"></span>
</div>
<div>
<span class="nr" @click="zcdc1">侦查终结</span>
<span class="nr" @click="zcdc1">已处理线索</span>
<span class="yuan">{{ zczj }}</span>
<!-- <span class="xian"></span> -->
</div>
......
......@@ -41,7 +41,17 @@
{{ i }}
</div>
</el-dialog>
<el-dialog width="43%" title="比中结果" :visible.sync="dialogTBzjg">
<el-dialog width="43%" :visible.sync="dialogTBzjg">
<span slot="title" style="
text-align: left;
height: 25px;
font-size: 16px;
line-height: 25px;
">
<span>比中结果</span>
<span style="margin-left:10px;color:#ff0000">(现场勘查工作对侦查工作的贡献率:{{Math.floor(Math.random()*100)}}%)</span>
</span>
<div style="margin: 20px">
<span class="ry">人员 <span class="rys"> 2</span></span>
<el-table :data="gridData">
......
......@@ -86,7 +86,7 @@ export default {
//查询条件
limit: 10,
page: 1,
startTime: this.$moment().subtract(1, "year").format("YYYY-MM-DD"),
startTime: this.$moment().subtract(1, "year").format("YYYY-MM-DD"),
endTime: this.$moment().format("YYYY-MM-DD"),
},
cxQueryField: [
......@@ -113,15 +113,15 @@ export default {
},
{
label: "现场资料文件标题",
prop: "xczl_dzwjbt",
prop: "xczlDzwjbt",
},
{
label: "现场资料文件名称",
prop: "xczl_dzwjmc",
prop: "xczlDzwjmc",
},
{
label: "现场资料文件内容",
prop: "xczl_dzwjnr",
prop: "xczlDzwjzy",
},
{
label: "是否符合证据材料要求",
......@@ -189,11 +189,10 @@ export default {
this.getCountTbXwXczl();
},
getCountTbXwXczl() {
// debugger;
let params = new FormData();
params.append("startTime", this.cxFormData.startTime);
params.append("endTime", this.cxFormData.endTime);
countTbXwXczl(params).then((res) => {
countTbXwXczl({
startTime: this.cxFormData.startTime,
endTime: this.cxFormData.endTime,
}).then((res) => {
if (res.code == "200") {
// this.arrey = [];
this.shuju = res.data.result;
......
<template>
<div class="paneDiv">
<div style="text-align: right;">
<el-button
plain
style="margin-top: 1%; margin-right: 2% !important"
size="small"
@click="exportFile"
>
<i
class="fa fa-external-link"
aria-hidden="true"
style="margin-right: 5px"
></i>
导出
</el-button>
</div>
<el-row style="padding-top: 10px;">
<el-col :span="12">
<table v-loading="loading" id="table" class="table" border="1" cellpadding="0" cellspacing="0">
<tr>
<th>序号</th>
<th v-for="(item,index) in tableColumn" :key="index">{{ item.label }}</th>
</tr>
<tr v-for="(item, index) in tableData" :key="index">
<td>{{ index }}</td>
<td v-for="td in tableColumn" :key="td.prop">{{ item[td.prop] }}</td>
</tr>
</table>
</el-col>
<el-col :span="12">
<div
v-loading="loading"
id="e-charts"
style="height: 480px"
></div>
</el-col>
</el-row>
</div>
</template>
<script>
import request from "@/utils/http";
import qs from "qs";
import base from "@/api/base";
import { saveAs } from 'file-saver';
import XLSX from 'xlsx';
export default {
name: 'PerspectiveAndAnalysis',
data() {
return {
loading: false,
tableColumn: [
{
label: '日时段',
prop: 'czDay'
},
{
label: '次数',
prop: 'czCount'
}
],
tableData: [],
ExeclArr: []
}
},
methods: {
// /ywsjTj/queryDwczTjInner
initECharts(rows,cols) {
let myChart = this.$echarts.init(document.getElementById("e-charts"));
myChart.setOption({
xAxis: {
type: 'category',
data: rows
},
yAxis: {
type: 'value'
},
series: [
{
data: cols,
type: 'bar',
itemStyle: {
color: '#58a5ff'
}
},
{
data: cols,
type: 'line',
smooth: false,
itemStyle: {
color: '#298bfe'
}
}
]
});
},
initData() {
let self = this;
self.loading = true
const { unitCode, yymcdm, djsjKssj, djsjJssj } = self.$route.query
let url = `/ywsjTj/queryDwczTjInner?unitCode=${unitCode}&yymcdm=${yymcdm}&djsjKssj=${djsjKssj}&djsjJssj=${djsjJssj}`;
self.requestPost(url).then((res) => {
let { code, data } = res;
const rows = []
const cols = []
if (code == 200) {
console.log(data)
for (let i = 0; i < data.rows.length; i++) {
rows.push(data.rows[i].czDay)
cols.push(data.rows[i].czCount)
}
self.initECharts(rows, cols)
this.tableData = data.rows
this.ExeclArr = data.rows.map(item => {
return {
czDay: item.czDay,
czCount: item.czCount
}
})
}
self.loading = false
});
},
exportFile() {
var wb = XLSX.utils.table_to_book(document.querySelector('#table'), {
raw: true
});
var wbout = XLSX.write(wb, {
bookType: "xlsx",
bookSST: false,
type: "array"
});
try {
saveAs(
new Blob([wbout], { type: "application/octet-stream" }),
'单位操作分析' + ".xlsx"
);
if(this) this.$message.success("导出成功"); //导出成功的提示
} catch (e) {
if (typeof console !== "undefined") console.log(e, wbout);
}
},
requestPost(urlPath) {
return request({
url: base.alyIP + urlPath
});
}
},
mounted() {
const { unitCode } = this.$route.query
console.log(unitCode)
this.initData()
this.initECharts()
}
}
</script>
<style lang="scss" scoped>
.paneDiv{
width: 95%;
background: #ffffff;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.06);
border-radius: 4px;
margin: 15px auto;
padding: 20px;
box-sizing: border-box;
}
.table{
width: 100%;
tr{
td,th{
text-align: center;
}
}
}
</style>
\ No newline at end of file
......@@ -453,6 +453,15 @@ export default {
},
],
},
{
id: "dwxnfx",
label: "单位效能分析",
newAuth: "M01",
index: "dwxnfx",
className: "iconfont icongongnengfuwu",
hasChildren: false,
children: [],
},
],
// 返回参数
zutList: [],
......
......@@ -13,7 +13,7 @@
@drjyhdry="drjyhdry"
></right-content>
<!-- @add="add" -->
<!-- @edit="edit"
<!-- @edit="edit"
@dele="dele" -->
<!-- 导入 -->
......@@ -398,57 +398,55 @@ export default {
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "zdjycstj",
label: "阵地场所统计",
index: "zdjycstj",
auth: "M0102",
className: "iconfont icongongnengfuwu",
disabled: false,
},
{
id: "zdryxlyj",
label: "人员学历统计",
index: "zdryxlyj",
auth: "M0103",
className: "iconfont iconfangwen",
disabled: false,
},
{
id: "zdhytj",
label: "婚姻状态统计",
index: "zdhytj",
auth: "M0102",
className: "iconfont icongongnengfuwu",
disabled: false,
},
{
id: "zdgmtj",
label: "阵地规模统计",
index: "zdgmtj",
auth: "M0103",
className: "iconfont iconfangwen",
disabled: false,
},
{
id: "zdfxcdtj",
label: "阵地风险程度统计",
index: "zdfxcdtj",
auth: "M0102",
className: "iconfont icongongnengfuwu",
disabled: false,
},
{
id: "zdjywptjt",
label: "阵地交易物品统计",
index: "zdjywptjt",
auth: "M0102",
className: "iconfont icongongnengfuwu",
disabled: false,
},
],
// leftMenus: [
// {
// id: "qzdjs",
// label: "全阵地检索",
// newAuth: "M01",
// index: "qzdjs",
// className: "iconfont icongongnengfuwu",
// hasChildren: false,
// },
// {
// id: "zdjycstj",
// label: "阵地场所统计",
// index: "zdjycstj",
// newAuth: "M01",
// className: "iconfont icongongnengfuwu",
// hasChildren: false,
// },
// {
// id: "zdryxlyj",
// label: "人员学历统计",
// index: "zdryxlyj",
// newAuth: "M01",
// className: "iconfont icongongnengfuwu",
// hasChildren: false,
// },
// {
// id: "zdhytj",
// label: "婚姻状态统计",
// index: "zdhytj",
// newAuth: "M01",
// className: "iconfont icongongnengfuwu",
// hasChildren: false,
// },
// {
// id: "zdgmtj",
// label: "阵地规模统计",
// index: "zdgmtj",
// newAuth: "M01",
// className: "iconfont icongongnengfuwu",
// hasChildren: false,
// },
// {
// id: "zdfxcdtj",
// label: "阵地风险程度统计",
// index: "zdfxcdtj",
// newAuth: "M01",
// className: "iconfont icongongnengfuwu",
// hasChildren: false,
// },
// ],
selectArr: [],
revokeVisiable: false,
ckForm: {
......
......@@ -365,7 +365,7 @@ export default {
this.getCode();
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
// this.$store.commit("user/SET_Menu", this.Menu);
},
watch: {
"formData.djsjStart"(val) {
......
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