|
@@ -13,10 +13,12 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="fenye">
|
|
|
|
- <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
|
|
|
|
- v-model:limit="queryParams.pageSize" @pagination="query"/>
|
|
|
|
- </div>
|
|
|
|
|
|
+<!-- <div class="fenye">-->
|
|
|
|
+<!-- <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
|
|
|
|
+ v-model:limit="queryParams.pageSize" @pagination="query"/>-->
|
|
|
|
+ <xjc-pagination v-if="!loading" :total="total" :pageNum="queryParams.pageNum" :pageSize="queryParams.pageSize"
|
|
|
|
+ @changePage="changePage"></xjc-pagination>
|
|
|
|
+<!-- </div>-->
|
|
</div>
|
|
</div>
|
|
<drag_component></drag_component>
|
|
<drag_component></drag_component>
|
|
</div>
|
|
</div>
|
|
@@ -28,7 +30,7 @@
|
|
<script setup>
|
|
<script setup>
|
|
import headComponent from '@/views/xjc-integratedmachine/components/head_component.vue'
|
|
import headComponent from '@/views/xjc-integratedmachine/components/head_component.vue'
|
|
/*import Drag_component from "@/views/xjc-integratedmachine/components/drag_component.vue";*/
|
|
/*import Drag_component from "@/views/xjc-integratedmachine/components/drag_component.vue";*/
|
|
-
|
|
|
|
|
|
+import xjcPagination from "@/views/xjc-integratedmachine/components/xjc_pagination.vue"
|
|
import {careerinformation} from '@/api/xjc-integratedmachine/environment/tscareer.js'
|
|
import {careerinformation} from '@/api/xjc-integratedmachine/environment/tscareer.js'
|
|
import {ref} from "vue";
|
|
import {ref} from "vue";
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
@@ -53,30 +55,39 @@ function setHeadinfo(){
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
setHeadinfo()
|
|
setHeadinfo()
|
|
|
|
+ query()
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+function toDetail(item) {
|
|
|
|
+ router.push({
|
|
|
|
+ path : '/xjc-integratedmachine/environment/info_detail',
|
|
|
|
+ query :{
|
|
|
|
+ id : item.id
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+//分页部分
|
|
const queryParams = ref({
|
|
const queryParams = ref({
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 5,
|
|
pageSize: 5,
|
|
type : '1'
|
|
type : '1'
|
|
})
|
|
})
|
|
|
|
+function changePage(params) {
|
|
|
|
+ queryParams.value.pageSize = params.value.pageSize
|
|
|
|
+ queryParams.value.pageNum = params.value.pageNum
|
|
|
|
+ query()
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const loading = ref(false)
|
|
function query() {
|
|
function query() {
|
|
- careerinformation(queryParams.value).then(resp =>{
|
|
|
|
- console.log(resp.data_list.rows)
|
|
|
|
|
|
+ loading.value = true
|
|
|
|
+ careerinformation(queryParams.value).then(resp => {
|
|
list.value = resp.data_list.rows
|
|
list.value = resp.data_list.rows
|
|
total.value = resp.data_list.total
|
|
total.value = resp.data_list.total
|
|
|
|
+ loading.value = false
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-function toDetail(item) {
|
|
|
|
- router.push({
|
|
|
|
- path : '/xjc-integratedmachine/environment/info_detail',
|
|
|
|
- query :{
|
|
|
|
- id : item.id
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
-}
|
|
|
|
-query()
|
|
|
|
-
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|
|
@@ -109,7 +120,7 @@ p, div {
|
|
border-radius: 35px 35px 35px 35px;
|
|
border-radius: 35px 35px 35px 35px;
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
- overflow: auto;
|
|
|
|
|
|
+/* overflow: auto;*/
|
|
.item-box{
|
|
.item-box{
|
|
width: 1750px;
|
|
width: 1750px;
|
|
height: 120px;
|
|
height: 120px;
|
|
@@ -153,16 +164,5 @@ p, div {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- .fenye{
|
|
|
|
- width: 72px;
|
|
|
|
- height: -48px;
|
|
|
|
- align-self: center;
|
|
|
|
- margin-top: 20px;
|
|
|
|
- margin-left: 600px;
|
|
|
|
- background: #F4F4F4;
|
|
|
|
- border-radius: 0px 0px 0px 0px;
|
|
|
|
- border: 1px solid #E2E8F0;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|