Commit 2fbb1c13 by gao_yingdong

侦查脑图,修改和删除

parent 2e88bdd3
......@@ -18,3 +18,55 @@ export const insertFwbshInfo = params =>
postform(`${base.alyIP3}/kyxs/insertFwbshInfo`, params);
// 可疑人员删除
export const deleteRyKyxsList = params =>
post(`${base.alyIP3}/kyxs/deleteRyKyxsList`, params);
// 可疑人员详情
export const getRyById = params =>
post(`${base.alyIP3}/kyxs/getRyById`, params);
// 可疑人员修改
export const updateRyKyxsList = params =>
postform(`${base.alyIP3}/kyxs/updateRyKyxsList`, params);
// 可疑号码删除
export const deleteHmKyxsList = params =>
post(`${base.alyIP3}/kyxs/deleteHmKyxsList`, params);
// 可疑号码详情
export const getHmById = params =>
post(`${base.alyIP3}/kyxs/getHmById`, params);
// 可疑号码修改
export const updateHmKyxsList = params =>
postform(`${base.alyIP3}/kyxs/updateHmKyxsList`, params);
// 可疑标识号删除
export const deleteFwbshInfo = params =>
post(`${base.alyIP3}/kyxs/deleteFwbshInfo`, params);
// 可疑标识号详情
export const queryFwbshById = params =>
post(`${base.alyIP3}/kyxs/queryFwbshById`, params);
// 可疑标识号修改
export const updateFwbshInfo = params =>
postform(`${base.alyIP3}/kyxs/updateFwbshInfo`, params);
// 可疑车辆删除
export const deleteJdcInfo = params =>
post(`${base.alyIP3}/kyxs/deleteJdcInfo`, params);
// 可疑车辆详情
export const getJdcById = params =>
post(`${base.alyIP3}/kyxs/getJdcById`, params);
// 可疑车辆修改
export const updateJdcInfo = params =>
postform(`${base.alyIP3}/kyxs/updateJdcInfo`, params);
......@@ -163,7 +163,7 @@ export default [{
path: "/addKyry",
name: "addKyry",
meta: {
title: '新增可疑人员',
title: '可疑人员',
isAdd: true,
},
component: () => import("@/views/brainPhoto/kyxsGl/addKyry.vue")
......@@ -172,7 +172,7 @@ export default [{
path: "/addKyfwbsh",
name: "addKyfwbsh",
meta: {
title: '新增可疑标识号',
title: '可疑标识号',
isAdd: true,
},
component: () => import("@/views/brainPhoto/kyxsGl/addKyfwbsh.vue")
......@@ -182,7 +182,7 @@ export default [{
path: "/addKyhm",
name: "addKyhm",
meta: {
title: '新增可疑号码',
title: '可疑号码',
isAdd: true,
},
component: () => import("@/views/brainPhoto/kyxsGl/addKyhm.vue")
......@@ -191,7 +191,7 @@ export default [{
path: "/addKycl",
name: "addKycl",
meta: {
title: '新增可疑机动车',
title: '可疑机动车',
isAdd: true,
},
component: () => import("@/views/brainPhoto/kyxsGl/addKycl.vue")
......
......@@ -16,11 +16,11 @@
>
</template>
<template #jrnt="scope">
<span
class="hbyps"
@click="toBrai(scope.scope)"
>进入脑图</span
>
<div style="display: flex">
<span class="hbyp" @click="toBrai(scope.scope)">进入脑图</span>
<span class="hbyp" @click="etail(scope.scope)">修改</span>
<span class="hbyp" @click="del(scope.scope)">删除</span>
</div>
<!-- <span
class="hbyps"
@click="sqspBtna(scope.scope)"
......@@ -199,7 +199,7 @@
</div>
</template>
<script>
import { getApproveUsers, saveSpxx } from "@/api/brainPhoto.js";
import { getApproveUsers, saveSpxx,deleteJdcInfo } from "@/api/brainPhoto.js";
// import SearchGraph from "@c/searchRight.vue";
import base from "@/api/base";
import rightContent from "@c/ptCxForm_components.vue";
......@@ -431,6 +431,33 @@ export default {
add() {
this.$router.pushToTab({ path: "/addKycl" });
},
etail(scope) {
this.$router.pushToTab({
path: "/addKycl",
query: { xxzjbh: scope.row.xxzjbh },
});
},
del(scope) {
this.$confirm("删除后不可恢复,是否删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteJdcInfo({ xxzjbh: scope.row.xxzjbh }).then((res) => {
if (res.code == 200) {
this.$message.success("删除成功!");
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
},
};
</script>
......@@ -498,18 +525,17 @@ export default {
text-align: center;
}
.hbyp {
width: 64px;
height: 24px;
background: #ffffff;
border: 1px solid #007aff;
opacity: 1;
border-radius: 4px;
text-align: center;
align-items: center;
display: inline-block;
font-size: 12px !important;
font-weight: 400 !important;
color: #007aff !important;
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 400;
line-height: 22px;
color: #007aff;
margin-right: 15px;
cursor: pointer;
display: inline-block;
// width: 50px;
// border: 1px solid;
line-height: 28px;
text-align: center;
}
</style>
\ No newline at end of file
......@@ -24,11 +24,11 @@
>
</template>
<template #jrnt="scope">
<span
class="hbyps"
@click="goDetail(scope.scope)"
>进入脑图</span
>
<div style="display: flex">
<span class="hbyp" @click="toBrai(scope.scope)">进入脑图</span>
<span class="hbyp" @click="etail(scope.scope)">修改</span>
<span class="hbyp" @click="del(scope.scope)">删除</span>
</div>
<!-- <span
class="hbyps"
@click="sqspBtna(scope.scope)"
......@@ -208,7 +208,7 @@
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import { getApproveUsers, saveSpxx } from "@/api/brainPhoto.js";
import { getApproveUsers, saveSpxx,deleteFwbshInfo } from "@/api/brainPhoto.js";
import base from "@/api/base";
import SearchGraph from "@c/searchRight.vue";
export default {
......@@ -414,6 +414,33 @@ export default {
add() {
this.$router.pushToTab({ path: "/addKyfwbsh" });
},
etail(scope) {
this.$router.pushToTab({
path: "/addKyfwbsh",
query: { xxzjbh: scope.row.xxzjbh },
});
},
del(scope) {
this.$confirm("删除后不可恢复,是否删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteFwbshInfo({ xxzjbh: scope.row.xxzjbh }).then((res) => {
if (res.code == 200) {
this.$message.success("删除成功!");
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
goDetail(scope) {
var userInfo = JSON.parse(sessionStorage.getItem("userInfo"));
var idcard = userInfo.identitycard;
......@@ -565,18 +592,17 @@ export default {
text-align: center;
}
.hbyp {
width: 64px;
height: 24px;
background: #ffffff;
border: 1px solid #007aff;
opacity: 1;
border-radius: 4px;
text-align: center;
align-items: center;
display: inline-block;
font-size: 12px !important;
font-weight: 400 !important;
color: #007aff !important;
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 400;
line-height: 22px;
color: #007aff;
margin-right: 15px;
cursor: pointer;
display: inline-block;
// width: 50px;
// border: 1px solid;
line-height: 28px;
text-align: center;
}
</style>
\ No newline at end of file
......@@ -16,11 +16,11 @@
>
</template>
<template #jrnt="scope">
<span
class="hbyps"
@click="toBrai(scope.scope)"
>进入脑图</span
>
<div style="display: flex">
<span class="hbyp" @click="toBrai(scope.scope)">进入脑图</span>
<span class="hbyp" @click="etail(scope.scope)">修改</span>
<span class="hbyp" @click="del(scope.scope)">删除</span>
</div>
<!-- <span
class="hbyps"
@click="sqspBtna(scope.scope)"
......@@ -200,7 +200,11 @@
</template>
<script>
// import SearchGraph from "@c/searchRight.vue";
import { getApproveUsers, saveSpxx } from "@/api/brainPhoto.js";
import {
getApproveUsers,
saveSpxx,
deleteHmKyxsList,
} from "@/api/brainPhoto.js";
import base from "@/api/base";
import rightContent from "@c/ptCxForm_components.vue";
export default {
......@@ -430,6 +434,33 @@ export default {
add() {
this.$router.pushToTab({ path: "/addKyhm" });
},
etail(scope) {
this.$router.pushToTab({
path: "/addKyhm",
query: { xxzjbh: scope.row.xxzjbh },
});
},
del(scope) {
this.$confirm("删除后不可恢复,是否删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteHmKyxsList({ xxzjbh: scope.row.xxzjbh }).then((res) => {
if (res.code == 200) {
this.$message.success("删除成功!");
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
},
};
</script>
......@@ -453,18 +484,17 @@ export default {
text-align: center;
}
.hbyp {
width: 64px;
height: 24px;
background: #ffffff;
border: 1px solid #007aff;
opacity: 1;
border-radius: 4px;
text-align: center;
align-items: center;
display: inline-block;
font-size: 12px !important;
font-weight: 400 !important;
color: #007aff !important;
font-size: 14px;
font-family: Source Han Sans CN;
font-weight: 400;
line-height: 22px;
color: #007aff;
margin-right: 15px;
cursor: pointer;
display: inline-block;
// width: 50px;
// border: 1px solid;
line-height: 28px;
text-align: center;
}
</style>
......@@ -16,11 +16,11 @@
>
</template>
<template #jrnt="scope">
<span
class="hbyp"
@click="toBrai(scope.scope)"
>进入脑图</span
>
<div style="display: flex">
<span class="hbyp" @click="toBrai(scope.scope)">进入脑图</span>
<span class="hbyp" @click="etail(scope.scope)">修改</span>
<span class="hbyp" @click="del(scope.scope)">删除</span>
</div>
<!-- <span
class="hbyp"
@click="sqspBtna(scope.scope)"
......@@ -199,7 +199,11 @@
</div>
</template>
<script>
import { getApproveUsers, saveSpxx } from "@/api/brainPhoto.js";
import {
getApproveUsers,
saveSpxx,
deleteRyKyxsList,
} from "@/api/brainPhoto.js";
import base from "@/api/base";
import rightContent from "@c/ptCxForm_components.vue";
export default {
......@@ -394,6 +398,33 @@ export default {
add() {
this.$router.pushToTab({ path: "/addKyry" });
},
etail(scope) {
this.$router.pushToTab({
path: "/addKyry",
query: { xxzjbh: scope.row.xxzjbh },
});
},
del(scope) {
this.$confirm("删除后不可恢复,是否删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteRyKyxsList({ xxzjbh: scope.row.xxzjbh }).then((res) => {
if (res.code == 200) {
this.$message.success("删除成功!");
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
toBrai(item) {
debugger;
// let path = `http://39.99.155.173:8007/naotuBox?type=KyRy&kybh=${item.row.kyxsryZjhm}`;
......@@ -487,10 +518,10 @@ export default {
font-weight: 400;
line-height: 22px;
color: #007aff;
margin-right: 16px;
margin-right: 15px;
cursor: pointer;
display: inline-block;
width: 87px;
// width: 50px;
// border: 1px solid;
line-height: 28px;
text-align: center;
......
......@@ -14,6 +14,7 @@
<script>
import formCompontent from "@c/form.vue";
import { insertJdcxs } from "@/api/kyxs.js";
import { getJdcById, updateJdcInfo } from "@/api/brainPhoto.js";
import axios from "@/utils/http.js";
export default {
name: "ssdy",
......@@ -99,11 +100,11 @@ export default {
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
// if (!this.xxzjbh) {
if (!this.xxzjbh) {
this.addSubmit(params, loading);
// } else {
// this.editSubmit(params, loading);
// }
} else {
this.editSubmit(params, loading);
}
},
windowRefresh() {
window.close();
......@@ -126,24 +127,24 @@ export default {
}
});
},
// editSubmit(params, loading) {
// params.append("xxzjbh", this.xxzjbh);
// updatessdy(params).then((res) => {
// if (res.success && res.code == 200) {
// this.$alert("保存成功!", "提示", {
// confirmButtonText: "确定",
// type: "success",
// callback: () => {
// loading.close();
// this.windowRefresh();
// },
// });
// } else {
// loading.close();
// this.$message.error("添加失败,请检查数据格式是否正确");
// }
// });
// },
editSubmit(params, loading) {
params.append("xxzjbh", this.xxzjbh);
updateJdcInfo(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("修改成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
loading.close();
this.windowRefresh();
},
});
} else {
loading.close();
this.$message.error("修改成功,请检查数据格式是否正确");
}
});
},
getshuju() {
var self = this;
let loading = this.$loading({
......@@ -152,8 +153,8 @@ export default {
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
queryByXxzjbh({
xxzjbh: this.xxzjbh,
getJdcById({
id: this.xxzjbh,
}).then((res) => {
var result = res.data.rows;
self.propFormField.forEach((fieldItem) => {
......@@ -173,10 +174,15 @@ export default {
},
},
created() {
debugger
debugger;
if (this.$route.query.xxzjbh) {
this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju();
} else {
let userInfo = JSON.parse(sessionStorage.getItem("userInfo"));
this.$set(this.formLabelAlign, 'lrr', userInfo.userName)
this.$set(this.formLabelAlign, 'lrdw', userInfo.unitcode)
this.$set(this.formLabelAlign, "lrr", userInfo.userName);
this.$set(this.formLabelAlign, "lrdw", userInfo.unitcode);
}
},
};
</script>
......
......@@ -13,7 +13,11 @@
<script>
import formCompontent from "@c/form.vue";
import { insertFwbshInfo } from "@/api/brainPhoto.js";
import {
insertFwbshInfo,
queryFwbshById,
updateFwbshInfo,
} from "@/api/brainPhoto.js";
import axios from "@/utils/http.js";
export default {
name: "ssdy",
......@@ -91,11 +95,11 @@ export default {
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
// if (!this.xxzjbh) {
if (!this.xxzjbh) {
this.addSubmit(params, loading);
// } else {
// this.editSubmit(params, loading);
// }
} else {
this.editSubmit(params, loading);
}
},
windowRefresh() {
window.close();
......@@ -118,24 +122,24 @@ export default {
}
});
},
// editSubmit(params, loading) {
// params.append("xxzjbh", this.xxzjbh);
// updatessdy(params).then((res) => {
// if (res.success && res.code == 200) {
// this.$alert("保存成功!", "提示", {
// confirmButtonText: "确定",
// type: "success",
// callback: () => {
// loading.close();
// this.windowRefresh();
// },
// });
// } else {
// loading.close();
// this.$message.error("添加失败,请检查数据格式是否正确");
// }
// });
// },
editSubmit(params, loading) {
params.append("xxzjbh", this.xxzjbh);
updateFwbshInfo(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("保存成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
loading.close();
this.windowRefresh();
},
});
} else {
loading.close();
this.$message.error("添加失败,请检查数据格式是否正确");
}
});
},
getshuju() {
var self = this;
let loading = this.$loading({
......@@ -144,8 +148,8 @@ export default {
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
queryByXxzjbh({
xxzjbh: this.xxzjbh,
queryFwbshById({
id: this.xxzjbh,
}).then((res) => {
var result = res.data.rows;
self.propFormField.forEach((fieldItem) => {
......@@ -164,7 +168,12 @@ export default {
});
},
},
created() {},
created() {
if (this.$route.query.xxzjbh) {
this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju();
}
},
};
</script>
......
......@@ -14,6 +14,7 @@
<script>
import formCompontent from "@c/form.vue";
import { insertHmxs } from "@/api/kyxs.js";
import { getHmById, updateHmKyxsList } from "@/api/brainPhoto.js";
import axios from "@/utils/http.js";
export default {
name: "ssdy",
......@@ -99,11 +100,11 @@ export default {
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
// if (!this.xxzjbh) {
if (!this.xxzjbh) {
this.addSubmit(params, loading);
// } else {
// this.editSubmit(params, loading);
// }
} else {
this.editSubmit(params, loading);
}
},
windowRefresh() {
window.close();
......@@ -126,24 +127,24 @@ export default {
}
});
},
// editSubmit(params, loading) {
// params.append("xxzjbh", this.xxzjbh);
// updatessdy(params).then((res) => {
// if (res.success && res.code == 200) {
// this.$alert("保存成功!", "提示", {
// confirmButtonText: "确定",
// type: "success",
// callback: () => {
// loading.close();
// this.windowRefresh();
// },
// });
// } else {
// loading.close();
// this.$message.error("添加失败,请检查数据格式是否正确");
// }
// });
// },
editSubmit(params, loading) {
params.append("xxzjbh", this.xxzjbh);
updateHmKyxsList(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("修改成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
loading.close();
this.windowRefresh();
},
});
} else {
loading.close();
this.$message.error("修改失败,请检查数据格式是否正确");
}
});
},
getshuju() {
var self = this;
let loading = this.$loading({
......@@ -152,8 +153,8 @@ export default {
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
queryByXxzjbh({
xxzjbh: this.xxzjbh,
getHmById({
id: this.xxzjbh,
}).then((res) => {
var result = res.data.rows;
self.propFormField.forEach((fieldItem) => {
......@@ -174,9 +175,14 @@ export default {
},
created() {
debugger;
if (this.$route.query.xxzjbh) {
this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju();
} else {
let userInfo = JSON.parse(sessionStorage.getItem("userInfo"));
this.$set(this.formLabelAlign, "lrr", userInfo.userName);
this.$set(this.formLabelAlign, "lrdw", userInfo.unitcode);
}
},
};
</script>
......
......@@ -14,6 +14,7 @@
<script>
import formCompontent from "@c/form.vue";
import { insertRyxs } from "@/api/kyxs.js";
import { getRyById, updateRyKyxsList } from "@/api/brainPhoto.js";
import axios from "@/utils/http.js";
export default {
name: "ssdy",
......@@ -109,11 +110,11 @@ export default {
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
// if (!this.xxzjbh) {
if (!this.xxzjbh) {
this.addSubmit(params, loading);
// } else {
// this.editSubmit(params, loading);
// }
} else {
this.editSubmit(params, loading);
}
},
windowRefresh() {
window.close();
......@@ -136,24 +137,24 @@ export default {
}
});
},
// editSubmit(params, loading) {
// params.append("xxzjbh", this.xxzjbh);
// updatessdy(params).then((res) => {
// if (res.success && res.code == 200) {
// this.$alert("保存成功!", "提示", {
// confirmButtonText: "确定",
// type: "success",
// callback: () => {
// loading.close();
// this.windowRefresh();
// },
// });
// } else {
// loading.close();
// this.$message.error("添加失败,请检查数据格式是否正确");
// }
// });
// },
editSubmit(params, loading) {
params.append("xxzjbh", this.xxzjbh);
updateRyKyxsList(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("修改成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
loading.close();
this.windowRefresh();
},
});
} else {
loading.close();
this.$message.error("修改失败,请检查数据格式是否正确");
}
});
},
getshuju() {
var self = this;
let loading = this.$loading({
......@@ -162,14 +163,16 @@ export default {
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
queryByXxzjbh({
xxzjbh: this.xxzjbh,
getRyById({
id: this.xxzjbh,
}).then((res) => {
var result = res.data.rows;
self.propFormField.forEach((fieldItem) => {
if (fieldItem.data && fieldItem.data.length > 0) {
fieldItem.data.forEach((i) => {
// if (i.id != 'lrr' && i.id != 'lrdw' && i.id != 'lrsj' ) {
this.$set(this.formLabelAlign, i.id, result[i.id]);
// }
});
}
this.$forceUpdate();
......@@ -184,9 +187,14 @@ export default {
},
created() {
debugger;
if (this.$route.query.xxzjbh) {
this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju();
} else {
let userInfo = JSON.parse(sessionStorage.getItem("userInfo"));
this.$set(this.formLabelAlign, "lrr", userInfo.userName);
this.$set(this.formLabelAlign, "lrdw", userInfo.unitcode);
}
},
};
</script>
......
......@@ -58,7 +58,7 @@ module.exports = {
},
proxy: {
"/apialy": {
target: "http://192.168.1.110:8762", //西藏: https://155.1.33.10:20010/ 阿里云:http://39.99.155.173:9022
target: "http://47.92.48.137:1007", //西藏: https://155.1.33.10:20010/ 阿里云:http://39.99.155.173:9022
// ws: true,
changeOrigin: true,
secure: false,
......
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