Bläddra i källkod

fix: en words & logout redirect

hi-cactus! 3 år sedan
förälder
incheckning
ec85af637f

+ 1 - 1
app/containers/Dashboard/components/DashboardItem.tsx

@@ -627,7 +627,7 @@ export class DashboardItem extends React.PureComponent<
         false
       )(Span)
       widgetButton = (
-        <Tooltip title="编辑widget">
+        <Tooltip title="编辑">
           {/* <i className="iconfont icon-edit-2" onClick={this.toWorkbench} /> */}
           <i>
             <EditButton

+ 1 - 1
app/containers/Dashboard/components/DashboardItemForm.tsx

@@ -299,7 +299,7 @@ export class DashboardItemForm extends React.PureComponent<IDashboardItemFormPro
                 )}
               </FormItem>
               <FormItem
-                label="widget别名"
+                label="组件别名"
                 labelCol={{span: 10}}
                 wrapperCol={{span: 14}}
                 className={isShowName}

+ 1 - 1
app/containers/Dashboard/index.tsx

@@ -872,7 +872,7 @@ export class Dashboard extends React.Component<IDashboardProps, IDashboardStates
                     {loop(dashboardData)}
                     </Tree>
                   </div>
-                  : isGrid ? <h3 className={styles.loadingTreeMsg}>Loading tree......</h3> : ''
+                  : isGrid ? <h3 className={styles.loadingTreeMsg}>加载......</h3> : ''
                 }
               </div>
               <div className={styles.gridClass}>

+ 1 - 1
app/containers/DataManagerView/components/CopyModal.tsx

@@ -88,7 +88,7 @@ export class CopyModal extends React.PureComponent<ICopyModalProps> {
 
     return (
       <Modal
-        title="复制 View"
+        title="复制 视图"
         wrapClassName="ant-modal-small"
         visible={visible}
         footer={modalButtons}

+ 1 - 1
app/containers/Display/messages.ts

@@ -8,6 +8,6 @@ import { defineMessages } from 'react-intl'
 export default defineMessages({
   header: {
     id: 'app.containers.Display.header',
-    defaultMessage: 'This is Display container !'
+    defaultMessage: '这是大屏内容!'
   }
 })

+ 1 - 0
app/containers/Main/index.tsx

@@ -91,6 +91,7 @@ export class Main extends React.Component<IMainProps, {}> {
   private logout = () => {
     const { history, oauth2Enabled, onLogout } = this.props
     onLogout()
+    window.location.href = 'http://taihu.xt.wenhq.top:8083'
     if (oauth2Enabled) {
       history.replace(EXTERNAL_LOG_OUT_URL)
     } else {

+ 1 - 1
app/containers/Schedule/components/constants.ts

@@ -47,7 +47,7 @@ export const DefaultSchedulePeriodExpression: {
 export const DefaultMailImageWidth = 1920
 
 export const DefaultEmailContent = getDefaultContent(
-  'This email comes from cron job on the Davinci.'
+  '这封邮件来自数智隧道聚合管理平台数据管理系统的定时任务'
 )
 
 export const FormItemStyle: Partial<FormItemProps> = {

+ 11 - 2
app/containers/Schedule/index.tsx

@@ -146,7 +146,10 @@ const ScheduleList: React.FC<ScheduleListProps> = (props) => {
         title: '类型',
         dataIndex: 'jobType',
         width: 60,
-        align: 'center'
+        align: 'center',
+        render: (data) => (<>
+          {data === 'weChatWork' ? '企业微信' : data === 'email' ? 'Email' : data}
+        </>)
       },
       {
         title: '有效开始时间',
@@ -164,7 +167,13 @@ const ScheduleList: React.FC<ScheduleListProps> = (props) => {
         title: '状态',
         dataIndex: 'jobStatus',
         width: 80,
-        align: 'center'
+        align: 'center',
+        render: (data) => (<>
+          {data === 'new' && '新建'}
+          {data === 'started' && '已启动'}
+          {data === 'stopped' && '已停止'}
+          {data === 'failed' && '失败'}
+        </>)
       }
     ]
   }, [])

+ 1 - 1
app/containers/Source/index.tsx

@@ -516,7 +516,7 @@ export class SourceList extends React.PureComponent<ISourceListProps,
               <Col span={24} className={utilStyles.shortcut}>
                 <Breadcrumb className={utilStyles.breadcrumb}>
                   <Breadcrumb.Item>
-                    <Link to=''>Source</Link>
+                    <Link to=''>数据源</Link>
                   </Breadcrumb.Item>
                 </Breadcrumb>
                 <Link to={`/account/organization/${currentProject.orgId}`}>

+ 2 - 2
app/containers/Widget/components/Workbench/index.tsx

@@ -489,11 +489,11 @@ export class Workbench extends React.Component<
       autoLoadData
     } = this.state
     if (!name.trim()) {
-      message.error('Widget名称不能为空')
+      message.error('组件名称不能为空')
       return
     }
     if (!selectedViewId) {
-      message.error('请选择一个View')
+      message.error('请选择一个数据视图')
       return
     }
     const widget = {