增加无项目提示,

This commit is contained in:
2021-11-11 16:12:36 +08:00
parent 38066c7a1c
commit 90ddc7c88d
3 changed files with 16 additions and 5 deletions

View File

@@ -208,8 +208,8 @@ export default {
mode: false, mode: false,
loading: true, loading: true,
data: { data: {
idCard: "无数据", idCard: "加载中...",
userName: "无数据", userName: "加载中...",
policiesRegulationsLists: { policiesRegulationsLists: {
totalCount: 0, totalCount: 0,
list: [ list: [
@@ -222,6 +222,7 @@ export default {
// { title: "无数据", publicTime: "无数据", area: "无数据" } // { title: "无数据", publicTime: "无数据", area: "无数据" }
] ]
} }
// prjList: [{}, {}]
// prjList: [ // prjList: [
// { // {
// name: "无数据", // name: "无数据",
@@ -379,7 +380,7 @@ export default {
} }
}, },
setIdCard(id) { setIdCard(id) {
return id == "无数据" return id == "加载中..."
? id ? id
: id.substr(0, 6) + "********" + id.substr(14, 4); : id.substr(0, 6) + "********" + id.substr(14, 4);
}, },

View File

@@ -21,8 +21,8 @@ export default {
return { return {
loading: true, loading: true,
info: { info: {
title: "无数据", title: "加载中...",
publicTime: "无数据" publicTime: "加载中..."
} }
}; };
}, },

View File

@@ -99,8 +99,18 @@ export default {
window.sessionStorage.setItem("type", this.$route.params.type); window.sessionStorage.setItem("type", this.$route.params.type);
} }
let result = JSON.parse(window.sessionStorage.getItem("homeData")); let result = JSON.parse(window.sessionStorage.getItem("homeData"));
// console.log("啊", result);
if (result.data.success) { if (result.data.success) {
this.info = result.data.data; this.info = result.data.data;
if (result.data.data.prjList.length == 0) {
this.$message({
message: "无征收项目",
duration: 3000,
type: "info",
center: true
});
}
} else { } else {
let code = [6001, 6501]; let code = [6001, 6501];
if (code.indexOf(result.data.bizCode) != -1) { if (code.indexOf(result.data.bizCode) != -1) {