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

View File

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