This commit is contained in:
parent
2c26069b8e
commit
1627c2c304
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
}
|
||||
};
|
||||
// 状态弹框关闭
|
||||
|
@ -519,8 +517,12 @@ const getTable1 = (pagination) => {
|
|||
http.get(`${pagination.url}?sfzhm=${data.identNo}`).then((res) => {
|
||||
if (res.code == 200) {
|
||||
tableType.data = res.data;
|
||||
tableType.typeId = routers.query.id;
|
||||
tableType.typeId = routers.query.id;
|
||||
dialogShow.value = true;
|
||||
}else{
|
||||
ElMessage.warning({
|
||||
message: res.message,
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue