Commit 8449c12c by 林家欣

修改条码公告注册、注销传参

parent fecb33c7
...@@ -101,9 +101,9 @@ export default { ...@@ -101,9 +101,9 @@ export default {
}, },
setLogoutFlag(currentTab) { setLogoutFlag(currentTab) {
if (currentTab === "zhuce") { if (currentTab === "zhuce") {
this.logoutFlag = "1"; this.logoutFlag = 0;
} else { } else {
this.logoutFlag = "0"; this.logoutFlag = 1;
} }
this.businessGetEanUpcByCondition(); this.businessGetEanUpcByCondition();
}, },
...@@ -122,17 +122,17 @@ export default { ...@@ -122,17 +122,17 @@ export default {
console.log(businessGetEanUpcByConditionRes, "条码注册/注销公告"); console.log(businessGetEanUpcByConditionRes, "条码注册/注销公告");
this.pageParams.total = data.totalCount; this.pageParams.total = data.totalCount;
let key; let key;
if (this.logoutFlag === "1") { if (this.logoutFlag === 1) {
key = 0;
} else {
key = 1; key = 1;
} else {
key = 0;
} }
data.list.forEach((el) => { data.list.forEach((el) => {
el.name = el.firmName; el.name = el.firmName;
if (this.logoutFlag === "1") { if (this.logoutFlag === 1) {
el.time = this.$moment(el.loginDate).format("YYYY-MM-DD");
} else {
el.time = this.$moment(el.logoutDate).format("YYYY-MM-DD"); el.time = this.$moment(el.logoutDate).format("YYYY-MM-DD");
} else {
el.time = this.$moment(el.loginDate).format("YYYY-MM-DD");
} }
}); });
this.list[key].data = data.list; this.list[key].data = data.list;
......
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