增加无项目提示,
This commit is contained in:
@@ -208,8 +208,8 @@ export default {
|
||||
mode: false,
|
||||
loading: true,
|
||||
data: {
|
||||
idCard: "无数据",
|
||||
userName: "无数据",
|
||||
idCard: "加载中...",
|
||||
userName: "加载中...",
|
||||
policiesRegulationsLists: {
|
||||
totalCount: 0,
|
||||
list: [
|
||||
@@ -222,6 +222,7 @@ export default {
|
||||
// { title: "无数据", publicTime: "无数据", area: "无数据" }
|
||||
]
|
||||
}
|
||||
// prjList: [{}, {}]
|
||||
// prjList: [
|
||||
// {
|
||||
// name: "无数据",
|
||||
@@ -379,7 +380,7 @@ export default {
|
||||
}
|
||||
},
|
||||
setIdCard(id) {
|
||||
return id == "无数据"
|
||||
return id == "加载中..."
|
||||
? id
|
||||
: id.substr(0, 6) + "********" + id.substr(14, 4);
|
||||
},
|
||||
|
||||
@@ -21,8 +21,8 @@ export default {
|
||||
return {
|
||||
loading: true,
|
||||
info: {
|
||||
title: "无数据",
|
||||
publicTime: "无数据"
|
||||
title: "加载中...",
|
||||
publicTime: "加载中..."
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
@@ -99,8 +99,18 @@ export default {
|
||||
window.sessionStorage.setItem("type", this.$route.params.type);
|
||||
}
|
||||
let result = JSON.parse(window.sessionStorage.getItem("homeData"));
|
||||
// console.log("啊", result);
|
||||
if (result.data.success) {
|
||||
this.info = result.data.data;
|
||||
|
||||
if (result.data.data.prjList.length == 0) {
|
||||
this.$message({
|
||||
message: "无征收项目",
|
||||
duration: 3000,
|
||||
type: "info",
|
||||
center: true
|
||||
});
|
||||
}
|
||||
} else {
|
||||
let code = [6001, 6501];
|
||||
if (code.indexOf(result.data.bizCode) != -1) {
|
||||
|
||||
Reference in New Issue
Block a user