aaa
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
arrow-class="color:red !important;"
|
||||
>
|
||||
<a-carousel-item v-for="(item,index) in datalist" :key="index">
|
||||
<devinfoshow :devinfo="item"></devinfoshow>
|
||||
<devinofgrid :devinfo="item"></devinofgrid>
|
||||
</a-carousel-item>
|
||||
</a-carousel>
|
||||
|
||||
@ -17,12 +17,12 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import devinfoshow from './devinfoshow.vue'
|
||||
import devinofgrid from "./devinofgrid.vue";
|
||||
import axios from 'axios';
|
||||
export default {
|
||||
name: 'DevinfoMain',
|
||||
components: {
|
||||
devinfoshow
|
||||
devinofgrid
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@ -42,9 +42,9 @@ export default {
|
||||
async onloaddata() {
|
||||
const data=await axios.get('devinfo/getfilelistinfo');
|
||||
let datalist=data.data;
|
||||
|
||||
|
||||
//每9个数据为一组 不足的不补齐
|
||||
|
||||
|
||||
let newdatalist=[];
|
||||
let temp=[];
|
||||
|
||||
@ -56,6 +56,12 @@ export default {
|
||||
let lasttime=new Date(datestr);
|
||||
let nowtime=new Date();
|
||||
datalist[i].from_last_online_time=(nowtime-lasttime)/60000;
|
||||
let data=await axios.post('devinfo/getdevuserinfo',{devid:datalist[i].autoid});
|
||||
if (typeof data.data[0].simnumber!="undefined") {
|
||||
datalist[i].userinfo=data.data[0];
|
||||
}else{
|
||||
datalist[i].userinfo=null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -91,4 +97,4 @@ export default {
|
||||
.arco-carousel-arrow-left {
|
||||
width: 100px !important;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user