This commit is contained in:
duanxiaohai 2024-09-23 10:29:04 +08:00
parent 7e481c87c9
commit ef0ec678aa
1 changed files with 19 additions and 14 deletions

View File

@ -151,7 +151,10 @@
<template #default="scope"> <template #default="scope">
<!-- 姓名 --> <!-- 姓名 -->
<div v-if="item.property == 'xm'"> <div v-if="item.property == 'xm'">
<div> <div
style="cursor: pointer"
@click="handleRowClick(scope.row)"
>
{{ scope.row.xm }} {{ scope.row.xm }}
</div> </div>
</div> </div>
@ -166,19 +169,19 @@
/> />
</div> --> </div> -->
<img <img
style="width: 30px; height: 30px;cursor: pointer;" style="width: 30px; height: 30px; cursor: pointer"
v-if="scope.row.deng == 0" v-if="scope.row.deng == 0"
:src="lampImages[1]" :src="lampImages[1]"
@click="statusDetails(scope.row)" @click="statusDetails(scope.row)"
/> />
<img <img
style="width: 30px; height: 30px;cursor: pointer;" style="width: 30px; height: 30px; cursor: pointer"
v-if="scope.row.deng == 1" v-if="scope.row.deng == 1"
:src="lampImages[3]" :src="lampImages[3]"
@click="statusDetails(scope.row)" @click="statusDetails(scope.row)"
/> />
<img <img
style="width: 30px; height: 30px;cursor: pointer;" style="width: 30px; height: 30px; cursor: pointer"
v-if="scope.row.deng == 2" v-if="scope.row.deng == 2"
:src="lampImages[2]" :src="lampImages[2]"
@click="statusDetails(scope.row)" @click="statusDetails(scope.row)"
@ -514,17 +517,19 @@ const getTable = (pagination) => {
}); });
}; };
const getTable1 = (pagination) => { const getTable1 = (pagination) => {
http.get(`${pagination.url}?sfzhm=${data.identNo}&xh=${routers.query.xh}`).then((res) => { http
if (res.code == 200) { .get(`${pagination.url}?sfzhm=${data.identNo}&xh=${routers.query.xh}`)
tableType.data = res.data; .then((res) => {
tableType.typeId = routers.query.id; if (res.code == 200) {
dialogShow.value = true; tableType.data = res.data;
}else{ tableType.typeId = routers.query.id;
ElMessage.warning({ dialogShow.value = true;
message: res.message, } else {
ElMessage.warning({
message: res.message,
});
}
}); });
}
});
}; };
/** /**