diff --git a/src/view/person/index.vue b/src/view/person/index.vue
index 0674461..39a0b37 100644
--- a/src/view/person/index.vue
+++ b/src/view/person/index.vue
@@ -106,8 +106,9 @@
+
{
});
};
//获取服务内容
-const showFw = ref(false);
-const getFw = () => {
- http
+const getFw = async() => {
+ await http
.get(
`/api/ggfwyth/pg/fwjgqdxq?sfzhm=${routers.query.identNo}&xh=${routers.query.xh}`
)
.then((res) => {
if (res.code == 200) {
- showFw.value = true;
// tableType.data = res.data;
// tableType.name = data.name;
// tableType.typeId = routers.query.id;
@@ -1171,6 +1137,45 @@ const getFw = () => {
});
}
});
+ showFw.value = false;
+};
+const showFw = ref(true);
+//获取服务内容(地图过来)
+const getFw2 = async(identNo) => {
+ await http.get(`/api/ggfwyth/ysyzt/fwxq?sfzhm=${identNo}`).then((res) => {
+ if (res.code == 200) {
+ // tableType.data = res.data;
+ // tableType.name = data.name;
+ // tableType.typeId = routers.query.id;
+ // dialogShow.value = true;
+ tableMain.data.length = 0;
+ if (res.data.wxs.length > 0) {
+ res.data.wxs.forEach((item, index) => {
+ let obj = {
+ xs: "0",
+ date: item.bzlx,
+ };
+ tableMain.data.push(obj);
+ });
+ }
+ // data.tableData.length = [];
+ if (res.data.ysx.length > 0) {
+ res.data.ysx.forEach((item, index) => {
+ let obj = {
+ xs: "1",
+ date: item.bzlx,
+ };
+ tableMain.data.push(obj);
+ });
+ }
+
+ } else {
+ ElMessage.warning({
+ message: res.message,
+ });
+ }
+ });
+ showFw.value = false;
};
// 打开摄像头
const openCamera = () => {
@@ -1212,6 +1217,7 @@ const back = () => {
watch(
() => props.message,
(newValue, oldValue) => {
+ showFw.value = true;
errorMessage.value = "";
// identNo.value = props.message.identNo;
dataMyTag.identNo = props.message.identNo;
@@ -1221,10 +1227,13 @@ watch(
onClickTag2("出生", "出生");
jump.value = "map";
getshs();
+ getFw2(props.message.identNo);
+
}
);
onMounted(() => {
if (routers.query.type) {
+ showFw.value = true;
errorMessage.value = "";
dataMyTag.identNo = routers.query.identNo;
jump.value = "detail";
@@ -1234,6 +1243,7 @@ onMounted(() => {
onClickTag2("出生", "出生");
getshs();
getFw();
+
} else {
jump.value = "map";
}