| | |
| | | }; |
| | | listSealApplication(params) |
| | | .then(res => { |
| | | const currentFactoryName = userStore.currentFactoryName; |
| | | if (currentFactoryName) { |
| | | visitList.value = res.data.records.filter( |
| | | item => item.department === currentFactoryName |
| | | ); |
| | | } else { |
| | | // const currentFactoryName = userStore.currentFactoryName; |
| | | // if (currentFactoryName) { |
| | | // visitList.value = res.data.records.filter( |
| | | // item => item.department === currentFactoryName |
| | | // ); |
| | | // } else { |
| | | visitList.value = res.data.records; |
| | | } |
| | | // } |
| | | closeToast(); |
| | | }) |
| | | .catch(() => { |