This commit is contained in:
姚宇浩 2024-09-14 17:29:15 +08:00
parent 2c26069b8e
commit 1627c2c304
2 changed files with 15 additions and 10 deletions

View File

@ -189,7 +189,7 @@ 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);
@ -198,8 +198,8 @@ const escalation = () => {
const confirmEvent = () => { const confirmEvent = () => {
console.log("confirm!", data.character); console.log("confirm!", data.character);
let ReportedDto = { let ReportedDto = {
sfzhm: data.tableData.xq.sfzhm, sfzhm: data.sfzhm,
type: data.tableType.typeId, type: data.typeId,
}; };
http.post(`/api/ggfwyth/pg/reported`, ReportedDto).then((res) => { http.post(`/api/ggfwyth/pg/reported`, ReportedDto).then((res) => {
if (res.code == 200) { if (res.code == 200) {
@ -226,11 +226,14 @@ const data = reactive({
columns: [], columns: [],
tableData: [], tableData: [],
xq:{}, xq:{},
typeId:'',
sfzhm:''
// pagination: {}, // pagination: {},
}); });
// 使 // 使
const lampImages = { const lampImages = {
1: lamp1, 0:lamp1,
1: lamp3,
2: lamp2, 2: lamp2,
3: lamp3, 3: lamp3,
4: lamp4, 4: lamp4,
@ -246,12 +249,12 @@ const gridData = [];
watch( watch(
() => props.dialogShow, () => props.dialogShow,
(newVal, oldVal) => { (newVal, oldVal) => {
console.log(11111111);
dialogShow.value = newVal; dialogShow.value = newVal;
if(props.dialogShow==true){ if(props.dialogShow==true){
console.log(333);
console.log(props.tableData); console.log(props.tableData);
data.xq=props.tableData.data.xq; data.xq=props.tableData.data.xq;
data.typeId=props.tableData.typeId;
data.sfzhm=props.tableData.data.xq.sfzhm;
// 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;

View File

@ -169,7 +169,7 @@
style="width: 30px; height: 30px" style="width: 30px; height: 30px"
v-if="scope.row.deng == 0" v-if="scope.row.deng == 0"
:src="lampImages[1]" :src="lampImages[1]"
@click="statusDetails(scope.row)"
/> />
<img <img
style="width: 30px; height: 30px" style="width: 30px; height: 30px"
@ -422,7 +422,6 @@ const tableType = reactive({
{ {
label: "服务内容", label: "服务内容",
property: "fwsx", property: "fwsx",
}, },
{ {
label: "结果", label: "结果",
@ -471,7 +470,6 @@ const statusDetails = (val) => {
}); });
} else { } else {
getTable1(tableType); getTable1(tableType);
} }
}; };
// //
@ -521,6 +519,10 @@ const getTable1 = (pagination) => {
tableType.data = res.data; tableType.data = res.data;
tableType.typeId = routers.query.id; tableType.typeId = routers.query.id;
dialogShow.value = true; dialogShow.value = true;
}else{
ElMessage.warning({
message: res.message,
});
} }
}); });
}; };