Commit 367e9105 by liupeng

修改了多生物特征

parent d3aee087
import { get, post, postform } from "@/utils/http.js";
import base from "@/api/base";
//DNA信息保存
export const insertDna = params =>
postform(`${base.alyIP}/ythcjDna/insertDna`, params);
//DNA信息修改
export const updateDna = params =>
postform(`${base.alyIP}/ythcjDna/updateDna`, params);
//DNA信息删除
export const deleteDnaById = params =>
post(`${base.alyIP}/ythcjDna/deleteDnaById`, params);
// /ythcjDna/selectDnaList
\ No newline at end of file
import { get, post, postform } from "@/utils/http.js";
import base from "@/api/base";
//虹膜信息修改/保存
export const updateHm = params =>
postform(`${base.alyIP}/ythcjHm/updateHm`, params);
//虹膜信息删除
export const deleteHmById = params =>
post(`${base.alyIP}/ythcjHm/deleteHmById`, params);
// /ythcjHm/selectHmzpList
\ No newline at end of file
import { get, post, postform } from "@/utils/http.js";
import base from "@/api/base";
//人像信息修改/保存
export const updateRyzp = params =>
postform(`${base.alyIP}/rycjZp/updateRyzp`, params);
//人像信息删除
export const deleteRyzpById = params =>
post(`${base.alyIP}/rycjZp/deleteRyzpById`, params);
\ No newline at end of file
import { get, post, postform } from "@/utils/http.js";
import base from "@/api/base";
//声纹信息保存
export const saveSw = params =>
postform(`${base.alyIP}/ythcjSw/saveSw`, params);
//声纹信息删除
export const deleteSwById = params =>
post(`${base.alyIP}/ythcjSw/deleteSwById`, params);
// /ythcjSw/selectSwList
\ No newline at end of file
import { get, post, postform } from "@/utils/http.js";
import base from "@/api/base";
//足迹信息修改/保存
export const updateZjzp = params =>
postform(`${base.alyIP}/ythcjZj/updateZjzp`, params);
//足迹信息删除
export const deleteZjzpById = params =>
post(`${base.alyIP}/ythcjZj/deleteZjzpById`, params);
// /ythcjZj/selectZjzpList
\ No newline at end of file
import { get, post, postform } from "@/utils/http.js";
import base from "@/api/base";
//指纹信息修改/保存
// export const updateRyzp = params =>
// postform(`${base.alyIP}/rycjZp/updateRyzp`, params);
//指纹信息删除
// export const deleteRyzpById = params =>
// post(`${base.alyIP}/rycjZp/deleteRyzpById`, params);
// /zw/getPmimages
// /zw/getGdimages
\ No newline at end of file
...@@ -1349,7 +1349,7 @@ export default { ...@@ -1349,7 +1349,7 @@ export default {
}, },
}, },
mounted() { mounted() {
console.log(this.formLabelAlign, 22222222222222);
var self = this; var self = this;
self.propFormField.forEach((val) => { self.propFormField.forEach((val) => {
val.data.forEach((val2) => { val.data.forEach((val2) => {
......
...@@ -275,7 +275,9 @@ ...@@ -275,7 +275,9 @@
pageBs != 'queryXczj' && pageBs != 'queryXczj' &&
pageBs != 'llygl' && pageBs != 'llygl' &&
pageBs != 'zczltj' && pageBs != 'zczltj' &&
pageBs != 'queryZjcl' pageBs != 'queryZjcl' &&
pageBs != 'queryXnpg' &&
pageBs != 'queryPgtj'
" "
> >
<i class="el-icon-plus"></i> 新增 <i class="el-icon-plus"></i> 新增
......
...@@ -23,6 +23,7 @@ import ajxscxbdRoutes from "./modules/ajxscxbd"; ...@@ -23,6 +23,7 @@ import ajxscxbdRoutes from "./modules/ajxscxbd";
import dswtzRoutes from "./modules/dswtz"; import dswtzRoutes from "./modules/dswtz";
import zczlRoutes from "./modules/zczl"; import zczlRoutes from "./modules/zczl";
import ajbzRoutes from "./modules/ajbz"; import ajbzRoutes from "./modules/ajbz";
import xnpgRoutes from "./modules/xnpg.js";
const originalPush = VueRouter.prototype.push; const originalPush = VueRouter.prototype.push;
VueRouter.prototype.push = function push(location) { VueRouter.prototype.push = function push(location) {
...@@ -58,6 +59,7 @@ const mainRouters = [ ...@@ -58,6 +59,7 @@ const mainRouters = [
dswtzRoutes, dswtzRoutes,
zczlRoutes, zczlRoutes,
ajbzRoutes, ajbzRoutes,
xnpgRoutes,
{ {
path: "/zdgl", path: "/zdgl",
name: "zdgl", name: "zdgl",
......
...@@ -21,11 +21,135 @@ const menuLayouts = [ ...@@ -21,11 +21,135 @@ const menuLayouts = [
path: "/rxxxDetail", path: "/rxxxDetail",
name: "rxxxDetail", name: "rxxxDetail",
meta: { meta: {
isAdd: true,
title: '人像信息详情' title: '人像信息详情'
}, },
component: () => import("@/views/dswtz/rxxx/rxxxDetail.vue") component: () => import("@/views/dswtz/rxxx/rxxxDetail.vue")
}, },
{
path: "/queryDnaxx",
name: "queryDnaxx",
meta: {
title: 'DNA信息查询'
},
component: () => import("@/views/dswtz/dnaxx/queryDnaxx.vue")
},
{
path: "/addDnaxx",
name: "addDnaxx",
meta: {
isAdd: true,
title: 'DNA信息'
},
component: () => import("@/views/dswtz/dnaxx/addDnaxx.vue")
},
{
path: "/detailDnaxx",
name: "detailDnaxx",
meta: {
title: 'DNA信息详情'
},
component: () => import("@/views/dswtz/dnaxx/detailDnaxx.vue")
},
{
path: "/queryHmxx",
name: "queryHmxx",
meta: {
title: '虹膜信息查询'
},
component: () => import("@/views/dswtz/hmxx/queryHmxx.vue")
},
{
path: "/addHmxx",
name: "addHmxx",
meta: {
isAdd: true,
title: '虹膜信息'
},
component: () => import("@/views/dswtz/hmxx/addHmxx.vue")
},
{
path: "/detailHmxx",
name: "detailHmxx",
meta: {
title: '虹膜信息详情'
},
component: () => import("@/views/dswtz/hmxx/detailHmxx.vue")
},
{
path: "/querySwxx",
name: "querySwxx",
meta: {
title: '声纹信息查询'
},
component: () => import("@/views/dswtz/swxx/querySwxx.vue")
},
{
path: "/addSwxx",
name: "addSwxx",
meta: {
isAdd: true,
title: '声纹信息'
},
component: () => import("@/views/dswtz/swxx/addSwxx.vue")
},
{
path: "/detailSwxx",
name: "detailSwxx",
meta: {
title: '声纹信息详情'
},
component: () => import("@/views/dswtz/swxx/detailSwxx.vue")
},
{
path: "/queryZjxx",
name: "queryZjxx",
meta: {
title: '足迹信息查询'
},
component: () => import("@/views/dswtz/zjxx/queryZjxx.vue")
},
{
path: "/addZjxx",
name: "addZjxx",
meta: {
isAdd: true,
title: '足迹信息'
},
component: () => import("@/views/dswtz/zjxx/addZjxx.vue")
},
{
path: "/detailZjxx",
name: "detailZjxx",
meta: {
title: '足迹信息详情'
},
component: () => import("@/views/dswtz/zjxx/detailZjxx.vue")
},
{
path: "/queryZwxx",
name: "queryZwxx",
meta: {
title: '指纹信息查询'
},
component: () => import("@/views/dswtz/zwxx/queryZwxx.vue")
},
{
path: "/addZwxx",
name: "addZwxx",
meta: {
isAdd: true,
title: '指纹信息'
},
component: () => import("@/views/dswtz/zwxx/addZwxx.vue")
},
{
path: "/detailZwxx",
name: "detailZwxx",
meta: {
title: '指纹信息详情'
},
component: () => import("@/views/dswtz/zwxx/detailZwxx.vue")
},
]; ];
export default { export default {
......
import menuLayout from "@/layout/menuLayout.vue";
const menuLayouts = [
{
path: "/queryXnpg",
name: "queryXnpg",
meta: {
title: '案件侦查工作效能评估'
},
component: () => import("@/views/xnpg/gzxnpg/queryXnpg.vue")
},
{
path: "/queryPgtj",
name: "queryPgtj",
meta: {
title: '案件侦查工作效能评估统计'
},
component: () => import("@/views/xnpg/xnpgtj/queryPgtj.vue")
},
];
export default {
path: "/right",
component: menuLayout,
children: [...menuLayouts]
};
\ No newline at end of file
...@@ -7,10 +7,7 @@ ...@@ -7,10 +7,7 @@
:cxQueryField="cxQueryField" :cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead" :cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl" :cxUrl="cxUrl"
@add="add"
@edit="edit"
@dele="dele" @dele="dele"
@toInfor="toInfor"
ref="rightContent" ref="rightContent"
></right-content> ></right-content>
</div> </div>
...@@ -18,7 +15,7 @@ ...@@ -18,7 +15,7 @@
<script> <script>
import rightContent from "@c/ptCxForm_components.vue"; import rightContent from "@c/ptCxForm_components.vue";
import { deleteKyxsxx } from "@/api/rlqbxs.js"; import { deleteRyzpById } from "@/api/dswtz/rxxx.js";
export default { export default {
name: "rlqbxsxx", name: "rlqbxsxx",
components: { components: {
...@@ -79,6 +76,46 @@ export default { ...@@ -79,6 +76,46 @@ export default {
className: "iconfont iconrizhi", className: "iconfont iconrizhi",
disabled: false, disabled: false,
}, },
{
id: "queryDnaxx",
label: "DNA信息管理",
index: "queryDnaxx",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "queryHmxx",
label: "虹膜信息管理",
index: "queryHmxx",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "querySwxx",
label: "声纹信息管理",
index: "querySwxx",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "queryZjxx",
label: "足迹信息管理",
index: "queryZjxx",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "queryZwxx",
label: "指纹信息管理",
index: "queryZwxx",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
], ],
leftMenus: [ leftMenus: [
//左侧导航(模块第一个页面需要) //左侧导航(模块第一个页面需要)
...@@ -116,7 +153,7 @@ export default { ...@@ -116,7 +153,7 @@ export default {
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
deleteKyxsxx({ deleteRyzpById({
xxzjbh: scope.row.xxzjbh, xxzjbh: scope.row.xxzjbh,
}).then((res) => { }).then((res) => {
if (res.success && res.code == 200) { if (res.success && res.code == 200) {
......
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
ref="rightContent"
></right-content>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import SelectTreeDialog from "@c/treeCode_components.vue";
export default {
name: "queryXnpg",
components: {
rightContent,
SelectTreeDialog,
},
data() {
return {
examineInfo: {},
header: "案件侦查工作效能评估", //头部标题 (模块第一个页面需要)
pageBs: "queryXnpg", //页面名称
cxFormData: {
//查询条件
limit: 10,
page: 1,
startTime: "",
endTime: "",
ajmc: "",
asjbh: "",
ssjzrmby: "",
ladwGajgmc: "",
larq: "",
asjfssjAsjfskssj: "",
zcjddm: "",
ajlbdm: "",
asjfsddXzqhdm: "",
},
cxQueryField: [
//查询条件
{
name: "统计时间",
id: "startTime",
id2: "endTime",
type: "zdyDate",
value: "",
col: "3",
},
{
name: "案件名称",
id: "ajmc",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "案事件编号",
id: "asjbh",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "损失价值人民币元",
id: "ssjzrmby",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "立案单位公安机关",
id: "ladwGajgmc",
type: "codeTreeDialog",
codeTree: "QGCODE_UNIT",
codeOptions: [],
props: [], //字典弹框需要的字段
value: "",
col: "3",
},
{
name: "立案日期",
id: "larq",
type: "datetime",
value: "",
col: "3",
},
{
name: "案事件发生时间",
id: "asjfssjAsjfskssj",
type: "datetime",
value: "",
col: "3",
},
{
name: "侦查阶段",
id: "zcjddm",
type: "codeTreeDialog",
codeTree: "",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
},
{
name: "案件类别",
id: "ajlbdm",
type: "codeTreeDialog",
codeTree: "CODE_AJLB",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
},
{
name: "案件发地行政区划",
id: "asjfsddXzqhdm",
type: "codeTreeDialog",
codeTree: "CODE_XZQH",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
},
],
cxDefaultFormThead: [
//table 展示
{
label: "案件名称",
prop: "ajmc",
},
{
label: "案事件编号",
prop: "asjbh",
},
{
label: "损失价值人民币元",
prop: "ssjzrmby",
},
{
label: "立案单位公安机关机构",
prop: "ladwGajgmc",
},
{
label: "立案日期",
prop: "larq",
},
{
label: "案事件发生时间",
prop: "asjfssjAsjfskssj",
},
{
label: "侦查阶段",
prop: "zcjddmStr",
},
{
label: "案件类别",
prop: "ajlbdmStr",
},
{
label: "案事件发生地行政区划代码",
prop: "asjfsddXzqhdm",
},
],
cxUrl: "/ywgz/getAsjXxList", //列表查询接口
Menu: [
//头部导航(模块第一个页面需要)
{
id: "queryXnpg",
label: "案件侦查工作效能评估",
index: "queryXnpg",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "queryPgtj",
label: "案件侦查工作效能评估统计",
index: "queryPgtj",
auth: "M0102",
className: "iconfont icongongnengfuwu",
disabled: false,
},
],
leftMenus: [
//左侧导航(模块第一个页面需要)
{
id: "queryXnpg",
label: "案件侦查工作效能",
newAuth: "M01",
index: "2",
className: "iconfont icongongnengfuwu",
hasChildren: true,
children: [
{
id: "queryXnpg",
label: "案件侦查工作效能评估",
index: "queryXnpg",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "queryPgtj",
label: "案件侦查工作效能评估统计",
index: "queryPgtj",
auth: "M0102",
className: "iconfont icongongnengfuwu",
disabled: false,
},
],
},
],
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
this.$store.commit("user/SET_LeftMenu", this.leftMenus);
this.$store.commit("user/SET_Header", this.header);
},
mounted() {
this.hqzd();
},
methods: {
hqzd() {
let self = this;
axios
.get(`JsonData/${this.lkobj.codeTree}.json`)
.then((res) => {
self.$set(this.lkobj, "codeOptions", res.data.data.rows);
})
.catch((err) => {
console.log(err);
});
axios
.get(`JsonData/${this.ckobj.codeTree}.json`)
.then((res) => {
self.$set(this.ckobj, "codeOptions", res.data.data.rows);
})
.catch((err) => {
console.log(err);
});
},
// add() {
// this.$router.push("addGzry");
// },
// edit(scope) {
// console.log(scope);
// this.$router.push({
// path: "/addGzry",
// query: { xxzjbh: scope.row.xzgzrybh },
// });
// },
// dele(scope) {
// this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
// confirmButtonText: "确定",
// cancelButtonText: "取消",
// type: "warning",
// })
// .then(() => {
// deleteGzry({
// xzgzrybh: scope.row.xzgzrybh,
// }).then((res) => {
// if (res.success && res.code == 200) {
// this.$message({
// type: "success",
// message: "删除成功",
// });
// this.$refs.rightContent.doQuery("yes");
// }
// });
// })
// .catch(() => {
// this.$message({
// type: "info",
// message: "已取消删除",
// });
// });
// },
// toInfor(scope) {
// console.log(scope);
// this.$router.push({
// path: "/detailGzry",
// query: {
// xxzjbh: scope.xzgzrybh,
// },
// });
// },
},
};
</script>
<style>
.el-dialog {
/* max-height: 670px */
}
.el-dialog__body {
padding: 0px 15px !important;
/* height: 80vh; */
}
.rightContent .el-input__inner,
#formCommonPage .el-input__inner {
height: 32px;
line-height: 32px;
font-family: inherit;
}
.el-table__header-wrapper th,
.el-table__header-wrapper tr {
background: #f4f6f7;
}
.rightContent .el-input__icon,
#formCommonPage .el-input__icon,
.el-input__suffix-inner {
line-height: 36px;
}
.rightContent .el-range-separator {
position: relative;
top: -4px;
}
.rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner {
width: 100%;
font-family: inherit;
}
.rightContent .el-range-input,
#formCommonPage .el-range-input {
vertical-align: top;
}
.rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px;
}
.rightContent .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
}
.success-row {
background-color: #fbf9f4 !important;
}
.Content .el-input,
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss">
@import "@/assets/styles/rightContent.scss";
/deep/ {
.el-form-item {
width: 100%;
margin-bottom: 10px;
}
}
</style>
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
ref="rightContent"
></right-content>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import SelectTreeDialog from "@c/treeCode_components.vue";
export default {
name: "queryPgtj",
components: {
rightContent,
SelectTreeDialog,
},
data() {
return {
examineInfo: {},
header: "案件侦查工作效能评估统计", //头部标题 (模块第一个页面需要)
pageBs: "queryPgtj", //页面名称
cxFormData: {
//查询条件
limit: 10,
page: 1,
startTime: "",
endTime: "",
ajmc: "",
asjbh: "",
ssjzrmby: "",
ladwGajgmc: "",
larq: "",
asjfssjAsjfskssj: "",
zcjddm: "",
ajlbdm: "",
asjfsddXzqhdm: "",
},
cxQueryField: [
//查询条件
{
name: "统计时间",
id: "startTime",
id2: "endTime",
type: "zdyDate",
value: "",
col: "3",
},
{
name: "案件名称",
id: "ajmc",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "案事件编号",
id: "asjbh",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "损失价值人民币元",
id: "ssjzrmby",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "立案单位公安机关",
id: "ladwGajgmc",
type: "codeTreeDialog",
codeTree: "QGCODE_UNIT",
codeOptions: [],
props: [], //字典弹框需要的字段
value: "",
col: "3",
},
{
name: "立案日期",
id: "larq",
type: "datetime",
value: "",
col: "3",
},
{
name: "案事件发生时间",
id: "asjfssjAsjfskssj",
type: "datetime",
value: "",
col: "3",
},
{
name: "侦查阶段",
id: "zcjddm",
type: "codeTreeDialog",
codeTree: "",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
},
{
name: "案件类别",
id: "ajlbdm",
type: "codeTreeDialog",
codeTree: "CODE_AJLB",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
},
{
name: "案件发地行政区划",
id: "asjfsddXzqhdm",
type: "codeTreeDialog",
codeTree: "CODE_XZQH",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
},
],
cxDefaultFormThead: [
//table 展示
{
label: "案件名称",
prop: "ajmc",
},
{
label: "案事件编号",
prop: "asjbh",
},
{
label: "损失价值人民币元",
prop: "ssjzrmby",
},
{
label: "立案单位公安机关机构",
prop: "ladwGajgmc",
},
{
label: "立案日期",
prop: "larq",
},
{
label: "案事件发生时间",
prop: "asjfssjAsjfskssj",
},
{
label: "侦查阶段",
prop: "zcjddmStr",
},
{
label: "案件类别",
prop: "ajlbdmStr",
},
{
label: "案事件发生地行政区划代码",
prop: "asjfsddXzqhdm",
},
],
cxUrl: "/ywgz/getAsjXxList", //列表查询接口
};
},
created() {
// this.$store.commit("user/SET_Menu", this.Menu);
// this.$store.commit("user/SET_LeftMenu", this.leftMenus);
// this.$store.commit("user/SET_Header", this.header);
},
mounted() {
this.hqzd();
},
methods: {
hqzd() {
let self = this;
axios
.get(`JsonData/${this.lkobj.codeTree}.json`)
.then((res) => {
self.$set(this.lkobj, "codeOptions", res.data.data.rows);
})
.catch((err) => {
console.log(err);
});
axios
.get(`JsonData/${this.ckobj.codeTree}.json`)
.then((res) => {
self.$set(this.ckobj, "codeOptions", res.data.data.rows);
})
.catch((err) => {
console.log(err);
});
},
// add() {
// this.$router.push("addGzry");
// },
// edit(scope) {
// console.log(scope);
// this.$router.push({
// path: "/addGzry",
// query: { xxzjbh: scope.row.xzgzrybh },
// });
// },
// dele(scope) {
// this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
// confirmButtonText: "确定",
// cancelButtonText: "取消",
// type: "warning",
// })
// .then(() => {
// deleteGzry({
// xzgzrybh: scope.row.xzgzrybh,
// }).then((res) => {
// if (res.success && res.code == 200) {
// this.$message({
// type: "success",
// message: "删除成功",
// });
// this.$refs.rightContent.doQuery("yes");
// }
// });
// })
// .catch(() => {
// this.$message({
// type: "info",
// message: "已取消删除",
// });
// });
// },
// toInfor(scope) {
// console.log(scope);
// this.$router.push({
// path: "/detailGzry",
// query: {
// xxzjbh: scope.xzgzrybh,
// },
// });
// },
},
};
</script>
<style>
.el-dialog {
/* max-height: 670px */
}
.el-dialog__body {
padding: 0px 15px !important;
/* height: 80vh; */
}
.rightContent .el-input__inner,
#formCommonPage .el-input__inner {
height: 32px;
line-height: 32px;
font-family: inherit;
}
.el-table__header-wrapper th,
.el-table__header-wrapper tr {
background: #f4f6f7;
}
.rightContent .el-input__icon,
#formCommonPage .el-input__icon,
.el-input__suffix-inner {
line-height: 36px;
}
.rightContent .el-range-separator {
position: relative;
top: -4px;
}
.rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner {
width: 100%;
font-family: inherit;
}
.rightContent .el-range-input,
#formCommonPage .el-range-input {
vertical-align: top;
}
.rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px;
}
.rightContent .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
}
.success-row {
background-color: #fbf9f4 !important;
}
.Content .el-input,
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss">
@import "@/assets/styles/rightContent.scss";
/deep/ {
.el-form-item {
width: 100%;
margin-bottom: 10px;
}
}
</style>
...@@ -76,6 +76,15 @@ export default { ...@@ -76,6 +76,15 @@ export default {
fileList5: [], fileList5: [],
}; };
}, },
// watch: {
// formLabelAlign: {
// handler(newVal,oldVal) {
// console.log(newVal,oldVal)
// this.formLabelAlign = { ...oldVal }
// },
// deep:true
// }
// },
methods: { methods: {
submit(params) { submit(params) {
let loading = this.$loading({ let loading = this.$loading({
...@@ -92,7 +101,6 @@ export default { ...@@ -92,7 +101,6 @@ export default {
}, },
addSubmit(params, loading) { addSubmit(params, loading) {
console.log(this.formLabelAlign); console.log(this.formLabelAlign);
console.log(this.propFormField);
insertGzry(params).then((res) => { insertGzry(params).then((res) => {
if (res.success && res.code == 200) { if (res.success && res.code == 200) {
this.$alert("保存成功!", "提示", { this.$alert("保存成功!", "提示", {
...@@ -110,9 +118,7 @@ export default { ...@@ -110,9 +118,7 @@ export default {
}); });
}, },
editSubmit(params, loading) { editSubmit(params, loading) {
console.log(this.propFormField[0].data);
console.log(this.formLabelAlign); console.log(this.formLabelAlign);
console.log(this.propFormField);
console.log(params); console.log(params);
// params.append("xzgzrybh", this.xxzjbh); // params.append("xzgzrybh", this.xxzjbh);
updateGzry(params).then((res) => { updateGzry(params).then((res) => {
...@@ -140,6 +146,47 @@ export default { ...@@ -140,6 +146,47 @@ export default {
spinner: "el-icon-loading", spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)", background: "rgba(255, 255, 255, 0.7)",
}); });
selectGzryById({
xxzjbh: this.$route.query.xxzjbh,
}).then((res) => {
var result = res.data.rows;
self.propFormField.forEach((i, iIndex) => {
// console.log(i);
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);
});
selectgzryZp({ selectgzryZp({
glxxXxzjbh: this.$route.query.xxzjbh, glxxXxzjbh: this.$route.query.xxzjbh,
}).then((res) => { }).then((res) => {
...@@ -151,11 +198,9 @@ export default { ...@@ -151,11 +198,9 @@ export default {
//遍历配置文件,拿到数据返回来的xs实体。 //遍历配置文件,拿到数据返回来的xs实体。
var fieldVale; var fieldVale;
if (fieldItem.type == "file") { if (fieldItem.type == "file") {
console.log(fieldItem); self.$set(self.formLabelAlign, fieldItem.id, []);
console.log(231);
console.log(result);
self.$set(self.formLabelAlign, fieldItem.id, []);
result.map(item => { result.map(item => {
// debugger;
if(item.zpbw == "1" && fieldItem.id == "sfzrxfile") { if(item.zpbw == "1" && fieldItem.id == "sfzrxfile") {
const fileObj1 = { const fileObj1 = {
name: item.ryzpDzwjmc, name: item.ryzpDzwjmc,
...@@ -167,7 +212,7 @@ export default { ...@@ -167,7 +212,7 @@ export default {
0, 0,
fileObj1 fileObj1
); );
console.log(self.formLabelAlign[fieldItem.id],12123123); console.log(self.formLabelAlign[fieldItem.id],11111);
self.$forceUpdate(); self.$forceUpdate();
}else if(item.zpbw == "2" && fieldItem.id == "zmfile") { }else if(item.zpbw == "2" && fieldItem.id == "zmfile") {
const fileObj2 = { const fileObj2 = {
...@@ -222,7 +267,6 @@ export default { ...@@ -222,7 +267,6 @@ export default {
console.log(self.formLabelAlign); console.log(self.formLabelAlign);
self.$forceUpdate(self.formLabelAlign); self.$forceUpdate(self.formLabelAlign);
if (result[fieldItem.id]) { if (result[fieldItem.id]) {
console.log(result,result[fieldItem.id]); console.log(result,result[fieldItem.id]);
result[fieldItem.id].forEach((fileItem, fileIndex) => { result[fieldItem.id].forEach((fileItem, fileIndex) => {
...@@ -237,46 +281,14 @@ export default { ...@@ -237,46 +281,14 @@ export default {
); );
}); });
} }
debugger
// self.$forceUpdate(self.formLabelAlign);
console.log(self.formLabelAlign,1111111111111);
} }
}); });
}); });
selectGzryById({
xxzjbh: this.$route.query.xxzjbh,
}).then((res) => {
var result = res.data.rows;
self.propFormField.forEach((i, iIndex) => {
console.log(i);
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() { created() {
......
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