props roundId
This commit is contained in:
parent
8d45efa921
commit
5c50705f72
4 changed files with 33 additions and 10 deletions
|
|
@ -173,9 +173,6 @@ const columns2 = ref<QTableProps["columns"]>([
|
|||
|
||||
const rows2 = ref<any[]>([]);
|
||||
|
||||
const Note = ref<string>("");
|
||||
const titleModal = ref<string>("");
|
||||
const actionModal = ref<string>("");
|
||||
const person = ref<any>([]);
|
||||
const props = defineProps({
|
||||
tab: {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { ref, onMounted } from "vue";
|
||||
import type { QTableProps } from "quasar";
|
||||
|
||||
const fileUpload = ref<any>(null);
|
||||
|
|
@ -59,6 +59,14 @@ const rows2 = ref<any>([
|
|||
file: "",
|
||||
},
|
||||
]);
|
||||
const props = defineProps({
|
||||
roundId: {
|
||||
type: String,
|
||||
},
|
||||
});
|
||||
onMounted(() => {
|
||||
console.log(props.roundId);
|
||||
});
|
||||
const resetFilterRef = () => {
|
||||
filterKeyword.value = "";
|
||||
filterDoc.value.focus();
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
import { ref, onMounted } from "vue";
|
||||
// import { useRouter } from "vue-router";
|
||||
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 fileUploadview from "../components/3_result/fileUpload.vue";
|
||||
|
|
@ -21,12 +23,25 @@ const selectTypeOption = ref<OptionData[]>([
|
|||
{ id: "1", name: "เบญจมาภรณ์มงกุฎไทย" },
|
||||
]);
|
||||
|
||||
const selectRound = ref<string>("1");
|
||||
const selectRoundOption = ref<OptionData[]>([
|
||||
{ id: "1", name: "รอบการเสนอขอพระราชทานเครื่องราชฯ ปี 2566" },
|
||||
]);
|
||||
const filterKeyword = ref<string>("");
|
||||
const selectRound = ref<string>();
|
||||
const selectRoundOption = ref<OptionData[]>([]);
|
||||
onMounted(async () => {
|
||||
await fecthRound();
|
||||
});
|
||||
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({
|
||||
sortBy: "filename",
|
||||
|
|
@ -670,7 +685,7 @@ const filterSelector = (val: any, update: Function, filtername: string) => {
|
|||
</div>
|
||||
|
||||
<div v-else-if="tab == 'doc'">
|
||||
<fileUploadview />
|
||||
<fileUploadview :roundId="selectRound" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue