xujunjie há 1 ano atrás
pai
commit
44885f59dd

+ 7 - 4
src/pages/SmartOps/components/DeviceAnalysis.js

@@ -495,12 +495,12 @@ const WaterFlow = (props) => {
     {
     {
       title: '差值',
       title: '差值',
       // width: '15%',
       // width: '15%',
-      dataIndex: 'current_val',
+      dataIndex: 'result_val',
     },
     },
     {
     {
       title: '时间',
       title: '时间',
       // width: '15%',
       // width: '15%',
-      dataIndex: 'create_time',
+      dataIndex: 'created_time',
       render: (text) => {
       render: (text) => {
         if (text) {
         if (text) {
           return dayjs(text).format('HH:mm:ss');
           return dayjs(text).format('HH:mm:ss');
@@ -513,11 +513,14 @@ const WaterFlow = (props) => {
       width: '30%',
       width: '30%',
       render: (record) => (
       render: (record) => (
         <ThresholdDetail
         <ThresholdDetail
-          current={record.current_val || 0}
+          current={record.result_val || 0}
           data={{
           data={{
             JsonNumThreshold: {
             JsonNumThreshold: {
               exception: [
               exception: [
-                { ThresholdValue: record?.thresholds, ThresholdType: 1 },
+                {
+                  ThresholdValue: record?.threshold_error,
+                  ThresholdType: record.result_val > 0 ? 1 : 2,
+                },
               ],
               ],
             },
             },
             Type: 2,
             Type: 2,

+ 1 - 1
src/pages/SmartOps/predictionAnalysis/PredictionDetail.js

@@ -536,7 +536,7 @@ export const ChartContent = (props) => {
           defaultValue={time}
           defaultValue={time}
           // value={time}
           // value={time}
           onChange={onSearch}
           onChange={onSearch}
-          format="YYYY-MM-DD HH:mm:ss"
+          format="YYYY-MM-DD HH:mm"
         ></RangePicker>
         ></RangePicker>
         <div className={styles.dateTabs}>
         <div className={styles.dateTabs}>
           {DateTab.map((item) => (
           {DateTab.map((item) => (