Commit 2fbb1c13 by gao_yingdong

侦查脑图,修改和删除

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