update
init
This commit is contained in:
@@ -0,0 +1,209 @@
|
||||
import { BasicColumn } from '/@/components/Table';
|
||||
import { FormSchema } from '/@/components/Table';
|
||||
export const columns: BasicColumn[] = [
|
||||
{
|
||||
title: 'APP名称',
|
||||
dataIndex: 'appName',
|
||||
},
|
||||
{
|
||||
title: '包名',
|
||||
dataIndex: 'packageName',
|
||||
},
|
||||
{
|
||||
title: '描述',
|
||||
dataIndex: 'description',
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
dataIndex: 'createTime',
|
||||
},
|
||||
];
|
||||
|
||||
export const recycleBincolumns: BasicColumn[] = [
|
||||
{
|
||||
title: 'APP名称',
|
||||
dataIndex: 'appName',
|
||||
},
|
||||
{
|
||||
title: '包名',
|
||||
dataIndex: 'packageName',
|
||||
},
|
||||
{
|
||||
title: '描述',
|
||||
dataIndex: 'description',
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
dataIndex: 'createTime',
|
||||
},
|
||||
];
|
||||
|
||||
export const searchFormSchema: FormSchema[] = [
|
||||
{
|
||||
label: 'APP名称',
|
||||
field: 'appName',
|
||||
component: 'Input',
|
||||
colProps: { span: 6 },
|
||||
},
|
||||
];
|
||||
|
||||
export const formSchema: FormSchema[] = [
|
||||
{
|
||||
label: '',
|
||||
field: 'id',
|
||||
component: 'Input',
|
||||
show: false,
|
||||
},
|
||||
{
|
||||
label: 'APP名称',
|
||||
field: 'appName',
|
||||
required: true,
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '包名',
|
||||
field: 'packageName',
|
||||
required: true,
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '描述',
|
||||
field: 'description',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '创建人',
|
||||
field: 'createBy',
|
||||
component: 'Input',
|
||||
},
|
||||
];
|
||||
|
||||
export const dictItemColumns: BasicColumn[] = [
|
||||
{
|
||||
title: '版本名称',
|
||||
dataIndex: 'versionName',
|
||||
},
|
||||
{
|
||||
title: '系统类型',
|
||||
dataIndex: 'deviceType_dictText',
|
||||
},
|
||||
{
|
||||
title: '版本号',
|
||||
dataIndex: 'versionNo',
|
||||
},
|
||||
{
|
||||
title: '更新时间',
|
||||
dataIndex: 'updateTime',
|
||||
},
|
||||
];
|
||||
|
||||
export const dictItemSearchFormSchema: FormSchema[] = [
|
||||
{
|
||||
label: '版本名称',
|
||||
field: 'versionName',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '系统类型',
|
||||
field: 'deviceType',
|
||||
component: 'JDictSelectTag',
|
||||
componentProps: {
|
||||
dictCode: 'device_type',
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export const itemFormSchema: FormSchema[] = [
|
||||
{
|
||||
label: '',
|
||||
field: 'id',
|
||||
component: 'Input',
|
||||
show: false,
|
||||
},
|
||||
{
|
||||
label: '版本名称',
|
||||
field: 'versionName',
|
||||
required: true,
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '系统类型',
|
||||
field: 'deviceType',
|
||||
required: true,
|
||||
component: 'JDictSelectTag',
|
||||
componentProps: {
|
||||
dictCode: 'device_type',
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'versionNo',
|
||||
label: '版本号',
|
||||
component: 'InputNumber',
|
||||
componentProps: () => {
|
||||
return {
|
||||
style: {
|
||||
width: '100%',
|
||||
},
|
||||
};
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
field: 'appUrl',
|
||||
label: '上传地址',
|
||||
component: 'JUpload',
|
||||
componentProps: () => {
|
||||
return {
|
||||
maxCount: 1,
|
||||
};
|
||||
},
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
field: 'forced',
|
||||
label: '强制更新',
|
||||
component: 'JDictSelectTag',
|
||||
required: true,
|
||||
componentProps: {
|
||||
type: 'radio',
|
||||
dictCode: 'yes_no',
|
||||
stringToNumber: true,
|
||||
},
|
||||
},
|
||||
// {
|
||||
// field: 'ignoreFlag',
|
||||
// label: '忽略更新',
|
||||
// component: 'JDictSelectTag',
|
||||
// required: true,
|
||||
// componentProps: {
|
||||
// type: 'radio',
|
||||
// dictCode: 'yes_no',
|
||||
// stringToNumber: true,
|
||||
// },
|
||||
// },
|
||||
{
|
||||
field: 'appStatus',
|
||||
label: '是否有效',
|
||||
component: 'JDictSelectTag',
|
||||
required: true,
|
||||
componentProps: {
|
||||
type: 'radio',
|
||||
dictCode: 'yes_no',
|
||||
stringToNumber: true,
|
||||
},
|
||||
},
|
||||
// {
|
||||
// field: 'updateTime',
|
||||
// label: '更新时间',
|
||||
// component: 'DatePicker',
|
||||
// componentProps: {
|
||||
// valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
// },
|
||||
// required: true,
|
||||
// },
|
||||
{
|
||||
field: 'updateContent',
|
||||
label: '更新内容',
|
||||
component: 'InputTextArea',
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user