Commit d685cf35 by liyuhang19990520

刑嫌调控

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