Commit d685cf35 by liyuhang19990520

刑嫌调控

parent 567870c0
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-09-01 10:46:56 * @Date: 2021-09-01 10:46:56
* @LastEditTime: 2021-09-22 17:15:30 * @LastEditTime: 2021-10-09 11:42:56
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\api\bkwpxx.js * @FilePath: \founder_vue\src\api\bkwpxx.js
...@@ -13,13 +13,13 @@ import base from "@/api/base"; ...@@ -13,13 +13,13 @@ import base from "@/api/base";
//关联标识号采集模块 //关联标识号采集模块
export const insertgzryGlfwbzh = params => export const insertgzryGlfwbzh = params =>
postform(`${base.alyIP}/gzrySyfwbzh/insertgzryGlfwbzh`, params); postform(`${base.alyIP}/gzryGlfwbzh/insertgzryGlfwbzh`, params);
//关联标识号修改模块 //关联标识号修改模块
export const updategzryGlfwbzh = params => export const updategzryGlfwbzh = params =>
postform(`${base.alyIP}/gzryGlfwbzh/updategzryGlfwbzh`, params); postform(`${base.alyIP}/gzryGlfwbzh/updategzryGlfwbzh`, params);
//关联标识号删除模块 //关联标识号删除模块
export const deletegzryGlfwbzhById = params => export const deletegzryGlfwbzhById = params =>
post(`${base.alyIP}/gzrySyfwbzh/deletegzryGlfwbzhById`, params); post(`${base.alyIP}/gzryGlfwbzh/deletegzryGlfwbzhById`, params);
//关联标识号详情信息 //关联标识号详情信息
export const selectGlfwbzhById = params => export const selectGlfwbzhById = params =>
post(`${base.alyIP}/gzryGlfwbzh/selectGlfwbzhById`, params); post(`${base.alyIP}/gzryGlfwbzh/selectGlfwbzhById`, params);
......
...@@ -25,10 +25,11 @@ export default { ...@@ -25,10 +25,11 @@ export default {
}, },
data() { data() {
return { return {
title: "新增关联标识号",
propFormField: [ propFormField: [
//基本信息 //基本信息
{ {
title: "新增关联标识号", title: "",
id: 1, id: 1,
objStr: "", objStr: "",
index: 0, index: 0,
...@@ -106,6 +107,12 @@ export default { ...@@ -106,6 +107,12 @@ export default {
}, },
getshuju() { getshuju() {
var self = this; var self = this;
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
selectGlfwbzhById({ selectGlfwbzhById({
xxzjbh: this.xxzjbh, xxzjbh: this.xxzjbh,
}).then((res) => { }).then((res) => {
...@@ -120,17 +127,17 @@ export default { ...@@ -120,17 +127,17 @@ export default {
}); });
self.$set(self.formLabelAlign, "editing", true); self.$set(self.formLabelAlign, "editing", true);
self.$forceUpdate(); self.$forceUpdate();
setTimeout(() => {
loading.close();
}, 500);
}); });
setTimeout(() => {
self.loading = false;
}, 1000);
}, },
}, },
created() { created() {
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.$set(this.propFormField[0], "title", "修改服务标识号"); // this.$set(this.propFormField[0], "title", "修改服务标识号");
this.propFormField[0].title = "修改服务标识号" this.title = "修改关联标识号";
this.xxzjbh = this.$route.query.xxzjbh; this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju(); this.getshuju();
} }
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-08-31 09:52:33 * @Date: 2021-08-31 09:52:33
* @LastEditTime: 2021-09-22 17:17:26 * @LastEditTime: 2021-10-09 11:40:19
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\hnksh\ceshi.vue * @FilePath: \founder_vue\src\views\hnksh\ceshi.vue
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
:pageObject="pageObject" :pageObject="pageObject"
:pageFooterProps="pageFooterProps" :pageFooterProps="pageFooterProps"
labelWidth="110px" labelWidth="110px"
title="服务标识号详情" title="关联标识号详情"
> >
</right-content> </right-content>
</div> </div>
...@@ -32,136 +32,130 @@ export default { ...@@ -32,136 +32,130 @@ export default {
return { return {
cxQueryField: [ cxQueryField: [
{ {
label: "信息编号:", title: "", //如果不分小模块就删除title
prop: "xxzjbh", id: 1,
col: "3", objStr: "",
}, data: [
{ {
label: "服务标识号_信息主键编号:", label: "信息编号:",
prop: "fwbzhXxzjbh", prop: "xxzjbh",
col: "3", col: "3",
}, },
{ {
label: "关联信息编号:", label: "服务标识号:",
prop: "glxxXxzjbh", prop: "fwbzhXxzjbh",
col: "3", col: "3",
}, },
{ {
label: "常用证件:", label: "关联信息编号:",
prop: "cyzjCyzjdm", prop: "glxxXxzjbh",
type: "codeTree", col: "3",
codeTree: "CODE_ZJ", },
col: "3", {
}, label: "常用证件:",
{ prop: "cyzjCyzjdmStr",
label: "常用证件补充描述:", col: "3",
prop: "cyzjDmbcms", },
col: "6", {
}, label: "常用证件补充描述:",
{ prop: "cyzjDmbcms",
label: "证件号码:", col: "10",
prop: "zjhm", },
col: "3", {
}, label: "证件号码:",
{ prop: "zjhm",
label: "人员使用服务标识号:", col: "3",
prop: "rysyfwbzhFwbzhFwbzhlbdm", },
type: "codeTree", {
codeTree: "CODE_FWBSH", label: "服务标识号类别:",
col: "3", prop: "rysyfwbzhFwbzhFwbzhlbdmStr",
}, col: "3",
{ },
label: "人员使用服务标识号类别:", {
prop: "rysyfwbzhFwbzhFwbzhlbdmStr", label: "服务标识号描述:",
col: "3", prop: "rysyfwbzhFwbzhDmbcms",
}, col: "3",
{ },
label: "人员使用服务标识号补充描述:", {
prop: "rysyfwbzhFwbzhDmbcms", label: "人员使用标识号:",
col: "3", prop: "rysyfwbzhFwbzhFwbzh",
}, col: "3",
{ },
label: "人员使用服务标识号:", {
prop: "rysyfwbzhFwbzhFwbzh", label: "关联标识号名称:",
col: "3", prop: "glfwbzhMc",
}, col: "3",
{ },
label: "关联服务标识号名称:", {
prop: "glfwbzhMc", label: "关联标识号类别:",
col: "3", prop: "glfwbzhFwbzhFwbzhlbdmStr",
}, col: "3",
{ },
label: "关联服务标识号类别:", {
prop: "glfwbzhFwbzhFwbzhlbdm", label: "关联标识号描述:",
type: "codeTree", prop: "glfwbzhFwbzhDmbcms",
codeTree: "CODE_FWBSHLB", col: "10",
col: "3", },
}, {
{ label: "关联标识号:",
label: "关联服务标识号补充描述:", prop: "glfwbzhFwbzhFwbzh",
prop: "glfwbzhFwbzhDmbcms", col: "3",
col: "6", },
}, {
{ label: "关联标识号登记时间:",
label: "关联服务标识号:", prop: "glfwbzhFwbzhDjsj",
prop: "glfwbzhFwbzhFwbzh", col: "3",
type: "codeTree", },
codeTree: "CODE_FWBSH", {
col: "3", label: "关联标识号注册国:",
}, prop: "glfwbzhFwzcdGjhdqdmStr",
{ type: "codeTree",
label: "关联服务标识号_登记时间:", codeTree: "CODE_GJ",
prop: "glfwbzhFwbzhDjsj", col: "3",
col: "3", },
}, {
{ label: "关联标识号注册地:",
label: "关联服务标识号_服务注册地_国家和地区:", prop: "glfwbzhFwzcdXzqhdmStr",
prop: "glfwbzhFwzcdGjhdqdm", type: "codeTree",
type: "codeTree", codeTree: "CODE_XZQH",
codeTree: "CODE_GJ", col: "3",
col: "3", },
}, {
{ label: "关联标识号注册地名:",
label: "关联服务标识号_服务注册地_行政区划:", prop: "glfwbzhFwzcdDzmc",
prop: "glfwbzhFwzcdXzqhdm", col: "3",
type: "codeTree", },
codeTree: "CODE_XZQH", {
col: "3", label: "关联标识号单位:",
}, prop: "glfwbzhFwdwDwmc",
{ col: "3",
label: "关联服务标识号_服务注册地_地址名称:", },
prop: "glfwbzhFwzcdDzmc", {
col: "3", label: "关联标识号有效期开始日期:",
}, prop: "glfwbzhYxqksrq",
{ col: "3",
label: "关联服务标识号_服务单位_单位名称:", },
prop: "glfwbzhFwdwDwmc", {
col: "3", label: "关联标识号有效期截止日期:",
}, prop: "glfwbzhYxqjzrq",
{ col: "3",
label: "关联服务标识号_有效期开始日期:", },
prop: "glfwbzhYxqksrq", {
col: "3", label: "关联标识号简要情况:",
}, prop: "glfwbzhJyqk",
{ col: "10",
label: "关联服务标识号_有效期截止日期:", },
prop: "glfwbzhYxqjzrq", {
col: "3", label: "关联标识号建立时间:",
}, prop: "glfwbzhGlJlsj",
{ col: "3",
label: "关联服务标识号_简要情况:", },
prop: "glfwbzhJyqk", {
col: "6", label: "关联标识号关联情况:",
}, prop: "glfwbzhGlJyqk",
{ col: "10",
label: "关联服务标识号_关联_建立时间:", },
prop: "glfwbzhGlJlsj", ],
col: "3",
},
{
label: "关联服务标识号_关联_简要情况:",
prop: "glfwbzhGlJyqk",
col: "6",
}, },
], ],
pageFooterProps: [ pageFooterProps: [
...@@ -211,48 +205,21 @@ export default { ...@@ -211,48 +205,21 @@ export default {
mounted() {}, mounted() {},
methods: { methods: {
getInfor() { getInfor() {
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
let _this = this; let _this = this;
selectGlfwbzhById({ selectGlfwbzhById({
xxzjbh: _this.xxzjbh, xxzjbh: _this.xxzjbh,
}).then((res) => { }).then((res) => {
var result = res.data.rows; var result = res.data.rows;
_this.filterTreeCode(result); this.pageObject = result;
loading.close();
}); });
}, },
filterTreeCode(obj) {
let _this = this;
let arr = [..._this.cxQueryField, ..._this.pageFooterProps];
arr.forEach((i) => {
if (i.type && i.type == "codeTree") {
axios
.get(`JsonData/${i.codeTree}.json`)
.then((codRes) => {
let value = _this.queryTree(codRes.data.rows, obj[i.prop]);
_this.$set(_this.pageObject, i.prop, value);
})
.catch((err) => {
console.log(err);
});
} else {
_this.$set(_this.pageObject, i.prop, obj[i.prop]);
}
});
console.log(_this.pageObject);
},
queryTree(tree, id) {
let stark = [];
stark = stark.concat(tree);
while (stark.length) {
const temp = stark.shift();
if (temp[this.defaultProps.children]) {
stark = stark.concat(temp[this.defaultProps.children]);
}
if (temp[this.defaultProps.value] === id) {
return temp[this.defaultProps.label];
}
}
return "";
},
}, },
created() { created() {
this.$store.commit("user/SET_Breadcrumb", this.breadcrumbList); this.$store.commit("user/SET_Breadcrumb", this.breadcrumbList);
......
...@@ -41,39 +41,13 @@ export default { ...@@ -41,39 +41,13 @@ export default {
}, },
cxQueryField: [ cxQueryField: [
{ {
name: "证件号码", name: "信息关联主键",
id: "zjhm", id: "glxxXxzjbh",
type: "text", type: "text",
value: "", value: "",
placeholder: "", placeholder: "",
col: "3", col: "3",
}, },
{
name: "联系电话",
id: "rysyfwbzhDhhmFwbzh",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "登记单位",
id: "xxdjdwGajgjgdm",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_XB",
},
{
name: "登记时间",
id: "djkssj",
id2: "djjssj",
type: "zdyDate",
value: "",
col: "3",
},
], ],
cxDefaultFormThead: [ cxDefaultFormThead: [
{ {
...@@ -81,6 +55,10 @@ export default { ...@@ -81,6 +55,10 @@ export default {
prop: "xxzjbh", prop: "xxzjbh",
}, },
{ {
label: "信息关联主键",
prop: "glxxXxzjbh",
},
{
label: "常用证件", label: "常用证件",
prop: "cyzjCyzjdmStr", prop: "cyzjCyzjdmStr",
}, },
...@@ -90,8 +68,8 @@ export default { ...@@ -90,8 +68,8 @@ export default {
width: "200", width: "200",
}, },
{ {
label: "联系电话", label: "服务标识号类别",
prop: "lxdh", prop: "rysyfwbzhFwbzhFwbzhlbdmStr",
}, },
{ {
label: "登记时间", label: "登记时间",
......
...@@ -12,7 +12,11 @@ ...@@ -12,7 +12,11 @@
<script> <script>
import formCompontent from "@c/form.vue"; import formCompontent from "@c/form.vue";
import { insertgzryGzzfxxs, updategzryGzzfxxs, selectGzzfxxsById } from "@/api/xxtk/gzzkyxs.js"; import {
insertgzryGzzfxxs,
updategzryGzzfxxs,
selectGzzfxxsById,
} from "@/api/xxtk/gzzkyxs.js";
import { gzzkyxs } from "@/utils/params.js"; import { gzzkyxs } from "@/utils/params.js";
export default { export default {
name: "addGzzkyxs", name: "addGzzkyxs",
...@@ -21,10 +25,11 @@ export default { ...@@ -21,10 +25,11 @@ export default {
}, },
data() { data() {
return { return {
title: "新增工作中可疑线索",
propFormField: [ propFormField: [
//基本信息 //基本信息
{ {
title: "新增工作中可疑线索", title: "",
id: 1, id: 1,
objStr: "", objStr: "",
index: 0, index: 0,
...@@ -44,7 +49,9 @@ export default { ...@@ -44,7 +49,9 @@ export default {
isActive: false, isActive: false,
}, },
{ {
name: this.$route.query.xxzjbh ? "修改工作中可疑线索" : "新增工作中可疑线索", name: this.$route.query.xxzjbh
? "修改工作中可疑线索"
: "新增工作中可疑线索",
to: "/addGzzkyxs", to: "/addGzzkyxs",
isActive: true, isActive: true,
}, },
...@@ -73,7 +80,7 @@ export default { ...@@ -73,7 +80,7 @@ export default {
type: "success", type: "success",
callback: () => { callback: () => {
loading.close(); loading.close();
this.$router.push("queryRyhd"); this.$router.push("queryGzzkyxs");
}, },
}); });
} else { } else {
...@@ -91,7 +98,7 @@ export default { ...@@ -91,7 +98,7 @@ export default {
type: "success", type: "success",
callback: () => { callback: () => {
loading.close(); loading.close();
this.$router.push("queryRyhd"); this.$router.push("queryGzzkyxs");
}, },
}); });
} else { } else {
...@@ -102,6 +109,12 @@ export default { ...@@ -102,6 +109,12 @@ export default {
}, },
getshuju() { getshuju() {
var self = this; var self = this;
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
selectGzzfxxsById({ selectGzzfxxsById({
xxzjbh: this.xxzjbh, xxzjbh: this.xxzjbh,
}).then((res) => { }).then((res) => {
...@@ -116,17 +129,16 @@ export default { ...@@ -116,17 +129,16 @@ export default {
}); });
self.$set(self.formLabelAlign, "editing", true); self.$set(self.formLabelAlign, "editing", true);
self.$forceUpdate(); self.$forceUpdate();
setTimeout(() => {
loading.close();
}, 500);
}); });
setTimeout(() => {
self.loading = false;
}, 1000);
}, },
}, },
created() { created() {
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.$set(this.propFormField[0], "title", "修改工作中可疑线索"); this.title = "修改工作中可疑线索";
this.propFormField[0].title = "修改工作中可疑线索"
this.xxzjbh = this.$route.query.xxzjbh; this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju(); this.getshuju();
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
:cxQueryField="cxQueryField" :cxQueryField="cxQueryField"
:pageObject="pageObject" :pageObject="pageObject"
:pageFooterProps="pageFooterProps" :pageFooterProps="pageFooterProps"
labelWidth="110px" labelWidth="140px"
title="工作中可疑线索详情" title="工作中可疑线索详情"
> >
</right-content> </right-content>
...@@ -24,36 +24,43 @@ export default { ...@@ -24,36 +24,43 @@ export default {
return { return {
cxQueryField: [ cxQueryField: [
{ {
label: "信息编号:", title: "", //如果不分小模块就删除title
prop: "xxzjbh", id: 1,
col: "3", objStr: "",
}, data: [
{ {
label: "关联信息编号:", label: "信息编号:",
prop: "glxxXxzjbh", prop: "xxzjbh",
col: "3", col: "3",
}, },
{ {
label: "案事件编号:", label: "信息关联主键:",
prop: "asjbh", prop: "glxxXxzjbh",
col: "3", col: "3",
}, },
{ {
label: "工作中可疑线索标识号类型:", label: "案事件编号:",
prop: "gzzkyxsbshdm", prop: "asjbh",
type: "codeTree", col: "3",
codeTree: "CODE_DXZP_FWBSHS", },
col: "3", {
}, label: "可疑线索标识号类型:",
{ prop: "gzzkyxsbshdm",
label: "工作中可疑线索标识号:", type: "codeTree",
prop: "gzzkyxsbsh", codeTree: "CODE_DXZP_FWBSHS",
col: "3", col: "3",
}, },
{ {
label: "可疑依据:", label: "可疑线索标识号:",
prop: "kyyj", prop: "gzzkyxsbsh",
col: "3", col: "3",
},
{
label: "可疑依据:",
prop: "kyyj",
col: "3",
},
],
}, },
], ],
pageFooterProps: [ pageFooterProps: [
...@@ -104,48 +111,20 @@ export default { ...@@ -104,48 +111,20 @@ export default {
methods: { methods: {
getInfor() { getInfor() {
let _this = this; let _this = this;
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
selectGzzfxxsById({ selectGzzfxxsById({
xxzjbh: _this.xxzjbh, xxzjbh: _this.xxzjbh,
}).then((res) => { }).then((res) => {
var result = res.data.rows; var result = res.data.rows;
_this.filterTreeCode(result); this.pageObject = result;
loading.close();
}); });
}, },
filterTreeCode(obj) {
let _this = this;
let arr = [..._this.cxQueryField, ..._this.pageFooterProps];
console.log(arr);
arr.forEach((i) => {
if (i.type && i.type == "codeTree") {
axios
.get(`JsonData/${i.codeTree}.json`)
.then((codRes) => {
let value = _this.queryTree(codRes.data.rows, obj[i.prop]);
_this.$set(_this.pageObject, i.prop, value);
})
.catch((err) => {
console.log(err);
});
} else {
_this.$set(_this.pageObject, i.prop, obj[i.prop]);
}
});
console.log(_this.pageObject);
},
queryTree(tree, id) {
let stark = [];
stark = stark.concat(tree);
while (stark.length) {
const temp = stark.shift();
if (temp[this.defaultProps.children]) {
stark = stark.concat(temp[this.defaultProps.children]);
}
if (temp[this.defaultProps.value] === id) {
return temp[this.defaultProps.label];
}
}
return "";
},
}, },
created() { created() {
this.$store.commit("user/SET_Breadcrumb", this.breadcrumbList); this.$store.commit("user/SET_Breadcrumb", this.breadcrumbList);
......
...@@ -42,7 +42,6 @@ export default { ...@@ -42,7 +42,6 @@ export default {
placeholder: "", placeholder: "",
col: "3", col: "3",
}, },
], ],
cxDefaultFormThead: [ cxDefaultFormThead: [
{ {
...@@ -50,26 +49,38 @@ export default { ...@@ -50,26 +49,38 @@ export default {
prop: "xxzjbh", prop: "xxzjbh",
}, },
{ {
label: "关联信息_信息主键编号", label: "信息关联主键",
prop: "glxxXxzjbh", prop: "glxxXxzjbh",
}, },
// {
// label: "案事件编号",
// prop: "asjbh",
// width: "200",
// },
{ {
label: "案事件编号", label: "可疑线索标识号类型",
prop: "asjbh",
width: "200",
},
{
label: "工作中可疑线索标识号类型",
prop: "gzzkyxsbshdm", prop: "gzzkyxsbshdm",
}, },
{ {
label: "工作中可疑线索标识号", label: "可疑线索标识号",
prop: "gzzkyxsbsh", prop: "gzzkyxsbsh",
}, },
{ {
label: "可疑依据", label: "可疑依据",
prop: "kyyj", prop: "kyyj",
}, },
{
label: "填表单位",
prop: "xxdjdwGajgmc",
},
{
label: "填表人",
prop: "xxdjryXm",
},
{
label: "填表时间",
prop: "djsj",
},
], ],
cxUrl: "/gzryGzzfxxs/selectgzryGzzfxxs", cxUrl: "/gzryGzzfxxs/selectgzryGzzfxxs",
}; };
......
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
prop: "scryXm", prop: "scryXm",
}, },
{ {
label: "收藏人员身份号码", label: "收藏人员身份",
prop: "scryGmsfhm", prop: "scryGmsfhm",
}, },
], ],
......
...@@ -25,10 +25,11 @@ export default { ...@@ -25,10 +25,11 @@ export default {
}, },
data() { data() {
return { return {
title: "新增人员研判信息",
propFormField: [ propFormField: [
//基本信息 //基本信息
{ {
title: "新增人员研判信息", title: "",
id: 1, id: 1,
objStr: "", objStr: "",
index: 0, index: 0,
...@@ -108,6 +109,12 @@ export default { ...@@ -108,6 +109,12 @@ export default {
}, },
getshuju() { getshuju() {
var self = this; var self = this;
let loading = this.$loading({
lock: true,
text: "正在加载...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
selectRgypById({ selectRgypById({
xxzjbh: this.xxzjbh, xxzjbh: this.xxzjbh,
}).then((res) => { }).then((res) => {
...@@ -122,17 +129,17 @@ export default { ...@@ -122,17 +129,17 @@ export default {
}); });
self.$set(self.formLabelAlign, "editing", true); self.$set(self.formLabelAlign, "editing", true);
self.$forceUpdate(); self.$forceUpdate();
setTimeout(() => {
loading.close();
}, 500);
}); });
setTimeout(() => {
self.loading = false;
}, 1000);
}, },
}, },
created() { created() {
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.$set(this.propFormField[0], "title", "修改人员研判信息"); // this.$set(this.propFormField[0], "title", "修改人员研判信息");
this.propFormField[0].title = "修改人员研判信息"; this.title = "修改人员研判信息";
this.xxzjbh = this.$route.query.xxzjbh; this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju(); this.getshuju();
} }
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-08-31 09:52:33 * @Date: 2021-08-31 09:52:33
* @LastEditTime: 2021-09-22 15:48:56 * @LastEditTime: 2021-10-09 11:05:29
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\hnksh\ceshi.vue * @FilePath: \founder_vue\src\views\hnksh\ceshi.vue
...@@ -32,48 +32,53 @@ export default { ...@@ -32,48 +32,53 @@ export default {
return { return {
cxQueryField: [ cxQueryField: [
{ {
label: "信息编号:", title: "", //如果不分小模块就删除title
prop: "xxzjbh", id: 1,
col: "3", objStr: "",
}, data: [
{ {
label: "关联信息_信息主键编号:", label: "信息主键编号:",
prop: "glxxXxzjbh", prop: "xxzjbh",
col: "3", col: "3",
}, },
{ {
label: "常用证件_常用证件:", label: "信息关联主键:",
prop: "cyzjCyzjdm", prop: "glxxXxzjbh",
col: "3", col: "3",
type: "codeTree", },
codeTree: "CODE_ZJ", {
}, label: "常用证件:",
{ prop: "cyzjCyzjdmStr",
label: "常用证件_补充描述:", col: "3",
prop: "cyzjDmbcms", },
col: "6", {
}, label: "常用证件描述:",
{ prop: "cyzjDmbcms",
label: "证件号码:", col: "10",
prop: "zjhm", },
col: "3", {
}, label: "证件号码:",
{ prop: "zjhm",
label: "人工研判意见_简要情况:", col: "3",
prop: "ygypyjJyqk", },
col: "6", {
}, label: "人工研判意见:",
{ prop: "ygypyjJyqk",
label: "建议撤销_判断标识:", col: "10",
prop: "jycxPdbz", },
type: "codeTree", {
codeTree: "CODE_IF", label: "是否建议撤销:",
col: "3", prop: "jycxPdbz",
}, type: "codeTree",
{ codeTree: "CODE_IF",
label: "建议撤销_简要情况:", col: "3",
prop: "jycxJyqk", },
col: "6", {
label: "建议撤销简要:",
prop: "jycxJyqk",
col: "10",
},
],
}, },
], ],
pageFooterProps: [ pageFooterProps: [
...@@ -124,11 +129,18 @@ export default { ...@@ -124,11 +129,18 @@ export default {
methods: { methods: {
getInfor() { getInfor() {
let _this = this; let _this = this;
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
selectRgypById({ selectRgypById({
xxzjbh: _this.xxzjbh, xxzjbh: _this.xxzjbh,
}).then((res) => { }).then((res) => {
var result = res.data.rows; var result = res.data.rows;
_this.filterTreeCode(result); this.pageObject = result;
loading.close();
}); });
}, },
filterTreeCode(obj) { filterTreeCode(obj) {
......
...@@ -49,6 +49,10 @@ export default { ...@@ -49,6 +49,10 @@ export default {
prop: "xxzjbh", prop: "xxzjbh",
}, },
{ {
label: "信息关联主键",
prop: "glxxXxzjbh",
},
{
label: "常用证件", label: "常用证件",
prop: "cyzjCyzjdmStr", prop: "cyzjCyzjdmStr",
}, },
...@@ -58,7 +62,7 @@ export default { ...@@ -58,7 +62,7 @@ export default {
width: "200", width: "200",
}, },
{ {
label: "建议撤销_判断标识", label: "是否建议撤销",
prop: "jycxPdbz", prop: "jycxPdbz",
}, },
{ {
......
...@@ -25,10 +25,11 @@ export default { ...@@ -25,10 +25,11 @@ export default {
}, },
data() { data() {
return { return {
title: "新增通话记录信息",
propFormField: [ propFormField: [
//基本信息 //基本信息
{ {
title: "新增通话记录信息", title: "",
id: 1, id: 1,
objStr: "", objStr: "",
index: 0, index: 0,
...@@ -108,6 +109,12 @@ export default { ...@@ -108,6 +109,12 @@ export default {
}, },
getshuju() { getshuju() {
var self = this; var self = this;
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
selectThjlById({ selectThjlById({
xxzjbh: this.xxzjbh, xxzjbh: this.xxzjbh,
}).then((res) => { }).then((res) => {
...@@ -122,17 +129,17 @@ export default { ...@@ -122,17 +129,17 @@ export default {
}); });
self.$set(self.formLabelAlign, "editing", true); self.$set(self.formLabelAlign, "editing", true);
self.$forceUpdate(); self.$forceUpdate();
setTimeout(() => {
loading.close();
}, 500);
}); });
setTimeout(() => {
self.loading = false;
}, 1000);
}, },
}, },
created() { created() {
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.$set(this.propFormField[0], "title", "修改通话记录信息"); // this.$set(this.propFormField[0], "title", "修改通话记录信息");
this.propFormField[0].title = "修改通话记录信息" this.title = "修改通话记录信息";
this.xxzjbh = this.$route.query.xxzjbh; this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju(); this.getshuju();
} }
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-08-31 09:52:33 * @Date: 2021-08-31 09:52:33
* @LastEditTime: 2021-09-22 15:55:58 * @LastEditTime: 2021-10-09 11:23:11
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\hnksh\ceshi.vue * @FilePath: \founder_vue\src\views\hnksh\ceshi.vue
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
:pageObject="pageObject" :pageObject="pageObject"
:pageFooterProps="pageFooterProps" :pageFooterProps="pageFooterProps"
labelWidth="110px" labelWidth="110px"
title="人员话单信息详情" title="通话记录信息详情"
> >
</right-content> </right-content>
</div> </div>
...@@ -32,68 +32,74 @@ export default { ...@@ -32,68 +32,74 @@ export default {
return { return {
cxQueryField: [ cxQueryField: [
{ {
label: "信息编号:", title: "", //如果不分小模块就删除title
prop: "xxzjbh", id: 1,
col: "3", objStr: "",
}, data: [
{ {
label: "关联信息_信息主键编号:", label: "信息编号:",
prop: "glxxXxzjbh", prop: "xxzjbh",
col: "3", col: "3",
}, },
{ {
label: "常用证件_常用证件:", label: "信息关联主键:",
prop: "cyzjCyzjdm", prop: "glxxXxzjbh",
col: "3", col: "3",
type: "codeTree", },
codeTree: "CODE_ZJ", {
}, label: "常用证件:",
{ prop: "cyzjCyzjdmStr",
label: "常用证件_补充描述:", col: "3",
prop: "cyzjDmbcms", type: "codeTree",
col: "6", codeTree: "CODE_ZJ",
}, },
{ {
label: "证件号码:", label: "常用证件描述:",
prop: "zjhm", prop: "cyzjDmbcms",
col: "3", col: "10",
}, },
{ {
label: "移动通讯设备_信息主键编号:", label: "证件号码:",
prop: "ydtxsbXxzjbh", prop: "zjhm",
col: "3", col: "3",
}, },
{ {
label: "联系电话:", label: "通讯设备编号:",
prop: "lxdh", prop: "ydtxsbXxzjbh",
col: "3", col: "3",
}, },
{ {
label: "服务请求发起方_判断标识:", label: "联系电话:",
prop: "fwqqfqfPdbz", prop: "lxdh",
type: "codeTree", col: "3",
codeTree: "CODE_IF", },
col: "3", {
}, label: "是否是发起方:",
{ prop: "fwqqfqfPdbz",
label: "通话对象_联系电话:", col: "3",
prop: "thdxLxdh", codeTree: "CODE_IF",
col: "3", },
}, {
{ label: "通话对象电话:",
label: "通话_开始时间:", prop: "thdxLxdh",
prop: "thKssj", col: "3",
col: "3", },
}, {
{ label: "通话开始时间:",
label: "通话_结束时间:", prop: "thKssj",
prop: "thJssj", col: "3",
col: "3", },
}, {
{ label: "通话结束时间:",
label: "通话_通话时长:", prop: "thJssj",
prop: "thThsc", col: "3",
col: "3", },
{
label: "通话时长:",
prop: "thThsc",
col: "3",
},
],
}, },
], ],
pageFooterProps: [ pageFooterProps: [
...@@ -144,47 +150,20 @@ export default { ...@@ -144,47 +150,20 @@ export default {
methods: { methods: {
getInfor() { getInfor() {
let _this = this; let _this = this;
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
selectThjlById({ selectThjlById({
xxzjbh: _this.xxzjbh, xxzjbh: _this.xxzjbh,
}).then((res) => { }).then((res) => {
var result = res.data.rows; var result = res.data.rows;
_this.filterTreeCode(result); this.pageObject = result;
loading.close();
}); });
}, },
filterTreeCode(obj) {
let _this = this;
let arr = [..._this.cxQueryField, ..._this.pageFooterProps];
arr.forEach((i) => {
if (i.type && i.type == "codeTree") {
axios
.get(`JsonData/${i.codeTree}.json`)
.then((codRes) => {
let value = _this.queryTree(codRes.data.rows, obj[i.prop]);
_this.$set(_this.pageObject, i.prop, value);
})
.catch((err) => {
console.log(err);
});
} else {
_this.$set(_this.pageObject, i.prop, obj[i.prop]);
}
});
console.log(_this.pageObject);
},
queryTree(tree, id) {
let stark = [];
stark = stark.concat(tree);
while (stark.length) {
const temp = stark.shift();
if (temp[this.defaultProps.children]) {
stark = stark.concat(temp[this.defaultProps.children]);
}
if (temp[this.defaultProps.value] === id) {
return temp[this.defaultProps.label];
}
}
return "";
},
}, },
created() { created() {
this.$store.commit("user/SET_Breadcrumb", this.breadcrumbList); this.$store.commit("user/SET_Breadcrumb", this.breadcrumbList);
......
...@@ -49,6 +49,10 @@ export default { ...@@ -49,6 +49,10 @@ export default {
prop: "xxzjbh", prop: "xxzjbh",
}, },
{ {
label: "信息关联主键",
prop: "glxxXxzjbh",
},
{
label: "常用证件", label: "常用证件",
prop: "cyzjCyzjdmStr", prop: "cyzjCyzjdmStr",
}, },
...@@ -62,11 +66,11 @@ export default { ...@@ -62,11 +66,11 @@ export default {
prop: "lxdh", prop: "lxdh",
}, },
{ {
label: "服务请求发起方", label: "是否是发起方",
prop: "fwqqfqfPdbz", prop: "fwqqfqfPdbz",
}, },
{ {
label: "通话对象联系电话", label: "通话对象电话",
prop: "thdxLxdh", prop: "thdxLxdh",
}, },
], ],
......
...@@ -15,7 +15,7 @@ import formCompontent from "@c/form.vue"; ...@@ -15,7 +15,7 @@ import formCompontent from "@c/form.vue";
import { import {
insertgzrySjtxl, insertgzrySjtxl,
updategzrySjtxl, updategzrySjtxl,
selectSjtxlById selectSjtxlById,
} from "@/api/xxtk/txl.js"; } from "@/api/xxtk/txl.js";
import { rytxl } from "@/utils/params.js"; import { rytxl } from "@/utils/params.js";
export default { export default {
...@@ -25,10 +25,11 @@ export default { ...@@ -25,10 +25,11 @@ export default {
}, },
data() { data() {
return { return {
title: "新增通讯录信息",
propFormField: [ propFormField: [
//基本信息 //基本信息
{ {
title: "新增通讯录信息", title: "",
id: 1, id: 1,
objStr: "", objStr: "",
index: 0, index: 0,
...@@ -106,6 +107,12 @@ export default { ...@@ -106,6 +107,12 @@ export default {
}, },
getshuju() { getshuju() {
var self = this; var self = this;
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
selectSjtxlById({ selectSjtxlById({
xxzjbh: this.xxzjbh, xxzjbh: this.xxzjbh,
}).then((res) => { }).then((res) => {
...@@ -120,17 +127,16 @@ export default { ...@@ -120,17 +127,16 @@ export default {
}); });
self.$set(self.formLabelAlign, "editing", true); self.$set(self.formLabelAlign, "editing", true);
self.$forceUpdate(); self.$forceUpdate();
setTimeout(() => {
loading.close();
}, 500);
}); });
setTimeout(() => {
self.loading = false;
}, 1000);
}, },
}, },
created() { created() {
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.$set(this.propFormField[0], "title", "修改通讯录信息"); this.title = "修改通讯录信息";
this.propFormField[0].title = "修改通讯录信息"
this.xxzjbh = this.$route.query.xxzjbh; this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju(); this.getshuju();
} }
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-08-31 09:52:33 * @Date: 2021-08-31 09:52:33
* @LastEditTime: 2021-09-22 17:34:14 * @LastEditTime: 2021-10-11 09:45:47
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\hnksh\ceshi.vue * @FilePath: \founder_vue\src\views\hnksh\ceshi.vue
...@@ -32,53 +32,60 @@ export default { ...@@ -32,53 +32,60 @@ export default {
return { return {
cxQueryField: [ cxQueryField: [
{ {
label: "信息编号:", title: "", //如果不分小模块就删除title
prop: "xxzjbh", id: 1,
col: "3", objStr: "",
}, data: [
{ {
label: "关联信息_信息主键编号:", label: "信息主键编号:",
prop: "glxxXxzjbh", prop: "xxzjbh",
col: "3", col: "3",
}, },
{ {
label: "常用证件_常用证件:", label: "信息关联主键:",
prop: "cyzjCyzjdm", prop: "glxxXxzjbh",
col: "3", col: "3",
type: "codeTree", },
codeTree: "CODE_ZJ", {
}, label: "常用证件:",
{ prop: "cyzjCyzjdmStr",
label: "常用证件_补充描述:", col: "3",
prop: "cyzjDmbcms", type: "codeTree",
col: "6", codeTree: "CODE_ZJ",
}, },
{ {
label: "证件号码:", label: "常用证件描述:",
prop: "zjhm", prop: "cyzjDmbcms",
col: "3", col: "6",
}, },
{ {
label: "联系电话:", label: "证件号码:",
prop: "lxdh", prop: "zjhm",
col: "3", col: "3",
}, },
{ {
label: "联系人_人名称类别:", label: "联系电话:",
prop: "lxrRmclbdm", prop: "lxdh",
type: "codeTree", col: "3",
codeTree: "CODE_RMCLB", },
col: "3", {
}, label: "联系人名称类别:",
{ prop: "lxrRmclbdmStr",
label: "联系人_人名称:", type: "codeTree",
prop: "lxrRmc", codeTree: "CODE_RMCLB",
col: "3", col: "3",
}, },
{ {
label: "联系人_联系电话:", label: "联系人名称:",
prop: "lxrLxdh", prop: "lxrRmc",
col: "3", col: "3",
},
{
label: "联系人电话:",
prop: "lxrLxdh",
col: "3",
},
],
}, },
], ],
pageFooterProps: [ pageFooterProps: [
...@@ -129,47 +136,20 @@ export default { ...@@ -129,47 +136,20 @@ export default {
methods: { methods: {
getInfor() { getInfor() {
let _this = this; let _this = this;
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
selectSjtxlById({ selectSjtxlById({
xxzjbh: _this.xxzjbh, xxzjbh: _this.xxzjbh,
}).then((res) => { }).then((res) => {
var result = res.data.rows; var result = res.data.rows;
_this.filterTreeCode(result); this.pageObject = result;
loading.close();
}); });
}, },
filterTreeCode(obj) {
let _this = this;
let arr = [..._this.cxQueryField, ..._this.pageFooterProps];
arr.forEach((i) => {
if (i.type && i.type == "codeTree") {
axios
.get(`JsonData/${i.codeTree}.json`)
.then((codRes) => {
let value = _this.queryTree(codRes.data.rows, obj[i.prop]);
_this.$set(_this.pageObject, i.prop, value);
})
.catch((err) => {
console.log(err);
});
} else {
_this.$set(_this.pageObject, i.prop, obj[i.prop]);
}
});
console.log(_this.pageObject);
},
queryTree(tree, id) {
let stark = [];
stark = stark.concat(tree);
while (stark.length) {
const temp = stark.shift();
if (temp[this.defaultProps.children]) {
stark = stark.concat(temp[this.defaultProps.children]);
}
if (temp[this.defaultProps.value] === id) {
return temp[this.defaultProps.label];
}
}
return "";
},
}, },
created() { created() {
this.$store.commit("user/SET_Breadcrumb", this.breadcrumbList); this.$store.commit("user/SET_Breadcrumb", this.breadcrumbList);
......
...@@ -47,7 +47,6 @@ export default { ...@@ -47,7 +47,6 @@ export default {
placeholder: "", placeholder: "",
col: "3", col: "3",
}, },
], ],
cxDefaultFormThead: [ cxDefaultFormThead: [
{ {
...@@ -55,8 +54,12 @@ export default { ...@@ -55,8 +54,12 @@ export default {
prop: "xxzjbh", prop: "xxzjbh",
}, },
{ {
label: "信息关联主键",
prop: "glxxXxzjbh",
},
{
label: "常用证件", label: "常用证件",
prop: "cyzjCyzjdm", prop: "cyzjCyzjdmStr",
}, },
{ {
label: "证件号码", label: "证件号码",
...@@ -64,20 +67,20 @@ export default { ...@@ -64,20 +67,20 @@ export default {
width: "200", width: "200",
}, },
{ {
label: "移动电话", label: "联系电话",
prop: "yddh", prop: "lxdh",
}, },
{ {
label: "IMSI_服务标识号", label: "联系人名称类别",
prop: "imsiFwbzh", prop: "lxrRmclbdmStr",
}, },
{ {
label: "ICCID_物品标识号", label: "联系人名称",
prop: "iccidWpbzh", prop: "lxrRmc",
}, },
{ {
label: "IMEI_物品标识号", label: "联系人电话",
prop: "imeiWpbzh", prop: "lxrLxdh",
}, },
], ],
cxUrl: "/gzrySjtxl/selectgzrySjtxl", cxUrl: "/gzrySjtxl/selectgzrySjtxl",
......
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