소스 검색

fix 重量统计接口对接&字段对应

ylong 7 달 전
부모
커밋
54fbe96792
2개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 0
      src/views/statistic/overview/index.vue
  2. 4 4
      src/views/statistic/weight/index.vue

+ 1 - 0
src/views/statistic/overview/index.vue

@@ -195,6 +195,7 @@ const fetchRealTimeData = async () => {
             loading.value = false;
             realTimeData.value = res.data.data;
             nowTime.value = res.data.data.nowTime || dayjs().format('YYYY-MM-DD HH:mm:ss');
+            // realTimeData.value.chatAxis = res.data.data.chatAxis.map(v=>`${v}点`);
         }
     }).finally(() => {
         loading.value = false;

+ 4 - 4
src/views/statistic/weight/index.vue

@@ -34,10 +34,10 @@
 
   /** 表格列配置 */
   const columns = ref([
-    { type: 'index', label: '#', align: 'center', width: 80 },
-    { label: '操作员', prop: 'signUserName', align: 'center' },
-    { label: '操作数量', prop: 'statNum', align: 'center' },
-    { label: '统计日期', prop: 'statDate', align: 'center' },
+    { label: 'ISBN', prop: 'isbn', align: 'center' },
+    { label: '重量(kg)', prop: 'weight', align: 'center' },
+    { label: '操作员', prop: 'createName', align: 'center' },
+    { label: '操作时间', prop: 'createTime', align: 'center' },
   ]);
 
   /** 页面组件实例 */