Commit 630a084a by liupeng

Merge branch 'dev_xzeq' of http://47.92.108.28/changchao/founder_vue into dev_xzeq

parents 8a8d7f4d 1502738a
...@@ -21,6 +21,11 @@ export const getThxsByZjbh = params => ...@@ -21,6 +21,11 @@ export const getThxsByZjbh = params =>
export const updateThxs = params => export const updateThxs = params =>
postform(`${base.alyIP}/thajxs/updateThxs`, params); postform(`${base.alyIP}/thajxs/updateThxs`, params);
//团伙线索信息详情
export const delThxs = params =>
post(`${base.alyIP}/thajxs/delThxs`, params);
...@@ -21,6 +21,9 @@ export const getXsglasjByZjbh = params => ...@@ -21,6 +21,9 @@ export const getXsglasjByZjbh = params =>
export const updateXsglasj = params => export const updateXsglasj = params =>
postform(`${base.alyIP}/xsglasj/updateXsglasj`, params); postform(`${base.alyIP}/xsglasj/updateXsglasj`, params);
//案件删除
export const delXsglasj = params =>
post(`${base.alyIP}/xsglasj/delXsglasj`, params);
import { get, post, postform } from "@/utils/http.js"; import { get, post, postform } from "@/utils/http.js";
import base from "@/api/base"; import base from "@/api/base";
//系列案件列表 //系列嫌疑人列表
export const getXsglxyrList = params => export const getXsglxyrList = params =>
post(`${base.alyIP}/xsglxyr/getXsglxyrList`, params); post(`${base.alyIP}/xsglxyr/getXsglxyrList`, params);
//关注重点人员 //新增嫌疑人
export const insertUserRybz = params => export const addXsglxyr = params =>
post(`${base.alyIP}/zdGzry/insertUserRybz`, params); postform(`${base.alyIP}/xsglxyr/addXsglxyr`, params);
//取消关注重点人员 //嫌疑人删除
export const updateUserRybz = params => export const delXsglxyr = params =>
post(`${base.alyIP}/zdGzry/updateUserRybz`, params); post(`${base.alyIP}/xsglxyr/delXsglxyr`, params);
......
...@@ -1436,6 +1436,9 @@ export default { ...@@ -1436,6 +1436,9 @@ export default {
}); });
}); });
} else if (val2.type == "code" || val2.type == "codeTree") { } else if (val2.type == "code" || val2.type == "codeTree") {
if (val2.isLazy) {
} else {
if (val2.codeOptions.length == 0) { if (val2.codeOptions.length == 0) {
axios axios
.get(`JsonData/${val2.codeTree}.json`) .get(`JsonData/${val2.codeTree}.json`)
...@@ -1447,6 +1450,7 @@ export default { ...@@ -1447,6 +1450,7 @@ export default {
}); });
} }
} }
}
}); });
}); });
}, },
......
...@@ -302,6 +302,7 @@ ...@@ -302,6 +302,7 @@
:sendId="item.id" :sendId="item.id"
:formData="formLabelAlign" :formData="formLabelAlign"
:currentItem="item" :currentItem="item"
@getDialogSeleted='getDialogSeleted'
/> />
</div> </div>
<!--文件上传--> <!--文件上传-->
...@@ -753,6 +754,9 @@ export default { ...@@ -753,6 +754,9 @@ export default {
self.initFields(); self.initFields();
}, },
methods: { methods: {
getDialogSeleted(label){
this.$emit("getDialogSeleted", label);
},
examine() { examine() {
this.$emit("examine"); this.$emit("examine");
}, },
...@@ -1182,7 +1186,8 @@ export default { ...@@ -1182,7 +1186,8 @@ export default {
for (var fileItem in self.fileLists) { for (var fileItem in self.fileLists) {
for (var i = 0; i < self.fileLists[fileItem].length; i++) { for (var i = 0; i < self.fileLists[fileItem].length; i++) {
if (self.fileLists[fileItem][i].raw) { if (self.fileLists[fileItem][i].raw) {
params.append(fileItem, self.fileLists[fileItem][i].raw); debugger
params.append(`${fileItem}[${i}]`, self.fileLists[fileItem][i].raw);
} }
} }
} }
...@@ -1227,7 +1232,7 @@ export default { ...@@ -1227,7 +1232,7 @@ export default {
} }
if (isLt1M) { if (isLt1M) {
this.fileLists[item.id].push(file); this.fileLists[item.id].push(file);
this.$refs[0].formLabelAlign.clearValidate(); // this.$refs[0].formLabelAlign.clearValidate();
} else { } else {
this.$confirm("上传文件不能超过100M", "提示", { this.$confirm("上传文件不能超过100M", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
......
...@@ -113,7 +113,6 @@ ...@@ -113,7 +113,6 @@
<script> <script>
import Http from "@/utils/http.js"; import Http from "@/utils/http.js";
import url from "@/api/base"; import url from "@/api/base";
import { tree } from "@/api/userAuth/role.js";
export default { export default {
name: "treeCode_components", name: "treeCode_components",
props: { props: {
...@@ -465,22 +464,6 @@ export default { ...@@ -465,22 +464,6 @@ export default {
parm.id = currentNode.data.id; parm.id = currentNode.data.id;
parm.grade = "next"; parm.grade = "next";
} }
if (self.currentItem.codeTree == "parentId") {
tree().then((codeResult) => {
if (codeResult.success) {
//判断是否有下级
codeResult.data.rows.forEach((realCodeItem) => {
realCodeItem.label = realCodeItem.title
if (realCodeItem.hasChildren == true) {
realCodeItem.leaf = true;
} else {
realCodeItem.leaf = false;
}
});
resolve(codeResult.data.rows);
}
});
} else {
self.doQueryRequest(parm, "/queryCodeByType").then((codeResult) => { self.doQueryRequest(parm, "/queryCodeByType").then((codeResult) => {
if (codeResult.data.success) { if (codeResult.data.success) {
//判断是否有下级 //判断是否有下级
...@@ -496,7 +479,6 @@ export default { ...@@ -496,7 +479,6 @@ export default {
resolve(codeResult.data.data.rows); resolve(codeResult.data.data.rows);
} }
}); });
}
}, },
doQueryRequest(form, relurl) { doQueryRequest(form, relurl) {
var currentUrl = relurl ? relurl : this.cxUrl; var currentUrl = relurl ? relurl : this.cxUrl;
......
...@@ -219,7 +219,6 @@ export default { ...@@ -219,7 +219,6 @@ export default {
watch: { watch: {
newArr: { newArr: {
handler(newValue, oldValue) { handler(newValue, oldValue) {
// debugger
var self = this; var self = this;
if (oldValue.length == 0 && this.curFormData[this.curItem.id] != "") { if (oldValue.length == 0 && this.curFormData[this.curItem.id] != "") {
let value = this.queryTree( let value = this.queryTree(
......
...@@ -30,9 +30,7 @@ ...@@ -30,9 +30,7 @@
v-for="(item, index) in leftMenus" v-for="(item, index) in leftMenus"
:key="index" :key="index"
><i ><i
class="iconfont iconquanxianjiesuo" :class="item.className"
style="float: right"
v-show="item.disabled"
></i ></i
>{{ item.label }}</el-menu-item >{{ item.label }}</el-menu-item
> >
......
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-09-07 15:09:40 * @Date: 2021-09-07 15:09:40
* @LastEditTime: 2021-11-02 14:16:53 * @LastEditTime: 2021-11-02 18:10:57
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\utils\params.js * @FilePath: \founder_vue\src\utils\params.js
...@@ -4289,6 +4289,7 @@ const jsasj_jbxx = [ ...@@ -4289,6 +4289,7 @@ const jsasj_jbxx = [
name: "案事件编号:", name: "案事件编号:",
id: "asjbh", id: "asjbh",
type: "text", type: "text",
disabled: true,
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
...@@ -4297,6 +4298,7 @@ const jsasj_jbxx = [ ...@@ -4297,6 +4298,7 @@ const jsasj_jbxx = [
name: "接警编号:", name: "接警编号:",
id: "jjbh", id: "jjbh",
type: "text", type: "text",
disabled: true,
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
...@@ -4304,7 +4306,8 @@ const jsasj_jbxx = [ ...@@ -4304,7 +4306,8 @@ const jsasj_jbxx = [
{ {
name: "受理时间:", name: "受理时间:",
id: "slsj", id: "slsj",
type: "dates", type: "DateVal",
disabled: true,
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
...@@ -4322,6 +4325,7 @@ const jsasj_jbxx = [ ...@@ -4322,6 +4325,7 @@ const jsasj_jbxx = [
{ {
name: "受理单位名称:", name: "受理单位名称:",
id: "sldwGajgmc", id: "sldwGajgmc",
disabled: true,
type: "text", type: "text",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
...@@ -4331,6 +4335,7 @@ const jsasj_jbxx = [ ...@@ -4331,6 +4335,7 @@ const jsasj_jbxx = [
name: "受理单位代码:", name: "受理单位代码:",
id: "sldwGajgjgdm", id: "sldwGajgjgdm",
type: "codeTree", type: "codeTree",
disabled: true,
codeTree: "CODE_UNIT", codeTree: "CODE_UNIT",
codeOptions: [], codeOptions: [],
value: "", value: "",
...@@ -4386,7 +4391,7 @@ const jsasj_jbxx = [ ...@@ -4386,7 +4391,7 @@ const jsasj_jbxx = [
{ {
name: "发现时间:", name: "发现时间:",
id: "jsasjFxasjsj", id: "jsasjFxasjsj",
type: "dates", type: "DateVal",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
...@@ -4427,7 +4432,7 @@ const jsasj_jbxx = [ ...@@ -4427,7 +4432,7 @@ const jsasj_jbxx = [
{ {
name: "案发开始时间:", name: "案发开始时间:",
id: "jsasjAsjfssjAsjfskssj", id: "jsasjAsjfssjAsjfskssj",
type: "dates", type: "DateVal",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
...@@ -4435,7 +4440,7 @@ const jsasj_jbxx = [ ...@@ -4435,7 +4440,7 @@ const jsasj_jbxx = [
{ {
name: "案发结束时间:", name: "案发结束时间:",
id: "jsasjAsjfssjAsjfsjssj", id: "jsasjAsjfssjAsjfsjssj",
type: "dates", type: "DateVal",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
...@@ -4709,7 +4714,7 @@ const jsasj_ajfxxx = [ ...@@ -4709,7 +4714,7 @@ const jsasj_ajfxxx = [
{ {
name: "分析案发开始时间:", name: "分析案发开始时间:",
id: "jsasjAsjfssjfxAsjfskssj", id: "jsasjAsjfssjfxAsjfskssj",
type: "dates", type: "DateVal",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
...@@ -4717,7 +4722,7 @@ const jsasj_ajfxxx = [ ...@@ -4717,7 +4722,7 @@ const jsasj_ajfxxx = [
{ {
name: "分析案发结束时间:", name: "分析案发结束时间:",
id: "jsasjAsjfssjfxAsjfsjssj", id: "jsasjAsjfssjfxAsjfsjssj",
type: "dates", type: "DateVal",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
...@@ -5534,7 +5539,7 @@ const lian_jbxx = [ ...@@ -5534,7 +5539,7 @@ const lian_jbxx = [
{ {
name: "发现案事件时间:", name: "发现案事件时间:",
id: "laFxasjsj", id: "laFxasjsj",
type: "dates", type: "DateVal",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
...@@ -5554,7 +5559,7 @@ const lian_jbxx = [ ...@@ -5554,7 +5559,7 @@ const lian_jbxx = [
{ {
name: "案发开始时间:", name: "案发开始时间:",
id: "laAsjfssjAsjfskssj", id: "laAsjfssjAsjfskssj",
type: "dates", type: "DateVal",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
...@@ -5563,7 +5568,7 @@ const lian_jbxx = [ ...@@ -5563,7 +5568,7 @@ const lian_jbxx = [
{ {
name: "案发结束时间:", name: "案发结束时间:",
id: "laAsjfssjAsjfsjssj", id: "laAsjfssjAsjfsjssj",
type: "dates", type: "DateVal",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
...@@ -5610,7 +5615,7 @@ const lian_jbxx = [ ...@@ -5610,7 +5615,7 @@ const lian_jbxx = [
{ {
name: "立案日期:", name: "立案日期:",
id: "larq", id: "larq",
type: "dates", type: "DateVal",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
...@@ -5873,7 +5878,7 @@ const lian_ajfxxx = [ ...@@ -5873,7 +5878,7 @@ const lian_ajfxxx = [
{ {
name: "分析案发开始时间:", name: "分析案发开始时间:",
id: "laAsjfssjfxAsjfskssj", id: "laAsjfssjfxAsjfskssj",
type: "dates", type: "DateVal",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
...@@ -5882,7 +5887,7 @@ const lian_ajfxxx = [ ...@@ -5882,7 +5887,7 @@ const lian_ajfxxx = [
{ {
name: "分析案发结束时间:", name: "分析案发结束时间:",
id: "laAsjfssjfxAsjfsjssj", id: "laAsjfssjfxAsjfsjssj",
type: "dates", type: "DateVal",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
...@@ -10218,16 +10223,6 @@ const zczj_jbxx = [ ...@@ -10218,16 +10223,6 @@ const zczj_jbxx = [
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
}, },
{
name: "案件类别:",
id: "zczjAjlb",
type: "codeTree",
codeTree: "CODE_AJLB",
codeOptions: [],
value: "",
placeholder: "请输入",
col: "2",
},
] ]
//侦查终结案件分析信息 //侦查终结案件分析信息
const zczj_ajfx = [ const zczj_ajfx = [
...@@ -10262,18 +10257,9 @@ const zczj_ajfx = [ ...@@ -10262,18 +10257,9 @@ const zczj_ajfx = [
prop: 'checkEmpty' prop: 'checkEmpty'
}, },
{ {
name: "立案日期:",
id: "lasj",
type: "dates",
disabled: true,
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "侦查终结时间:", name: "侦查终结时间:",
id: "zczjZxsj01", id: "zczjZxsj01",
type: "dates", type: "DateVal",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
...@@ -10619,7 +10605,7 @@ const zczj_blxx = [ ...@@ -10619,7 +10605,7 @@ const zczj_blxx = [
{ {
name: "办理时间:", name: "办理时间:",
id: "blsj", id: "blsj",
type: "dates", type: "DateVal",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
......
...@@ -54,7 +54,8 @@ export default { ...@@ -54,7 +54,8 @@ export default {
{ {
label: "信息主键编号", label: "信息主键编号",
prop: "xxzjbh", prop: "xxzjbh",
width:300 width:300,
toInfor:true
}, },
// { // {
// label: "案事件编号", // label: "案事件编号",
......
...@@ -54,7 +54,8 @@ export default { ...@@ -54,7 +54,8 @@ export default {
{ {
label: "信息主键编号", label: "信息主键编号",
prop: "xxzjbh", prop: "xxzjbh",
width:300 width:300,
toInfor:true
}, },
// { // {
// label: "案事件编号", // label: "案事件编号",
......
...@@ -55,6 +55,7 @@ export default { ...@@ -55,6 +55,7 @@ export default {
label: "主键编号", label: "主键编号",
prop: "xxzjbh", prop: "xxzjbh",
width: "300", width: "300",
toInfor:true,
}, },
// { // {
// label: "案事件编号", // label: "案事件编号",
......
...@@ -52,7 +52,8 @@ export default { ...@@ -52,7 +52,8 @@ export default {
{ {
label: "信息主键编号", label: "信息主键编号",
prop: "xxzjbh", prop: "xxzjbh",
width:300 width:300,
toInfor:true
}, },
// { // {
// label: "案事件编号", // label: "案事件编号",
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-09-08 17:35:31 * @Date: 2021-09-08 17:35:31
* @LastEditTime: 2021-10-29 17:02:36 * @LastEditTime: 2021-11-02 18:02:17
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\xxtk\case\addCase.vue * @FilePath: \founder_vue\src\views\xxtk\case\addCase.vue
...@@ -36,7 +36,7 @@ export default { ...@@ -36,7 +36,7 @@ export default {
}, },
data() { data() {
return { return {
title: "修改案件信息", title: "案件信息编辑",
propFormField: [ propFormField: [
//基本信息 //基本信息
{ {
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-09-08 17:35:31 * @Date: 2021-09-08 17:35:31
* @LastEditTime: 2021-11-02 14:33:17 * @LastEditTime: 2021-11-02 18:02:23
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\xxtk\case\addCase.vue * @FilePath: \founder_vue\src\views\xxtk\case\addCase.vue
...@@ -37,7 +37,7 @@ export default { ...@@ -37,7 +37,7 @@ export default {
}, },
data() { data() {
return { return {
title: "修改接受案件信息", title: "接受案件信息编辑",
propFormField: [ propFormField: [
//基本信息 //基本信息
{ {
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-09-08 17:35:31 * @Date: 2021-09-08 17:35:31
* @LastEditTime: 2021-11-02 11:36:25 * @LastEditTime: 2021-11-02 18:02:29
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\xxtk\case\addCase.vue * @FilePath: \founder_vue\src\views\xxtk\case\addCase.vue
...@@ -36,7 +36,7 @@ export default { ...@@ -36,7 +36,7 @@ export default {
}, },
data() { data() {
return { return {
title: "修改立案信息", title: "立案信息编辑",
propFormField: [ propFormField: [
//基本信息 //基本信息
{ {
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-09-08 17:35:31 * @Date: 2021-09-08 17:35:31
* @LastEditTime: 2021-11-02 14:14:12 * @LastEditTime: 2021-11-02 18:02:36
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\xxtk\case\addCase.vue * @FilePath: \founder_vue\src\views\xxtk\case\addCase.vue
...@@ -30,7 +30,7 @@ export default { ...@@ -30,7 +30,7 @@ export default {
}, },
data() { data() {
return { return {
title: "修改侦查终结", title: "侦查终结编辑",
propFormField: [ propFormField: [
//基本信息 //基本信息
{ {
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<right-content <right-content
:cxQueryField="cxQueryField" :cxQueryField="cxQueryField"
:pageObject="pageObject" :pageObject="pageObject"
:pageFooterProps="pageFooterProps"
labelWidth="110px" labelWidth="110px"
title="菜单详情" title="菜单详情"
> >
...@@ -22,6 +23,11 @@ export default { ...@@ -22,6 +23,11 @@ export default {
return { return {
cxQueryField: [ cxQueryField: [
{ {
title: "",
id: 1,
objStr: "", //对象中的对应字段
data: [
{
label: "菜单名称:", label: "菜单名称:",
prop: "name", prop: "name",
col: "3", col: "3",
...@@ -45,10 +51,13 @@ export default { ...@@ -45,10 +51,13 @@ export default {
label: "菜单备注:", label: "菜单备注:",
prop: "remark", prop: "remark",
col: "3", col: "3",
} },
],
},
], ],
pageFooterProps: [],
pageObject: {}, pageObject: {},
Loading:null Loading: null,
}; };
}, },
mounted() {}, mounted() {},
...@@ -59,8 +68,9 @@ export default { ...@@ -59,8 +68,9 @@ export default {
}).then((res) => { }).then((res) => {
if (res.success && res.code == 200) { if (res.success && res.code == 200) {
this.pageObject = res.data; this.pageObject = res.data;
debugger
} }
this.Loading.close() this.Loading.close();
}); });
}, },
}, },
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<script> <script>
import formCompontent from "@c/form.vue"; import formCompontent from "@c/form.vue";
import { submit, detail } from "@/api/userAuth/role.js"; import { submit, detail, tree } from "@/api/userAuth/role.js";
export default { export default {
name: "addRole", name: "addRole",
components: { components: {
...@@ -48,14 +48,14 @@ export default { ...@@ -48,14 +48,14 @@ export default {
col: "2", col: "2",
}, },
{ {
name: "上级角色", name: "上级角色:",
id: "parentId", id: "parentId",
type: "lazyCodeTreeDialog", type: "codeTree",
props: [], //字典弹框需要的字段 codeOptions: [],
value: "", value: "",
placeholder: "请输入",
col: "2", col: "2",
codeOptions: [], isLazy: true,
codeTree: "parentId",
}, },
{ {
name: "角色排序:", name: "角色排序:",
...@@ -155,8 +155,17 @@ export default { ...@@ -155,8 +155,17 @@ export default {
}, 500); }, 500);
}); });
}, },
getLazy() {
let self = this
tree().then((res) => {
if (res.success) {
self.$set(self.propFormField[0].data[2], "codeOptions", res.data.rows);
}
});
},
}, },
created() { created() {
this.getLazy()
this.$store.commit("user/SET_Breadcrumb", this.breadcrumbList); this.$store.commit("user/SET_Breadcrumb", this.breadcrumbList);
if (this.$route.query.xxzjbh) { if (this.$route.query.xxzjbh) {
this.Loading = this.$loading({ this.Loading = this.$loading({
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<right-content <right-content
:cxQueryField="cxQueryField" :cxQueryField="cxQueryField"
:pageObject="pageObject" :pageObject="pageObject"
:pageFooterProps="pageFooterProps"
labelWidth="110px" labelWidth="110px"
title="角色详情" title="角色详情"
> >
...@@ -22,6 +23,11 @@ export default { ...@@ -22,6 +23,11 @@ export default {
return { return {
cxQueryField: [ cxQueryField: [
{ {
title: "",
id: 1,
objStr: "", //对象中的对应字段
data: [
{
label: "角色名称:", label: "角色名称:",
prop: "roleName", prop: "roleName",
col: "3", col: "3",
...@@ -40,10 +46,13 @@ export default { ...@@ -40,10 +46,13 @@ export default {
label: "角色排序:", label: "角色排序:",
prop: "sort", prop: "sort",
col: "3", col: "3",
} },
],
},
], ],
pageFooterProps: [],
pageObject: {}, pageObject: {},
Loading:null Loading: null,
}; };
}, },
mounted() {}, mounted() {},
...@@ -55,7 +64,7 @@ export default { ...@@ -55,7 +64,7 @@ export default {
if (res.success && res.code == 200) { if (res.success && res.code == 200) {
this.pageObject = res.data; this.pageObject = res.data;
} }
this.Loading.close() this.Loading.close();
}); });
}, },
}, },
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<right-content <right-content
:cxQueryField="cxQueryField" :cxQueryField="cxQueryField"
:pageObject="pageObject" :pageObject="pageObject"
:pageFooterProps="pageFooterProps"
labelWidth="110px" labelWidth="110px"
title="用户详情" title="用户详情"
> >
...@@ -22,6 +23,11 @@ export default { ...@@ -22,6 +23,11 @@ export default {
return { return {
cxQueryField: [ cxQueryField: [
{ {
title: "",
id: 1,
objStr: "", //对象中的对应字段
data: [
{
label: "用户单位:", label: "用户单位:",
prop: "unitname", prop: "unitname",
col: "3", col: "3",
...@@ -60,10 +66,13 @@ export default { ...@@ -60,10 +66,13 @@ export default {
label: "是否开启:", label: "是否开启:",
prop: "openFlag", prop: "openFlag",
col: "3", col: "3",
} },
],
},
], ],
pageFooterProps: [],
pageObject: {}, pageObject: {},
Loading:null Loading: null,
}; };
}, },
mounted() {}, mounted() {},
...@@ -75,7 +84,7 @@ export default { ...@@ -75,7 +84,7 @@ export default {
if (res.success && res.code == 200) { if (res.success && res.code == 200) {
this.pageObject = res.data.rows; this.pageObject = res.data.rows;
} }
this.Loading.close() this.Loading.close();
}); });
}, },
}, },
......
...@@ -17,12 +17,7 @@ ...@@ -17,12 +17,7 @@
<script> <script>
import formCompontent from "@c/form_compontent.vue"; import formCompontent from "@c/form_compontent.vue";
import { import { addXsglasj } from "@/api/yzzfzxsyp/xlglaj.js";
addXsglasj,
getAjxxByAsjbh,
getXsglasjByZjbh,
updateXsglasj,
} from "@/api/yzzfzxsyp/xlglaj.js";
export default { export default {
name: "addAj", name: "addAj",
components: { components: {
...@@ -108,15 +103,7 @@ export default { ...@@ -108,15 +103,7 @@ export default {
type: "text", type: "text",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "3",
},
{
name: "简要案情:",
id: "jyaq",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
}, },
{ {
name: "立案日期:", name: "立案日期:",
...@@ -136,22 +123,31 @@ export default { ...@@ -136,22 +123,31 @@ export default {
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
}, },
{
name: "简要案情:",
id: "jyaq",
type: "textarea",
value: "",
placeholder: "请输入",
col: "18",
},
], ],
}, },
], ],
formLabelAlign: {}, formLabelAlign: {},
xxzjbh: "", xxzjbh: "",
lable: "",
}; };
}, },
methods: { methods: {
submit(params) { submit(params) {
console.log(params); console.log(params);
// let loading = this.$loading({ let loading = this.$loading({
// lock: true, lock: true,
// text: "正在保存...", text: "正在保存...",
// spinner: "el-icon-loading", spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)", background: "rgba(255, 255, 255, 0.7)",
// }); });
if (!this.xxzjbh) { if (!this.xxzjbh) {
this.addSubmit(params); this.addSubmit(params);
} else { } else {
...@@ -165,12 +161,17 @@ export default { ...@@ -165,12 +161,17 @@ export default {
confirmButtonText: "确定", confirmButtonText: "确定",
type: "success", type: "success",
callback: () => { callback: () => {
this.$router.push("/queryThxs"); this.$router.push({
// loading.close(); path: "/addThxs",
query: {
xxzjbh: this.$route.query.xsbh,
},
});
loading.close();
}, },
}); });
} else { } else {
// loading.close(); loading.close();
} }
}); });
}, },
...@@ -181,7 +182,12 @@ export default { ...@@ -181,7 +182,12 @@ export default {
confirmButtonText: "确定", confirmButtonText: "确定",
type: "success", type: "success",
callback: () => { callback: () => {
this.$router.push("/queryThxs"); this.$router.push({
path: "/addThxs",
query: {
xxzjbh: this.$route.query.xsbh,
},
});
loading.close(); loading.close();
}, },
}); });
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
:formLabelAligns="formLabelAlign" :formLabelAligns="formLabelAlign"
@submit="submit" @submit="submit"
:propTitle="title" :propTitle="title"
@getDialogSeleted="getDialogSeleted"
> >
</form-compontent> </form-compontent>
<div class="formWrap"> <div class="formWrap">
...@@ -24,7 +25,9 @@ ...@@ -24,7 +25,9 @@
</div> </div>
<el-table :data="ajList.shuju"> <el-table :data="ajList.shuju">
<el-table-column <el-table-column
v-for="(columnTitle, coluIndex) in ajList.tableList" v-for="(columnTitle, coluIndex) in ajList.tableList.filter(
(item, index) => index < ajList.tableList.length - 1
)"
:key="columnTitle.label" :key="columnTitle.label"
:label="columnTitle.label" :label="columnTitle.label"
:width="columnTitle.width" :width="columnTitle.width"
...@@ -59,10 +62,10 @@ ...@@ -59,10 +62,10 @@
@click="editAj(scope.row)" @click="editAj(scope.row)"
style="color: #1a81e1; cursor: pointer" style="color: #1a81e1; cursor: pointer"
> >
<i class="iconfont iconbianjiluru"></i>编辑</span 编辑</span
> >
<span <span
@click="delectAj(scope.row)" @click="delect(scope.row, 'aj')"
style="color: #f56c6c; padding-left: 32px; cursor: pointer" style="color: #f56c6c; padding-left: 32px; cursor: pointer"
>删除</span >删除</span
> >
...@@ -93,7 +96,9 @@ ...@@ -93,7 +96,9 @@
</div> </div>
<el-table :data="xyrList.shuju"> <el-table :data="xyrList.shuju">
<el-table-column <el-table-column
v-for="(columnTitle, coluIndex) in xyrList.tableList" v-for="(columnTitle, coluIndex) in xyrList.tableList.filter(
(item, index) => index < xyrList.tableList.length - 1
)""
:key="columnTitle.label" :key="columnTitle.label"
:label="columnTitle.label" :label="columnTitle.label"
:width="columnTitle.width" :width="columnTitle.width"
...@@ -128,10 +133,10 @@ ...@@ -128,10 +133,10 @@
@click="editAj(scope.row)" @click="editAj(scope.row)"
style="color: #1a81e1; cursor: pointer" style="color: #1a81e1; cursor: pointer"
> >
<i class="iconfont iconbianjiluru"></i>编辑</span 编辑</span
> >
<span <span
@click="delectAj(scope.row)" @click="delect(scope.row, 'xyr')"
style="color: #f56c6c; padding-left: 32px; cursor: pointer" style="color: #f56c6c; padding-left: 32px; cursor: pointer"
>删除</span >删除</span
> >
...@@ -155,14 +160,9 @@ ...@@ -155,14 +160,9 @@
<script> <script>
import formCompontent from "@c/form_compontent.vue"; import formCompontent from "@c/form_compontent.vue";
import { import { addThxs, getThxsByZjbh, updateThxs } from "@/api/yzzfzxsyp/thxs.js";
getXsbh, import { getXsglasjList, delXsglasj } from "@/api/yzzfzxsyp/xlglaj.js";
addThxs, import { getXsglxyrList, delXsglxyr } from "@/api/yzzfzxsyp/xlglxyr.js";
getThxsByZjbh,
updateThxs,
} from "@/api/yzzfzxsyp/thxs.js";
import { getXsglasjList } from "@/api/yzzfzxsyp/xlglaj.js";
import { getXsglxyrList } from "@/api/yzzfzxsyp/xlglxyr.js";
export default { export default {
name: "addThxs", name: "addThxs",
components: { components: {
...@@ -176,19 +176,10 @@ export default { ...@@ -176,19 +176,10 @@ export default {
{ {
title: "团伙线索信息", title: "团伙线索信息",
id: 1, id: 1,
objStr: "", objStr: "xs",
index: 0, index: 0,
data: [ data: [
{ {
name: "线索编号:",
id: "xsbh",
type: "text",
prop: "checkEmpty",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "线索名称:", name: "线索名称:",
id: "xsmc", id: "xsmc",
type: "text", type: "text",
...@@ -268,28 +259,48 @@ export default { ...@@ -268,28 +259,48 @@ export default {
total: "", total: "",
tableList: [ tableList: [
{ {
label: "案件名称",
prop: "laAjmc",
width: 180,
},
{
label: "案件编号", label: "案件编号",
prop: "asjbh", prop: "asjbh",
width: 220, width: 220,
}, },
{ {
label: "案件名称",
prop: "ajmc",
width: 180,
},
{
label: "案件类别", label: "案件类别",
prop: "laAjlbdm", prop: "ajlbdmStr",
width: "230", width: "230",
}, },
{ {
label: "案发时间", label: "案发时间",
prop: "laAsjfssjAsjfsjssj", prop: "asjfssjAsjfskssj",
width: "150", width: "150",
}, },
{ {
label: "案发地", label: "案发地详址",
prop: "laAsjfsddDzmc", prop: "asjfsddXzqhdmStr",
width: 230,
},
{
label: "简要案情",
prop: "jyaq",
width: 230,
},
{
label: "立案日期",
prop: "larq",
width: 150,
},
{
label: "立案单位",
prop: "ladwGajgjgdmStr",
width: 230,
},
{
label: "xxzjbh",
prop: "xxzjbh",
}, },
], ],
shuju: [], shuju: [],
...@@ -304,28 +315,32 @@ export default { ...@@ -304,28 +315,32 @@ export default {
total: "", total: "",
tableList: [ tableList: [
{ {
label: "案件名称", label: "姓名",
prop: "laAjmc", prop: "xm",
width: 180,
}, },
{ {
label: "案件编号", label: "性别",
prop: "asjbh", prop: "xbdmStr",
width: 220,
}, },
{ {
label: "案件类别", label: "身份证号码",
prop: "laAjlbdm", prop: "gmsfzh",
width: "230",
}, },
{ {
label: "案发时间", label: "案发时间",
prop: "laAsjfssjAsjfsjssj", prop: "csrq",
width: "150", },
{
label: "民族",
prop: "mzdm",
}, },
{ {
label: "案发地", label: "户籍地",
prop: "laAsjfsddDzmc", prop: "hjdzXzqhdmStr",
},
{
label: "xxzjbh",
prop: "xxzjbh",
}, },
], ],
shuju: [], shuju: [],
...@@ -337,6 +352,7 @@ export default { ...@@ -337,6 +352,7 @@ export default {
}, },
}, },
xsbh: "", xsbh: "",
lable: "",
}; };
}, },
methods: { methods: {
...@@ -348,19 +364,62 @@ export default { ...@@ -348,19 +364,62 @@ export default {
}, },
}); });
}, },
getBh() { delect(row, type) {
let userInfo = JSON.parse(window.sessionStorage.getItem("userInfo")); debugger;
getXsbh({ if (type == "aj") {
unitcode: userInfo.unitcode, this.$confirm("此操作将永久删除该案件, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
delXsglasj({
xxzjbh: row.xxzjbh,
}).then((res) => { }).then((res) => {
if (res.code == 200) { if (res.success && res.code == 200) {
this.xsbh = res.data.xsbh; this.$message({
type: "success",
this.$set(this.formLabelAlign, "xsbh", this.xsbh); message: "删除成功",
});
this.getAjList(); this.getAjList();
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
} else {
this.$confirm("此操作将永久删除该嫌疑人, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
delXsglxyr({
xxzjbh: row.xxzjbh,
}).then((res) => {
if (res.success && res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.getXyrList(); this.getXyrList();
} }
}); });
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
}
},
getDialogSeleted(lable) {
this.lable = lable;
}, },
//关联案件信息列表 //关联案件信息列表
getAjList() { getAjList() {
...@@ -469,7 +528,7 @@ export default { ...@@ -469,7 +528,7 @@ export default {
getThxsByZjbh({ getThxsByZjbh({
xsbh: this.xsbh, xsbh: this.xsbh,
}).then((res) => { }).then((res) => {
var result = res.data.xs.xs; var result = res.data.xsxq;
self.propFormField.forEach((i, iIndex) => { self.propFormField.forEach((i, iIndex) => {
if (i.data && i.data.length > 0) { if (i.data && i.data.length > 0) {
i.data.forEach((j, jIndex) => { i.data.forEach((j, jIndex) => {
...@@ -490,8 +549,8 @@ export default { ...@@ -490,8 +549,8 @@ export default {
} else { } else {
if (j.type == "file") { if (j.type == "file") {
self.$set(self.formLabelAlign, j.id, []); self.$set(self.formLabelAlign, j.id, []);
if (res.data.xs.fjList) { if (res.data.xsxq.fjList) {
res.data.xs.fjList.forEach((fileItem, fileIndex) => { res.data.xsxq.fjList.forEach((fileItem, fileIndex) => {
const fileObj = { const fileObj = {
name: fileItem.xsfjDzwjbt, name: fileItem.xsfjDzwjbt,
url: fileItem.xsfjDzwjwz, url: fileItem.xsfjDzwjwz,
...@@ -512,7 +571,7 @@ export default { ...@@ -512,7 +571,7 @@ export default {
} }
}); });
self.$forceUpdate(); self.$forceUpdate();
self.$set(self.formLabelAlign, 'editing', true) self.$set(self.formLabelAlign, "editing", true);
setTimeout(() => { setTimeout(() => {
loading.close(); loading.close();
}, 500); }, 500);
...@@ -524,11 +583,9 @@ export default { ...@@ -524,11 +583,9 @@ export default {
this.title = "修改团伙线索"; this.title = "修改团伙线索";
this.xsbh = this.$route.query.xxzjbh; this.xsbh = this.$route.query.xxzjbh;
this.getshuju(); this.getshuju();
} else { this.getXyrList();
this.getBh(); this.getAjList();
} }
this.getXyrList()
this.getAjList()
}, },
}; };
</script> </script>
......
<template>
<div id="addAj">
<div class="headerTitle">
<img src="../../../assets/img/login/jinhui.png" alt="" /><span
>有组织犯罪线索研判</span
>
</div>
<form-compontent
:formField="propFormField"
:formLabelAligns="formLabelAlign"
@submit="submit"
:propTitle="title"
>
</form-compontent>
</div>
</template>
<script>
import formCompontent from "@c/form_compontent.vue";
import { addXsglxyr } from "@/api/yzzfzxsyp/xlglxyr.js";
export default {
name: "addAj",
components: {
formCompontent,
},
data() {
return {
title: "新增嫌疑人信息",
propFormField: [
//基本信息
{
title: "案件信息",
id: 1,
objStr: "",
index: 0,
data: [
{
name: "线索编号:",
id: "xsbh",
type: "text",
prop: "checkEmpty",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "案件编号:",
id: "asjbh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "姓名:",
id: "xm",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "性别:",
id: "xbdm",
type: "codeTree",
codeTree: "CODE_XB",
codeOptions: [],
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "身份证号码:",
id: "gmsfzh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "出生日期:",
id: "csrq",
type: "dates",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "国籍:",
id: "gjdm",
type: "codeTree",
codeTree: "CODE_GJ",
codeOptions: [],
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "民族:",
id: "mzdm",
type: "codeTree",
codeTree: "CODE_MZ",
codeOptions: [],
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "户籍地区划:",
id: "hjdzXzqhdm",
type: "codeTree",
codeTree: "CODE_XZQH",
codeOptions: [],
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "户籍地详址:",
id: "hjdzDzmc",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "现住址区划:",
id: "xzzXzqhdm",
type: "codeTree",
codeTree: "CODE_XZQH",
codeOptions: [],
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "现住址名称:",
id: "xzzDzmc",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "境外住址区划:",
id: "jwzzGjhdqdm",
type: "codeTree",
codeTree: "CODE_GJ",
codeOptions: [],
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "境外住址详址:",
id: "jwzzDzmc",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "联系电话:",
id: "lxdh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "政治面貌:",
id: "zzmmdm",
type: "codeTree",
codeTree: "CODE_ZZMM",
codeOptions: [],
value: "",
placeholder: "请输入",
col: "2",
},
],
},
],
formLabelAlign: {},
xxzjbh: "",
};
},
methods: {
submit(params) {
console.log(params);
// let loading = this.$loading({
// lock: true,
// text: "正在保存...",
// spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)",
// });
params.append("ladwGajgmc", this.lable);
if (!this.xxzjbh) {
this.addSubmit(params);
} else {
this.editSubmit(params);
}
},
addSubmit(params, loading) {
addXsglxyr(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("保存成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
this.$router.push({
path: "/queryThxs",
xxzjbh: this.$route.query.xsbh,
});
// loading.close();
},
});
} else {
// loading.close();
}
});
},
editSubmit(params, loading) {
updateXsglasj(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("修改成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
this.$router.push({
path: "/queryThxs",
xxzjbh: this.$route.query.xsbh,
});
loading.close();
},
});
} else {
loading.close();
}
});
},
getshuju() {
var self = this;
let loading = this.$loading({
lock: true,
text: "正在加载...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
getXsglasjByZjbh({
xsbh: this.xxzjbh,
}).then((res) => {
var result = res.data.xs;
self.propFormField.forEach((i, iIndex) => {
if (i.data && i.data.length > 0) {
i.data.forEach((j, jIndex) => {
if (j.childrenAsAdd) {
j.childrenAsAdd.forEach((m, mIndex) => {
self.$set(self.formLabelAlign, m.id, result[m.id] || []);
if (result[m.id].length > 0) {
//如果集合有值,则让显示
self.$set(
self.propFormField[iIndex].data[jIndex].childrenAsAdd[
mIndex
],
"flag",
true
);
}
});
} else {
self.$set(
self.formLabelAlign,
j.id,
i.objStr ? result[i.objStr][j.id] : result[j.id]
);
}
});
}
});
self.$forceUpdate();
setTimeout(() => {
loading.close();
}, 500);
});
},
},
created() {
if (this.$route.query.xxzjbh) {
this.title = "修改案件信息";
this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju();
}
this.$set(this.formLabelAlign, "xsbh", this.$route.query.xsbh);
},
};
</script>
<style scoped lang="scss">
#addAj {
.headerTitle {
height: 48px;
background: #0061f7;
font-size: 18px;
font-weight: bold;
line-height: 48px;
color: #ffffff;
padding: 0 17px;
img {
width: 36px;
margin-right: 5px;
}
}
}
</style>
\ No newline at end of file
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
<script> <script>
import rightContent from "@c/ptCxForm_components.vue"; import rightContent from "@c/ptCxForm_components.vue";
import { delThxs } from "@/api/yzzfzxsyp/thxs.js";
export default { export default {
name: "queryThxs", name: "queryThxs",
components: { components: {
...@@ -186,14 +187,14 @@ export default { ...@@ -186,14 +187,14 @@ export default {
}); });
}, },
dele(scope) { dele(scope) {
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", { this.$confirm("此操作将永久删除该线索, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
deleteZdry({ delThxs({
id: scope.row.id, xsbh: scope.row.xsbh,
}).then((res) => { }).then((res) => {
if (res.success && res.code == 200) { if (res.success && res.code == 200) {
this.$message({ this.$message({
......
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