fix: probation api
This commit is contained in:
parent
663c4a9262
commit
699997401e
3 changed files with 6 additions and 3 deletions
|
|
@ -30,7 +30,8 @@ export default {
|
||||||
`${reportProbation}/13/${type}/${id}`,
|
`${reportProbation}/13/${type}/${id}`,
|
||||||
reportEvaluateRecord1: (type: string, id: string) =>
|
reportEvaluateRecord1: (type: string, id: string) =>
|
||||||
`${reportProbation}/14/${type}/${id}`,
|
`${reportProbation}/14/${type}/${id}`,
|
||||||
// reportEvaluateRecord2:(type:string, id:string) => `${reportProbation}/15/${type}/${id}`,
|
reportEvaluateRecord2: (type: string, id: string) =>
|
||||||
|
`${reportProbation}/15/${type}/${id}`,
|
||||||
reportEvaluate: (type: string, id: string) =>
|
reportEvaluate: (type: string, id: string) =>
|
||||||
`${reportProbation}/16/${type}/${id}`,
|
`${reportProbation}/16/${type}/${id}`,
|
||||||
reportEvaluateChairman: (type: string, id: string) =>
|
reportEvaluateChairman: (type: string, id: string) =>
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ async function FileDownload(type: string) {
|
||||||
//ผุ้บังคับ
|
//ผุ้บังคับ
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(config.API.reportEvaluateRecord1(type, numTab.id))
|
.get(config.API.reportEvaluateRecord2(type, numTab.id))
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
await genReport(
|
await genReport(
|
||||||
|
|
@ -132,6 +132,7 @@ onMounted(async () => {
|
||||||
:checkPermission="probationStore?.dataPermissions?.tab2?.isEdit as boolean"
|
:checkPermission="probationStore?.dataPermissions?.tab2?.isEdit as boolean"
|
||||||
:is-max="probationStore.tabs.length === 3"
|
:is-max="probationStore.tabs.length === 3"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-tab-panels
|
<q-tab-panels
|
||||||
v-model="tab"
|
v-model="tab"
|
||||||
animated
|
animated
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ async function FileDownload(type: string) {
|
||||||
//ผุ้บังคับ
|
//ผุ้บังคับ
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(config.API.reportEvaluateRecord1(type, numTab.id))
|
.get(config.API.reportEvaluateRecord2(type, numTab.id))
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
await genReport(
|
await genReport(
|
||||||
|
|
@ -148,6 +148,7 @@ onMounted(async () => {
|
||||||
:checkPermission="probationStore?.dataPermissions?.tab3?.isEdit as boolean"
|
:checkPermission="probationStore?.dataPermissions?.tab3?.isEdit as boolean"
|
||||||
:is-max="probationStore.tabs.length === 3"
|
:is-max="probationStore.tabs.length === 3"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-tab-panels
|
<q-tab-panels
|
||||||
v-model="tab"
|
v-model="tab"
|
||||||
animated
|
animated
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue