版本更新
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
This commit is contained in:
parent
7d9f7c43db
commit
771ee22d41
@ -9,6 +9,8 @@ export interface MailData {
|
||||
mail_id?: number;
|
||||
title: string;
|
||||
content: string;
|
||||
title_en: string;
|
||||
content_en: string;
|
||||
items : string;
|
||||
start_time: number;
|
||||
end_time: number;
|
||||
|
||||
@ -9,6 +9,7 @@ export interface UserData {
|
||||
}
|
||||
export interface UserListParam {
|
||||
Id: number;
|
||||
Uid?: number;
|
||||
ServerId: number;
|
||||
pageSize: number;
|
||||
currentPage: number;
|
||||
|
||||
@ -35,6 +35,22 @@ const [Form, FormApi] = useVbenForm({
|
||||
},
|
||||
rules: "required",
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'TitleEN',
|
||||
label: '英文邮件标题',
|
||||
rules: "required",
|
||||
},
|
||||
{
|
||||
component: 'Textarea',
|
||||
fieldName: 'ContentEN',
|
||||
label: '英文邮件内容',
|
||||
componentProps: {
|
||||
type: 'textarea',
|
||||
rows: 8,
|
||||
},
|
||||
rules: "required",
|
||||
},
|
||||
{
|
||||
component: 'Textarea',
|
||||
fieldName: 'Items',
|
||||
@ -103,7 +119,7 @@ const [Form, FormApi] = useVbenForm({
|
||||
},
|
||||
dependencies: {
|
||||
componentProps(values) {
|
||||
if(values.mail_type === 2) {
|
||||
if(values.send_type === 2) {
|
||||
return {
|
||||
disabled: false,
|
||||
rules: "required",
|
||||
@ -113,7 +129,7 @@ const [Form, FormApi] = useVbenForm({
|
||||
disabled: true,
|
||||
}
|
||||
},
|
||||
triggerFields: ['mail_type'],
|
||||
triggerFields: ['send_type'],
|
||||
},
|
||||
},
|
||||
],
|
||||
@ -126,6 +142,8 @@ const [Modal, modalApi] = useVbenModal({
|
||||
FormApi.setValues({
|
||||
Title: modalData.title,
|
||||
Content: modalData.content,
|
||||
TitleEN: modalData.title_en,
|
||||
ContentEN: modalData.content_en,
|
||||
Items: modalData.items,
|
||||
start_time: 0 ,
|
||||
register_time: modalData.register_time ,
|
||||
@ -143,6 +161,16 @@ const [Modal, modalApi] = useVbenModal({
|
||||
disabled: true,
|
||||
fieldName: 'Content',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
disabled: true,
|
||||
fieldName: 'TitleEN',
|
||||
},
|
||||
{
|
||||
component: 'Textarea',
|
||||
disabled: true,
|
||||
fieldName: 'ContentEN',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
disabled: true,
|
||||
|
||||
@ -37,6 +37,22 @@ const [Form, FormApi] = useVbenForm({
|
||||
},
|
||||
rules: "required",
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'TitleEN',
|
||||
label: '英文邮件标题',
|
||||
rules: "required",
|
||||
},
|
||||
{
|
||||
component: 'Textarea',
|
||||
fieldName: 'ContentEN',
|
||||
label: '英文邮件内容',
|
||||
componentProps: {
|
||||
type: 'textarea',
|
||||
rows: 8,
|
||||
},
|
||||
rules: "required",
|
||||
},
|
||||
{
|
||||
component: 'Textarea',
|
||||
fieldName: 'Items',
|
||||
@ -133,6 +149,8 @@ const [Modal, modalApi] = useVbenModal({
|
||||
const send_type = values.send_type;
|
||||
const Title = values.Title;
|
||||
const Content = values.Content;
|
||||
const TitleEN = values.TitleEN;
|
||||
const ContentEN = values.ContentEN;
|
||||
const Items = values.Items;
|
||||
const ToUids = values.ToUids;
|
||||
const modalData = modalApi.getData();
|
||||
@ -148,6 +166,8 @@ const [Modal, modalApi] = useVbenModal({
|
||||
register_time:register_time,
|
||||
mail_type:mail_type,
|
||||
send_type:send_type,
|
||||
title_en:TitleEN,
|
||||
content_en:ContentEN,
|
||||
}
|
||||
await addMailApi(param);
|
||||
modalApi.close();
|
||||
|
||||
@ -90,7 +90,7 @@ const formOptions: VbenFormProps = {
|
||||
submitOnChange: false,
|
||||
// 按下回车时是否提交表单
|
||||
submitOnEnter: false,
|
||||
wrapperClass: 'grid-cols-1 md:grid-cols-4',
|
||||
wrapperClass: 'grid-cols-1 md:grid-cols-5',
|
||||
}
|
||||
const gridOptions: VxeGridProps<RowType> = {
|
||||
columns: [
|
||||
|
||||
@ -55,6 +55,7 @@ const formOptions: VbenFormProps = {
|
||||
fieldName: 'ServerId',
|
||||
},
|
||||
]);
|
||||
GridApi.formApi.setValues({ ServerId: 1 });
|
||||
},
|
||||
filterOption: true,
|
||||
options: [
|
||||
@ -79,6 +80,19 @@ const formOptions: VbenFormProps = {
|
||||
},
|
||||
fieldName: 'ServerId',
|
||||
label: 'ServerId:',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
componentProps: {
|
||||
filterOption: true,
|
||||
options: [
|
||||
|
||||
],
|
||||
placeholder: '请选择',
|
||||
showSearch: true,
|
||||
},
|
||||
fieldName: 'Uid',
|
||||
label: 'Uid:',
|
||||
}
|
||||
],
|
||||
// 控制表单是否显示折叠按钮
|
||||
@ -86,8 +100,9 @@ const formOptions: VbenFormProps = {
|
||||
submitButtonOptions: {
|
||||
content: '查询',
|
||||
},
|
||||
wrapperClass: 'grid-cols-1 md:grid-cols-5',
|
||||
// 是否在字段值改变时提交表单
|
||||
submitOnChange: false,
|
||||
submitOnChange: true,
|
||||
// 按下回车时是否提交表单
|
||||
submitOnEnter: false,
|
||||
}
|
||||
@ -96,6 +111,7 @@ const gridEvents: VxeGridListeners<RowType> = {
|
||||
const value = await GridApi.formApi.getValues();
|
||||
userModalApi.setData({ uid: row.Uid, AppId: value.AppId, ServerId: value.ServerId });
|
||||
userModalApi.open();
|
||||
await navigator.clipboard.writeText(row.Uid.toString());
|
||||
},
|
||||
};
|
||||
|
||||
@ -132,7 +148,8 @@ const gridOptions: VxeGridProps<RowType> = {
|
||||
query: async ({ page }, formValues) => {
|
||||
let Id = parseInt(formValues.AppId, 10);
|
||||
let ServerId = parseInt(formValues.ServerId, 10);
|
||||
let r = await getUserListApi({ Id: Id, ServerId:ServerId, pageSize: page.pageSize, currentPage: page.currentPage });
|
||||
let Uid = parseInt(formValues.Uid, 10);
|
||||
let r = await getUserListApi({ Id: Id, ServerId:ServerId, pageSize: page.pageSize, currentPage: page.currentPage, Uid: Uid });
|
||||
return r;
|
||||
},
|
||||
},
|
||||
@ -205,4 +222,4 @@ function getTagColor(online: string): string {
|
||||
.broder-bottom-1 {
|
||||
border-bottom: 0.5px solid rgb(136, 134, 134);
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user