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 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