no message
This commit is contained in:
parent
c34602655f
commit
dc4d8f9b1b
@ -90,7 +90,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<button
|
||||
v-if="fromChat"
|
||||
v-if="fromChat && isExecutor(i)"
|
||||
class="action-btn send-btn"
|
||||
:class="{ loading: sendingFollowUp }"
|
||||
:disabled="sendingFollowUp"
|
||||
@ -240,6 +240,12 @@ function getUserId() {
|
||||
return doctorInfo.value?.userid || "";
|
||||
}
|
||||
|
||||
function isExecutor(todo) {
|
||||
const currentUserId = getUserId();
|
||||
const executorUserId = String(todo?.executorUserId || "");
|
||||
return currentUserId && executorUserId && currentUserId === executorUserId;
|
||||
}
|
||||
|
||||
function getCorpId() {
|
||||
const team = uni.getStorageSync("ykt_case_current_team") || {};
|
||||
return team.corpId || doctorInfo.value?.corpId || "";
|
||||
@ -350,7 +356,6 @@ function eventTypeLabel(eventType) {
|
||||
}
|
||||
|
||||
function resolveUserName(userId) {
|
||||
const id = String(userId || "");
|
||||
if (!id) return "";
|
||||
const map = userNameMap.value || {};
|
||||
return String(map[id] || "") || id;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user