Commit 5a469b0e authored by 罗新东's avatar 罗新东

修改了暂无无数据乱飘的bug

parent 6476a59a
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
</van-cell-group> </van-cell-group>
</div> </div>
<!-- 暂无数据 --> <!-- 暂无数据 -->
<div <div
style=" style="
width: 100%; width: 100%;
text-align: center; text-align: center;
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
position: fixed; position: fixed;
top: 30%; top: 30%;
" "
v-if="onClickTab.length == 0" v-if="messageList.length == 0"
> >
暂无数据 暂无数据
</div> </div>
...@@ -161,6 +161,7 @@ ...@@ -161,6 +161,7 @@
</van-cell-group> </van-cell-group>
</div> </div>
<!-- 暂无数据 --> <!-- 暂无数据 -->
<!-- {{messageList}} -->
<div <div
style=" style="
width: 100%; width: 100%;
...@@ -222,7 +223,7 @@ export default { ...@@ -222,7 +223,7 @@ export default {
}); });
postFun(`/rectification/delete/${val.taskId}`) postFun(`/rectification/delete/${val.taskId}`)
.then((res) => { .then((res) => {
console.log(res,'怎么样') // console.log(res,'怎么样')
this.$toast.clear(); this.$toast.clear();
this.$toast.success({ this.$toast.success({
message: "关闭成功", message: "关闭成功",
...@@ -260,12 +261,13 @@ export default { ...@@ -260,12 +261,13 @@ export default {
[list1, list2] [list1, list2]
[val](formdata) [val](formdata)
.then((res) => { .then((res) => {
console.log(res.rows)
this.$toast.clear(); this.$toast.clear();
this.messageList = res.rows; this.messageList = res.rows;
// 判断有无数据返回 // 判断有无数据返回
if (this.messageList.length == 0) { // if (this.messageList.length == 0) {
this.isHaveNews = true; // this.isHaveNews = true;
} // }
}) })
.catch(() => { .catch(() => {
this.$toast.clear(); this.$toast.clear();
...@@ -387,4 +389,7 @@ export default { ...@@ -387,4 +389,7 @@ export default {
} }
} }
} }
/deep/.van-tab__pane-wrapper{
min-height: 8rem;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment