Explorar el Código

feat: #重新对接反馈接口

loki hace 3 años
padre
commit
48dca9035b

+ 1 - 1
src/api/base/problemFeedback.js

@@ -1,4 +1,4 @@
 import api from '@/utils/request';
 
 export const getList = params =>
-	api.post(`/yxl-back-end/framework/feedback/page`, params);
+	api.post(`/yxl-back-end/framework/feedback/admin/page`, params);

+ 1 - 1
src/views/baseManagement/bannerManagement/index.vue

@@ -45,7 +45,7 @@ export default {
           name: '图片',
           width: '160',
           render: (h, { row }) =>
-            h('image', {
+            h('img', {
               style: {
                 width: '160px',
                 height: '90px'

+ 11 - 18
src/views/baseManagement/problemFeedbackManagement/index.vue

@@ -32,7 +32,7 @@ export default {
     return {
       columns: [
         {
-          key: 'accountNickname',
+          key: 'nickname',
           name: '用户名称',
           width: '160'
         },
@@ -59,17 +59,22 @@ export default {
           name: '反馈图片',
           width: '100',
           render: (h, { row }) => {
-            const list = row.imgUrl.map(x => ({
-              src: x
-            }));
+            // const list = row.imgUrl.map(x => ({
+            //   src: x
+            // }));
+            const list = [
+              {
+                src: row.imgUrl
+              }
+            ];
             if (list.length > 0) {
-              return h('image', {
+              return h('img', {
                 style: {
                   width: '90px',
                   height: '90px'
                 },
                 attrs: {
-                  src: list[0].url
+                  src: list[0].src
                 },
                 on: {
                   click: () =>
@@ -90,18 +95,6 @@ export default {
         }
       ]
     };
-  },
-
-  mounted() {
-    setTimeout(() => {
-      this.items = [
-        {
-          accountNickname: 'loic',
-          phonenumber: '110',
-          content: 'dadadabkwadl冬不拉我的本垒打我看了金额逻辑框架出来就安慰'
-        }
-      ];
-    }, 1000);
   }
 };
 </script>

+ 1 - 1
src/views/sceneManagement/sceneList/index.vue

@@ -54,7 +54,7 @@ export default {
           name: 'Logo',
           width: '120',
           render: (h, { row }) =>
-            h('image', {
+            h('img', {
               style: {
                 width: '120px',
                 height: '90px'

+ 1 - 1
src/views/sceneManagement/sceneVerify/index.vue

@@ -46,7 +46,7 @@ export default {
           name: 'Logo',
           width: '120',
           render: (h, { row }) =>
-            h('image', {
+            h('img', {
               style: {
                 width: '120px',
                 height: '90px'