props roundId
This commit is contained in:
parent
8d45efa921
commit
5c50705f72
4 changed files with 33 additions and 10 deletions
|
|
@ -24,5 +24,8 @@ export default {
|
||||||
insigniaNosend: (insigniaPeriodId: any) => `${insignia}/request/org/no-send/${insigniaPeriodId}`,
|
insigniaNosend: (insigniaPeriodId: any) => `${insignia}/request/org/no-send/${insigniaPeriodId}`,
|
||||||
insigniaAgency: () => `${insignia}/request/agency`,
|
insigniaAgency: () => `${insignia}/request/agency`,
|
||||||
insigniaDashboard: (insigniaPeriodId: string) => `${insignia}/request/dashboard/${insigniaPeriodId}`,
|
insigniaDashboard: (insigniaPeriodId: string) => `${insignia}/request/dashboard/${insigniaPeriodId}`,
|
||||||
|
// record
|
||||||
|
noteround: () => `${insignia}/request/note`,
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -173,9 +173,6 @@ const columns2 = ref<QTableProps["columns"]>([
|
||||||
|
|
||||||
const rows2 = ref<any[]>([]);
|
const rows2 = ref<any[]>([]);
|
||||||
|
|
||||||
const Note = ref<string>("");
|
|
||||||
const titleModal = ref<string>("");
|
|
||||||
const actionModal = ref<string>("");
|
|
||||||
const person = ref<any>([]);
|
const person = ref<any>([]);
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
tab: {
|
tab: {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from "vue";
|
import { ref, onMounted } from "vue";
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
|
|
||||||
const fileUpload = ref<any>(null);
|
const fileUpload = ref<any>(null);
|
||||||
|
|
@ -59,6 +59,14 @@ const rows2 = ref<any>([
|
||||||
file: "",
|
file: "",
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
const props = defineProps({
|
||||||
|
roundId: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
onMounted(() => {
|
||||||
|
console.log(props.roundId);
|
||||||
|
});
|
||||||
const resetFilterRef = () => {
|
const resetFilterRef = () => {
|
||||||
filterKeyword.value = "";
|
filterKeyword.value = "";
|
||||||
filterDoc.value.focus();
|
filterDoc.value.focus();
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
import { ref, onMounted } from "vue";
|
import { ref, onMounted } from "vue";
|
||||||
// import { useRouter } from "vue-router";
|
// import { useRouter } from "vue-router";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
import http from "@/plugins/http";
|
||||||
|
import config from "@/app.config";
|
||||||
|
|
||||||
import DialogForm from "@/modules/07_insignia/components/3_result/DialogForm.vue";
|
import DialogForm from "@/modules/07_insignia/components/3_result/DialogForm.vue";
|
||||||
import fileUploadview from "../components/3_result/fileUpload.vue";
|
import fileUploadview from "../components/3_result/fileUpload.vue";
|
||||||
|
|
@ -21,12 +23,25 @@ const selectTypeOption = ref<OptionData[]>([
|
||||||
{ id: "1", name: "เบญจมาภรณ์มงกุฎไทย" },
|
{ id: "1", name: "เบญจมาภรณ์มงกุฎไทย" },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const selectRound = ref<string>("1");
|
const selectRound = ref<string>();
|
||||||
const selectRoundOption = ref<OptionData[]>([
|
const selectRoundOption = ref<OptionData[]>([]);
|
||||||
{ id: "1", name: "รอบการเสนอขอพระราชทานเครื่องราชฯ ปี 2566" },
|
onMounted(async () => {
|
||||||
]);
|
await fecthRound();
|
||||||
const filterKeyword = ref<string>("");
|
});
|
||||||
|
const fecthRound = async () => {
|
||||||
|
await http
|
||||||
|
.get(config.API.noteround())
|
||||||
|
.then((res) => {
|
||||||
|
let data = res.data.result;
|
||||||
|
selectRoundOption.value = data;
|
||||||
|
selectRound.value = data[0].id;
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const filterKeyword = ref<string>("");
|
||||||
|
|
||||||
const pagination = ref({
|
const pagination = ref({
|
||||||
sortBy: "filename",
|
sortBy: "filename",
|
||||||
|
|
@ -670,7 +685,7 @@ const filterSelector = (val: any, update: Function, filtername: string) => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-else-if="tab == 'doc'">
|
<div v-else-if="tab == 'doc'">
|
||||||
<fileUploadview />
|
<fileUploadview :roundId="selectRound" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue