瀏覽代碼

fix 客户管理下客户详情的意见反馈的接口调用错误问题

ylong 6 月之前
父節點
當前提交
70091df8a4

+ 1 - 1
src/views/customer/list/components/customer-detail.vue

@@ -42,7 +42,7 @@
                 <recommend-info :row="currentRow" />
             </el-tab-pane>
             <el-tab-pane label="意见反馈" name="fallback">
-                <fallback-info />
+                <fallback-info :userId="currentRow.id" />
             </el-tab-pane>
         </el-tabs>
     </ele-drawer>

+ 24 - 9
src/views/customer/list/components/detail/fallback-info.vue

@@ -6,6 +6,13 @@
         :tools="false"
         :body-style="{ padding: 0 }"
     >
+        <template #status="{ row }">
+            <dict-data
+                code="feedback_status"
+                type="tag"
+                :model-value="row.status"
+            />
+        </template>
         <template #action="{ row }">
             <div>
                 <el-button
@@ -15,7 +22,7 @@
                 >
                     查看详情
                 </el-button>
-                <el-button type="primary" link @click="handleUpdate(row)">
+                <el-button type="primary" link @click="handleUpdate(row, 'deal')">
                     去处理
                 </el-button>
             </div>
@@ -30,6 +37,13 @@
     import dealFallback from '@/views/optimization/fallback/components/deal-fallback.vue';
     import { useDictData } from '@/utils/use-dict-data';
 
+    const props = defineProps({
+        userId: {
+            type: String,
+            required: true
+        }
+    });
+
     defineOptions({ name: 'FallbackInfoList' });
     const [useStatusDicts] = useDictData(['sys_normal_disable']);
 
@@ -37,19 +51,17 @@
     const columns = ref([
         {
             label: '内容',
-            prop: 'paymentCode',
+            prop: 'description',
             align: 'center',
             minWidth: 200
         },
-        { label: '分类', prop: 'type', align: 'center' },
+        { label: '分类', prop: 'reason', align: 'center',minWidth:160 },
 
         {
             label: '状态',
             prop: 'useStatus',
             align: 'center',
-            formatter: (row) =>
-                useStatusDicts.value.find((d) => d.dictValue == row.useStatus)
-                    ?.dictLabel
+            slot: 'status'
         },
         { label: '时间', prop: 'createTime', align: 'center', width: 180 },
         {
@@ -65,10 +77,13 @@
     const pageRef = ref(null);
 
     const pageConfig = reactive({
-        pageUrl: '/baseinfo/godown/pagelist',
-        exportUrl: '/baseinfo/godown/export',
+        pageUrl: '/sys/suggestionLog/pagelist',
+        exportUrl: '/sys/suggestionLog/export',
         fileName: '意见反馈',
-        cacheKey: 'fallbackInfoTable'
+        cacheKey: 'fallbackInfoTable',
+        params: {
+            userId: props.userId
+        }
     });
 
     //刷新表格