Commit 8449c12c by 林家欣

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

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