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