Browse Source

选举列表

dev
沈明 1 year ago
parent
commit
998628dc24
  1. 2
      src/api/votingElection.ts
  2. 14
      src/pages/votingElection/index.vue

2
src/api/votingElection.ts

@ -12,4 +12,4 @@ export function feedback(data: any) {
url: '/api/t.feedback/add', url: '/api/t.feedback/add',
data data
}) })
} }

14
src/pages/votingElection/index.vue

@ -1,13 +1,13 @@
<script setup lang="ts"> <script setup lang="ts">
import { getCategoryData } from '../../api/votingElection' import { getCategoryData } from '../../api/votingElection'
const doSearch = (_formData: { page: number; limit: number }, onSuccess: Function) => { const doSearch = (_formData: { page: number; limit: number }, onSuccess: Function) => {
// const submitData = { ...formData } // const submitData = { ...formData }
// listApi(submitData, userStore.useType).then((res) => { // listApi(submitData, userStore.useType).then((res) => {
// const { data } = res as { data: { data: any; total: number } } // const { data } = res as { data: { data: any; total: number } }
// onSuccess({ data }) // onSuccess({ data })
// }) // })
onSuccess({ onSuccess({
data: { data: {
data: [ data: [
@ -84,10 +84,10 @@ const selectBut = (data: any, cardid: any, type: string, butname: string) => {
}) })
} }
onShow(()=> { onShow(() => {
getCategoryData().then((res)=> { getCategoryData().then((res) => {
console.log(res,55555555555) console.log(res, 55555555555)
}) })
}) })
</script> </script>

Loading…
Cancel
Save