mirror of
https://github.com/wangdage12/Snap.Server.Web.git
synced 2026-02-17 10:02:08 +08:00
添加公告中的发行版字段
This commit is contained in:
1
.env.production
Normal file
1
.env.production
Normal file
@@ -0,0 +1 @@
|
|||||||
|
VITE_API_BASE_URL = https://htserver.wdg.cloudns.ch/api/
|
||||||
@@ -10,6 +10,7 @@ export interface Announcement {
|
|||||||
MaxPresentVersion: string | null
|
MaxPresentVersion: string | null
|
||||||
Severity: number
|
Severity: number
|
||||||
Title: string
|
Title: string
|
||||||
|
Distribution: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 公告列表响应数据类型 */
|
/** 公告列表响应数据类型 */
|
||||||
@@ -38,6 +39,7 @@ export interface CreateAnnouncementRequest {
|
|||||||
Locale?: string | null
|
Locale?: string | null
|
||||||
MaxPresentVersion?: string | null
|
MaxPresentVersion?: string | null
|
||||||
Severity?: number | null
|
Severity?: number | null
|
||||||
|
Distribution?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 创建公告响应数据类型 */
|
/** 创建公告响应数据类型 */
|
||||||
|
|||||||
@@ -28,6 +28,14 @@
|
|||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column prop="Distribution" label="发行版" width="120">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-tag v-if="row.Distribution" size="small" type="info">
|
||||||
|
{{ row.Distribution }}
|
||||||
|
</el-tag>
|
||||||
|
<span v-else>-</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="Link" label="链接" width="200">
|
<el-table-column prop="Link" label="链接" width="200">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-link
|
<el-link
|
||||||
@@ -175,6 +183,13 @@
|
|||||||
placeholder="可选,最大显示版本号"
|
placeholder="可选,最大显示版本号"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="发行版名称">
|
||||||
|
<el-input
|
||||||
|
v-model="createForm.Distribution"
|
||||||
|
placeholder="可选,用于区分不同发行版,默认为空表示所有发行版"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<template #footer>
|
<template #footer>
|
||||||
@@ -252,6 +267,13 @@
|
|||||||
placeholder="可选,最大显示版本号"
|
placeholder="可选,最大显示版本号"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="发行版名称">
|
||||||
|
<el-input
|
||||||
|
v-model="editForm.Distribution"
|
||||||
|
placeholder="可选,用于区分不同发行版,默认为空表示所有发行版"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<template #footer>
|
<template #footer>
|
||||||
@@ -300,6 +322,7 @@ const createForm = reactive<CreateAnnouncementRequest>({
|
|||||||
Locale: '',
|
Locale: '',
|
||||||
MaxPresentVersion: '',
|
MaxPresentVersion: '',
|
||||||
Severity: 0,
|
Severity: 0,
|
||||||
|
Distribution: '',
|
||||||
})
|
})
|
||||||
|
|
||||||
const editForm = reactive<CreateAnnouncementRequest>({
|
const editForm = reactive<CreateAnnouncementRequest>({
|
||||||
@@ -309,6 +332,7 @@ const editForm = reactive<CreateAnnouncementRequest>({
|
|||||||
Locale: '',
|
Locale: '',
|
||||||
MaxPresentVersion: '',
|
MaxPresentVersion: '',
|
||||||
Severity: 0,
|
Severity: 0,
|
||||||
|
Distribution: '',
|
||||||
})
|
})
|
||||||
|
|
||||||
const createRules: FormRules = {
|
const createRules: FormRules = {
|
||||||
@@ -377,6 +401,7 @@ const handleCreate = () => {
|
|||||||
Locale: '',
|
Locale: '',
|
||||||
MaxPresentVersion: '',
|
MaxPresentVersion: '',
|
||||||
Severity: 0,
|
Severity: 0,
|
||||||
|
Distribution: '',
|
||||||
})
|
})
|
||||||
createDialogVisible.value = true
|
createDialogVisible.value = true
|
||||||
}
|
}
|
||||||
@@ -417,6 +442,7 @@ const handleEdit = (announcement: Announcement) => {
|
|||||||
Locale: announcement.Locale || '',
|
Locale: announcement.Locale || '',
|
||||||
MaxPresentVersion: announcement.MaxPresentVersion || '',
|
MaxPresentVersion: announcement.MaxPresentVersion || '',
|
||||||
Severity: announcement.Severity,
|
Severity: announcement.Severity,
|
||||||
|
Distribution: announcement.Distribution || '',
|
||||||
})
|
})
|
||||||
editDialogVisible.value = true
|
editDialogVisible.value = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user