12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <template>
- <div v-for="(item,index) in data_rows" @click="toDetail(item)">
- {{item.name}}
- </div>
- <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
- v-model:limit="queryParams.pageSize" @pagination="list2"/>
- </template>
- <script setup>
- import {specialtyList2} from '@/api/xjc-integratedmachine/specialty.js'
- const router = useRouter()
- const route = useRoute()
- const total = ref(0)
- const param = route.query
- const data_rows = ref([])
- const queryParams = ref({
- pageNum: 1,
- pageSize: 10,
- oldid: param.oldid
- })
- function list2() {
- specialtyList2(queryParams.value).then(resp => {
- data_rows.value = resp.data.rows
- total.value = resp.data.total
- })
- }
- function toDetail(item){
- router.push({
- path:'/xjc-integratedmachine/environment/pro_details_video',
- query : {
- id : item.id
- }
- })
- }
- list2()
- </script>
- <style scoped>
- </style>
|