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',
data
})
}
}

14
src/pages/votingElection/index.vue

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

Loading…
Cancel
Save