mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 17:54:32 +08:00
修复任务管理创建视图 placeholder,更新 npm 包
This commit is contained in:
@@ -115,7 +115,7 @@ const ViewCreateModal = ({
|
||||
const OperationElement = ({ name }: { name: number }) => {
|
||||
const property = form.getFieldValue(['filters', name, 'property']);
|
||||
return (
|
||||
<Select style={{ width: 120 }}>
|
||||
<Select style={{ width: 120 }} placeholder={intl.get('请选择操作符')}>
|
||||
{OPERATIONS.filter((x) =>
|
||||
STATUS_MAP[property as 'status' | 'sub_id'] ? x.type === 'select' : x,
|
||||
).map((x) => (
|
||||
@@ -140,7 +140,7 @@ const ViewCreateModal = ({
|
||||
};
|
||||
|
||||
const typeElement = (
|
||||
<Select style={{ width: 80 }} placeholder={intl.get('请选择操作符')}>
|
||||
<Select style={{ width: 80 }}>
|
||||
{SORTTYPES.map((x) => (
|
||||
<Select.Option key={x.name} value={x.value}>
|
||||
{x.name}
|
||||
@@ -261,7 +261,9 @@ const ViewCreateModal = ({
|
||||
<Form.Item
|
||||
{...restField}
|
||||
name={[name, 'operation']}
|
||||
rules={[{ required: true, message: intl.get('请选择操作符') }]}
|
||||
rules={[
|
||||
{ required: true, message: intl.get('请选择操作符') },
|
||||
]}
|
||||
>
|
||||
<OperationElement name={name} />
|
||||
</Form.Item>
|
||||
|
||||
@@ -10,10 +10,12 @@ const { Link } = Typography;
|
||||
enum TVersion {
|
||||
'develop' = '开发版',
|
||||
'master' = '正式版',
|
||||
'debian' = '正式版'
|
||||
'debian' = '正式版',
|
||||
}
|
||||
|
||||
const About = ({ systemInfo }: { systemInfo: SharedContext['systemInfo'] }) => {
|
||||
const version = TVersion[systemInfo.branch] || '正式版';
|
||||
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<img
|
||||
@@ -30,7 +32,7 @@ const About = ({ systemInfo }: { systemInfo: SharedContext['systemInfo'] }) => {
|
||||
</span>
|
||||
<Descriptions>
|
||||
<Descriptions.Item label={intl.get('版本')} span={3}>
|
||||
{intl.get(TVersion[systemInfo.branch])} v{systemInfo.version}
|
||||
{intl.get(version)} v{systemInfo.version}
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label={intl.get('更新时间')} span={3}>
|
||||
{dayjs(systemInfo.publishTime * 1000).format('YYYY-MM-DD HH:mm')}
|
||||
|
||||
Reference in New Issue
Block a user