Commit ebab7e65 by liyuhang19990520

更改下拉框以及被布控物品信息

parent 7598d500
/*
* @Author: your name
* @Date: 2021-09-01 10:46:56
* @LastEditTime: 2021-09-01 15:48:03
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\api\bkwpxx.js
*/
import { get, post, postform } from "@/utils/http.js";
import base from "@/api/base";
//阵地线索信息采集
export const insertZdxsxx = params =>
postform(`${base.alyIP}/zdxsxx/insertZdxsxx`, params);
//阵地线索信息修改模块
export const updateZdxsxx = params =>
postform(`${base.alyIP}/zdxsxx/updateZdxsxx`, params);
//阵地线索信息删除模块
export const deleteZdxsxx = params =>
post(`${base.alyIP}/zdxsxx/deleteZdxsxx`, params);
//阵地线索回显/详情
export const getZdxsByxxzjbh = params =>
post(`${base.alyIP}/zdxsxx/getZdxsByxxzjbh`, params);
......@@ -185,7 +185,7 @@
<!--案件类别-->
<div class="zdyInputW" v-else-if="item.type == 'setValue'">
<el-select v-model="formLabelAlign[item.id]" disabled>
<el-select v-model="formLabelAlign[item.id]" :disabled="item.disabled">
<el-option
v-for="item2 in item.codeOptions"
:key="item2.value"
......
/*
* @Author: your name
* @Date: 2021-08-31 14:40:49
* @LastEditTime: 2021-09-01 10:37:19
* @LastEditors: your name
* @LastEditTime: 2021-09-01 15:35:19
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\router\index.js
*/
......@@ -13,6 +13,7 @@ import zdxxRoutes from "./modules/zdxx";
import xxtkRoutes from "./modules/xxtk";
import kyxsRoutes from "./modules/kyxs";
import bbkwtxxRoutes from "./modules/bbkwtxx";
import zdxsxxRoutes from "./modules/zdxsxx";
const originalPush = VueRouter.prototype.push;
......@@ -39,6 +40,7 @@ const mainRouters = [
xxtkRoutes,
kyxsRoutes,
bbkwtxxRoutes,
zdxsxxRoutes,
{
path: "*",
name: "error",
......
/*
* @Author: your name
* @Date: 2021-09-01 10:34:31
* @LastEditTime: 2021-09-01 15:45:41
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\router\modules\bbkwtxx.js
*/
import menuLayout from "@/layout/menuLayout.vue";
const menuLayouts = [
{
path: "/queryZdxsxx",
name: "queryZdxsxx",
meta: {
title: '阵地线索信息管理'
},
component: () => import("@/views/zdxsxx/queryZdxsxx.vue")
},
{
path: "/adjustZdxsxx",
name: "adjustZdxsxx",
meta: {
title: '管理阵地线索信息'
},
component: () => import("@/views/zdxsxx/adjustZdxsxx.vue")
},
{
path: "/zdxsxxDetail",
name: "zdxsxxDetail",
meta: {
title: '阵地线索信息详情'
},
component: () => import("@/views/zdxsxx/zdxsxxDetail.vue")
},
];
export default {
path: "/right",
component: menuLayout,
children: [...menuLayouts]
};
\ No newline at end of file
......@@ -28,6 +28,22 @@ export default {
index: 0,
data: [
{
name: "案事件编号:",
id: "asjbh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "涉案物品编号:",
id: "bbkqtwpSawpbh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "物品名称:",
id: "bbkqtwpWpmc",
type: "text",
......@@ -36,6 +52,14 @@ export default {
col: "2",
},
{
name: "品牌型号:",
id: "bbkqtwpPpxh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "物品规格:",
id: "bbkqtwpWpgg",
type: "text",
......@@ -44,6 +68,14 @@ export default {
col: "2",
},
{
name: "物品标识号:",
id: "bbkqtwpWpbzhWpbzh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "物品颜色:",
id: "bbkqtwpWpysDmbcms",
type: "text",
......@@ -52,8 +84,34 @@ export default {
col: "2",
},
{
name: "物品特征描述:",
id: "bbkqtwpWptzms",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "物品真伪:",
id: "bbkqtwpWpzwPdbzStr",
id: "bbkqtwpWpzwPdbz",
type: "setValue",
codeOptions: [
{
label: "否",
value: "0",
},
{
label: "是",
value: "1",
},
],
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "阵地信息主键编号:",
id: "glxxXxzjbh",
type: "text",
value: "",
placeholder: "请输入",
......@@ -90,7 +148,7 @@ export default {
self.formField.forEach((fieldItem) => {
if (fieldItem.data && fieldItem.data.length > 0) {
fieldItem.data.forEach((i) => {
if (i.type == "text") {
if (i.type == "text" || i.type == "setValue") {
this.$set(this.formLabelAlign, i.id, result[i.id]);
}
});
......
<template>
<div>
<form-compontent
:formField="formField"
:formLabelAligns="formLabelAlign"
@submit="submit"
>
</form-compontent>
</div>
</template>
<script>
import formCompontent from "@c/form.vue";
import { insertZdxsxx, updateZdxsxx, getZdxsByxxzjbh } from "@/api/zdxsxx.js";
export default {
name: "addYhkxs",
components: {
formCompontent,
},
data() {
return {
formField: [
//基本信息
{
title: "新增阵地线索信息",
id: 1,
objStr: "tbXwZdxsxx",
index: 0,
data: [
{
name: "线索简要情况:",
id: "jyqk",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "涉及地区:",
id: "sjdq",
type: "codeTree",
props: [], //字典弹框需要的字段
value: "",
col: "2",
codeOptions: [],
codeTree: "CODE_XZQH",
},
{
name: "提供线索人姓名:",
id: "tgxsrXm",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "提供线索人身份证号码:",
id: "tgxsrSfzhm",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "提供线索人性别:",
id: "tgxsrXb",
type: "codeTree",
props: [], //字典弹框需要的字段
value: "",
col: "2",
codeOptions: [],
codeTree: "CODE_XB",
},
{
name: "提供线索人联系电话:",
id: "tgxsrLxdh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "提供线索人工作单位:",
id: "tgxsrGzdwmc",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "提供线索人民族:",
id: "tgxsrMzdm",
type: "codeTree",
props: [], //字典弹框需要的字段
value: "",
col: "2",
codeOptions: [],
codeTree: "CODE_MZ_MIS",
},
{
name: "提供线索人国籍:",
id: "tgxsrGjdm",
type: "codeTree",
props: [], //字典弹框需要的字段
value: "",
col: "2",
codeOptions: [],
codeTree: "CODE_GJ",
},
{
name: "提供线索人户籍地址:",
id: "tgxsrHjdzXzqhdm",
type: "codeTree",
props: [], //字典弹框需要的字段
value: "",
col: "2",
codeOptions: [],
codeTree: "CODE_XZQH",
},
{
name: "提供线索人现住址:",
id: "tgxsrXzzXzqhdm",
type: "codeTree",
props: [], //字典弹框需要的字段
value: "",
col: "2",
codeOptions: [],
codeTree: "CODE_XZQH",
},
{
name: "提供线索人地址名称:",
id: "tgxsrXzzDzmc",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "阵地信息主键编号:",
id: "zdxxzjbh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
],
},
{
title: "新增阵地线索信息1",
id: 2,
objStr: "tbXwFxkyqzs",
index: 1,
data: [
{
name: "枪支口径:",
id: "kyqzQzkj",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "物品标识号:",
id: "kyqzQhWpbzh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "枪支是否完整:",
id: "kyqzQzsfwzPdbz",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "枪支是否完整简要情况:",
id: "kyqzQzsfwzJyqk",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "物品特征描述:",
id: "kyqzWptzms",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "物品来源描述:",
id: "kyqzWplyms",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "物品去向:",
id: "kyqzWpqxJyqk",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "藏匿方式:",
id: "kyqzCnfsJyqk",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "交易方式:",
id: "kyqzJyfsJyqk",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "交易地点:",
id: "kyqzJyddXzqhdm",
type: "codeTree",
props: [], //字典弹框需要的字段
value: "",
col: "2",
codeOptions: [],
codeTree: "CODE_XZQH",
},
{
name: "交易地点详细地址:",
id: "kyqzJyddDzmc",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "运输方式:",
id: "kyqzYsfsJyqk",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "运输路线:",
id: "kyqzYslxJyqk",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
],
},
{
title: "新增可疑移动通讯",
id: 3,
objStr: "tbXwFxkydtxsbxsxxes",
index: 2,
data: [
{
name: "可疑依据_简要情况:",
id: "keyyjJyqk",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "可疑移动通讯设备_涉案物品编号:",
id: "keyydtxsbSawpbh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "可疑移动通讯设备_警综物品编号:",
id: "keyydtxsbJzwpbh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "可疑移动通讯设备_品牌型号:",
id: "keyydtxsbPpxh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "可疑移动通讯设备_ICCID_物品标识号:",
id: "keyydtxsbIccidWpbzh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "可疑移动通讯设备_IMEI_物品标识号:",
id: "keyydtxsbImeiWpbzh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "可疑移动通讯设备_移动电话:",
id: "keyydtxsbYddh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "可疑移动通讯设备_物品特征描述:",
id: "keyydtxsbWptzms",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "可疑移动通讯设备_物品价值(人民币元):",
id: "keyydtxsbWpjzrmby",
type: "text",
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)",
});
if (!this.xxzjbh) {
this.addSubmit(params, loading);
} else {
this.editSubmit(params, loading);
}
},
getshuju() {
var self = this;
getZdxsByxxzjbh({
xxzjbh: this.xxzjbh,
}).then((res) => {
var result = res.data.rows;
self.formField.forEach((fieldItem) => {
if (fieldItem.data && fieldItem.data.length > 0) {
fieldItem.data.forEach((i) => {
if (i.type == "text") {
this.$set(this.formLabelAlign, i.id, result[i.id]);
}
});
}
this.$forceUpdate();
});
self.$set(self.formLabelAlign, "editing", true);
self.$forceUpdate();
// this.isEmpty()
});
setTimeout(() => {
self.loading = false;
}, 1000);
},
addSubmit(params, loading) {
insertZdxsxx(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("保存成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
this.$router.push("/queryZdxsxx");
loading.close();
},
});
} else {
loading.close();
}
});
},
editSubmit(params, loading) {
params.append("xxzjbh", this.xxzjbh);
updateBbkwp(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("修改成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
this.$router.push("/queryZdxsxx");
loading.close();
},
});
} else {
loading.close();
}
});
},
},
created() {
if (this.$route.query.xxzjbh) {
this.$set(this.formField[0], "title", "修改被布控物品信息");
this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju();
}
},
};
</script>
<style scoped lang="scss">
</style>
\ No newline at end of file
<template>
<div class="Content">
<right-content
ref="rightContent"
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@add="add"
@dele="dele"
@toInfor="toInfor"
@edit="edit"
></right-content>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import { deleteZdxsxx } from "@/api/zdxsxx.js";
export default {
name: "queryYdtx",
components: {
rightContent,
},
data() {
return {
header: "被布控物品信息管理",
pageBs: "queryBbkwpxx",
cxFormData: {
rows: 10,
page: 1,
zdxxzjbh: "",
},
cxQueryField: [
{
name: "阵地信息主键编号",
id: "zdxxzjbh",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "提供人姓名",
id: "tgxsrXm",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "提供人身份证",
id: "tgxsrSfzhm",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "户籍地址",
id: "tgxsrHjdzXzqhdm",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_XZQH",
},
{
name: "现住址代码",
id: "tgxsrXzzXzqhdm",
type: "codeTreeDialog",
props: [], //字典弹框需要的字段
value: "",
col: "3",
codeOptions: [],
codeTree: "CODE_XZQH",
},
],
cxDefaultFormThead: [
{
label: "案事件编号",
prop: "asjbh",
},
{
label: "举报人姓名",
prop: "tgxsrXm",
},
{
label: "身份证",
prop: "tgxsrSfzhm",
},
{
label: "户籍地址",
prop: "tgxsrHjdzXzqhdmStr",
width: "200",
},
{
label: "现住址",
prop: "tgxsrXzzXzqhdmStr",
},
],
cxUrl: "/zdxsxx/selectZdyrxx",
};
},
created() {},
methods: {
add() {
this.$router.push("adjustZdxsxx");
},
dele(scope) {
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteZdxsxx({
xxzjbh: scope.row.xxzjbh,
}).then((res) => {
if (res.success && res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
console.log(scope.row.xxzjbh);
},
toInfor(data) {
this.$router.push({
path: "/zdxsxxDetail",
query: {
id: data.xxzjbh,
},
});
},
edit(data) {
this.$router.push({
path: "/adjustZdxsxx",
query: {
xxzjbh: data.row.xxzjbh,
},
});
console.log(data.row);
},
},
};
</script>
<style>
.el-dialog__body {
padding: 10px 15px !important;
}
.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";
</style>
<!--
* @Author: your name
* @Date: 2021-08-31 09:52:33
* @LastEditTime: 2021-09-01 16:09:26
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\hnksh\ceshi.vue
-->
<template>
<div class="Content" id="hmxsDetail">
<right-content
:cxQueryField="cxQueryField"
:pageObject="pageObject"
:pageFooterProps="pageFooterProps"
labelWidth="110px"
title="阵地线索详情"
>
</right-content>
</div>
</template>
<script>
import rightContent from "@c/PersonInfor.vue";
import { getZdxsByxxzjbh } from "@/api/zdxsxx.js";
import { get, post, postform, postJson } from "@/utils/http.js";
export default {
name: "queryAj",
components: {
rightContent,
},
data() {
return {
cxQueryField: [
{
label: "物品名称:",
prop: "bbkqtwpWpmc",
col: "3",
},
{
label: "物品规格:",
prop: "bbkqtwpWpgg",
col: "3",
},
{
label: "物品颜色:",
prop: "bbkqtwpWpysDmbcms",
col: "3",
},
{
label: "物品真伪:",
prop: "bbkqtwpWpzwPdbzStr",
col: "3",
},
],
pageFooterProps: [
{
label: "录入单位:",
prop: "xxdjdwGajgjgdm",
col: "3",
},
{
label: "录入人:",
prop: "xxdjryXm",
col: "3",
},
{
label: "录入时间:",
prop: "djsj",
col: "3",
},
],
pageObject: {},
id: "",
};
},
mounted() {},
methods: {
getInfor() {
getZdxsByxxzjbh({
xxzjbh: this.id,
}).then((res) => {
if (res.success && res.code == 200) {
this.pageObject = res.data.rows;
}
});
},
},
created() {
this.id = this.$route.query.id;
this.getInfor();
},
};
</script>
<style scoped lang="scss">
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment