Commit 9cb95ffa by gao_yingdong

个人效能评估,单位效能评估

parent 7b12cb3a
...@@ -6,10 +6,39 @@ import base from "@/api/base"; ...@@ -6,10 +6,39 @@ import base from "@/api/base";
export const tjsl = params => export const tjsl = params =>
post(`${base.alyIP}/xxtkgzxnpg/tjsl`, params); post(`${base.alyIP}/xxtkgzxnpg/tjsl`, params);
// 查询刑嫌对象管控线索发现情况 // 查询刑嫌对象管控线索发现情况
export const tjxs = params => export const tjxs = params =>
post(`${base.alyIP}/xxtkgzxnpg/tjxs`, params); post(`${base.alyIP}/xxtkgzxnpg/tjxs`, params);
// 查询刑嫌对象管控情况 // 查询刑嫌对象管控情况
export const tjsx = params => export const tjsx = params =>
post(`${base.alyIP}/xxtkgzxnpg/tjsx`, params); post(`${base.alyIP}/xxtkgzxnpg/tjsx`, params);
\ No newline at end of file
// 用户列表查询
export const getUserList = params =>
post(`${base.alyIP}/dwGrXnpg/getUserList`, params);
//.6.7 报告删除
export const delXnpgbg = params =>
post(`${base.alyIP}/dwGrXnpg/delXnpgbg`, params);
//.6.7 报告详情查询
export const getXnpgbgByZjbh = params =>
post(`${base.alyIP}/dwGrXnpg/getXnpgbgByZjbh`, params);
// 报告新增
export const addXnpgbg = params =>
postform(`${base.alyIP}/dwGrXnpg/addXnpgbg`, params);
// 2.6.5 报告修改
export const updateXnpgbg = params =>
postform(`${base.alyIP}/dwGrXnpg/updateXnpgbg`, params);
// *******
export const getDwXnpg = params =>
post(`${base.alyIP}/dwGrXnpg/getDwXnpg`, params);
// *******
export const getGrXnpg = params =>
post(`${base.alyIP}/dwGrXnpg/getGrXnpg`, params);
\ No newline at end of file
...@@ -54,7 +54,23 @@ ...@@ -54,7 +54,23 @@
:class="item.input" :class="item.input"
> >
</el-input> </el-input>
<div
v-if="item.type == 'textXzjsr'"
style="display: flex; align-items: center"
>
<el-input
:placeholder="item.placeholder"
v-model="formLabelAlign[item.id]"
:disabled="item.disabled"
:class="item.input"
>
<template slot="append"
><span @click="xzJsr(formLabelAlign[item.id])"
>选择</span
></template
>
</el-input>
</div>
<div <div
v-if="item.type == 'textTq'" v-if="item.type == 'textTq'"
style="display: flex; align-items: center" style="display: flex; align-items: center"
...@@ -1136,6 +1152,9 @@ export default { ...@@ -1136,6 +1152,9 @@ export default {
ajTq(item) { ajTq(item) {
this.$emit("ajtq", item); this.$emit("ajtq", item);
}, },
xzJsr (item) {
this.$emit("xzJsr", item);
},
ajDt(item) { ajDt(item) {
this.$emit("ajDt", item); this.$emit("ajDt", item);
}, },
......
...@@ -586,6 +586,7 @@ ...@@ -586,6 +586,7 @@
pageBs != 'queryXxtkZdry' && pageBs != 'queryXxtkZdry' &&
pageBs != 'applyManager' && pageBs != 'applyManager' &&
pageBs != 'queryRyhxNew' && pageBs != 'queryRyhxNew' &&
pageBs != 'queryWjsdbg' &&
pageBs != 'approvalManage' pageBs != 'approvalManage'
" "
> >
...@@ -918,6 +919,7 @@ ...@@ -918,6 +919,7 @@
v-if=" v-if="
columnTitle.prop == 'jyaq' || columnTitle.prop == 'jyaq' ||
columnTitle.prop == 'czxxJyqk' || columnTitle.prop == 'czxxJyqk' ||
columnTitle.prop == 'bgnrms' ||
columnTitle.prop == 'menuString' columnTitle.prop == 'menuString'
" "
> >
...@@ -959,6 +961,9 @@ ...@@ -959,6 +961,9 @@
> >
</div> </div>
</div> </div>
<div v-else-if=" columnTitle.prop == 'xnpgPgsj'">
<span>{{ scope.row.xnpgKssj + '/' + scope.row.xnpgJssj }}</span>
</div>
<div v-else-if="columnTitle.isShowDialog"> <div v-else-if="columnTitle.isShowDialog">
<span <span
v-if=" v-if="
...@@ -1519,6 +1524,7 @@ ...@@ -1519,6 +1524,7 @@
pageBs == 'queryFzth' || pageBs == 'queryFzth' ||
pageBs == 'queryDh' || pageBs == 'queryDh' ||
pageBs == 'jdcxsGl' || pageBs == 'jdcxsGl' ||
pageBs == 'queryWjsdbg' ||
pageBs == 'queryRole' || pageBs == 'queryRole' ||
pageBs == 'queryGrxnpg' || pageBs == 'queryGrxnpg' ||
pageBs == 'queryZjShow' || pageBs == 'queryZjShow' ||
......
...@@ -93,7 +93,7 @@ const mainRouters = [ ...@@ -93,7 +93,7 @@ const mainRouters = [
...zjclRoutes, ...zjclRoutes,
...userAuthRoutes, ...userAuthRoutes,
grxnpgRoutes, grxnpgRoutes,
dwxnpgRoutes, ...dwxnpgRoutes,
...hbyprwRoutes, ...hbyprwRoutes,
...shseRoutes, ...shseRoutes,
...ajxscxbdRoutes, ...ajxscxbdRoutes,
......
...@@ -20,6 +20,33 @@ const menuLayouts = [ ...@@ -20,6 +20,33 @@ const menuLayouts = [
component: () => import("@/views/xnpgbg/dwxnpg.vue") component: () => import("@/views/xnpgbg/dwxnpg.vue")
}, },
{ {
path: "/queryWfqdbg",
name: "queryWfqdbg",
meta: {
title: '单位效能评估',
auth: '5'
},
component: () => import("@/views/xnpgbg/dw/queryWfqdbg.vue")
},
{
path: "/queryWjsdbg",
name: "queryWjsdbg",
meta: {
title: '单位效能评估',
auth: '5'
},
component: () => import("@/views/xnpgbg/dw/queryWjsdbg.vue")
},
{
path: "/queryBdwjsr",
name: "queryBdwjsr",
meta: {
title: '单位效能评估',
auth: '5'
},
component: () => import("@/views/xnpgbg/dw/queryBdwjsr.vue")
},
{
path: "/queryGrxnpg", path: "/queryGrxnpg",
name: "queryGrxnpg", name: "queryGrxnpg",
meta: { meta: {
...@@ -28,10 +55,74 @@ const menuLayouts = [ ...@@ -28,10 +55,74 @@ const menuLayouts = [
}, },
component: () => import("@/views/xnpgbg/grxnpg.vue") component: () => import("@/views/xnpgbg/grxnpg.vue")
}, },
{
path: "/queryWfqdbgGR",
name: "queryWfqdbgGR",
meta: {
title: '个人效能评估',
auth: '5'
},
component: () => import("@/views/xnpgbg/gr/queryWfqdbgGR.vue")
},
{
path: "/queryWjsdbgGR",
name: "queryWjsdbgGR",
meta: {
title: '个人效能评估',
auth: '5'
},
component: () => import("@/views/xnpgbg/gr/queryWjsdbgGR.vue")
},
{
path: "/queryBdwjsrGR",
name: "queryBdwjsrGR",
meta: {
title: '个人效能评估',
auth: '5'
},
component: () => import("@/views/xnpgbg/gr/queryBdwjsrGR.vue")
},
]; ];
export default { export default [{
path: "/right", path: "/right",
component: menuLayout, component: menuLayout,
children: [...menuLayouts] children: [...menuLayouts]
}; },
\ No newline at end of file {
path: "/releaseReportDw",
name: "releaseReportDw",
meta: {
title: '单位效能评估',
auth: '5'
},
component: () => import("@/views/xnpgbg/releaseReportDw.vue")
},
{
path: "/releaseReportGR",
name: "releaseReportGR",
meta: {
title: '个人效能评估',
auth: '5'
},
component: () => import("@/views/xnpgbg/releaseReportGR.vue")
},
{
path: "/reportDetails",
name: "reportDetails",
meta: {
title: '单位效能评估',
auth: '5'
},
component: () => import("@/views/xnpgbg/dw/reportDetails.vue")
},
{
path: "/reportDetailsGR",
name: "reportDetailsGR",
meta: {
title: '个人效能评估',
auth: '5'
},
component: () => import("@/views/xnpgbg/gr/reportDetailsGR.vue")
},
];
\ No newline at end of file
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@toInfor="toInfor"
ref="rightContent"
>
<!-- <template #btnGroup="scope">
<span class="hbyp" @click="toEdeit(scope.scope)">修改</span>
<span class="hbyp" @click="toDelete(scope.scope)">删除</span>
</template> -->
</right-content>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
export default {
name: "xsbk",
components: {
rightContent,
},
data() {
return {
header: "单位效能评估",
pageBs: "queryWjsdbg",
cxFormData: {
limit: 10,
page: 1,
bglxdm: "01",
qryType: "03",
djsjStart: "",
djsjEnd: "",
xxdjdwGajgjgdm: "",
xxdjryXm: "",
},
cxQueryField: [
{
name: "发布单位",
id: "xxdjdwGajgjgdm",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_UNIT",
},
{
name: "发布人",
id: "xxdjryXm",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "发布时间",
id: "djsjStart",
id2: "djsjEnd",
type: "zdyDate",
value: "",
col: "3",
},
],
cxDefaultFormThead: [
{
label: "信息主键编号",
prop: "xxzjbh",
toInfor: true,
width: "250",
},
{
label: "评估单位",
prop: "xnpgDwdmStr",
// toInfor: true,
width: "250",
},
{
label: "评估时间",
prop: "xnpgPgsj",
width: "200",
},
{
label: "接收单位",
prop: "jsdwDwdmStr",
width: "200",
},
{
label: "接收人",
prop: "jsrXm",
width: "300",
},
{
label: "发布人",
prop: "xxdjryXm",
width: "300",
},
{
label: "发布单位",
prop: "xxdjdwGajgmc",
width: "200",
},
{
label: "发布时间",
prop: "djsj",
width: "200",
},
{
label: "报告内容描述",
prop: "bgnrms",
width: "200",
},
],
cxUrl: "/dwGrXnpg/getXnpgbgList",
Menu: [
{
id: "queryBdwjsr",
label: "本单位接收的报告",
index: "queryBdwjsr",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
selectArr: [],
ckForm: {
file: "",
},
fileArr: [],
zdXxzjbh: "",
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
},
methods: {
toInfor(row) {
this.$router.pushToTab({
path: "/reportDetails",
query: {
xxzjbh: row.xxzjbh,
},
});
},
// toEdeit(scope) {},
// toDelete(scope) {},
onSubmit() {
ckSp(this.form).then((res) => {
if (res.success && res.code == 200) {
this.$alert("审批成功!", "提示", {
confirmButtonText: "确定",
type: "success",
});
this.$refs.rightContent.doQuery("yes");
this.dialogTableVisible = false;
// loading.close();
} else {
this.$message({
type: "error",
message: res.message,
});
}
});
},
toXXSP(scope) {
// let loading = this.$loading({
// lock: true,
// text: "正在加载...",
// spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)",
// });
this.$set(this.form, "xxzjbh", scope.row.xxzjbh);
this.dialogTableVisible = true;
},
},
watch: {},
};
</script>
<style>
.el-dialog__body {
padding: 10px 15px !important;
}
.rightContent .el-input__inner,
#formCommonPage .el-input__inner {
height: 32px;
line-height: 32px;
font-family: inherit;
}
.el-table__header-wrapper th,
.el-table__header-wrapper tr {
background: #f4f6f7;
}
.rightContent .el-input__icon,
#formCommonPage .el-input__icon,
.el-input__suffix-inner {
line-height: 36px;
}
.rightContent .el-range-separator {
position: relative;
top: -4px;
}
.rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner {
width: 100%;
font-family: inherit;
}
.rightContent .el-range-input,
#formCommonPage .el-range-input {
vertical-align: top;
}
.rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px;
}
.rightContent .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
}
.success-row {
background-color: #fbf9f4 !important;
}
.Content .el-input,
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss">
.el-form-item {
margin: 15px 0 20px 0;
}
.red {
color: red;
}
.black {
color: black;
}
@import "@/assets/styles/rightContent.scss";
.hbyp {
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 400;
line-height: 22px;
color: #007aff;
margin-right: 16px;
cursor: pointer;
}
.hbyps {
width: 64px;
height: 24px;
background: #ffffff;
border: 1px solid #007aff;
opacity: 1;
border-radius: 4px;
text-align: center;
align-items: center;
display: inline-block;
font-size: 12px !important;
font-weight: 400 !important;
color: #007aff !important;
cursor: pointer;
}
</style>
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@toInfor="toInfor"
ref="rightContent"
>
<template #btnGroup="scope">
<span class="hbyp" @click="toEdeit(scope.scope)">修改</span>
<span class="hbyp" @click="toDelete(scope.scope)">删除</span>
</template>
</right-content>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import { delXnpgbg } from "@/api/xnpg/xnpg.js";
export default {
name: "xsbk",
components: {
rightContent,
},
data() {
return {
header: "单位效能评估",
pageBs: "xsbk",
cxFormData: {
limit: 10,
page: 1,
bglxdm: "01",
qryType: "01",
djsjStart: "",
djsjEnd: "",
},
cxQueryField: [
{
name: "发布时间",
id: "djsjStart",
id2: "djsjEnd",
type: "zdyDate",
value: "",
col: "3",
},
],
cxDefaultFormThead: [
{
label: "信息主键编号",
prop: "xxzjbh",
toInfor: true,
width: "250",
},
{
label: "评估单位",
prop: "xnpgDwdmStr",
// toInfor: true,
width: "200",
},
{
label: "评估时间",
prop: "xnpgPgsj",
width: "200",
},
{
label: "接收单位",
prop: "jsdwDwdmStr",
width: "200",
},
{
label: "接收人",
prop: "jsrXm",
width: "300",
},
{
label: "发布人",
prop: "xxdjryXm",
width: "300",
},
{
label: "发布单位",
prop: "xxdjdwGajgmc",
width: "200",
},
{
label: "发布时间",
prop: "djsj",
width: "200",
},
{
label: "报告内容描述",
prop: "bgnrms",
width: "200",
},
],
cxUrl: "/dwGrXnpg/getXnpgbgList",
Menu: [
{
id: "queryWfqdbg",
label: "我发起的报告",
index: "queryWfqdbg",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
selectArr: [],
ckForm: {
file: "",
},
fileArr: [],
zdXxzjbh: "",
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
},
methods: {
toInfor(row) {
this.$router.pushToTab({
path: "/reportDetails",
query: {
xxzjbh: row.xxzjbh,
},
});
},
toEdeit(scope) {
this.$router.pushToTab({
path: "releaseReportDw",
query: {
xxzjbh: scope.row.xxzjbh
},
});
},
toDelete(scope) {
this.$confirm("是否永久删除我发起的报告?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
delXnpgbg({ xxzjbh: scope.row.xxzjbh }).then((res) => {
if (res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
onSubmit() {
ckSp(this.form).then((res) => {
if (res.success && res.code == 200) {
this.$alert("审批成功!", "提示", {
confirmButtonText: "确定",
type: "success",
});
this.$refs.rightContent.doQuery("yes");
this.dialogTableVisible = false;
// loading.close();
} else {
this.$message({
type: "error",
message: res.message,
});
}
});
},
toXXSP(scope) {
// let loading = this.$loading({
// lock: true,
// text: "正在加载...",
// spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)",
// });
this.$set(this.form, "xxzjbh", scope.row.xxzjbh);
this.dialogTableVisible = true;
},
},
watch: {},
};
</script>
<style>
.el-dialog__body {
padding: 10px 15px !important;
}
.rightContent .el-input__inner,
#formCommonPage .el-input__inner {
height: 32px;
line-height: 32px;
font-family: inherit;
}
.el-table__header-wrapper th,
.el-table__header-wrapper tr {
background: #f4f6f7;
}
.rightContent .el-input__icon,
#formCommonPage .el-input__icon,
.el-input__suffix-inner {
line-height: 36px;
}
.rightContent .el-range-separator {
position: relative;
top: -4px;
}
.rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner {
width: 100%;
font-family: inherit;
}
.rightContent .el-range-input,
#formCommonPage .el-range-input {
vertical-align: top;
}
.rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px;
}
.rightContent .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
}
.success-row {
background-color: #fbf9f4 !important;
}
.Content .el-input,
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss">
.el-form-item {
margin: 15px 0 20px 0;
}
.red {
color: red;
}
.black {
color: black;
}
@import "@/assets/styles/rightContent.scss";
.hbyp {
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 400;
line-height: 22px;
color: #007aff;
margin-right: 16px;
cursor: pointer;
}
.hbyps {
width: 64px;
height: 24px;
background: #ffffff;
border: 1px solid #007aff;
opacity: 1;
border-radius: 4px;
text-align: center;
align-items: center;
display: inline-block;
font-size: 12px !important;
font-weight: 400 !important;
color: #007aff !important;
cursor: pointer;
}
</style>
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@toInfor="toInfor"
ref="rightContent"
>
<!-- <template #btnGroup="scope">
<span class="hbyp" @click="toEdeit(scope.scope)">修改</span>
<span class="hbyp" @click="toDelete(scope.scope)">删除</span>
</template> -->
</right-content>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
export default {
name: "xsbk",
components: {
rightContent,
},
data() {
return {
header: "单位效能评估",
pageBs: "queryWjsdbg",
cxFormData: {
limit: 10,
page: 1,
bglxdm: "01",
qryType: "02",
djsjStart: "",
djsjEnd: "",
xxdjdwGajgjgdm: "",
xxdjryXm: "",
},
cxQueryField: [
{
name: "发布单位",
id: "xxdjdwGajgjgdm",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_UNIT",
},
{
name: "发布人",
id: "xxdjryXm",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "发布时间",
id: "djsjStart",
id2: "djsjEnd",
type: "zdyDate",
value: "",
col: "3",
},
],
cxDefaultFormThead: [
{
label: "信息主键编号",
prop: "xxzjbh",
toInfor: true,
width: "250",
},
{
label: "评估单位",
prop: "xnpgDwdmStr",
// toInfor: true,
width: "250",
},
{
label: "评估时间",
prop: "xnpgPgsj",
width: "200",
},
{
label: "接收单位",
prop: "jsdwDwdmStr",
width: "200",
},
{
label: "接收人",
prop: "jsrXm",
width: "300",
},
{
label: "发布人",
prop: "xxdjryXm",
width: "300",
},
{
label: "发布单位",
prop: "xxdjdwGajgmc",
width: "200",
},
{
label: "发布时间",
prop: "djsj",
width: "200",
},
{
label: "报告内容描述",
prop: "bgnrms",
width: "200",
},
],
cxUrl: "/dwGrXnpg/getXnpgbgList",
Menu: [
{
id: "queryWjsdbg",
label: "我接收的报告",
index: "queryWjsdbg",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
selectArr: [],
ckForm: {
file: "",
},
fileArr: [],
zdXxzjbh: "",
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
},
methods: {
toInfor(row) {
this.$router.pushToTab({
path: "/reportDetails",
query: {
xxzjbh: row.xxzjbh,
},
});
},
// toEdeit(scope) {},
// toDelete(scope) {},
onSubmit() {
ckSp(this.form).then((res) => {
if (res.success && res.code == 200) {
this.$alert("审批成功!", "提示", {
confirmButtonText: "确定",
type: "success",
});
this.$refs.rightContent.doQuery("yes");
this.dialogTableVisible = false;
// loading.close();
} else {
this.$message({
type: "error",
message: res.message,
});
}
});
},
toXXSP(scope) {
// let loading = this.$loading({
// lock: true,
// text: "正在加载...",
// spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)",
// });
this.$set(this.form, "xxzjbh", scope.row.xxzjbh);
this.dialogTableVisible = true;
},
},
watch: {},
};
</script>
<style>
.el-dialog__body {
padding: 10px 15px !important;
}
.rightContent .el-input__inner,
#formCommonPage .el-input__inner {
height: 32px;
line-height: 32px;
font-family: inherit;
}
.el-table__header-wrapper th,
.el-table__header-wrapper tr {
background: #f4f6f7;
}
.rightContent .el-input__icon,
#formCommonPage .el-input__icon,
.el-input__suffix-inner {
line-height: 36px;
}
.rightContent .el-range-separator {
position: relative;
top: -4px;
}
.rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner {
width: 100%;
font-family: inherit;
}
.rightContent .el-range-input,
#formCommonPage .el-range-input {
vertical-align: top;
}
.rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px;
}
.rightContent .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
}
.success-row {
background-color: #fbf9f4 !important;
}
.Content .el-input,
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss">
.el-form-item {
margin: 15px 0 20px 0;
}
.red {
color: red;
}
.black {
color: black;
}
@import "@/assets/styles/rightContent.scss";
.hbyp {
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 400;
line-height: 22px;
color: #007aff;
margin-right: 16px;
cursor: pointer;
}
.hbyps {
width: 64px;
height: 24px;
background: #ffffff;
border: 1px solid #007aff;
opacity: 1;
border-radius: 4px;
text-align: center;
align-items: center;
display: inline-block;
font-size: 12px !important;
font-weight: 400 !important;
color: #007aff !important;
cursor: pointer;
}
</style>
<!--
* @Author: your name
* @Date: 2021-11-25 14:13:42
* @LastEditTime: 2021-11-30 17:57:44
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \founder_vue\src\views\xshb\xshb\detailXsbks.vue
-->
<template>
<div class="Content" id="xsbkDetail">
<right-content
:cxQueryField="cxQueryField"
:pageObject="pageObject"
:pageFooterProps="pageFooterProps"
labelWidth="110px"
title="发布报告详情"
>
</right-content>
<div style="width: 1200px; margin: -43px auto 20px">
<div style="margin: 0 20px; background: #fff">
<div style="padding: 20px; font-size: 15px; font-weight: 800">
<span> {{ titleName }}</span>
</div>
<div style="padding: 20px">
<el-table
v-loading="tableLoading"
:data="tableData"
stripe
border
style="width: 100%"
>
<el-table-column
v-for="(item, index) in FormList"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width"
align="center"
>
</el-table-column>
</el-table>
</div>
</div>
</div>
</div>
</template>
<script>
import rightContent from "@c/PersonInfor.vue";
import { getXnpgbgByZjbh, getDwXnpg } from "@/api/xnpg/xnpg.js";
export default {
name: "detailXsbks",
components: {
rightContent,
},
data() {
return {
titleName: "",
tableLoading: false,
tableData: [],
FormList: [
{
label: "单位名称",
prop: "dwmc",
width: "250",
},
{
label: "用户量",
width: "100",
prop: "yhs",
},
{
label: "系统登录数",
width: "100",
prop: "xtdls",
},
{
label: "立案数",
width: "100",
prop: "las",
},
{
label: "破案数",
width: "100",
prop: "pas",
},
{
label: "案件标注数",
width: "100",
prop: "ajbzs",
},
{
label: "可疑线索数",
width: "100",
prop: "kyxslrs",
},
{
label: "可疑人员数",
width: "100",
prop: "kyrys",
},
{
label: "可疑车辆数",
width: "100",
prop: "kycls",
},
{
label: "可疑号码数",
width: "100",
prop: "kyhms",
},
],
cxQueryField: [
{
title: "发布报告详情", //如果不分小模块就删除title
id: 1,
objStr: "", //对象中的对应字段
data: [
// {
// label: "线索编号:",
// prop: "xsbh",
// col: "3",
// },
{
label: "发布人:",
prop: "xxdjryXm",
col: "3",
},
{
label: "发布单位:",
prop: "xxdjdwGajgmc",
col: "3",
},
{
label: "发布时间:",
prop: "djsj",
col: "3",
},
{
label: "报告内容:",
prop: "bgnrms",
col: "10",
},
],
},
],
pageFooterProps: [],
pageObject: {},
xxzjbh: "",
};
},
mounted() {},
methods: {
//获取详情
getInfor() {
let loading = this.$loading({
lock: true,
text: "正在加载...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
getXnpgbgByZjbh({
xxzjbh: this.xxzjbh,
}).then((res) => {
if (res.success && res.code == 200) {
this.pageObject = res.data.result;
this.titleName = this.pageObject.xnpgDwdmStr
? this.pageObject.xnpgDwdmStr
: "海南省公安厅" +
"在" +
this.pageObject.xnpgKssj +
"到" +
this.pageObject.xnpgJssj +
"系统应用情况如下: ";
this.tableLoading = true;
getDwXnpg({
unitcode: res.data.result.xnpgDwdm,
kssj: res.data.result.xnpgKssj,
jssj: res.data.result.xnpgJssj,
}).then((res) => {
if (res.code == 200) {
this.tableData = res.data.rows;
this.tableLoading = false;
} else {
this.tableLoading = false;
}
});
loading.close();
} else {
loading.close();
}
});
},
},
created() {
this.xxzjbh = this.$route.query.xxzjbh;
this.getInfor();
},
};
</script>
<style scoped lang="scss">
/deep/.rightContent[data-v-527581af] {
flex: 1;
height: 100%;
// width: 100%;
margin: 0 auto;
overflow-y: auto;
}
</style>
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
<template #listOperation="scope"> <template #listOperation="scope">
<!-- <span class="hbyp" @click="addCY(scope.scope)">打印</span> --> <!-- <span class="hbyp" @click="addCY(scope.scope)">打印</span> -->
<span class="hbyp" @click="addDc(scope.scope)">导出</span> <span class="hbyp" @click="addDc(scope.scope)">导出</span>
<span class="hbyp" @click="addFbbg(scope.scope)">发布报告</span>
<span class="hbyp" v-if="zutList.length > 0" @click="goSyj(scope.scope)" <span class="hbyp" v-if="zutList.length > 0" @click="goSyj(scope.scope)"
>返回</span >返回</span
> >
...@@ -418,6 +419,40 @@ export default { ...@@ -418,6 +419,40 @@ export default {
hasChildren: false, hasChildren: false,
children: [], children: [],
}, },
{
id: "queryWfqdbg",
label: "评估报告",
newAuth: "M01",
index: "queryWfqdbg",
className: "iconfont icongongnengfuwu",
hasChildren: true,
children: [
{
id: "queryWfqdbg",
label: "我发起的报告",
index: "queryWfqdbg",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "queryWjsdbg",
label: "我接收的报告",
index: "queryWjsdbg",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "queryBdwjsr",
label: "本单位接收的报告",
index: "queryBdwjsr",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
},
], ],
// 返回参数 // 返回参数
zutList: [], zutList: [],
...@@ -430,6 +465,19 @@ export default { ...@@ -430,6 +465,19 @@ export default {
// this.getMenuBtCX(); // 表头设置 // this.getMenuBtCX(); // 表头设置
}, },
methods: { methods: {
addFbbg() {
if (this.cxFormData.kssj && this.cxFormData.jssj) {
this.$router.pushToTab({
path: "releaseReportDw",
query: {
form: JSON.stringify(this.cxFormData),
},
});
} else {
this.$message.error('请选择时间,进行报告发布!')
}
},
tableDy(html) { tableDy(html) {
// 打开一个新的浏览器窗口 // 打开一个新的浏览器窗口
var win = window.open(""); var win = window.open("");
......
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@toInfor="toInfor"
ref="rightContent"
>
<!-- <template #btnGroup="scope">
<span class="hbyp" @click="toEdeit(scope.scope)">修改</span>
<span class="hbyp" @click="toDelete(scope.scope)">删除</span>
</template> -->
</right-content>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
export default {
name: "xsbk",
components: {
rightContent,
},
data() {
return {
header: "单位效能评估",
pageBs: "queryWjsdbg",
cxFormData: {
limit: 10,
page: 1,
bglxdm: "02",
qryType: "03",
djsjStart: "",
djsjEnd: "",
xxdjdwGajgjgdm: "",
xxdjryXm: "",
},
cxQueryField: [
{
name: "发布单位",
id: "xxdjdwGajgjgdm",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_UNIT",
},
{
name: "发布人",
id: "xxdjryXm",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "发布时间",
id: "djsjStart",
id2: "djsjEnd",
type: "zdyDate",
value: "",
col: "3",
},
],
cxDefaultFormThead: [
{
label: "信息主键编号",
prop: "xxzjbh",
toInfor: true,
width: "250",
},
{
label: "评估单位",
prop: "xnpgDwdmStr",
// toInfor: true,
width: "250",
},
{
label: "评估时间",
prop: "xnpgPgsj",
width: "200",
},
{
label: "接收单位",
prop: "jsdwDwdmStr",
width: "200",
},
{
label: "接收人",
prop: "jsrXm",
width: "300",
},
{
label: "发布人",
prop: "xxdjryXm",
width: "300",
},
{
label: "发布单位",
prop: "xxdjdwGajgmc",
width: "200",
},
{
label: "发布时间",
prop: "djsj",
width: "200",
},
{
label: "报告内容描述",
prop: "bgnrms",
width: "200",
},
],
cxUrl: "/dwGrXnpg/getXnpgbgList",
Menu: [
{
id: "queryBdwjsrGR",
label: "本单位接收的报告",
index: "queryBdwjsrGR",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
selectArr: [],
ckForm: {
file: "",
},
fileArr: [],
zdXxzjbh: "",
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
},
methods: {
toInfor(row) {
this.$router.pushToTab({
path: "/reportDetailsGR",
query: {
xxzjbh: row.xxzjbh,
},
});
},
// toEdeit(scope) {},
// toDelete(scope) {},
onSubmit() {
ckSp(this.form).then((res) => {
if (res.success && res.code == 200) {
this.$alert("审批成功!", "提示", {
confirmButtonText: "确定",
type: "success",
});
this.$refs.rightContent.doQuery("yes");
this.dialogTableVisible = false;
// loading.close();
} else {
this.$message({
type: "error",
message: res.message,
});
}
});
},
toXXSP(scope) {
// let loading = this.$loading({
// lock: true,
// text: "正在加载...",
// spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)",
// });
this.$set(this.form, "xxzjbh", scope.row.xxzjbh);
this.dialogTableVisible = true;
},
},
watch: {},
};
</script>
<style>
.el-dialog__body {
padding: 10px 15px !important;
}
.rightContent .el-input__inner,
#formCommonPage .el-input__inner {
height: 32px;
line-height: 32px;
font-family: inherit;
}
.el-table__header-wrapper th,
.el-table__header-wrapper tr {
background: #f4f6f7;
}
.rightContent .el-input__icon,
#formCommonPage .el-input__icon,
.el-input__suffix-inner {
line-height: 36px;
}
.rightContent .el-range-separator {
position: relative;
top: -4px;
}
.rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner {
width: 100%;
font-family: inherit;
}
.rightContent .el-range-input,
#formCommonPage .el-range-input {
vertical-align: top;
}
.rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px;
}
.rightContent .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
}
.success-row {
background-color: #fbf9f4 !important;
}
.Content .el-input,
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss">
.el-form-item {
margin: 15px 0 20px 0;
}
.red {
color: red;
}
.black {
color: black;
}
@import "@/assets/styles/rightContent.scss";
.hbyp {
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 400;
line-height: 22px;
color: #007aff;
margin-right: 16px;
cursor: pointer;
}
.hbyps {
width: 64px;
height: 24px;
background: #ffffff;
border: 1px solid #007aff;
opacity: 1;
border-radius: 4px;
text-align: center;
align-items: center;
display: inline-block;
font-size: 12px !important;
font-weight: 400 !important;
color: #007aff !important;
cursor: pointer;
}
</style>
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@toInfor="toInfor"
ref="rightContent"
>
<template #btnGroup="scope">
<span class="hbyp" @click="toEdeit(scope.scope)">修改</span>
<span class="hbyp" @click="toDelete(scope.scope)">删除</span>
</template>
</right-content>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import { delXnpgbg } from "@/api/xnpg/xnpg.js";
export default {
name: "xsbk",
components: {
rightContent,
},
data() {
return {
header: "单位效能评估",
pageBs: "xsbk",
cxFormData: {
limit: 10,
page: 1,
bglxdm: "02",
qryType: "01",
djsjStart: "",
djsjEnd: "",
},
cxQueryField: [
{
name: "发布时间",
id: "djsjStart",
id2: "djsjEnd",
type: "zdyDate",
value: "",
col: "3",
},
],
cxDefaultFormThead: [
{
label: "信息主键编号",
prop: "xxzjbh",
toInfor: true,
width: "250",
},
{
label: "评估单位",
prop: "xnpgDwdmStr",
// toInfor: true,
width: "200",
},
{
label: "评估时间",
prop: "xnpgPgsj",
width: "200",
},
{
label: "接收单位",
prop: "jsdwDwdmStr",
width: "200",
},
{
label: "接收人",
prop: "jsrXm",
width: "300",
},
{
label: "发布人",
prop: "xxdjryXm",
width: "300",
},
{
label: "发布单位",
prop: "xxdjdwGajgmc",
width: "200",
},
{
label: "发布时间",
prop: "djsj",
width: "200",
},
{
label: "报告内容描述",
prop: "bgnrms",
width: "200",
},
],
cxUrl: "/dwGrXnpg/getXnpgbgList",
Menu: [
{
id: "queryWfqdbgGR",
label: "我发起的报告",
index: "queryWfqdbgGR",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
selectArr: [],
ckForm: {
file: "",
},
fileArr: [],
zdXxzjbh: "",
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
},
methods: {
toInfor(row) {
this.$router.pushToTab({
path: "/reportDetailsGR",
query: {
xxzjbh: row.xxzjbh,
},
});
},
toEdeit(scope) {
this.$router.pushToTab({
path: "releaseReportGR",
query: {
xxzjbh: scope.row.xxzjbh
},
});
},
toDelete(scope) {
this.$confirm("是否永久删除我发起的报告?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
delXnpgbg({ xxzjbh: scope.row.xxzjbh }).then((res) => {
if (res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
onSubmit() {
ckSp(this.form).then((res) => {
if (res.success && res.code == 200) {
this.$alert("审批成功!", "提示", {
confirmButtonText: "确定",
type: "success",
});
this.$refs.rightContent.doQuery("yes");
this.dialogTableVisible = false;
// loading.close();
} else {
this.$message({
type: "error",
message: res.message,
});
}
});
},
toXXSP(scope) {
// let loading = this.$loading({
// lock: true,
// text: "正在加载...",
// spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)",
// });
this.$set(this.form, "xxzjbh", scope.row.xxzjbh);
this.dialogTableVisible = true;
},
},
watch: {},
};
</script>
<style>
.el-dialog__body {
padding: 10px 15px !important;
}
.rightContent .el-input__inner,
#formCommonPage .el-input__inner {
height: 32px;
line-height: 32px;
font-family: inherit;
}
.el-table__header-wrapper th,
.el-table__header-wrapper tr {
background: #f4f6f7;
}
.rightContent .el-input__icon,
#formCommonPage .el-input__icon,
.el-input__suffix-inner {
line-height: 36px;
}
.rightContent .el-range-separator {
position: relative;
top: -4px;
}
.rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner {
width: 100%;
font-family: inherit;
}
.rightContent .el-range-input,
#formCommonPage .el-range-input {
vertical-align: top;
}
.rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px;
}
.rightContent .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
}
.success-row {
background-color: #fbf9f4 !important;
}
.Content .el-input,
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss">
.el-form-item {
margin: 15px 0 20px 0;
}
.red {
color: red;
}
.black {
color: black;
}
@import "@/assets/styles/rightContent.scss";
.hbyp {
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 400;
line-height: 22px;
color: #007aff;
margin-right: 16px;
cursor: pointer;
}
.hbyps {
width: 64px;
height: 24px;
background: #ffffff;
border: 1px solid #007aff;
opacity: 1;
border-radius: 4px;
text-align: center;
align-items: center;
display: inline-block;
font-size: 12px !important;
font-weight: 400 !important;
color: #007aff !important;
cursor: pointer;
}
</style>
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@toInfor="toInfor"
ref="rightContent"
>
<!-- <template #btnGroup="scope">
<span class="hbyp" @click="toEdeit(scope.scope)">修改</span>
<span class="hbyp" @click="toDelete(scope.scope)">删除</span>
</template> -->
</right-content>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
export default {
name: "xsbk",
components: {
rightContent,
},
data() {
return {
header: "单位效能评估",
pageBs: "queryWjsdbg",
cxFormData: {
limit: 10,
page: 1,
bglxdm: "02",
qryType: "02",
djsjStart: "",
djsjEnd: "",
xxdjdwGajgjgdm: "",
xxdjryXm: "",
},
cxQueryField: [
{
name: "发布单位",
id: "xxdjdwGajgjgdm",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_UNIT",
},
{
name: "发布人",
id: "xxdjryXm",
type: "text",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "发布时间",
id: "djsjStart",
id2: "djsjEnd",
type: "zdyDate",
value: "",
col: "3",
},
],
cxDefaultFormThead: [
{
label: "信息主键编号",
prop: "xxzjbh",
toInfor: true,
width: "250",
},
{
label: "评估单位",
prop: "xnpgDwdmStr",
// toInfor: true,
width: "250",
},
{
label: "评估时间",
prop: "xnpgPgsj",
width: "200",
},
{
label: "接收单位",
prop: "jsdwDwdmStr",
width: "200",
},
{
label: "接收人",
prop: "jsrXm",
width: "300",
},
{
label: "发布人",
prop: "xxdjryXm",
width: "300",
},
{
label: "发布单位",
prop: "xxdjdwGajgmc",
width: "200",
},
{
label: "发布时间",
prop: "djsj",
width: "200",
},
{
label: "报告内容描述",
prop: "bgnrms",
width: "200",
},
],
cxUrl: "/dwGrXnpg/getXnpgbgList",
Menu: [
{
id: "queryWjsdbgGR",
label: "我接收的报告",
index: "queryWjsdbgGR",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
selectArr: [],
ckForm: {
file: "",
},
fileArr: [],
zdXxzjbh: "",
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
},
methods: {
toInfor(row) {
this.$router.pushToTab({
path: "/reportDetailsGR",
query: {
xxzjbh: row.xxzjbh,
},
});
},
// toEdeit(scope) {},
// toDelete(scope) {},
onSubmit() {
ckSp(this.form).then((res) => {
if (res.success && res.code == 200) {
this.$alert("审批成功!", "提示", {
confirmButtonText: "确定",
type: "success",
});
this.$refs.rightContent.doQuery("yes");
this.dialogTableVisible = false;
// loading.close();
} else {
this.$message({
type: "error",
message: res.message,
});
}
});
},
toXXSP(scope) {
// let loading = this.$loading({
// lock: true,
// text: "正在加载...",
// spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)",
// });
this.$set(this.form, "xxzjbh", scope.row.xxzjbh);
this.dialogTableVisible = true;
},
},
watch: {},
};
</script>
<style>
.el-dialog__body {
padding: 10px 15px !important;
}
.rightContent .el-input__inner,
#formCommonPage .el-input__inner {
height: 32px;
line-height: 32px;
font-family: inherit;
}
.el-table__header-wrapper th,
.el-table__header-wrapper tr {
background: #f4f6f7;
}
.rightContent .el-input__icon,
#formCommonPage .el-input__icon,
.el-input__suffix-inner {
line-height: 36px;
}
.rightContent .el-range-separator {
position: relative;
top: -4px;
}
.rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner {
width: 100%;
font-family: inherit;
}
.rightContent .el-range-input,
#formCommonPage .el-range-input {
vertical-align: top;
}
.rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px;
}
.rightContent .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
}
.success-row {
background-color: #fbf9f4 !important;
}
.Content .el-input,
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss">
.el-form-item {
margin: 15px 0 20px 0;
}
.red {
color: red;
}
.black {
color: black;
}
@import "@/assets/styles/rightContent.scss";
.hbyp {
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 400;
line-height: 22px;
color: #007aff;
margin-right: 16px;
cursor: pointer;
}
.hbyps {
width: 64px;
height: 24px;
background: #ffffff;
border: 1px solid #007aff;
opacity: 1;
border-radius: 4px;
text-align: center;
align-items: center;
display: inline-block;
font-size: 12px !important;
font-weight: 400 !important;
color: #007aff !important;
cursor: pointer;
}
</style>
<!--
* @Author: your name
* @Date: 2021-11-25 14:13:42
* @LastEditTime: 2021-11-30 17:57:44
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \founder_vue\src\views\xshb\xshb\detailXsbks.vue
-->
<template>
<div class="Content" id="xsbkDetail">
<right-content
:cxQueryField="cxQueryField"
:pageObject="pageObject"
:pageFooterProps="pageFooterProps"
labelWidth="110px"
title="发布报告详情"
>
</right-content>
<div style="width: 1200px; margin: -43px auto 20px">
<div style="margin: 0 20px; background: #fff">
<div style="padding: 20px; font-size: 15px; font-weight: 800">
<span> {{ titleName }}</span>
</div>
<div style="padding: 20px">
<el-table
v-loading="tableLoading"
:data="tableData"
stripe
border
style="width: 100%"
>
<el-table-column
v-for="(item, index) in FormList"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width"
align="center"
>
</el-table-column>
</el-table>
<div style="padding: 20px">
<el-pagination
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="page"
:page-sizes="[10, 20, 30, 50]"
:page-size="limit"
layout="sizes,prev, pager, next"
:total="tableDataLength"
>
</el-pagination>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import rightContent from "@c/PersonInfor.vue";
import { getXnpgbgByZjbh, getGrXnpg } from "@/api/xnpg/xnpg.js";
export default {
name: "detailXsbks",
components: {
rightContent,
},
data() {
return {
page: 1,
limit: 10,
tableDataLength: 0,
titleName: "",
tableLoading: false,
tableData: [],
FormList: [
{
label: "姓名",
// toInfor: true,
width: "200",
prop: "truename",
},
{
label: "单位",
// toInforPg: true,
width: "250",
prop: "dwmc",
},
{
width: "200",
label: "账号",
prop: "username",
},
{
width: "200",
label: "警号",
prop: "policemanid",
},
{
label: "电话",
width: "200",
prop: "telephone",
},
{
width: "100",
label: "系统登录数",
prop: "xtdls",
},
{
label: "破案数",
prop: "pas",
width: "100",
},
{
width: "100",
label: "案件标注数",
prop: "ajbzs",
},
{
label: "可疑线索数",
width: "100",
prop: "kyxslrs",
},
{
label: "可疑人员数",
width: "100",
prop: "kyrys",
},
{
label: "可疑车辆数",
width: "100",
prop: "kycls",
},
{
label: "可疑号码数",
width: "100",
prop: "kyhms",
},
],
cxQueryField: [
{
title: "发布报告详情", //如果不分小模块就删除title
id: 1,
objStr: "", //对象中的对应字段
data: [
// {
// label: "线索编号:",
// prop: "xsbh",
// col: "3",
// },
{
label: "发布人:",
prop: "xxdjryXm",
col: "3",
},
{
label: "发布单位:",
prop: "xxdjdwGajgmc",
col: "3",
},
{
label: "发布时间:",
prop: "djsj",
col: "3",
},
{
label: "报告内容:",
prop: "bgnrms",
col: "10",
},
],
},
],
pageFooterProps: [],
pageObject: {},
xxzjbh: "",
};
},
mounted() {},
methods: {
//获取详情
getInfor() {
let loading = this.$loading({
lock: true,
text: "正在加载...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
getXnpgbgByZjbh({
xxzjbh: this.xxzjbh,
}).then((res) => {
if (res.success && res.code == 200) {
this.pageObject = res.data.result;
this.titleName = this.pageObject.xnpgDwdmStr
? this.pageObject.xnpgDwdmStr
: "海南省公安厅" +
"在" +
this.pageObject.xnpgKssj +
"到" +
this.pageObject.xnpgJssj +
"系统应用情况如下: ";
this.getGrXnpgList()
loading.close();
} else {
loading.close();
}
});
},
// 分页
handleSizeChange(val) {
this.limit = val;
this.getGrXnpgList();
},
// 分页
handleCurrentChange(val) {
this.page = val;
this.getGrXnpgList();
},
getGrXnpgList() {
this.tableLoading = true;
getGrXnpg({
unitcode: this.pageObject.xnpgDwdm,
kssj: this.pageObject.xnpgKssj,
jssj: this.pageObject.xnpgJssj,
limit: this.limit,
page: this.page,
xm: this.pageObject.xnpgYhxm,
policemanid: this.pageObject.xnpgYhjh,
qryType: "bxq",
}).then((res) => {
if (res.code == 200) {
this.tableData = res.data.rows;
this.tableDataLength = res.data.total
this.tableLoading = false;
} else {
this.tableLoading = false;
}
});
},
},
created() {
this.xxzjbh = this.$route.query.xxzjbh;
this.getInfor();
},
};
</script>
<style scoped lang="scss">
/deep/.rightContent[data-v-527581af] {
flex: 1;
height: 100%;
// width: 100%;
margin: 0 auto;
overflow-y: auto;
}
</style>
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
> >
<template #listOperation="scope"> <template #listOperation="scope">
<span class="hbyp" @click="addCY(scope.scope)">导出</span> <span class="hbyp" @click="addCY(scope.scope)">导出</span>
<span class="hbyp" @click="addFbbg(scope.scope)">发布报告</span>
<!-- <span class="hbyp" @click="addDy(scope.scope)">打印</span> --> <!-- <span class="hbyp" @click="addDy(scope.scope)">打印</span> -->
</template> </template>
</right-content> </right-content>
...@@ -340,6 +341,40 @@ export default { ...@@ -340,6 +341,40 @@ export default {
children: [], children: [],
}, },
{ {
id: "queryWfqdbgGR",
label: "评估报告",
newAuth: "M01",
index: "queryWfqdbgGR",
className: "iconfont icongongnengfuwu",
hasChildren: true,
children: [
{
id: "queryWfqdbgGR",
label: "我发起的报告",
index: "queryWfqdbgGR",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "queryWjsdbgGR",
label: "我接收的报告",
index: "queryWjsdbgGR",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "queryBdwjsrGR",
label: "本单位接收的报告",
index: "queryBdwjsrGR",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
},
{
id: "queryJfgl", id: "queryJfgl",
label: "积分管理", label: "积分管理",
newAuth: "M01", newAuth: "M01",
...@@ -376,6 +411,19 @@ export default { ...@@ -376,6 +411,19 @@ export default {
this.getMenuBtCX(); // 表头设置 this.getMenuBtCX(); // 表头设置
}, },
methods: { methods: {
addFbbg() {
if (this.cxFormData.kssj && this.cxFormData.jssj) {
this.$router.pushToTab({
path: "releaseReportGR",
query: {
form: JSON.stringify(this.cxFormData),
},
});
} else {
this.$message.error('请选择时间,进行报告发布!')
}
},
tableDy(html) { tableDy(html) {
// 打开一个新的浏览器窗口 // 打开一个新的浏览器窗口
var win = window.open(""); var win = window.open("");
......
<template>
<div>
<form-compontent
:formField="propFormField"
:formLabelAligns="formLabelAlign"
@submit="submit"
:propTitle="title"
@xzJsr="xzJsr"
></form-compontent>
<el-dialog title="用户列表" :visible.sync="centerDialogVisible" width="60%">
<div style="margin: 20px">
<el-form ref="form" :model="form" label-width="80px">
<el-form-item label="姓名:">
<el-input placeholder="请输入姓名" v-model="form.name"></el-input>
</el-form-item>
<el-form-item label="警号:">
<el-input
placeholder="请输入警号"
v-model="form.policemanid"
></el-input>
</el-form-item>
</el-form>
<div style="text-align: right; margin-bottom: 22px">
<el-button style="width: 115px" @click="deldteForm">清空</el-button>
<el-button style="width: 115px" @click="addDoQuery" type="primary"
>查询</el-button
>
<el-button style="width: 115px" @click="Qryh" type="primary"
>确定</el-button
>
</div>
<el-table
v-loading="tableLoading"
ref="multipleTable"
:data="tableData"
border
center
style="width: 100%"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column
v-for="(item, index) in tableDataLb"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width"
align="center"
>
</el-table-column>
</el-table>
<div style="padding: 20px">
<el-pagination
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="form.page"
:page-sizes="[5, 10, 30, 50]"
:page-size="form.limit"
layout="sizes,prev, pager, next"
:total="tableDataLength"
>
</el-pagination>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
import formCompontent from "@c/form.vue";
import { getUserList, addXnpgbg,getXnpgbgByZjbh, updateXnpgbg } from "@/api/xnpg/xnpg.js";
export default {
name: "queryAdd",
components: {
formCompontent,
},
data() {
return {
form: {
trueName: "",
policemanid: "",
unitcode: "",
page: 1,
limit: 5,
},
multipleSelection: [],
tableLoading: false,
tableDataLength: 0, //表格总数
tableData: [],
tableDataLb: [
{
label: "姓名",
prop: "trueName",
},
{
label: "性别",
prop: "sex",
},
{
label: "警号",
prop: "policemanid",
},
{
label: "电话",
prop: "telephone",
},
{
label: "身份证号码",
prop: "identitycard",
},
],
centerDialogVisible: false,
title: "发布报告",
propFormField: [
//基本信息
{
title: "发布报告",
id: 1,
flags: true,
objStr: "",
isclosed: false,
data: [
{
name: "接收单位:",
id: "jsdwDwdm",
type: "codeTree",
codeTree: "CODE_UNIT",
codeOptions: [],
prop: "checkEmpty",
value: "",
placeholder: "请选择接收单位",
col: "2",
},
{
name: "接收人:",
id: "jsrXm",
type: "textXzjsr",
value: "",
// prop: "number",
placeholder: "请输入接收人",
col: "2",
disabled: true,
},
{
name: "报告内容:",
id: "bgnrms",
type: "textarea",
value: "",
placeholder: "请输入报告内容",
col: "18",
// prop: "checkEmpty",
},
],
},
],
formLabelAlign: {},
formData: {},
xxzjbh: '',
};
},
methods: {
xzJsr(item) {
if (this.formLabelAlign.jsdwDwdm) {
this.centerDialogVisible = true;
this.doQuery();
} else {
this.$message.error("请选择接收单位");
}
},
submit(params) {
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
if ( this.xxzjbh) {
this.modifySubmit(params, loading);
} else {
this.addSubmit(params, loading);
}
},
addSubmit(params, loading) {
params.append("bglxdm", "01");
params.append("xnpgDwdm", this.formData.unitcode);
params.append("xnpgKssj", this.formData.kssj);
params.append("xnpgJssj", this.formData.jssj);
params.append("jsrSfzh", this.multipleSelection[0].identitycard);
addXnpgbg(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("保存成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
// this.$router.push("/queryHbyp");
window.opener.location.reload();
window.close();
loading.close();
},
});
} else {
loading.close();
}
});
},
modifySubmit(params, loading) {
params.append("xxzjbh", this.xxzjbh);
updateXnpgbg(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("修改成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
// this.$router.push("/queryHbyp");
window.opener.location.reload();
window.close();
loading.close();
},
});
} else {
loading.close();
}
});
},
getshuju() {
var self = this;
getXnpgbgByZjbh({
xxzjbh: this.xxzjbh,
}).then((res) => {
var result = res.data.result;
self.propFormField.forEach((fieldItem) => {
if (fieldItem.data && fieldItem.data.length > 0) {
fieldItem.data.forEach((i) => {
this.$set(this.formLabelAlign, i.id, result[i.id]);
});
}
this.$forceUpdate();
});
self.$set(self.formLabelAlign, "editing", true);
self.$forceUpdate();
});
setTimeout(() => {
self.loading = false;
}, 1000);
},
doQuery() {
this.tableLoading = true;
let json = {};
for (let i in this.form) {
json[i] = this.form[i];
}
json["unitcode"] = this.formLabelAlign.jsdwDwdm;
getUserList(json).then((res) => {
if (res.code == 200) {
this.tableData = res.data.rows;
this.tableDataLength = res.data.total;
this.tableLoading = false;
}
});
},
addDoQuery() {
this.doQuery();
},
Qryh() {
debugger;
if (this.multipleSelection.length == 1) {
this.centerDialogVisible = false;
this.$set(
this.formLabelAlign,
"jsrXm",
this.multipleSelection[0].trueName
);
} else {
this.$message.warning("请选择一个用户");
}
},
deldteForm() {
this.form.trueName = "";
this.form.policemanid = "";
},
// 分页
handleSizeChange(val) {
this.form.limit = val;
this.doQuery();
},
// 分页
handleCurrentChange(val) {
this.form.page = val;
this.doQuery();
},
handleSelectionChange(val) {
debugger;
// 单选
this.multipleSelection = val;
if (val.length > 1) {
this.$refs.multipleTable.clearSelection();
this.$refs.multipleTable.toggleRowSelection(val.pop());
}
},
},
created() {
debugger;
if (this.$route.query.xxzjbh) {
this.xxzjbh = this.$route.query.xxzjbh
this.getshuju()
} else {
this.formData = JSON.parse(this.$route.query.form);
}
},
watch: {
// "formLabelAlign.jsdwDwdm"(val) {
// if (val) {
// this.centerDialogVisible = true;
// this.doQuery();
// }
// },
},
};
</script>
<style scoped lang='scss'>
.el-form {
display: flex;
.el-form-item {
width: 30%;
}
}
</style>
\ No newline at end of file
<template>
<div>
<form-compontent
:formField="propFormField"
:formLabelAligns="formLabelAlign"
@submit="submit"
:propTitle="title"
@xzJsr="xzJsr"
></form-compontent>
<el-dialog title="用户列表" :visible.sync="centerDialogVisible" width="60%">
<div style="margin: 20px">
<el-form ref="form" :model="form" label-width="80px">
<el-form-item label="姓名:">
<el-input placeholder="请输入姓名" v-model="form.name"></el-input>
</el-form-item>
<el-form-item label="警号:">
<el-input
placeholder="请输入警号"
v-model="form.policemanid"
></el-input>
</el-form-item>
</el-form>
<div style="text-align: right; margin-bottom: 22px">
<el-button style="width: 115px" @click="deldteForm">清空</el-button>
<el-button style="width: 115px" @click="addDoQuery" type="primary"
>查询</el-button
>
<el-button style="width: 115px" @click="Qryh" type="primary"
>确定</el-button
>
</div>
<el-table
v-loading="tableLoading"
ref="multipleTable"
:data="tableData"
border
center
style="width: 100%"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column
v-for="(item, index) in tableDataLb"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width"
align="center"
>
</el-table-column>
</el-table>
<div style="padding: 20px">
<el-pagination
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="form.page"
:page-sizes="[5, 10, 30, 50]"
:page-size="form.limit"
layout="sizes,prev, pager, next"
:total="tableDataLength"
>
</el-pagination>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
import formCompontent from "@c/form.vue";
import { getUserList, addXnpgbg,getXnpgbgByZjbh, updateXnpgbg } from "@/api/xnpg/xnpg.js";
export default {
name: "queryAdd",
components: {
formCompontent,
},
data() {
return {
form: {
trueName: "",
policemanid: "",
unitcode: "",
page: 1,
limit: 5,
},
multipleSelection: [],
tableLoading: false,
tableDataLength: 0, //表格总数
tableData: [],
tableDataLb: [
{
label: "姓名",
prop: "trueName",
},
{
label: "性别",
prop: "sex",
},
{
label: "警号",
prop: "policemanid",
},
{
label: "电话",
prop: "telephone",
},
{
label: "身份证号码",
prop: "identitycard",
},
],
centerDialogVisible: false,
title: "发布报告",
propFormField: [
//基本信息
{
title: "发布报告",
id: 1,
flags: true,
objStr: "",
isclosed: false,
data: [
{
name: "接收单位:",
id: "jsdwDwdm",
type: "codeTree",
codeTree: "CODE_UNIT",
codeOptions: [],
prop: "checkEmpty",
value: "",
placeholder: "请选择接收单位",
col: "2",
},
{
name: "接收人:",
id: "jsrXm",
type: "textXzjsr",
value: "",
// prop: "number",
placeholder: "请输入接收人",
col: "2",
disabled: true,
},
{
name: "报告内容:",
id: "bgnrms",
type: "textarea",
value: "",
placeholder: "请输入报告内容",
col: "18",
// prop: "checkEmpty",
},
],
},
],
formLabelAlign: {},
formData: {},
xxzjbh: '',
};
},
methods: {
xzJsr(item) {
if (this.formLabelAlign.jsdwDwdm) {
this.centerDialogVisible = true;
this.doQuery();
} else {
this.$message.error("请选择接收单位");
}
},
submit(params) {
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
if ( this.xxzjbh) {
this.modifySubmit(params, loading);
} else {
this.addSubmit(params, loading);
}
},
addSubmit(params, loading) {
params.append("bglxdm", "02");
params.append("xnpgDwdm", this.formData.unitcode);
params.append("xnpgKssj", this.formData.kssj);
params.append("xnpgJssj", this.formData.jssj);
params.append("xnpgYhxm", this.formData.xm);
params.append("xnpgYhjh", this.formData.policemanid);
params.append("jsrSfzh", this.multipleSelection[0].identitycard);
addXnpgbg(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("保存成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
// this.$router.push("/queryHbyp");
window.opener.location.reload();
window.close();
loading.close();
},
});
} else {
loading.close();
}
});
},
modifySubmit(params, loading) {
params.append("xxzjbh", this.xxzjbh);
updateXnpgbg(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("修改成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
// this.$router.push("/queryHbyp");
window.opener.location.reload();
window.close();
loading.close();
},
});
} else {
loading.close();
}
});
},
getshuju() {
var self = this;
getXnpgbgByZjbh({
xxzjbh: this.xxzjbh,
}).then((res) => {
var result = res.data.result;
self.propFormField.forEach((fieldItem) => {
if (fieldItem.data && fieldItem.data.length > 0) {
fieldItem.data.forEach((i) => {
this.$set(this.formLabelAlign, i.id, result[i.id]);
});
}
this.$forceUpdate();
});
self.$set(self.formLabelAlign, "editing", true);
self.$forceUpdate();
});
setTimeout(() => {
self.loading = false;
}, 1000);
},
doQuery() {
this.tableLoading = true;
let json = {};
for (let i in this.form) {
json[i] = this.form[i];
}
json["unitcode"] = this.formLabelAlign.jsdwDwdm;
getUserList(json).then((res) => {
if (res.code == 200) {
this.tableData = res.data.rows;
this.tableDataLength = res.data.total;
this.tableLoading = false;
}
});
},
addDoQuery() {
this.doQuery();
},
Qryh() {
debugger;
if (this.multipleSelection.length == 1) {
this.centerDialogVisible = false;
this.$set(
this.formLabelAlign,
"jsrXm",
this.multipleSelection[0].trueName
);
} else {
this.$message.warning("请选择一个用户");
}
},
deldteForm() {
this.form.trueName = "";
this.form.policemanid = "";
},
// 分页
handleSizeChange(val) {
this.form.limit = val;
this.doQuery();
},
// 分页
handleCurrentChange(val) {
this.form.page = val;
this.doQuery();
},
handleSelectionChange(val) {
debugger;
// 单选
this.multipleSelection = val;
if (val.length > 1) {
this.$refs.multipleTable.clearSelection();
this.$refs.multipleTable.toggleRowSelection(val.pop());
}
},
},
created() {
debugger;
if (this.$route.query.xxzjbh) {
this.xxzjbh = this.$route.query.xxzjbh
this.getshuju()
} else {
this.formData = JSON.parse(this.$route.query.form);
}
},
watch: {
// "formLabelAlign.jsdwDwdm"(val) {
// if (val) {
// this.centerDialogVisible = true;
// this.doQuery();
// }
// },
},
};
</script>
<style scoped lang='scss'>
.el-form {
display: flex;
.el-form-item {
width: 30%;
}
}
</style>
\ No newline at end of file
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