|
@@ -24,7 +24,9 @@
|
|
|
|
|
|
<!-- 卡片列表 -->
|
|
|
<div>
|
|
|
- <el-col :span="24" v-if="desktopList.length == 0" style="padding: 200px 0;text-align:center;color:#20a0ff" @click="getHavePic()">今日暂无截图,点击查看近期</el-col>
|
|
|
+ <el-col :span="24" v-if="desktopList.length == 0" style="padding: 200px 0;text-align:center;cursor:pointer">
|
|
|
+ <el-link :underline="false" type="primary" @click="getHavePic">今日暂无截图,点击查看近期</el-link>
|
|
|
+ </el-col>
|
|
|
<el-col :span="6" v-for="(item, index) in desktopList" :key="index" class="one_div">
|
|
|
<el-card :body-style="{ padding: '0px' }" shadow="hover" class="one_card">
|
|
|
<div class="one_card_img">
|
|
@@ -113,11 +115,14 @@
|
|
|
// 获取最近有数据的日期
|
|
|
getHavePic() {
|
|
|
this.http.post(
|
|
|
- this.port.desktop.list,
|
|
|
- {date: this.date},
|
|
|
+ this.port.desktop.getScreenshotDate,
|
|
|
+ {date: new Date()},
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
- this.desktopList = res.data.data;
|
|
|
+ if(res.data != null) {
|
|
|
+ this.date = res.data;
|
|
|
+ this.getDesktopList();
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: res.msg,
|