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