This commit is contained in:
姚宇浩 2024-12-09 16:33:11 +08:00
parent 3735c77b31
commit 6281529cf4
1 changed files with 50 additions and 40 deletions

View File

@ -106,8 +106,9 @@
<div class="videoCamera" v-if="dataMyTag.camera" @click="openCamera()"> <div class="videoCamera" v-if="dataMyTag.camera" @click="openCamera()">
<img src="@/assets/images/sxt_detail.png" alt="" /> <img src="@/assets/images/sxt_detail.png" alt="" />
</div> </div>
<div class="main_table" v-if="showFw"> <div class="main_table">
<el-table <el-table
v-loading="showFw"
:data="tableMain.data" :data="tableMain.data"
border border
style="width: 100%" style="width: 100%"
@ -547,7 +548,7 @@ const dataMyTag = reactive({
* @description 标题头 * @description 标题头
*/ */
myTag1: [ myTag1: [
{ {
name: "出生", name: "出生",
label: "出生", label: "出生",
}, },
@ -639,40 +640,7 @@ const camerali = reactive({
name: "", name: "",
}); });
const tableMain = reactive({ const tableMain = reactive({
data: [ data: [],
{
date: "1",
xs: "1",
},
{
date: "2",
xs: "0",
},
{
date: "1",
xs: "1",
},
{
date: "2",
xs: "0",
},
{
date: "1",
xs: "1",
},
{
date: "2",
xs: "0",
},
{
date: "1",
xs: "1",
},
{
date: "2",
xs: "0",
},
],
columns: [ columns: [
{ {
label: "服务内容", label: "服务内容",
@ -1132,15 +1100,13 @@ const visitRecords = () => {
}); });
}; };
// //
const showFw = ref(false); const getFw = async() => {
const getFw = () => { await http
http
.get( .get(
`/api/ggfwyth/pg/fwjgqdxq?sfzhm=${routers.query.identNo}&xh=${routers.query.xh}` `/api/ggfwyth/pg/fwjgqdxq?sfzhm=${routers.query.identNo}&xh=${routers.query.xh}`
) )
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
showFw.value = true;
// tableType.data = res.data; // tableType.data = res.data;
// tableType.name = data.name; // tableType.name = data.name;
// tableType.typeId = routers.query.id; // 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 = () => { const openCamera = () => {
@ -1212,6 +1217,7 @@ const back = () => {
watch( watch(
() => props.message, () => props.message,
(newValue, oldValue) => { (newValue, oldValue) => {
showFw.value = true;
errorMessage.value = ""; errorMessage.value = "";
// identNo.value = props.message.identNo; // identNo.value = props.message.identNo;
dataMyTag.identNo = props.message.identNo; dataMyTag.identNo = props.message.identNo;
@ -1221,10 +1227,13 @@ watch(
onClickTag2("出生", "出生"); onClickTag2("出生", "出生");
jump.value = "map"; jump.value = "map";
getshs(); getshs();
getFw2(props.message.identNo);
} }
); );
onMounted(() => { onMounted(() => {
if (routers.query.type) { if (routers.query.type) {
showFw.value = true;
errorMessage.value = ""; errorMessage.value = "";
dataMyTag.identNo = routers.query.identNo; dataMyTag.identNo = routers.query.identNo;
jump.value = "detail"; jump.value = "detail";
@ -1234,6 +1243,7 @@ onMounted(() => {
onClickTag2("出生", "出生"); onClickTag2("出生", "出生");
getshs(); getshs();
getFw(); getFw();
} else { } else {
jump.value = "map"; jump.value = "map";
} }