added table of co-worker

This commit is contained in:
2026-08-16 20:27:13 +03:30
parent 609f6b2fa3
commit f192d3e171
3 changed files with 17 additions and 58 deletions
+5 -17
View File
@@ -28,9 +28,7 @@
show-icon
message="ارسال ۱۰تایی انجام می‌شود. تا پایان کار پنل را نبندید و صفحه را رفرش نکنید."
/>
<div class="sms-editor-scroll">
<SmsEditorFormBody ref="smsEditorRef" :form="form" :group-items="groupItems" :loading="loading" />
</div>
<SmsEditorFormBody ref="smsEditorRef" :form="form" :group-items="groupItems" :loading="loading" />
</BasicActionSheet>
</div>
</template>
@@ -60,8 +58,7 @@ const sendStore = useGroupSmsSendStore()
const form = ref<Sms>({
message: '',
numbers: [],
single: []
numbers: []
})
const addSMSVisible = ref<boolean>(false)
@@ -115,8 +112,7 @@ async function add() {
function resetData() {
form.value = {
message: '',
numbers: [],
single: []
numbers: []
}
smsEditorRef.value?.resetAll?.()
}
@@ -132,9 +128,9 @@ function ok() {
}
smsEditorRef.value?.validateFields?.().then(async () => {
const numbers = uniqueNumbers([...(form.value.numbers ?? []), ...(form.value.single ?? [])])
const numbers = uniqueNumbers([...(form.value.numbers ?? [])])
if (!numbers.length) {
message.warning('حداقل یک شماره انتخاب کنید')
message.warning('حداقل یک مشتری از لیست انتخاب کنید')
return
}
if (!form.value.message?.trim()) {
@@ -149,11 +145,3 @@ function ok() {
})
}
</script>
<style scoped>
.sms-editor-scroll {
max-height: min(62vh, 560px);
overflow-y: auto;
padding-inline-end: 4px;
}
</style>