Kaynağa Gözat

feat: 投诉板块相关字段调整

touchitvoid 2 yıl önce
ebeveyn
işleme
0e1d16f2be

+ 1 - 2
src/views/Complaint/handle.tsx

@@ -22,7 +22,7 @@ const ComplaintHandle: React.FC = (props: any) => {
     },
     {
       title: '投诉类型',
-      dataIndex: 'class_name',
+      dataIndex: 'suggestion_type',
       search: true,
       valueEnum: {
         1: { text: '投诉' },
@@ -48,7 +48,6 @@ const ComplaintHandle: React.FC = (props: any) => {
       title: '投诉日期',
       dataIndex: 'created_at',
       search: false,
-      valueType: 'dateTime',
     },
     {
       title: '状态',

+ 4 - 4
src/views/Complaint/index.tsx

@@ -26,22 +26,22 @@ const ComplaintPage: React.FC = (props: any) => {
     },
     {
       title: '投诉人',
-      dataIndex: 'user_name',
+      dataIndex: 'apply_people',
       search: true,
     },
     {
       title: '联系电话',
-      dataIndex: 'user_name',
+      dataIndex: 'apply_people_phone',
       search: true,
     },
     {
       title: '投诉内容',
-      dataIndex: 'user_name',
+      dataIndex: 'apply_content',
       search: false,
     },
     {
       title: '投诉日期',
-      dataIndex: 'user_name',
+      dataIndex: 'created_at',
       search: false,
     },
     {

+ 14 - 4
src/views/Complaint/return-visit.tsx

@@ -24,22 +24,22 @@ const ComplaintReturnVisit: React.FC = (props: any) => {
     },
     {
       title: '投诉人',
-      dataIndex: 'user_name',
+      dataIndex: 'apply_people',
       search: true,
     },
     {
       title: '联系电话',
-      dataIndex: 'user_name',
+      dataIndex: 'apply_people_phone',
       search: true,
     },
     {
       title: '投诉内容',
-      dataIndex: 'user_name',
+      dataIndex: 'apply_content',
       search: false,
     },
     {
       title: '投诉日期',
-      dataIndex: 'user_name',
+      dataIndex: 'created_at',
       search: false,
     },
     {
@@ -52,6 +52,16 @@ const ComplaintReturnVisit: React.FC = (props: any) => {
         3: { text: '已完结' },
       }
     },
+    {
+      title: '状态',
+      dataIndex: 'status',
+      search: false,
+      valueEnum: {
+        1: { text: '未派单' },
+        2: { text: '已派单' },
+        3: { text: '已完结' },
+      }
+    },
     {
       title: '操作',
       dataIndex: 'option',