Przeglądaj źródła

修改data类型

tianyunperfect 5 lat temu
rodzic
commit
d3c4015cd0

+ 2 - 2
src/pages/ServiceList/data.d.ts

@@ -3,8 +3,8 @@ export interface TableListItem {
   id?: number;
   serviceIp: string;
   modelName: string;
-  modelVersion: string;
-  currentVersion: string;
+  modelVersion: Date;
+  currentVersion: Date;
   success:string;
   msg:string;
 }

+ 1 - 1
src/pages/ServiceList/index.tsx

@@ -56,7 +56,7 @@ const TableList: React.FC<{}> = () => {
       width: 220,
       hideInSearch: true,
       render: (text, row)=>{
-        if (row.currentVersion !== row.modelVersion) {
+        if (row.currentVersion < row.modelVersion) {
            return (<div className={styles.red}>{text} :待更新</div>)
         }
         return (<div>{text}</div>)