Commit 32ea83b2 by gao_yingdong

用户管理和刑嫌调控

parent 066c5032
......@@ -511,6 +511,7 @@
pageBs != 'queryMenu' &&
pageBs != 'queryUser' &&
pageBs != 'queryZjcl' &&
pageBs != 'xxtkgzfl' &&
pageBs != 'queryRole'
"
>
......@@ -1562,6 +1563,7 @@
pageBs == 'queryMenu' ||
pageBs == 'querySqdlb' ||
pageBs == 'queryJz' ||
pageBs == 'xxtkgzfl' ||
pageBs == 'queryRole'
)
"
......@@ -1767,6 +1769,7 @@
pageBs != 'queryUser' &&
pageBs != 'queryMenu' &&
pageBs != 'queryJz' &&
pageBs != 'xxtkgzfl' &&
pageBs != 'querySqdlb' &&
pageBs != 'queryRole'
"
......
......@@ -7,7 +7,7 @@ const menuLayouts = [
meta: {
title: '刑嫌对象信息管理'
},
component: () => import("@/views/xxtk/gzry/queryGzry.vue")
component: () => import("@/views/xxtk/gzry/queryGzrys.vue")
},
{
path: "/queryGzrys",
......
......@@ -172,7 +172,8 @@ export default {
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
this.title = "角色信息修改";
this.title = "菜单信息修改";
this.$set(this.propFormField[0],'title','修改菜单')
this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju();
}
......
......@@ -198,6 +198,7 @@ export default {
background: "rgba(255, 255, 255, 0.7)",
});
this.title = "角色信息修改";
this.$set(this.propFormField[0],'title','修改角色')
this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju();
}
......
......@@ -157,7 +157,7 @@ export default {
if (this.selectedId.length > 0) {
this.dialogVisible = true;
} else {
this.$message.error("请选择用户");
this.$message.error("请选择角色");
}
},
getTree() {
......
......@@ -25,11 +25,11 @@ export default {
},
data() {
return {
title: "用户新增",
title: "用户修改",
propFormField: [
//基本信息
{
title: "新增用户",
title: "修改用户",
id: 1,
objStr: "",
......
......@@ -166,10 +166,6 @@ export default {
label: "用户级别",
prop: "gradeStr",
},
{
label: "用户状态",
prop: "openFlag",
},
],
cxUrl: "/sysuser/selectUserNewList",
Menu: [
......@@ -230,14 +226,22 @@ export default {
this.isPremission = JSON.parse(sessionStorage.getItem("userInfo"))
.permission.split(",")
.findIndex((item) => item == "A0000");
debugger;
this.identitycard = JSON.parse(
sessionStorage.getItem("userInfo")
).identitycard;
debugger;
this.getTree();
this.getThead();
},
methods: {
getThead() {
if (this.isPremission >= 0) {
let obj = {
label: "用户状态",
prop: "openFlag",
};
this.cxDefaultFormThead.push(obj);
}
},
editMa(scope) {
debugger;
this.$set(this.form, "id", scope.row.id);
......@@ -343,15 +347,15 @@ export default {
});
},
edit(obj) {
if (this.identitycard == obj.row.identitycard) {
if (this.identitycard == obj.row.identitycard || this.isPremission >= 0) {
this.$router.pushToTab({
path: "/addXg",
query: {
xxzjbh: obj.row.id,
},
});
}else{
this.$message.error('暂无权限,只能修改本人信息')
} else {
this.$message.error("暂无权限,只能修改本人信息");
}
},
dele(obj) {
......
......@@ -58,7 +58,7 @@
</el-dialog>
<!-- 新增列控 -->
<!-- <el-dialog title="新增列控信息" :visible.sync="newlyVisiable">
<el-dialog title="新增列控信息" :visible.sync="newlyVisiable">
<el-form :inline="true" :model="lkForm" class="demo-form-inline">
<el-row>
<el-col :span="20" :offset="2" style="margin-top: 20px">
......@@ -99,9 +99,9 @@
<el-button @click="newlyVisiable = false">取 消</el-button>
<el-button type="primary" @click="submitLKD">确 定</el-button>
</div>
</el-dialog> -->
</el-dialog>
<!-- 撤控 -->
<!-- <el-dialog title="新增撤控信息" :visible.sync="revokeVisiable">
<el-dialog title="新增撤控信息" :visible.sync="revokeVisiable">
<el-form :inline="true" :model="ckForm" class="demo-form-inline">
<el-row>
<el-col :span="20" :offset="2" style="margin-top: 20px">
......@@ -142,7 +142,7 @@
<el-button @click="revokeVisiable = false">取 消</el-button>
<el-button type="primary" @click="submitCKD">确 定</el-button>
</div>
</el-dialog> -->
</el-dialog>
</div>
</template>
......@@ -928,6 +928,7 @@ export default {
});
},
newlyLK(xzgzrybh) {
debugger
for (let key in this.lkForm) {
this.$set(this.lkForm, key, "");
}
......
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@showDialogS="showDialogS"
@showDialogG="showDialogG"
@toInfor="toInfor"
@revokeLK="revokeLK"
ref="rightContent"
>
<template #listOperation="scope">
<span class="hbyps" @click="add(scope.scope)">
<i class="el-icon-plus"></i>新增</span
>
</template>
<template #btnGroup="scope">
<span class="hbyp" @click="edit(scope.scope)">修改</span>
<span class="hbyp" @click="dele(scope.scope)">删除</span>
<span class="hbyp" @click="sendBk(scope.scope)">发起布控</span>
<span class="hbyp" @click="lowdaZl(scope.scope)">下达指令</span>
<span class="hbyp" @click="newlyLK(scope.scope)">列控信息</span>
<span class="hbyp" @click="revokeLK(scope.scope)">撤控信息</span>
</template>
</right-content>
<el-dialog title="关联案件" :visible.sync="dialogS" width="55%">
<right-content
:pageBs="bshglajS.pageBs"
:cxFormData="bshglajS.cxFormData"
:cxQueryField="bshglajS.cxQueryField"
:cxDefaultFormThead="bshglajS.cxDefaultFormThead"
:cxUrl="bshglajS.cxUrl"
@toInforDa="toInforDa"
ref="rightContentGl"
></right-content>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogS = false">关闭</el-button>
</span>
</el-dialog>
<el-dialog title="关联案件" :visible.sync="dialogG" width="55%">
<right-content
:pageBs="bshglajG.pageBs"
:cxFormData="bshglajG.cxFormData"
:cxQueryField="bshglajG.cxQueryField"
:cxDefaultFormThead="bshglajG.cxDefaultFormThead"
:cxUrl="bshglajG.cxUrl"
@toInforDa="toInforDa"
ref="rightContentGl"
></right-content>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogG = false">关闭</el-button>
</span>
</el-dialog>
<!-- 新增列控 -->
<el-dialog title="新增列控信息" :visible.sync="newlyVisiable">
<el-form :inline="true" :model="lkForm" class="demo-form-inline">
<el-row>
<el-col :span="20" :offset="2" style="margin-top: 20px">
<el-form-item label="列控单位" style="width:100%">
<select-tree-dialog
:placeholder="'请选择'"
sendId="'lkdwGajgjgdm'"
:formData="lkForm"
:currentItem="lkobj"
/>
</el-form-item>
</el-col>
<el-col :span="20" :offset="2">
<el-form-item label="列控时间" style="width:100%">
<el-date-picker
v-model="lkForm.lksj"
placeholder="选择日期"
value-format="yyyy-MM-dd HH:mm:ss"
style="width: 100px"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="20" :offset="2">
<el-form-item label="列控原因" style="width:100%">
<el-input
type="textarea"
v-model="lkForm.lkyyJyqk"
:autosize="{ minRows: 3 }"
style="width: 400px"
placeholder="审批意见"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="newlyVisiable = false">取 消</el-button>
<el-button type="primary" @click="submitLKD">确 定</el-button>
</div>
</el-dialog>
<!-- 撤控 -->
<el-dialog title="新增撤控信息" :visible.sync="revokeVisiable">
<el-form :inline="true" :model="ckForm" class="demo-form-inline">
<el-row>
<el-col :span="20" :offset="2" style="margin-top: 20px">
<el-form-item label="撤控单位" style="width:100%">
<select-tree-dialog
:placeholder="'请选择'"
sendId="'cxdwGajgjgdm'"
:formData="ckForm"
:currentItem="ckobj"
/>
</el-form-item>
</el-col>
<el-col :span="20" :offset="2">
<el-form-item label="撤控时间" style="width:100%">
<el-date-picker
v-model="ckForm.cxsj"
placeholder="选择日期"
value-format="yyyy-MM-dd HH:mm:ss"
style="width: 100px"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="20" :offset="2">
<el-form-item label="撤控原因" style="width:100%">
<el-input
type="textarea"
v-model="ckForm.cxyyJyqk"
:autosize="{ minRows: 3 }"
style="width: 400px"
placeholder="审批意见"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="revokeVisiable = false">取 消</el-button>
<el-button type="primary" @click="submitCKD">确 定</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import formCompontent from "@c/form.vue";
import { deleteGzry, insertLkGzry, insertCkGzry } from "@/api/xxtk/gzry.js";
import SelectTreeDialog from "@c/treeCode_components.vue";
export default {
name: "gzry",
components: {
rightContent,
formCompontent,
SelectTreeDialog,
},
data() {
return {
bshglajS: {
pageBs: "qyeryrlqbxsGl",
cxFormData: {
page: 1,
limit: 5,
rlqbxxzjbh: "",
},
cxQueryField: [],
cxDefaultFormThead: [
{
label: "案事件编号",
prop: "asjbh",
toInforDa: true,
},
{
label: "案件名称",
prop: "ajmc",
},
{
label: "案件类别",
prop: "ajlbdm",
},
{
label: "立案日期",
prop: "larq",
},
{
label: "立案单位",
prop: "ladwGajgmc",
},
{
label: "简要案情",
prop: "jyaq",
},
],
cxUrl: "/rlqb/getAjListByS",
},
bshglajG: {
pageBs: "qyeryrlqbxsGl",
cxFormData: {
page: 1,
limit: 5,
rlqbxxzjbh: "",
},
cxQueryField: [],
cxDefaultFormThead: [
{
label: "案事件编号",
prop: "asjbh",
toInforDa: true,
},
{
label: "案件名称",
prop: "ajmc",
},
{
label: "案件类别",
prop: "ajlbdm",
},
{
label: "立案日期",
prop: "larq",
},
{
label: "立案单位",
prop: "ladwGajgmc",
},
{
label: "简要案情",
prop: "jyaq",
},
],
cxUrl: "/rlqb/getAjListByQg",
},
dialogS: false,
dialogG: false,
examineInfo: {},
header: "刑嫌调控工作管理", //头部标题 (模块第一个页面需要)
pageBs: "xxtkgzfl", //页面名称
cxFormData: {
//查询条件
// lkPdbz: "2",
limit: 10,
page: 1,
xm: "",
zjhm: "",
xbdm: "",
mzdm: "",
hjdzXzqhdm: "",
sfyxdsPdbz: "",
sfazbbdxdzPdbz: "",
xzgzrylbdm: "",
xzgzrygzjbdm: "",
xxdjdwGajgjgdm: "",
xzgzryzt: "",
},
cxQueryField: [
//查询条件
{
name: "姓名",
id: "xm",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "证件号码",
id: "zjhm",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "性别",
id: "xbdm",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_XB",
},
{
name: "民族",
id: "mzdm",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_MZ_MIS",
},
{
name: "户籍",
id: "hjdzXzqhdm",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_XZQH",
},
{
name: "是否有吸毒史",
id: "sfyxdsPdbz",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_IF",
},
{
name: "是否有艾滋病",
id: "sfazbbdxdzPdbz",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_IF",
},
{
name: "人员类别",
id: "xzgzrylbdm",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_XZGZRYLB",
},
{
name: "关注级别",
id: "xzgzrygzjbdm",
type: "codeTreeDialog",
codeTree: "CODE_XZGZRYJB",
codeOptions: [],
props: [], //字典弹框需要的字段
value: "",
col: "3",
},
{
name: "纳嫌单位",
id: "xxdjdwGajgjgdm",
type: "codeTreeDialog",
codeTree: "CODE_UNIT",
codeOptions: [],
props: [], //字典弹框需要的字段
value: "",
col: "3",
},
{
name: "刑侦关注人员状态",
id: "xzgzryzt",
type: "select",
value: "",
selectData: [
{ name: "呈请撤销", value: "0" },
{ name: "呈请审批", value: "1" },
{ name: "已审批", value: "2" },
{ name: "未通过审批", value: "3" },
{ name: "撤销关注通过", value: "4" },
{ name: "撤销未关注通过", value: "5" },
],
placeholder: "请选择",
col: "3",
},
{
name: "案件类别",
id: "ajlb",
type: "codeTreeDialog",
codeTree: "CODE_AJLB",
codeOptions: [],
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "作案手段",
id: "zasd",
type: "codeTreeDialog",
codeTree: "CODE_TSSD",
codeOptions: [],
value: "",
placeholder: "请输入",
col: "3",
},
],
cxDefaultFormThead: [
//table 展示
{
label: "姓名",
prop: "xm",
toInfor: true,
},
{
/*table默认得表头*/
label: "身份证号",
prop: "zjhm",
width: "200",
},
{
label: "性别",
prop: "xbdmStr",
},
{
label: "案件类别",
prop: "ajlbStr",
},
{
label: "作案手段",
prop: "zasdStr",
},
{
label: "关联案件",
prop: "sfyaj",
isShowDialog: true,
},
{
label: "人员类别",
prop: "xzgzrylbdmStr",
},
{
label: "户籍地",
prop: "hjdzXzqhdmStr",
},
// {
// label: "人员类别",
// prop: "xzgzrylbdmStr",
// },
// {
// label: "婚姻状况",
// prop: "hyzkdmStr",
// },
// {
// label: "纳嫌单位",
// prop: "xxdjdwGajgmc",
// },
// {
// label: "政治面貌",
// prop: "zzmmdmStr",
// },
// {
// label: "列控状态",
// prop: "xzgzryztStr",
// },
],
cxUrl: "/xxgzry/selectGzry", //列表查询接口
Menu: [
//头部导航(模块第一个页面需要)
{
id: "queryGzry",
label: "刑嫌对象",
index: "queryGzry",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
// {
// id: "queryCase",
// label: "案件",
// index: "queryCase",
// auth: "M0102",
// className: "iconfont icongongnengfuwu",
// disabled: false,
// },
// {
// id: "querySwtz",
// label: "生物特征",
// index: "querySwtz",
// auth: "M0103",
// className: "iconfont iconfangwen",
// disabled: false,
// },
// {
// id: "queryQtsf",
// label: "人员其它身份",
// index: "queryQtsf",
// auth: "M0101",
// className: "iconfont iconrizhi",
// disabled: false,
// },
// {
// id: "queryWffzjl",
// label: "违法犯罪",
// index: "queryWffzjl",
// auth: "M0102",
// className: "iconfont icongongnengfuwu",
// disabled: false,
// },
// {
// id: "queryGxr",
// label: "关系人",
// index: "queryGxr",
// auth: "M0103",
// className: "iconfont iconfangwen",
// disabled: false,
// },
// {
// id: "queryYdtx",
// label: "移动通讯",
// index: "queryYdtx",
// auth: "M0101",
// className: "iconfont iconrizhi",
// disabled: false,
// },
// {
// id: "queryFwbsh",
// label: "标识号",
// index: "queryFwbsh",
// auth: "M0102",
// className: "iconfont icongongnengfuwu",
// disabled: false,
// },
// {
// id: "queryJdc",
// label: "机动车",
// index: "queryJdc",
// auth: "M0103",
// className: "iconfont iconfangwen",
// disabled: false,
// },
// {
// id: "queryFcxx",
// label: "房产",
// index: "queryFcxx",
// auth: "M0103",
// className: "iconfont iconfangwen",
// disabled: false,
// },
// {
// id: "queryRygd",
// label: "活动轨迹",
// index: "queryRygd",
// auth: "M0103",
// className: "iconfont iconfangwen",
// disabled: false,
// },
// {
// id: "queryBshgj",
// label: "标识号轨迹",
// index: "queryBshgj",
// auth: "M0103",
// className: "iconfont iconfangwen",
// disabled: false,
// },
// {
// id: "queryRyhd",
// label: "话单",
// index: "queryRyhd",
// auth: "M0103",
// className: "iconfont iconfangwen",
// disabled: false,
// },
// {
// id: "queryRysc",
// label: "收藏",
// index: "queryRysc",
// auth: "M0103",
// className: "iconfont iconfangwen",
// disabled: false,
// },
// {
// id: "queryRyyp",
// label: "研判",
// index: "queryRyyp",
// auth: "M0103",
// className: "iconfont iconfangwen",
// disabled: false,
// },
// {
// id: "queryThjl",
// label: "通话记录",
// index: "queryThjl",
// auth: "M0103",
// className: "iconfont iconfangwen",
// disabled: false,
// },
// {
// id: "queryGlbsh",
// label: "关联标识号",
// index: "queryGlbsh",
// auth: "M0103",
// className: "iconfont iconfangwen",
// disabled: false,
// },
// {
// id: "queryTxl",
// label: "通讯录",
// index: "queryTxl",
// auth: "M0103",
// className: "iconfont iconfangwen",
// disabled: false,
// },
],
leftMenus: [
//左侧导航(模块第一个页面需要)
{
id: "queryGzry",
label: "刑嫌列控工作",
newAuth: "M01",
index: "1",
className: "iconfont icongongnengfuwu",
hasChildren: true,
children: [
{
id: "queryGzry",
label: "刑嫌对象信息管理",
index: "queryGzry",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "queryLklz",
label: "刑嫌对象列控流转处理",
index: "queryLklz",
auth: "M0102",
className: "iconfont icongongnengfuwu",
disabled: false,
},
{
id: "queryCklz",
label: "刑嫌对象撤控流转处理",
index: "queryCklz",
auth: "M0103",
className: "iconfont iconfangwen",
disabled: false,
},
{
id: "queryGzzkyxs",
label: "工作中可疑线索",
index: "queryGzzkyxs",
auth: "M0104",
className: "iconfont iconfangwen",
disabled: false,
},
{
id: "queryLklzG",
label: "工作中可疑线索列控流转",
index: "queryLklzG",
auth: "M0105",
className: "iconfont icongongnengfuwu",
disabled: false,
},
{
id: "queryCklzG",
label: "工作中可疑线索撤控流转",
index: "queryCklzG",
auth: "M0106",
className: "iconfont iconfangwen",
disabled: false,
},
],
},
{
id: "home",
label: "刑嫌对象日常管控",
newAuth: "M01",
index: "2",
className: "iconfont icongongnengfuwu",
hasChildren: true,
children: [
{
id: "home",
label: "高危人员滚动查控",
index: "home",
auth: "M0201",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "queryLklzs",
label: "刑嫌对象线索发现及管控",
index: "queryLklzs",
auth: "M0202",
className: "iconfont icongongnengfuwu",
disabled: false,
},
{
id: "queryCklzS",
label: "管控工作指令",
index: "queryCklzS",
auth: "M0203",
className: "iconfont iconfangwen",
disabled: false,
},
],
},
{
id: "queryGzrys",
label: "刑嫌对象信息研判",
newAuth: "M01",
index: "3",
className: "iconfont icongongnengfuwu",
hasChildren: true,
children: [
{
id: "queryGzrys",
label: "刑嫌对象研判",
index: "queryGzrys",
auth: "M0301",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "queryLklzS",
label: "刑嫌对象异常情况研判",
index: "queryLklzS",
auth: "M0302",
className: "iconfont icongongnengfuwu",
disabled: false,
},
{
id: "queryCklzs",
label: "登记工作发现线索信息",
index: "queryCklzs",
auth: "M0303",
className: "iconfont iconfangwen",
disabled: false,
},
],
},
{
id: "queryGzryS",
label: "智能化信息服务",
newAuth: "M01",
index: "4",
className: "iconfont icongongnengfuwu",
hasChildren: true,
children: [
{
id: "queryGzryS",
label: "刑嫌对象关联线索定向推送",
index: "queryGzryS",
auth: "M0401",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "queryLklzSz",
label: "列控管理提醒信息服务",
index: "queryLklzSz",
auth: "M0402",
className: "iconfont icongongnengfuwu",
disabled: false,
},
],
},
],
newlyVisiable: false,
lkForm: {
lkdwGajgjgdm: "",
lksj: "",
lkyyJyqk: "",
},
ckForm: {
cxdwGajgjgdm: "",
cxsj: "",
cxyyJyqk: "",
},
ckobj: {
name: "撤控单位:",
id: "cxdwGajgjgdm",
type: "codeTree",
codeTree: "CODE_UNIT",
codeOptions: [],
value: "",
},
lkobj: {
name: "列控单位:",
id: "lkdwGajgjgdm",
type: "codeTree",
codeTree: "CODE_UNIT",
codeOptions: [],
value: "",
},
revokeVisiable: false,
propFormFieldLK: [
{
title: " ",
id: 1,
objStr: "",
index: 0,
data: [
{
name: "列控单位:",
id: "lkdwGajgjgdm",
type: "codeTree",
codeTree: "CODE_UNIT",
codeOptions: [],
value: "",
col: "3",
},
{
name: "列控时间:",
id: "lksj",
type: "dates",
value: "",
col: "3",
},
{
name: "列控原因:",
id: "lkyyJyqk",
type: "textarea",
value: "",
placeholder: "请填写列控原因",
col: "3",
},
],
},
],
formLabelAlignLK: {},
propFormFieldCK: [
{
id: 1,
objStr: "",
index: 0,
data: [
{
name: "撤控单位:",
id: "cxdwGajgjgdm",
type: "codeTree",
codeTree: "CODE_UNIT",
codeOptions: [],
value: "",
col: "3",
},
{
name: "撤控时间:",
id: "cxsj",
type: "dates",
value: "",
col: "3",
},
{
name: "撤控原因:",
id: "cxyyJyqk",
type: "textarea",
value: "",
placeholder: "请填写列控原因",
col: "3",
},
],
},
],
formLabelAlignCK: {},
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
this.$store.commit("user/SET_LeftMenu", this.leftMenus);
this.$store.commit("user/SET_Header", this.header);
},
mounted() {
this.hqzd();
},
methods: {
hqzd() {
let self = this;
axios
.get(`JsonData/${this.lkobj.codeTree}.json`)
.then((res) => {
self.$set(this.lkobj, "codeOptions", res.data.data.rows);
})
.catch((err) => {
console.log(err);
});
axios
.get(`JsonData/${this.ckobj.codeTree}.json`)
.then((res) => {
self.$set(this.ckobj, "codeOptions", res.data.data.rows);
})
.catch((err) => {
console.log(err);
});
},
add() {
// this.$router.pushToTab("addGzry");
this.$router.pushToTab("adjustXsbks");
},
edit(scope) {
console.log(scope);
this.$router.pushToTab({
path: "/addGzry",
query: { xxzjbh: scope.row.xzgzrybh },
});
},
dele(scope) {
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteGzry({
xzgzrybh: scope.row.xzgzrybh,
}).then((res) => {
if (res.success && res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
toInfor(scope) {
console.log(scope);
this.$router.pushToTab({
path: "/detailGzry",
query: {
xxzjbh: scope.xzgzrybh,
},
});
},
newlyLK(xzgzrybh) {
debugger
for (let key in this.lkForm) {
this.$set(this.lkForm, key, "");
}
this.xzgzrybh = xzgzrybh;
this.newlyVisiable = true;
},
revokeLK(xzgzrybh) {
for (let key in this.ckForm) {
this.$set(this.ckForm, key, "");
}
this.xzgzrybh = xzgzrybh;
this.revokeVisiable = true;
},
submitLKD() {
let params = new FormData();
for (let key in this.lkForm) {
if (this.lkForm[key]) {
params.append(key, this.lkForm[key]);
}
}
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
params.append("xzgzrybh", this.xzgzrybh);
insertLkGzry(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("保存成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
loading.close();
// this.$router.push("queryGzry");
this.newlyVisiable = false;
},
});
} else {
this.$message.error("添加失败,请检查数据格式是否正确");
}
});
},
submitCKD() {
let params = new FormData();
for (let key in this.ckForm) {
if (this.ckForm[key]) {
params.append(key, this.ckForm[key]);
}
}
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
params.append("xzgzrybh", this.xzgzrybh);
insertCkGzry(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("保存成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
loading.close();
// this.$router.push("queryGzry");
this.revokeVisiable = false;
},
});
} else {
this.$message.error("添加失败,请检查数据格式是否正确");
}
});
},
toInforDa(scope) {
debugger;
// http://39.99.155.173:8003/doLogin?zjhm=142302198901012417
// http://39.99.155.173:8003/queryAjdaxxs?asjbh=A4419615400002020086063
var userInfo = JSON.parse(sessionStorage.getItem("userInfo"));
var idcard = userInfo.identitycard;
let path = `${base.alyIP5}/doLogin?zjhm=${idcard}`;
window.open(path, "_blank");
let paths = `${base.alyIP5}/queryAjdaxxs?asjbh=${scope.asjbh}`;
window.open(paths, "_blank");
},
showDialogS(data) {
this.dialogS = true;
console.log(data);
this.bshglajS.cxFormData.rlqbxxzjbh = data.row.xxzjbh;
// this.bshglajS.cxUrl = data.cxUrl;
// this.$refs.rightContentGl.doQuery("yes");
},
showDialogG(data) {
this.dialogG = true;
console.log(data);
this.bshglajG.cxFormData.rlqbxxzjbh = data.row.xxzjbh;
// this.bshglajG.cxUrl = data.cxUrl;
// this.$refs.rightContentGl.doQuery("yes");
},
// 发起布控
sendBk(scope) {
console.log(scope);
this.$router.pushToTab({
path: "/adjustXsbks",
query: { glxxlx: '0004', xzgzrybh: scope.row.xzgzrybh, bkdxLxdm: '04', bkdx_hm: scope.row.zjhm },
});
},
// 下达指令
lowdaZl(scope) {
console.log(scope);
this.$router.pushToTab({
path: "/addsqfbzl",
query: { type: 'xdzl', glxxXxzjbh: scope.row.xzgzrybh, module: 'xxtk', xsType: 'ry' },
});
}
},
};
</script>
<style>
.el-dialog {
/* max-height: 670px */
}
.el-dialog__body {
padding: 0px 15px !important;
/* height: 80vh; */
}
.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">
@import "@/assets/styles/rightContent.scss";
/deep/ {
.el-form-item {
width: 100%;
margin-bottom: 10px;
}
}
.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>
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