This commit is contained in:
liushuai
2019-09-25 20:52:54 +08:00

View File

@@ -451,13 +451,18 @@ export default {
value2: response.data[i].项目名称 value2: response.data[i].项目名称
}) })
} }
}).then(() => { if (Cookie.get('group') !== undefined) {
this.Machine = parseInt(Cookie.get('machineValue')) this.Machine = parseInt(Cookie.get('machineValue'))
this.getGroup() this.getGroup()
this.Group = parseInt(Cookie.get('group')) this.Group = parseInt(Cookie.get('group'))
this.getTableData() this.getTableData()
Cookie.remove('machineValue') Cookie.remove('machineValue')
Cookie.remove('group') Cookie.remove('group')
} else {
this.getTableData()
Cookie.remove('machineValue')
Cookie.remove('group')
}
}) })
} else { } else {
this.Machine = '' this.Machine = ''