This commit is contained in:
duanxiaohai 2024-09-14 17:29:45 +08:00
parent 8f3d1e468c
commit 2fa3a4ad09
1 changed files with 45 additions and 42 deletions

View File

@ -41,17 +41,14 @@
</div> </div>
<div style="width: 100%; height: calc(100% - 110px)" class="table-els"> <div style="width: 100%; height: calc(100% - 110px)" class="table-els">
<div class="tabelHead"> <div class="tabelHead">
<div><span>姓名</span>{{data.xq.xm }}</div> <div><span>姓名</span>{{ data.xq.xm }}</div>
<div><span>地址</span>{{ data.xq.dz }}</div> <div><span>地址</span>{{ data.xq.dz }}</div>
<div><span>年龄</span>{{data.xq.nl }}</div> <div><span>年龄</span>{{ data.xq.nl }}</div>
<div><span>标签</span>{{ data.xq.bq }}</div> <div><span>标签</span>{{ data.xq.bq }}</div>
<div class="status"> <div class="status">
<div class="statusMessage"> <div class="statusMessage">
<span>状态</span> <span>状态</span>
<img <img :src="lampImages[data.xq.deng]" @click="escalation" />
:src="lampImages[data.xq.deng]"
@click="escalation"
/>
</div> </div>
<div class="lampMessage">(工作日早上8:30自动推送浙政钉)</div> <div class="lampMessage">(工作日早上8:30自动推送浙政钉)</div>
<div class="lampBox" v-if="clicked"> <div class="lampBox" v-if="clicked">
@ -81,9 +78,11 @@
<template #default="scope"> <template #default="scope">
<!-- 状态 --> <!-- 状态 -->
<div v-if="item.property == 'deng'"> <div v-if="item.property == 'deng'">
<div v-if="scope.row.deng == 1" class="progressGreen"></div> <div v-if="scope.row.deng == 1" class="progressGreen"></div>
<div v-if="scope.row.deng == 2" class="progressYellow"></div> <div
v-if="scope.row.deng == 2"
class="progressYellow"
></div>
<!-- <div v-for="index in 3" :key="index"> <!-- <div v-for="index in 3" :key="index">
<img <img
style="width: 30px; height: 30px" style="width: 30px; height: 30px"
@ -111,7 +110,6 @@
</template> </template>
</el-table> </el-table>
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -197,16 +195,16 @@ const handleRowClick = (row, column, event) => {
const clicked = ref(false); const clicked = ref(false);
const lampBox = ref(null); const lampBox = ref(null);
const escalation = () => { const escalation = () => {
if (data.character.deng !== 0) { if (data.xq.deng !== 0) {
clicked.value = true; clicked.value = true;
} }
console.log(clicked.value); console.log(clicked.value);
}; };
const confirmEvent = () => { const confirmEvent = () => {
console.log("confirm!", data.character); console.log("confirm!", data);
let ReportedDto = { let ReportedDto = {
sfzhm: data.tableData.xq.sfzhm, sfzhm: data.xq.sfzhm,
type: data.tableType.typeId, type: data.tableType.typeId,
}; };
http.post(`/api/ggfwyth/pg/reported`, ReportedDto).then((res) => { http.post(`/api/ggfwyth/pg/reported`, ReportedDto).then((res) => {
@ -234,7 +232,7 @@ const data = reactive({
typeId: "", typeId: "",
columns: [], columns: [],
tableData: [], tableData: [],
xq:{}, xq: {},
// pagination: {}, // pagination: {},
}); });
// 使 // 使
@ -257,35 +255,42 @@ watch(
(newVal, oldVal) => { (newVal, oldVal) => {
console.log(11111111); console.log(11111111);
dialogShow.value = newVal; dialogShow.value = newVal;
if(props.dialogShow==true){ if (props.dialogShow == true) {
console.log(333); console.log(333);
console.log(props.tableData); console.log(props.tableData);
data.xq=props.tableData.data.xq; data.xq = props.tableData.data.xq;
// data.tableData=props.tableData.data; // data.tableData=props.tableData.data;
data.title=props.tableData.title; data.title = props.tableData.title;
data.columns=props.tableData.columns; data.columns = props.tableData.columns;
if(props.tableData.data.wxs.length>0){ data.tableData.length = [];
props.tableData.data.wxs.forEach((item,index)=>{ if (props.tableData.data.wxs.length > 0) {
let obj={ props.tableData.data.wxs.forEach((item, index) => {
deng:2, let obj = {
fwsx:item.fwsx, deng: 2,
} fwsx: item.fwsx,
data.tableData.push(obj); };
}) data.tableData.push(obj);
} });
}
if(props.tableData.data.ysx.length>0){ data.tableData.length = [];
console.log(444); if (props.tableData.data.ysx.length > 0) {
console.log(444);
props.tableData.data.ysx.forEach((item,index)=>{
let obj={
deng:1,
fwsx:item.fwsx,
}
data.tableData.push(obj);
})
}
props.tableData.data.ysx.forEach((item, index) => {
let obj = {
deng: 1,
fwsx: item.fwsx,
};
data.tableData.push(obj);
});
}
data.tableData= data.tableData.map((item,index1) => {
return {
...item,
index: index1 +1,
};
});
console.log(data.tableData,56565);
} }
// data.tableData = props.tableData; // data.tableData = props.tableData;
@ -295,7 +300,6 @@ watch(
watch( watch(
() => props.tableData, () => props.tableData,
(newVal, oldVal) => { (newVal, oldVal) => {
// data.tableData = props.tableData; // data.tableData = props.tableData;
// console.log("1", data); // console.log("1", data);
} }
@ -318,7 +322,6 @@ onMounted(() => {
// console.log("3", data); // console.log("3", data);
// }); // });
const closeDialog = () => { const closeDialog = () => {
dialogShow.value = false; dialogShow.value = false;
clicked.value = false; clicked.value = false;