แก้ไขผลการพิจารณาทางวินัย
This commit is contained in:
parent
716aee4939
commit
08e3add091
2 changed files with 27 additions and 16 deletions
|
|
@ -1,10 +1,12 @@
|
|||
div<script setup lang="ts">
|
||||
div
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted, reactive, watch } from "vue";
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { useQuasar, QForm } from "quasar";
|
||||
import { useRouter, useRoute } from "vue-router";
|
||||
|
||||
import DialogAddPersonal from "@/components/Dialogs/AddPersonal.vue";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useInvestigateDisStore } from "@/modules/11_discipline/store/InvestigateDisStore";
|
||||
import { useDisciplineResultStore } from "@/modules/11_discipline/store/ResultStore";
|
||||
|
|
@ -65,6 +67,18 @@ const objectdisciplinary: FormRef = {
|
|||
};
|
||||
|
||||
const organizationOption = ref<DataOption[]>([]);
|
||||
|
||||
async function addPerson(data: any) {
|
||||
await mainStore.fetchData(data);
|
||||
console.log(mainStore.rowsAdd)
|
||||
toggleModal();
|
||||
}
|
||||
|
||||
function handleSave(returnData: any) {
|
||||
addPerson(returnData);
|
||||
toggleModal();
|
||||
}
|
||||
|
||||
/** function เรียกรายชื่อหน่วยงาน*/
|
||||
async function fetchOrganization() {
|
||||
await http
|
||||
|
|
@ -142,8 +156,9 @@ async function fetchDatadetail() {
|
|||
watch(
|
||||
() => props.data,
|
||||
async () => {
|
||||
console.log(props.data);
|
||||
console.log('pros',props.data);
|
||||
respondentType.value = props.data.respondentType;
|
||||
mainStore.rowsAdd = props.data.persons;
|
||||
await fetchDatadetail();
|
||||
await fetchOrganization();
|
||||
}
|
||||
|
|
@ -360,5 +375,14 @@ onMounted(async () => {});
|
|||
>
|
||||
</div>
|
||||
</q-card>
|
||||
<DialogAddPersonal
|
||||
title="ผู้ถูกร้องเรียน"
|
||||
:mainData="mainStore.rowsAdd"
|
||||
:modal="modalPerson"
|
||||
btn-title="เพิ่มรายชื่อผู้ถูกร้องเรียน"
|
||||
:close="toggleModal"
|
||||
:save="addPerson"
|
||||
@returnData="handleSave"
|
||||
/>
|
||||
</form>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ import type {
|
|||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
import { useDisciplineMainStore } from "@/modules/11_discipline/store/main";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
const mixin = useCounterMixin();
|
||||
const storeMain = useDisciplineMainStore();
|
||||
const { date2Thai } = mixin;
|
||||
|
|
@ -64,19 +63,7 @@ export const useDisciplineResultStore = defineStore(
|
|||
}
|
||||
|
||||
|
||||
async function fecthDirector(data: directorType[]) {
|
||||
let datalistDirector: directorType[] = data.map((e: directorType) => ({
|
||||
nameDirector: e.nameDirector,
|
||||
position: e.position,
|
||||
duty: e.duty,
|
||||
email: e.email,
|
||||
telephone: e.telephone,
|
||||
role: e.role,
|
||||
}));
|
||||
rows2.value = datalistDirector;
|
||||
selected.value = rows2.value;
|
||||
console.log(rows2.value);
|
||||
}
|
||||
|
||||
|
||||
const visibleColumns = ref<String[]>([
|
||||
"no",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue