| | |
| | | cancelButtonText: t('common.cancel'), |
| | | type: 'warning' |
| | | }) |
| | | }, |
| | | // 启用窗体 |
| | | enableConfirm(ids, content?: string, tip?: string) { |
| | | return ElMessageBox.confirm( |
| | | content ? content : t('确定启用选中的'+ ids.length +'项数据?'), |
| | | tip ? tip : t('common.confirmTitle'), |
| | | { |
| | | confirmButtonText: t('common.ok'), |
| | | cancelButtonText: t('common.cancel'), |
| | | type: 'warning' |
| | | } |
| | | ) |
| | | }, |
| | | // 禁用窗体 |
| | | disableConfirm(ids, content?: string, tip?: string) { |
| | | return ElMessageBox.confirm( |
| | | content ? content : t('确定禁用选中的'+ ids.length +'项数据?'), |
| | | tip ? tip : t('common.confirmTitle'), |
| | | { |
| | | confirmButtonText: t('common.ok'), |
| | | cancelButtonText: t('common.cancel'), |
| | | type: 'warning' |
| | | } |
| | | ) |
| | | } |
| | | } |
| | | } |