mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 09:13:49 +08:00
fix: 固定按钮防止错位
This commit is contained in:
@@ -53,7 +53,7 @@ func RegisterRules(v *validator.Validate) error {
|
||||
}
|
||||
if err := v.RegisterTranslation("password", *app.Translator,
|
||||
func(ut ut.Translator) error {
|
||||
return ut.Add("password", "密码不满足要求(8-20位,至少包含大小写字母、数字、特殊字符中的两种)", true)
|
||||
return ut.Add("password", "密码不满足要求(8-20位,至少包含字母、数字、特殊字符中的两种)", true)
|
||||
},
|
||||
func(ut ut.Translator, fe validator.FieldError) string {
|
||||
t, _ := ut.T("password")
|
||||
|
||||
@@ -54,7 +54,7 @@ const columns: any = [
|
||||
{
|
||||
title: t('appIndex.columns.actions'),
|
||||
key: 'actions',
|
||||
minWidth: 280,
|
||||
width: 280,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
@@ -70,7 +70,7 @@ const jailsColumns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
minWidth: 280,
|
||||
width: 280,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
@@ -134,7 +134,7 @@ const banedIPColumns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
minWidth: 100,
|
||||
width: 100,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
@@ -41,7 +41,7 @@ const extensionColumns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
minWidth: 240,
|
||||
width: 240,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
@@ -59,7 +59,7 @@ const userColumns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
minWidth: 240,
|
||||
width: 240,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
@@ -72,7 +72,7 @@ const processColumns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
minWidth: 200,
|
||||
width: 200,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
@@ -37,7 +37,7 @@ const columns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
minWidth: 240,
|
||||
width: 240,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
@@ -71,7 +71,7 @@ const processColumns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
minWidth: 500,
|
||||
width: 500,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
@@ -38,7 +38,7 @@ const columns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
minWidth: 200,
|
||||
width: 200,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
@@ -77,7 +77,7 @@ const accountColumns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
minWidth: 200,
|
||||
width: 200,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
@@ -168,7 +168,7 @@ const certColumns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
minWidth: 350,
|
||||
width: 350,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
resizable: true,
|
||||
|
||||
@@ -75,7 +75,7 @@ const dnsColumns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
minWidth: 200,
|
||||
width: 200,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
@@ -77,7 +77,7 @@ const columns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
minWidth: 250,
|
||||
width: 250,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
@@ -70,7 +70,7 @@ const columns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
minWidth: 120,
|
||||
width: 120,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
@@ -109,7 +109,7 @@ const columns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
minWidth: 120,
|
||||
width: 120,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
@@ -63,7 +63,7 @@ const columns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
minWidth: 120,
|
||||
width: 120,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
@@ -111,7 +111,7 @@ const columns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
minWidth: 280,
|
||||
width: 280,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
@@ -106,7 +106,7 @@ const columns: DataTableColumns<RowData> = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'action',
|
||||
minWidth: 340,
|
||||
width: 340,
|
||||
render(row) {
|
||||
return h(
|
||||
NSpace,
|
||||
|
||||
@@ -408,13 +408,13 @@ const net = ref<any>({
|
||||
]
|
||||
})
|
||||
|
||||
const getData = async () => {
|
||||
const fetchData = async () => {
|
||||
monitor.list(start.value, end.value).then((res) => {
|
||||
data.value = res.data
|
||||
})
|
||||
}
|
||||
|
||||
const getSetting = async () => {
|
||||
const fetchSetting = async () => {
|
||||
monitor.setting().then((res) => {
|
||||
monitorSwitch.value = res.data.enabled
|
||||
saveDay.value = res.data.days
|
||||
@@ -459,12 +459,12 @@ watch([start, end], () => {
|
||||
window.$message.error('开始时间不能大于结束时间')
|
||||
return
|
||||
}
|
||||
getData()
|
||||
fetchData()
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
getSetting()
|
||||
getData()
|
||||
fetchSetting()
|
||||
fetchData()
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
@@ -129,8 +129,8 @@ const columns: any = [
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
width: 150,
|
||||
align: 'center',
|
||||
minWidth: 150,
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
return [
|
||||
|
||||
@@ -59,7 +59,7 @@ const columns: any = [
|
||||
{
|
||||
title: t('taskIndex.columns.actions'),
|
||||
key: 'actions',
|
||||
minWidth: 200,
|
||||
width: 200,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
@@ -86,7 +86,7 @@ const columns: any = [
|
||||
{
|
||||
title: t('websiteIndex.columns.actions'),
|
||||
key: 'actions',
|
||||
minWidth: 280,
|
||||
width: 220,
|
||||
align: 'center',
|
||||
hideInExcel: true,
|
||||
render(row: any) {
|
||||
|
||||
Reference in New Issue
Block a user