增加无项目时的文字显示提示
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="none" v-if="none == true">无征收项目!</div>
|
||||
<div class="proList">
|
||||
<van-list>
|
||||
<!-- 跳转项目详情 -->
|
||||
@@ -62,6 +63,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
type: "",
|
||||
none: false,
|
||||
// 初始数据
|
||||
info: {
|
||||
userName: "无数据",
|
||||
@@ -104,12 +106,7 @@ export default {
|
||||
this.info = result.data.data;
|
||||
|
||||
if (result.data.data.prjList.length == 0) {
|
||||
this.$message({
|
||||
message: "无征收项目",
|
||||
duration: 3000,
|
||||
type: "info",
|
||||
center: true
|
||||
});
|
||||
this.none = true;
|
||||
}
|
||||
} else {
|
||||
let code = [6001, 6501];
|
||||
@@ -158,6 +155,13 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.none {
|
||||
text-align: center;
|
||||
margin: 40px 30% 10px;
|
||||
font-size: 18px;
|
||||
padding: 10px;
|
||||
// box-shadow: 0 0 1px 1px rgb(202, 201, 201);
|
||||
}
|
||||
.container {
|
||||
.proTopBoxpg {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user