wuyi hace 1 año
padre
commit
115dc623f5
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      src/views/DealerView.vue
  2. 1 1
      src/views/UserView.vue

+ 1 - 1
src/views/DealerView.vue

@@ -47,7 +47,7 @@
         </ElFormItem>
     </EditDialog>
     <ElDialog v-model="showDetailDialog" title="详情" width="500px">
-        <PagingTable url="/balance/records/" :where="{ userId: (selectedRow || {}).id }" :order="{createdAt:'DESC'}"
+        <PagingTable url="/balance/records" :where="{ userId: (selectedRow || {}).id }" :order="{createdAt:'DESC'}"
                      ref="balanceTable" height="50vh">
             <ElTableColumn prop="id" label="#" width="80" />
             <ElTableColumn prop="amount" label="金额" min-width="120" />

+ 1 - 1
src/views/UserView.vue

@@ -47,7 +47,7 @@ import { http } from '@/plugins/http'
 import { ElMessage } from 'element-plus'
 import { useClipboard } from '@vueuse/core'
 
-const where = ref({ roles: 'user' })
+const where = ref({})
 const timeFormatter = useTimeFormatter()
 const table = ref(null)
 const model = ref({})