Commit 24e70467 by zhangzhijie

工作指令工作效能评估 添加业务类型、指令类型、个人统计评估工作指令工作完成情况查询项

parent feaa298d
{
"code":200,
"data":{
"rows":[
{
"ids":"xsjsbd",
"label":"刑事技术比对",
"codeType":"CODE_ZCZL_MODULE",
"text":"刑事技术比对",
"pId":null,
"id":"xsjsbd",
"isParent":false
},
{
"ids":"xxtk",
"label":"刑嫌调控",
"codeType":"CODE_ZCZL_MODULE",
"text":"刑嫌调控",
"pId":null,
"id":"xxtk",
"isParent":false
},
{
"ids":"hcyp",
"label":"合成研判",
"codeType":"CODE_ZCZL_MODULE",
"text":"合成研判",
"pId":null,
"id":"hcyp",
"isParent":false
},
{
"ids":"lkyj",
"label":"列控预警",
"codeType":"CODE_ZCZL_MODULE",
"text":"列控预警",
"pId":null,
"id":"lkyj",
"isParent":false
},
{
"ids":"zhendi",
"label":"阵地管控",
"codeType":"CODE_ZCZL_MODULE",
"text":"阵地管控",
"pId":null,
"id":"zhendi",
"isParent":false
},
{
"ids":"yzzfzxs",
"label":"有组织犯罪线索",
"codeType":"CODE_ZCZL_MODULE",
"text":"有组织犯罪线索",
"pId":null,
"id":"yzzfzxs",
"isParent":false
},
{
"ids":"ztryyj",
"label":"在逃人员",
"codeType":"CODE_ZCZL_MODULE",
"text":"在逃人员",
"pId":null,
"id":"ztryyj",
"isParent":false
},
{
"ids":"renli",
"label":"人力资源情报",
"codeType":"CODE_ZCZL_MODULE",
"text":"人力资源情报",
"pId":null,
"id":"renli",
"isParent":false
}
]
},
"success":true,
"message":"成功"
}
......@@ -711,6 +711,14 @@ export default {
children: [
{
id: "dwtjtb",
label: "单位工作效能评估",
index: "zczltj",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "dwtjtb",
label: "单位统计",
index: "dwtjtb",
auth: "M0101",
......
......@@ -153,10 +153,9 @@ export default {
let self = this
post(`${url.alyIP}${this.cxUrl}`, this.form).then(
(response) => {
if (response.success === true) {
if (response.success === true && response.data.rows) {
self.tableData = response.data.rows;
self.tableDataLength = response.data.rows.length
console.log('self.tableData', typeof(self.tableDataLength))
self.closeLoading();
} else {
self.closeLoading();
......
......@@ -10,15 +10,15 @@
<div id="dytj">
<div class="app">
<el-date-picker
v-model="value2"
class="datetimerange"
type="datetimerange"
value-format="yyyy-MM-dd"
format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
align="right"
v-model="value2"
class="datetimerange"
type="datetimerange"
value-format="yyyy-MM-dd"
format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
align="right"
>
</el-date-picker>
<div class="jsdw">
......@@ -26,19 +26,30 @@
<span style="font-size: 14px; line-height: 41px">接收单位: </span>
</div>
<select-tree-dialog
style="width: 500px"
:placeholder="'请选择'"
:formData="FPForm"
:currentItem="GD.qsrgajgdm"
style="width: 500px"
:placeholder="'请选择'"
:formData="FPForm"
:currentItem="GD.qsrgajgdm"
/>
</div>
<div class="jsdw">
<div style="display: inline-flex">
<span style="font-size: 14px; line-height: 41px">个人工作是否完成: </span>
<el-checkbox-group v-model="checkboxValue" style="margin-top: 3%">
<el-checkbox label="否" value="0" @change="checkBoxChange"></el-checkbox>
<el-checkbox label="是" value="1" @change="checkBoxChange"></el-checkbox>
</el-checkbox-group>
</div>
</div>
</div>
<div style="margin-bottom: 10px">
<el-button
v-if="SJList.length > 1 && SJcode != ''"
size="mini"
@click="back"
>上一级</el-button
v-if="SJList.length > 1 && SJcode != ''"
size="mini"
@click="back"
>上一级
</el-button
>
<el-button type="primary" size="mini" @click="add">查询</el-button>
<el-button size="mini" @click="print">导出</el-button>
......@@ -48,15 +59,17 @@
</div>
</template>
<script>
import { getTjListPic } from "@/api/zczl/zczl.js";
import {getTjListPic} from "@/api/zczl/zczl.js";
import SelectTreeDialog from "@c/treeCode_components.vue";
export default {
name: "detailZczl",
components: { SelectTreeDialog },
name: "dwtjtb",
components: {SelectTreeDialog},
data() {
return {
value2: [],
chartsShow: true,
checkboxValue: [],
Menu: [
{
id: "dwtjtb",
......@@ -75,7 +88,7 @@ export default {
qsrgajgdm: [],
qsrjh: "",
fpgzyq: "",
qsrgajgdm: "",
},
GD: {
qsrgajgdm: {
......@@ -95,6 +108,18 @@ export default {
};
},
methods: {
checkBoxChange(val) {
if (val) {
if (this.checkboxValue.length == 2) {
let realValue = this.checkboxValue[1];
this.checkboxValue = [];
this.checkboxValue.push(realValue);
}
} else {
this.checkboxValue = [];
}
console.log(this.checkboxValue);
},
getJson() {
debugger;
let self = this;
......@@ -104,12 +129,13 @@ export default {
if (response.status == "200") {
debugger;
self.GD.qsrgajgdm.codeOptions = response.data.data.rows;
function liMap(ji) {
let mi;
let gd = "";
if (ji.length) {
mi = ji.filter((item) =>
item.id.includes(unitcode.substring(0, 2))
item.id.includes(unitcode.substring(0, 2))
);
for (let g of mi.values()) {
if (g.id == unitcode) {
......@@ -330,8 +356,8 @@ export default {
add() {
var userInfo = JSON.parse(sessionStorage.getItem("userInfo"));
let code = this.FPForm.qsrgajgdm
? this.FPForm.qsrgajgdm
: userInfo.unitcode;
? this.FPForm.qsrgajgdm
: userInfo.unitcode;
this.getChartsDatas(code);
},
......@@ -356,6 +382,9 @@ export default {
params.fbsj_s = this.value2[0];
params.fbsj_e = this.value2[1];
}
if (this.checkboxValue.length > 0) {
params.gzzlwcqk = this.checkboxValue[0] == '是' ? '1' : '0';
}
getTjListPic(params).then((res) => {
if (res.success && res.code == 200) {
loading.close();
......@@ -370,13 +399,13 @@ export default {
this.chartsShow = true;
this.CH = true;
this.getCharts(
this.getParams.xData,
this.getParams.zls,
this.getParams.pjs,
this.getParams.qss,
this.getParams.hbs,
20,
this.getParams.xData
this.getParams.xData,
this.getParams.zls,
this.getParams.pjs,
this.getParams.qss,
this.getParams.hbs,
20,
this.getParams.xData
);
} else {
this.$set(this.getParams, "dwdmList", []);
......@@ -386,13 +415,13 @@ export default {
this.$set(this.getParams, "qss", []);
this.$set(this.getParams, "hbs", []);
this.getCharts(
this.getParams.xData,
this.getParams.zls,
this.getParams.pjs,
this.getParams.qss,
this.getParams.hbs,
20,
this.getParams.xData
this.getParams.xData,
this.getParams.zls,
this.getParams.pjs,
this.getParams.qss,
this.getParams.hbs,
20,
this.getParams.xData
);
this.chartsShow = false;
}
......@@ -447,13 +476,13 @@ export default {
let self = this;
debugger;
this.getCharts(
this.getParams.xData,
this.getParams.zls,
this.getParams.pjs,
this.getParams.qss,
this.getParams.hbs,
20,
this.getParams.xData
this.getParams.xData,
this.getParams.zls,
this.getParams.pjs,
this.getParams.qss,
this.getParams.hbs,
20,
this.getParams.xData
).on("click", function (r) {
let name;
if (r.componentType === "xAxis") {
......@@ -480,16 +509,20 @@ export default {
<style lang="scss" scoped>
#dytj {
position: relative;
.app {
display: flex;
margin-top: 9px;
}
.jsdw {
display: flex;
margin: 0 0 0 20px;
}
.datetimerange {
margin-bottom: 10px;
/deep/ {
.el-icon-time {
transform: translateY(-4px);
......@@ -507,6 +540,7 @@ export default {
transform: translateX(-50%);
font-size: 16px;
}
width: 100%;
height: calc(100% - 88px);
text-align: right;
......@@ -514,11 +548,13 @@ export default {
padding: 20px;
padding-top: 10px;
position: relative;
#charts {
background-color: #fff;
width: 100%;
height: 100%;
}
#table {
box-sizing: border-box;
padding-top: 1px !important;
......@@ -527,19 +563,23 @@ export default {
background-color: #fff;
padding: 20px;
}
.returnBtn {
position: absolute;
top: 30px;
right: 40px;
z-index: 111;
}
.tableTitle {
display: flex;
justify-content: space-between;
padding: 10px 10px;
> .tableLeft {
font-size: 16px;
font-weight: 600;
span {
&:last-of-type {
font-size: 14px;
......
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@add="add"
@edit="edit"
@dele="dele"
@zczltjExport="zczltjExport"
ref="rightContent"
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@add="add"
@edit="edit"
@dele="dele"
@zczltjExport="zczltjExport"
ref="rightContent"
></right-content>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import { exportZczlExcel } from "@/api/zczl/zczl.js";
import {exportZczlExcel} from "@/api/zczl/zczl.js";
import axios from "@/utils/http.js";
import base from "@/api/base";
......@@ -66,27 +66,49 @@ export default {
value: "",
col: "3",
},
/*{
name: "是否",
id: "isZjdw",
{
name: "单位",
id: "searchDwdm",
type: "codeTreeDialogs",
props: "checkEmpty",
value: "",
placeholder: "请选择",
col: "3",
codeOptions: [],
codeTree: "CODE_UNIT",
},
{
name: "指令类型",
id: "zllx",
type: "codeTreeDialog",
props: "checkEmpty",
value: "",
placeholder: "请选择",
col: "3",
codeOptions: [],
codeTree: "CODE_IF",
},*/
codeTree: "CODE_ZLLXDM",
},
{
name: "单位",
id: "searchDwdm",
type: "codeTreeDialogs",
name: "业务类型",
id: "ywlx",
type: "codeTreeDialog",
props: "checkEmpty",
value: "",
placeholder: "请选择",
col: "3",
codeOptions: [],
codeTree: "CODE_UNIT",
codeTree: "CODE_ZCZL_MODULE",
},
{
name: "个人工作是否完成",
id: "gzzlwcqk",
type: "codeTreeDialog",
props: "checkEmpty",
value: "",
placeholder: "请选择",
col: "3",
codeOptions: [],
codeTree: "CODE_IF",
},
],
cxDefaultFormThead: [
......@@ -202,7 +224,7 @@ export default {
edit(scope) {
this.$router.pushToTab({
path: "adjustRlqbxs",
query: { xxzjbh: scope.row.xxzjbh },
query: {xxzjbh: scope.row.xxzjbh},
});
},
zczltjExport(data) {
......@@ -218,24 +240,24 @@ export default {
background: "rgba(255, 255, 255, 0.7)",
});
axios
.post(`${base.alyIP}/zczl/exportZczlExcel`, params, {
responseType: "blob",
})
.then((res) => {
loading.close();
let blob = new Blob([res], {
type: "application/vnd.ms-excel",
.post(`${base.alyIP}/zczl/exportZczlExcel`, params, {
responseType: "blob",
})
.then((res) => {
loading.close();
let blob = new Blob([res], {
type: "application/vnd.ms-excel",
});
// 组装a标签
let elink = document.createElement("a");
// 设置下载文件名
elink.download = "工作指令统计.xls";
elink.style.display = "none";
elink.href = URL.createObjectURL(blob);
document.body.appendChild(elink);
elink.click();
document.body.removeChild(elink);
});
// 组装a标签
let elink = document.createElement("a");
// 设置下载文件名
elink.download = "工作指令统计.xls";
elink.style.display = "none";
elink.href = URL.createObjectURL(blob);
document.body.appendChild(elink);
elink.click();
document.body.removeChild(elink);
});
},
dele(scope) {
console.log(scope);
......@@ -244,28 +266,29 @@ export default {
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteKyxsxx({
xxzjbh: scope.row.xxzjbh,
}).then((res) => {
if (res.success && res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
.then(() => {
deleteKyxsxx({
xxzjbh: scope.row.xxzjbh,
}).then((res) => {
if (res.success && res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
});
},
},
mounted() {},
mounted() {
},
};
</script>
<style>
......
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