|
@@ -59,7 +59,7 @@
|
|
element-loading-text="拼命加载中"
|
|
element-loading-text="拼命加载中"
|
|
element-loading-spinner="el-icon-loading"
|
|
element-loading-spinner="el-icon-loading"
|
|
element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
- <swiper style="height: 100%; margin-top: auto; margin-bottom: auto;" class="swiper" :options="swiperOption">
|
|
|
|
|
|
+ <swiper v-if="carListContent.length > 0" style="height: 100%; margin-top: auto; margin-bottom: auto;" class="swiper" :options="swiperOption">
|
|
<swiper-slide v-for="(item, i) in carListContent" :key="i">
|
|
<swiper-slide v-for="(item, i) in carListContent" :key="i">
|
|
<div class="case" @click="open(item, 1)">
|
|
<div class="case" @click="open(item, 1)">
|
|
<div class="case-left1">
|
|
<div class="case-left1">
|
|
@@ -90,6 +90,7 @@
|
|
</div>
|
|
</div>
|
|
</swiper-slide>
|
|
</swiper-slide>
|
|
</swiper>
|
|
</swiper>
|
|
|
|
+ <div v-else style="line-height: 250px; color: white; font-size: 18px"> 暂无数据</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="bio-content"
|
|
<div class="bio-content"
|
|
@@ -97,7 +98,8 @@
|
|
element-loading-text="拼命加载中"
|
|
element-loading-text="拼命加载中"
|
|
element-loading-spinner="el-icon-loading"
|
|
element-loading-spinner="el-icon-loading"
|
|
element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
- <chart-bar :data="carList"></chart-bar>
|
|
|
|
|
|
+ <chart-bar v-if="carList.data.length > 0" :data="carList"></chart-bar>
|
|
|
|
+ <div v-else style="line-height: 250px; color: white; font-size: 18px">暂无数据</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="bio-flex-center">
|
|
<div class="bio-flex-center">
|
|
@@ -129,7 +131,7 @@
|
|
element-loading-text="拼命加载中"
|
|
element-loading-text="拼命加载中"
|
|
element-loading-spinner="el-icon-loading"
|
|
element-loading-spinner="el-icon-loading"
|
|
element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
- <swiper style="height: 100%; margin-top: auto; margin-bottom: auto;" class="swiper" :options="swiperOption">
|
|
|
|
|
|
+ <swiper v-if="personList.length > 0" style="height: 100%; margin-top: auto; margin-bottom: auto;" class="swiper" :options="swiperOption">
|
|
<swiper-slide v-for="(item, i) in personList" :key="i">
|
|
<swiper-slide v-for="(item, i) in personList" :key="i">
|
|
<div class="case" @click="open(item, 2)">
|
|
<div class="case" @click="open(item, 2)">
|
|
<div class="case-left1">
|
|
<div class="case-left1">
|
|
@@ -152,13 +154,15 @@
|
|
</div>
|
|
</div>
|
|
</swiper-slide>
|
|
</swiper-slide>
|
|
</swiper>
|
|
</swiper>
|
|
|
|
+ <div v-else style="line-height: 250px; color: white; font-size: 18px">暂无数据</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="bio-content" v-loading="personChartLoading"
|
|
<div class="bio-content" v-loading="personChartLoading"
|
|
element-loading-text="拼命加载中"
|
|
element-loading-text="拼命加载中"
|
|
element-loading-spinner="el-icon-loading"
|
|
element-loading-spinner="el-icon-loading"
|
|
element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
- <chart-bar :data="data1"></chart-bar>
|
|
|
|
|
|
+ <chart-bar v-if="data1.data.length > 0" :data="data1" ></chart-bar>
|
|
|
|
+ <div v-else style="line-height: 250px; color: white; font-size: 18px">暂无数据</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -209,7 +213,8 @@
|
|
element-loading-text="拼命加载中"
|
|
element-loading-text="拼命加载中"
|
|
element-loading-spinner="el-icon-loading"
|
|
element-loading-spinner="el-icon-loading"
|
|
element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
- <chart-bar :data="data3"></chart-bar>
|
|
|
|
|
|
+ <chart-bar v-if="data3.data.length > 0" :data="data3"></chart-bar>
|
|
|
|
+ <div v-else style="line-height: 250px; width: 100%; color: white; font-size: 18px">暂无数据</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="bio-flex-1-left">
|
|
<div class="bio-flex-1-left">
|
|
@@ -247,7 +252,7 @@
|
|
element-loading-text="拼命加载中"
|
|
element-loading-text="拼命加载中"
|
|
element-loading-spinner="el-icon-loading"
|
|
element-loading-spinner="el-icon-loading"
|
|
element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
- <swiper style="height: 100%; margin-top: auto; margin-bottom: auto;" class="swiper" :options="swiperOption">
|
|
|
|
|
|
+ <swiper v-if="sizhuList.length > 0" style="height: 100%; margin-top: auto; margin-bottom: auto;" class="swiper" :options="swiperOption">
|
|
<swiper-slide v-for="(item, i) in sizhuList" :key="i">
|
|
<swiper-slide v-for="(item, i) in sizhuList" :key="i">
|
|
<div class="case case1" @click="open(item, 3)">
|
|
<div class="case case1" @click="open(item, 3)">
|
|
<div class="case-left">
|
|
<div class="case-left">
|
|
@@ -264,6 +269,7 @@
|
|
</div>
|
|
</div>
|
|
</swiper-slide>
|
|
</swiper-slide>
|
|
</swiper>
|
|
</swiper>
|
|
|
|
+ <div v-else style="line-height: 250px; color: white; font-size: 18px"> 暂无数据</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -372,8 +378,8 @@ export default {
|
|
name: '',
|
|
name: '',
|
|
unit: '次'
|
|
unit: '次'
|
|
},
|
|
},
|
|
- value1: '',
|
|
|
|
- value2: '',
|
|
|
|
|
|
+ value1: '0',
|
|
|
|
+ value2: '0',
|
|
value3: '',
|
|
value3: '',
|
|
carListContent: [],
|
|
carListContent: [],
|
|
dialog: false,
|
|
dialog: false,
|
|
@@ -388,21 +394,21 @@ export default {
|
|
personChartLoading: true,
|
|
personChartLoading: true,
|
|
sizhuLoading: true,
|
|
sizhuLoading: true,
|
|
hgLoading: true,
|
|
hgLoading: true,
|
|
- enterPerson: '',
|
|
|
|
- outPerson: '',
|
|
|
|
|
|
+ enterPerson: '0',
|
|
|
|
+ outPerson: '0',
|
|
rtsp: '',
|
|
rtsp: '',
|
|
selectItems: {},
|
|
selectItems: {},
|
|
pig: {
|
|
pig: {
|
|
- SevenDaySiZhu: "",
|
|
|
|
- SevenDayXIxiao: "",
|
|
|
|
- carPassIn: "",
|
|
|
|
- carPassOut: "",
|
|
|
|
- personPassFail: "",
|
|
|
|
- personPassSuccess: "",
|
|
|
|
- tadaySiZhu: "",
|
|
|
|
- tadayXiXiao: "",
|
|
|
|
- SevenDayGate: '',
|
|
|
|
- tadayGate: '',
|
|
|
|
|
|
+ SevenDaySiZhu: "0",
|
|
|
|
+ SevenDayXIxiao: "0",
|
|
|
|
+ carPassIn: "0",
|
|
|
|
+ carPassOut: "0",
|
|
|
|
+ personPassFail: "0",
|
|
|
|
+ personPassSuccess: "0",
|
|
|
|
+ tadaySiZhu: "0",
|
|
|
|
+ tadayXiXiao: "0",
|
|
|
|
+ SevenDayGate: '0',
|
|
|
|
+ tadayGate: '0',
|
|
},
|
|
},
|
|
cameraOne: 'ws://36.26.62.70:9080/camera_relay?tcpaddr=admin%3Ahmkj6688%40172.16.3.180',
|
|
cameraOne: 'ws://36.26.62.70:9080/camera_relay?tcpaddr=admin%3Ahmkj6688%40172.16.3.180',
|
|
cameraTwo: 'rtsp://admin:hmkj6688@172.16.3.180/cam/realmonitor?channel=1&subtype=0',
|
|
cameraTwo: 'rtsp://admin:hmkj6688@172.16.3.180/cam/realmonitor?channel=1&subtype=0',
|
|
@@ -419,30 +425,35 @@ export default {
|
|
getRecord({})
|
|
getRecord({})
|
|
]).then(axios.spread(function (res1, res2){
|
|
]).then(axios.spread(function (res1, res2){
|
|
if(res1.code === 0) {
|
|
if(res1.code === 0) {
|
|
-
|
|
|
|
- that.carList.time = [];
|
|
|
|
- that.carList.data = [];
|
|
|
|
- res1.data.forEach(item => {
|
|
|
|
- that.carList.time.push(item.time);
|
|
|
|
- that.carList.data.push(item.value);
|
|
|
|
- })
|
|
|
|
- that.carsLoading = false
|
|
|
|
|
|
+ if(res1.data !== null) {
|
|
|
|
+ that.carList.time = [];
|
|
|
|
+ that.carList.data = [];
|
|
|
|
+ res1.data.forEach(item => {
|
|
|
|
+ that.carList.time.push(item.time);
|
|
|
|
+ that.carList.data.push(item.value);
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ that.carsLoading = false;
|
|
}
|
|
}
|
|
if(res2.code === 0) {
|
|
if(res2.code === 0) {
|
|
- that.data1.time = [];
|
|
|
|
- that.data1.data = [];
|
|
|
|
- res2.data.forEach(item => {
|
|
|
|
- that.data1.time.push(item.time);
|
|
|
|
- that.data1.data.push(item.value);
|
|
|
|
- })
|
|
|
|
|
|
+ if(res2.data !== null) {
|
|
|
|
+ that.data1.time = [];
|
|
|
|
+ that.data1.data = [];
|
|
|
|
+ res2.data.forEach(item => {
|
|
|
|
+ that.data1.time.push(item.time);
|
|
|
|
+ that.data1.data.push(item.value);
|
|
|
|
+ })
|
|
|
|
+ }
|
|
that.personChartLoading = false;
|
|
that.personChartLoading = false;
|
|
}
|
|
}
|
|
}))
|
|
}))
|
|
getSizhu({}).then(res => {
|
|
getSizhu({}).then(res => {
|
|
if(res.code=== 0) {
|
|
if(res.code=== 0) {
|
|
- this.value1 = res.data.value2;
|
|
|
|
- this.value2 = res.data.value1;
|
|
|
|
- this.value3 = res.data.value3;
|
|
|
|
|
|
+ if(res.data !== null ) {
|
|
|
|
+ this.value1 = res.data.value2;
|
|
|
|
+ this.value2 = res.data.value1;
|
|
|
|
+ this.value3 = res.data.value3;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
// 车辆管理列表
|
|
// 车辆管理列表
|
|
@@ -456,6 +467,8 @@ export default {
|
|
item.devChnName = item.devChnName.split("_")[0];
|
|
item.devChnName = item.devChnName.split("_")[0];
|
|
});
|
|
});
|
|
// this.carListContent = res.data;
|
|
// this.carListContent = res.data;
|
|
|
|
+ } else {
|
|
|
|
+ that.carLoading = false;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
// 门禁管理列表
|
|
// 门禁管理列表
|
|
@@ -466,7 +479,8 @@ export default {
|
|
startSwingTime: timeDate(new Date().getTime()) + ' 00:00:00',
|
|
startSwingTime: timeDate(new Date().getTime()) + ' 00:00:00',
|
|
endSwingTime: timeDate(new Date().getTime()) + ' 23:59:59',
|
|
endSwingTime: timeDate(new Date().getTime()) + ' 23:59:59',
|
|
}
|
|
}
|
|
- getPersonList(params1).then(async res => {
|
|
|
|
|
|
+ getPersonList(params1).then(res => {
|
|
|
|
+ if(res.code == 0) {
|
|
let result = JSON.parse(res.result);
|
|
let result = JSON.parse(res.result);
|
|
this.personList = result.data.pageData;
|
|
this.personList = result.data.pageData;
|
|
|
|
|
|
@@ -475,115 +489,126 @@ export default {
|
|
item.recordImage = `${this.ip}/video/picture/get?alarmPicture=${item.recordImage}`;
|
|
item.recordImage = `${this.ip}/video/picture/get?alarmPicture=${item.recordImage}`;
|
|
});
|
|
});
|
|
that.personLoading = false;
|
|
that.personLoading = false;
|
|
- let queryParams = {
|
|
|
|
- pageNum: 1,
|
|
|
|
- pageSize: 21,
|
|
|
|
- alarmStartDateString: timeDate(new Date().getTime()) + " 00:00:00",
|
|
|
|
- alarmEndDateString: timeDate(new Date().getTime()) + " 23:59:59",
|
|
|
|
- nodeCodeList: [
|
|
|
|
- "1002874$1$0$0",
|
|
|
|
- "1002875$1$0$0",
|
|
|
|
- "1002876$1$0$0",
|
|
|
|
- "1002877$1$0$0",
|
|
|
|
- "1002878$1$0$0",
|
|
|
|
- "1002879$1$0$0",
|
|
|
|
- "1002880$1$0$0",
|
|
|
|
- "1002881$1$0$0",
|
|
|
|
- "1002882$1$0$0",
|
|
|
|
- "1002883$1$0$0",
|
|
|
|
- "1002884$1$0$0",
|
|
|
|
- "1002885$1$0$0",
|
|
|
|
- "1002886$1$0$0",
|
|
|
|
- "1002887$1$0$0",
|
|
|
|
- "1002888$1$0$0",
|
|
|
|
- "1002889$1$0$0",
|
|
|
|
- "1002890$1$0$0",
|
|
|
|
- "1002891$1$0$0",
|
|
|
|
- "1002892$1$0$0",
|
|
|
|
- "1002893$1$0$0",
|
|
|
|
- "1002894$1$0$0",
|
|
|
|
- "1002895$1$0$0",
|
|
|
|
- "1002896$1$0$0",
|
|
|
|
- "1002897$1$0$0",
|
|
|
|
- "1002898$1$0$0",
|
|
|
|
- "1002899$1$0$0",
|
|
|
|
- "1002900$1$0$0",
|
|
|
|
- "1002901$1$0$0",
|
|
|
|
- "1002902$1$0$0",
|
|
|
|
- "1002903$1$0$0",
|
|
|
|
- "1002904$1$0$0",
|
|
|
|
- "1002905$1$0$0",
|
|
|
|
- "1002906$1$0$0",
|
|
|
|
- "1002907$1$0$0",
|
|
|
|
- "1002908$1$0$0",
|
|
|
|
- "1002909$1$0$0",
|
|
|
|
- "1002910$1$0$0",
|
|
|
|
- "1002911$1$0$0",
|
|
|
|
- "1002912$1$0$0",
|
|
|
|
- "1002913$1$0$0",
|
|
|
|
- "1002939$1$0$0",
|
|
|
|
- "1002939$1$0$1",
|
|
|
|
- "1002939$1$0$2",
|
|
|
|
- "1002939$1$0$3",
|
|
|
|
- "1002939$1$0$4",
|
|
|
|
- "1002939$1$0$5",
|
|
|
|
- "1002939$1$0$6",
|
|
|
|
- "1002939$1$0$7",
|
|
|
|
- "1002939$1$0$8",
|
|
|
|
- "1002939$1$0$9",
|
|
|
|
- "1002940$1$0$0",
|
|
|
|
- "1002940$1$0$1",
|
|
|
|
- "1002940$1$0$2",
|
|
|
|
- "1002940$1$0$3",
|
|
|
|
- "1002940$1$0$4",
|
|
|
|
- "1002940$1$0$5",
|
|
|
|
- "1002940$1$0$6",
|
|
|
|
- "1002940$1$0$7",
|
|
|
|
- "1002939$1$0$10",
|
|
|
|
- "1002939$1$0$11",
|
|
|
|
- "1002939$1$0$12",
|
|
|
|
- "1002939$1$0$13",
|
|
|
|
- "1002939$1$0$14",
|
|
|
|
- "1002939$1$0$15",
|
|
|
|
- ],
|
|
|
|
- deviceCategory: 1,
|
|
|
|
- alarmType: 303,
|
|
|
|
- dbType: 0,
|
|
|
|
- };
|
|
|
|
- await getSizhuList(queryParams).then( res => {
|
|
|
|
- that.sizhuLoading = false;
|
|
|
|
|
|
+ } else {
|
|
|
|
+ that.personLoading = false;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ let queryParams = {
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: 21,
|
|
|
|
+ alarmStartDateString: timeDate(new Date().getTime()) + " 00:00:00",
|
|
|
|
+ alarmEndDateString: timeDate(new Date().getTime()) + " 23:59:59",
|
|
|
|
+ nodeCodeList: [
|
|
|
|
+ "1002874$1$0$0",
|
|
|
|
+ "1002875$1$0$0",
|
|
|
|
+ "1002876$1$0$0",
|
|
|
|
+ "1002877$1$0$0",
|
|
|
|
+ "1002878$1$0$0",
|
|
|
|
+ "1002879$1$0$0",
|
|
|
|
+ "1002880$1$0$0",
|
|
|
|
+ "1002881$1$0$0",
|
|
|
|
+ "1002882$1$0$0",
|
|
|
|
+ "1002883$1$0$0",
|
|
|
|
+ "1002884$1$0$0",
|
|
|
|
+ "1002885$1$0$0",
|
|
|
|
+ "1002886$1$0$0",
|
|
|
|
+ "1002887$1$0$0",
|
|
|
|
+ "1002888$1$0$0",
|
|
|
|
+ "1002889$1$0$0",
|
|
|
|
+ "1002890$1$0$0",
|
|
|
|
+ "1002891$1$0$0",
|
|
|
|
+ "1002892$1$0$0",
|
|
|
|
+ "1002893$1$0$0",
|
|
|
|
+ "1002894$1$0$0",
|
|
|
|
+ "1002895$1$0$0",
|
|
|
|
+ "1002896$1$0$0",
|
|
|
|
+ "1002897$1$0$0",
|
|
|
|
+ "1002898$1$0$0",
|
|
|
|
+ "1002899$1$0$0",
|
|
|
|
+ "1002900$1$0$0",
|
|
|
|
+ "1002901$1$0$0",
|
|
|
|
+ "1002902$1$0$0",
|
|
|
|
+ "1002903$1$0$0",
|
|
|
|
+ "1002904$1$0$0",
|
|
|
|
+ "1002905$1$0$0",
|
|
|
|
+ "1002906$1$0$0",
|
|
|
|
+ "1002907$1$0$0",
|
|
|
|
+ "1002908$1$0$0",
|
|
|
|
+ "1002909$1$0$0",
|
|
|
|
+ "1002910$1$0$0",
|
|
|
|
+ "1002911$1$0$0",
|
|
|
|
+ "1002912$1$0$0",
|
|
|
|
+ "1002913$1$0$0",
|
|
|
|
+ "1002939$1$0$0",
|
|
|
|
+ "1002939$1$0$1",
|
|
|
|
+ "1002939$1$0$2",
|
|
|
|
+ "1002939$1$0$3",
|
|
|
|
+ "1002939$1$0$4",
|
|
|
|
+ "1002939$1$0$5",
|
|
|
|
+ "1002939$1$0$6",
|
|
|
|
+ "1002939$1$0$7",
|
|
|
|
+ "1002939$1$0$8",
|
|
|
|
+ "1002939$1$0$9",
|
|
|
|
+ "1002940$1$0$0",
|
|
|
|
+ "1002940$1$0$1",
|
|
|
|
+ "1002940$1$0$2",
|
|
|
|
+ "1002940$1$0$3",
|
|
|
|
+ "1002940$1$0$4",
|
|
|
|
+ "1002940$1$0$5",
|
|
|
|
+ "1002940$1$0$6",
|
|
|
|
+ "1002940$1$0$7",
|
|
|
|
+ "1002939$1$0$10",
|
|
|
|
+ "1002939$1$0$11",
|
|
|
|
+ "1002939$1$0$12",
|
|
|
|
+ "1002939$1$0$13",
|
|
|
|
+ "1002939$1$0$14",
|
|
|
|
+ "1002939$1$0$15",
|
|
|
|
+ ],
|
|
|
|
+ deviceCategory: 1,
|
|
|
|
+ alarmType: 303,
|
|
|
|
+ dbType: 0,
|
|
|
|
+ };
|
|
|
|
+ getSizhuList(queryParams).then( res => {
|
|
|
|
+ if(res.code == 0) {
|
|
const result = JSON.parse(res.result);
|
|
const result = JSON.parse(res.result);
|
|
this.sizhuList = result.data.pageData;
|
|
this.sizhuList = result.data.pageData;
|
|
this.sizhuList.forEach((item) => {
|
|
this.sizhuList.forEach((item) => {
|
|
item.alarmPicture = `${this.ip}/video/picture/get?alarmPicture=${item.alarmPicture}`;
|
|
item.alarmPicture = `${this.ip}/video/picture/get?alarmPicture=${item.alarmPicture}`;
|
|
});
|
|
});
|
|
- })
|
|
|
|
-
|
|
|
|
- getHoure({}).then(res => {
|
|
|
|
- if(res.code === 10000) {
|
|
|
|
|
|
+ this.sizhuLoading = false;
|
|
|
|
+ } else {
|
|
|
|
+ this.sizhuLoading = false;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ getHoure({}).then(res => {
|
|
|
|
+ if(res.code === 10000) {
|
|
|
|
+ if(res.data !== null) {
|
|
this.data3.time = [];
|
|
this.data3.time = [];
|
|
this.data3.data = [];
|
|
this.data3.data = [];
|
|
res.data.forEach(item => {
|
|
res.data.forEach(item => {
|
|
this.data3.time.push(item.time);
|
|
this.data3.time.push(item.time);
|
|
this.data3.data.push(item.value);
|
|
this.data3.data.push(item.value);
|
|
})
|
|
})
|
|
- this.hgLoading = false;
|
|
|
|
}
|
|
}
|
|
- })
|
|
|
|
-
|
|
|
|
|
|
+ this.hgLoading = false;
|
|
|
|
+ }
|
|
})
|
|
})
|
|
// 门禁违规
|
|
// 门禁违规
|
|
getDoor({}).then(res => {
|
|
getDoor({}).then(res => {
|
|
if(res.code === 0) {
|
|
if(res.code === 0) {
|
|
- this.enterPerson = res.data.value1;
|
|
|
|
- this.outPerson = res.data.value2;
|
|
|
|
|
|
+ if(res.data !== null) {
|
|
|
|
+ this.enterPerson = res.data.value1;
|
|
|
|
+ this.outPerson = res.data.value2;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
// 今日车辆驶入
|
|
// 今日车辆驶入
|
|
getAlarmAndPig({}).then(res => {
|
|
getAlarmAndPig({}).then(res => {
|
|
if(res.code === 0) {
|
|
if(res.code === 0) {
|
|
- this.pig = res.data;
|
|
|
|
|
|
+ if(res.data !== null) {
|
|
|
|
+ this.pig = res.data;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|