From a6ed23b018343a68f9fd276647cc4af817398d1b Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期四, 01 二月 2024 15:21:26 +0800
Subject: [PATCH] feat:修改部分问题

---
 src/views/your/suggest-manage/suggestManage.vue |   41 ++++++++++++++++++++++++++++++-----------
 1 files changed, 30 insertions(+), 11 deletions(-)

diff --git a/src/views/your/suggest-manage/suggestManage.vue b/src/views/your/suggest-manage/suggestManage.vue
index 8c2757e..6ead1ef 100644
--- a/src/views/your/suggest-manage/suggestManage.vue
+++ b/src/views/your/suggest-manage/suggestManage.vue
@@ -12,9 +12,9 @@
           openTip ? "鍏抽棴鎻愮ず" : "寮�鍚彁绀�"
           }}</Button>
         <Input
-                v-model="searchForm.content"
+                v-model="searchForm2.content"
                 suffix="ios-search"
-                @on-change="getDataList"
+                @on-change="getDataList2"
                 placeholder="杈撳叆鍙嶉鍐呭鎼滅储"
                 clearable
                 style="width: 250px"
@@ -199,6 +199,14 @@
           order: "desc", // 榛樿鎺掑簭鏂瑰紡
           key: "",
         },
+        searchForm2: {
+          // 鎼滅储妗嗗垵濮嬪寲瀵硅薄
+          pageNumber: 1, // 褰撳墠椤垫暟
+          pageSize: 10, // 椤甸潰澶у皬
+          sort: "createTime", // 榛樿鎺掑簭瀛楁
+          order: "desc", // 榛樿鎺掑簭鏂瑰紡
+          key: "",
+        },
         addOilForm: {
           status : 0
         },
@@ -216,11 +224,11 @@
         submitLoading: false,
         selectList: [],
         columns: [
-          {
-            type: "selection",
-            width: 60,
-            align: "center",
-          },
+          // {
+          //   type: "selection",
+          //   width: 60,
+          //   align: "center",
+          // },
           {
             type: "index",
             width: 60,
@@ -235,8 +243,7 @@
           {
             title: "鍙嶉鏃堕棿",
             key: "createTime",
-            width: 200,
-            sortable: true,
+            width: 130,
             render: (h, params) => {
               return h("div",params.row.createTime.substr(0,10));
             }
@@ -244,18 +251,20 @@
           {
             title: "鍙嶉鍟嗘埛",
             key: "name",
+            tooltip:true,
             width: 260,
           },
           {
             title: "鍥炲鍐呭",
             key: "replyContent",
             tooltip:true,
-            width: 260,
+            width: 300,
           },
           {
             title: "鎿嶄綔",
             key: "action",
             align: "center",
+            width: 150,
             render: (h, params) => {
               return h("div", [
                 h(
@@ -375,6 +384,16 @@
       getDataList() {
         this.loading = true;
         getSuggest(this.searchForm).then((res) => {
+          this.loading = false;
+          if (res.success) {
+            this.data = res.result.records;
+            this.total = res.result.total;
+          }
+        });
+      },
+      getDataList2() {
+        this.loading = true;
+        getSuggest(this.searchForm2).then((res) => {
           this.loading = false;
           if (res.success) {
             this.data = res.result.records;
@@ -844,4 +863,4 @@
       this.init();
     },
   };
-</script>
\ No newline at end of file
+</script>

--
Gitblit v1.9.1