|
@@ -75,10 +75,14 @@
|
|
|
@change="changePics"
|
|
|
></pic-dialog>
|
|
|
<div
|
|
|
- v-show="!main || !main.length"
|
|
|
+ v-show="!mess.deviceId && (!main || !main.length)"
|
|
|
style="width:100%;text-align:center;font-size:30px;color:gray;"
|
|
|
>请选择设备族</div>
|
|
|
- <div v-show="main && main.length" v-loading="loading" id="handsontable" ref="handsontable"></div>
|
|
|
+ <div class="center" v-show="mess.deviceId && (!main || !main.length)">
|
|
|
+ <i class="iconwushuju iconfont"></i>
|
|
|
+ 暂无数据
|
|
|
+ </div>
|
|
|
+ <div v-show="mess.deviceId && main && main.length" v-loading="loading" id="handsontable" ref="handsontable"></div>
|
|
|
<div class='right'>
|
|
|
<my-pagination v-show="main && main.length" @change="getMain" :page="page"></my-pagination>
|
|
|
</div>
|
|
@@ -306,6 +310,7 @@ export default {
|
|
|
_this.updateScrapDate(list)
|
|
|
}
|
|
|
_this.main = res.Content
|
|
|
+ console.log(_this.main,'guoguo')
|
|
|
_this.copyMain = tools.deepCopy(res.Content)
|
|
|
_this.page.total = res.Count
|
|
|
if (!!_this.hot) {
|
|
@@ -315,6 +320,9 @@ export default {
|
|
|
if (!!res.Content && res.Content.length) {
|
|
|
_this.initHot();
|
|
|
}
|
|
|
+ }else{
|
|
|
+ _this.main = res.Content
|
|
|
+ _this.page.total = res.Count
|
|
|
}
|
|
|
this.loading = false
|
|
|
})
|