fix(price-trigger): SMS-only in admin price trigger editor
Remove email action from form and always show sms in the table column. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -35,13 +35,6 @@
|
||||
<BasicInput v-model:value="form.target_price" type="price" addon-before="ریال" placeholder="مثلاً ۱۷۸۵۰۰۰۰۰" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item label="روش اطلاعرسانی" name="action" :rules="inputRules()">
|
||||
<a-radio-group v-model:value="form.action" button-style="solid">
|
||||
<a-radio-button value="sms">پیامک</a-radio-button>
|
||||
<a-radio-button value="email">ایمیل</a-radio-button>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item label="وضعیت" name="is_active">
|
||||
<a-switch v-model:checked="form.is_active" checked-children="فعال" un-checked-children="غیرفعال" />
|
||||
</a-form-item>
|
||||
|
||||
@@ -223,7 +223,7 @@ export const cols: BaseTableColumn[] = [
|
||||
title: 'روش ارسال',
|
||||
dataIndex: 'action',
|
||||
key: 'notify_action',
|
||||
customRender: ({ record }) => (record.action === 'email' ? 'ایمیل' : 'پیامک'),
|
||||
customRender: ({ record }) => 'پیامک',
|
||||
},
|
||||
{
|
||||
title: 'عملیات',
|
||||
|
||||
Reference in New Issue
Block a user