Browse Source

列表调整

openHj 10 tháng trước cách đây
mục cha
commit
4b02893c1e
1 tập tin đã thay đổi với 7 bổ sung7 xóa
  1. 7 7
      src/views/XMHJC/browsing/index.vue

+ 7 - 7
src/views/XMHJC/browsing/index.vue

@@ -123,14 +123,14 @@ const config = computed(() => {
     },
     {
       attrs: {
-        label: "ip",
-        prop: "ip",
+        label: "访问日期",
+        prop: "browseDate",
       },
     },
     {
       attrs: {
-        label: "访问时间",
-        prop: "createTime",
+        label: "浏览量",
+        prop: "browseCount",
       },
     },
     /*{
@@ -205,13 +205,14 @@ const formSearchConfig = computed(() => {
 const getList = async (req) => {
   sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
   loading.value = true;
-    proxy.post("/browsingHistory/page", sourceList.value.pagination).then((message) => {
+    proxy.post("/browsingHistory/classifiedList", sourceList.value.pagination).then((message) => {
     console.log(message);
     sourceList.value.data = message.rows;
     sourceList.value.pagination.total = message.total;
     setTimeout(() => {
       loading.value = false;
     }, 200);
+      getStatistic();
   });
 };
 const openModal = () => {
@@ -275,11 +276,10 @@ const submitSearch = () => {
 const getStatistic = async (req) => {
   proxy.post("/browsingHistory/getStatistic", {}).then((message) => {
     console.log(message);
-    statistic.value = message.today;
+    statistic.value = message;
   });
 };
 
-getStatistic();
 getList();
 </script>