1.更新im
2.修改bug
This commit is contained in:
2025-07-09 15:18:56 +08:00
parent 308d9ae94e
commit 78141a788f
22 changed files with 168 additions and 368 deletions
@@ -17,7 +17,7 @@
<div
class="adv"
@click="endStatus"
v-if="hrefParams.isSpecialized !== 'expert' && hrefParams.isSpecialized === 'false' && upTabIndex === '0'"
v-if="hrefParams.isSpecialized !== 'expert' && hrefParams.isSpecialized === 'false' && upTabIndex === '0' && isEnd()"
>
<!-- 应急详情-->
结束应急
@@ -256,6 +256,23 @@
data.otherTypingStatus = 0;
}, 5000);
function isEnd() {
// @ts-ignore
if (data.conversation?.lastMessage?.payload?.data) {
try {
// @ts-ignore
let j = JSON.parse((data.conversation?.lastMessage || {})?.payload?.data);
if (j?.businessID === 'system' && j?.title === '应急单' && j?.type == '1' && j?.content === '该应急单已结束') {
return false;
}
} catch (e) {
console.log(e);
}
}
return true;
}
return {
...toRefs(data),
conversationID,
@@ -274,6 +291,8 @@
forHelp,
endStatus,
bigInformation,
data,
isEnd,
};
},
});