Updated assessor page
This commit is contained in:
parent
bae809c49c
commit
f67721abff
2 changed files with 111 additions and 79 deletions
|
|
@ -80,3 +80,13 @@
|
||||||
|
|
||||||
&__button
|
&__button
|
||||||
padding: 1rem 0 0 0
|
padding: 1rem 0 0 0
|
||||||
|
|
||||||
|
.loading-spinner
|
||||||
|
display: inline-block
|
||||||
|
animation: rotate 2s linear infinite
|
||||||
|
|
||||||
|
@keyframes rotate
|
||||||
|
from
|
||||||
|
transform: rotate(0deg)
|
||||||
|
to
|
||||||
|
transform: rotate(360deg)
|
||||||
|
|
@ -33,6 +33,7 @@ import {
|
||||||
_units,
|
_units,
|
||||||
} from '../../stores/pdfinfo.ts'
|
} from '../../stores/pdfinfo.ts'
|
||||||
import { checkConnection, createPdfElectrical, createPdfOccupancy, getApi, getApiMulti, getDateTime, postApi, saveNewName, saveNewPassword, securePassword, statusPopsApi, voidPopsApi } from '../../utils/functions/index.ts'
|
import { checkConnection, createPdfElectrical, createPdfOccupancy, getApi, getApiMulti, getDateTime, postApi, saveNewName, saveNewPassword, securePassword, statusPopsApi, voidPopsApi } from '../../utils/functions/index.ts'
|
||||||
|
import { AiOutlineLoading3Quarters } from 'solid-icons/ai'
|
||||||
import './Assessor.sass'
|
import './Assessor.sass'
|
||||||
|
|
||||||
const PESO = import.meta.env.VITE_PESO
|
const PESO = import.meta.env.VITE_PESO
|
||||||
|
|
@ -82,6 +83,7 @@ export default () => {
|
||||||
const [selectedType, setSelectedType] = createSignal('Print')
|
const [selectedType, setSelectedType] = createSignal('Print')
|
||||||
|
|
||||||
const [voidError, setVoidError] = createSignal(false)
|
const [voidError, setVoidError] = createSignal(false)
|
||||||
|
const [isLoading, setIsLoading] = createSignal(false)
|
||||||
|
|
||||||
let bldgadditional = false
|
let bldgadditional = false
|
||||||
|
|
||||||
|
|
@ -246,6 +248,8 @@ export default () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const getListForPrinting = async (division: string) => {
|
const getListForPrinting = async (division: string) => {
|
||||||
|
setIsLoading(true)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let response: any
|
let response: any
|
||||||
|
|
||||||
|
|
@ -283,6 +287,8 @@ export default () => {
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setIsLoading(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeEmployee = () => {
|
const removeEmployee = () => {
|
||||||
|
|
@ -506,6 +512,11 @@ export default () => {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const checkStatusPopsLocal = async (application: string) => {
|
||||||
|
const response = await getApi('check-statuspops-local', application)
|
||||||
|
return response
|
||||||
|
}
|
||||||
|
|
||||||
const statusPopsOp = async (application: string) => {
|
const statusPopsOp = async (application: string) => {
|
||||||
const response = await statusPopsApi(application)
|
const response = await statusPopsApi(application)
|
||||||
return response
|
return response
|
||||||
|
|
@ -866,6 +877,16 @@ export default () => {
|
||||||
</Padding>
|
</Padding>
|
||||||
|
|
||||||
<Row>
|
<Row>
|
||||||
|
<Show when={isLoading()}>
|
||||||
|
<Padding top={2} bottom={0} right={10} left={10}>
|
||||||
|
<Column gap={1}>
|
||||||
|
<AiOutlineLoading3Quarters class="loading-spinner" size={42} opacity={0.8} />
|
||||||
|
<span>Downloading Data</span>
|
||||||
|
</Column>
|
||||||
|
</Padding>
|
||||||
|
</Show>
|
||||||
|
|
||||||
|
<Show when={!isLoading()}>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -947,6 +968,7 @@ export default () => {
|
||||||
))}
|
))}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</Show>
|
||||||
</Row>
|
</Row>
|
||||||
</Tabs.Content>
|
</Tabs.Content>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue