Merge branch 'nice' into develop
This commit is contained in:
commit
4cd90d73e0
21 changed files with 153 additions and 29 deletions
|
|
@ -48,6 +48,9 @@ const dataMapToSend = computed(() => {
|
|||
citizenId: i.citizenId,
|
||||
rootId: i.rootId,
|
||||
remarkVertical: i.reason,
|
||||
position: i.position,
|
||||
posType: i.posTypeName,
|
||||
posLevel: i.posLevelName,
|
||||
}));
|
||||
});
|
||||
const visibleColumns2 = ref<string[]>([
|
||||
|
|
|
|||
|
|
@ -57,6 +57,9 @@ const dataMapToSend = computed(() => {
|
|||
citizenId: i.citizenId,
|
||||
rootId: i.rootId,
|
||||
remarkVertical: i.reason,
|
||||
position: i.position,
|
||||
posType: i.posTypeName,
|
||||
posLevel: i.posLevelName,
|
||||
}));
|
||||
});
|
||||
const visibleColumns2 = ref<string[]>([
|
||||
|
|
|
|||
|
|
@ -16,8 +16,13 @@ import DialogCreateCommand from "@/modules/18_command/components/DialogCreateCom
|
|||
/** use*/
|
||||
const $q = useQuasar();
|
||||
const { statusText } = useTransferDataStore();
|
||||
const { dialogConfirm, findOrgNameOld, findPosMasterNoOld, date2Thai,onSearchDataTable } =
|
||||
useCounterMixin();
|
||||
const {
|
||||
dialogConfirm,
|
||||
findOrgNameOld,
|
||||
findPosMasterNoOld,
|
||||
date2Thai,
|
||||
onSearchDataTable,
|
||||
} = useCounterMixin();
|
||||
|
||||
/** props*/
|
||||
const props = defineProps({
|
||||
|
|
@ -26,9 +31,11 @@ const props = defineProps({
|
|||
getData: Function,
|
||||
});
|
||||
|
||||
const rows2 = defineModel<any[]>('rows2',{required:true})
|
||||
const rows2Data = defineModel<any[]>('rows2Data',{required:true})
|
||||
const filterKeyword2 = defineModel<string>('filterKeyword2',{required:true})
|
||||
const rows2 = defineModel<any[]>("rows2", { required: true });
|
||||
const rows2Data = defineModel<any[]>("rows2Data", { required: true });
|
||||
const filterKeyword2 = defineModel<string>("filterKeyword2", {
|
||||
required: true,
|
||||
});
|
||||
|
||||
const emit = defineEmits(["update:filterKeyword2", "update:selected"]);
|
||||
|
||||
|
|
@ -180,6 +187,9 @@ const dataMapToSend = computed(() => {
|
|||
lastName: i.lastName,
|
||||
citizenId: i.citizenId,
|
||||
remarkVertical: i.reason,
|
||||
position: i.positionOld,
|
||||
posType: i.posTypeNameOld,
|
||||
posLevel: i.posLevelNameOld,
|
||||
}));
|
||||
});
|
||||
const modalCommand = ref<boolean>(false);
|
||||
|
|
@ -219,10 +229,10 @@ watch(
|
|||
);
|
||||
|
||||
function onSearch() {
|
||||
rows2.value= onSearchDataTable(
|
||||
rows2.value = onSearchDataTable(
|
||||
filterKeyword2.value,
|
||||
rows2Data.value,
|
||||
columns2.value? columns2.value: []
|
||||
columns2.value ? columns2.value : []
|
||||
);
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -53,6 +53,9 @@ const dataMapToSend = computed(() => {
|
|||
lastName: i.lastName,
|
||||
citizenId: i.citizenId,
|
||||
remarkVertical: i.reason,
|
||||
position: i.positionOld,
|
||||
posType: i.positionTypeOld,
|
||||
posLevel: i.positionLevelOld,
|
||||
}));
|
||||
});
|
||||
const visibleColumns2 = ref<string[]>([
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, watch } from "vue";
|
||||
import { ref, watch, computed } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
|
||||
import avatar from "@/assets/avatar_user.jpg";
|
||||
|
|
@ -21,7 +21,7 @@ const mixin = useCounterMixin();
|
|||
const route = useRoute();
|
||||
const DataStore = usePlacementDataStore();
|
||||
const storeCommand = useCommandMainStore();
|
||||
const { dialogConfirm, dateText,onSearchDataTable } = mixin;
|
||||
const { dialogConfirm, dateText, onSearchDataTable } = mixin;
|
||||
|
||||
const modal = defineModel<boolean>("modal", { required: true });
|
||||
/** props */
|
||||
|
|
@ -144,6 +144,22 @@ const columns = ref<QTableProps["columns"]>([
|
|||
},
|
||||
]);
|
||||
|
||||
const dataMapToSend = computed(() => {
|
||||
return selected.value.map((i: any) => ({
|
||||
id: i.id,
|
||||
profileId: i.profileId,
|
||||
prefix: i.prefix,
|
||||
firstName: i.firstName,
|
||||
lastName: i.lastName,
|
||||
citizenId: i.citizenId,
|
||||
rootId: i.rootId,
|
||||
remarkVertical: i.reason,
|
||||
position: i.positionCandidate,
|
||||
posType: i.posTypeCandidateName,
|
||||
posLevel: i.posLevelCandidateName,
|
||||
}));
|
||||
});
|
||||
|
||||
/**
|
||||
* ฟิลเตอร์ คำสั่ง
|
||||
* @param val ค่าจาก Input
|
||||
|
|
@ -185,7 +201,6 @@ function closeModal() {
|
|||
commandType.value = "";
|
||||
}
|
||||
|
||||
|
||||
function onSearch() {
|
||||
rows.value = onSearchDataTable(
|
||||
filter.value,
|
||||
|
|
@ -460,6 +475,6 @@ watch(
|
|||
<DialogCreateCommand
|
||||
v-model:modal="modalCommand"
|
||||
:command-type-code="commandType"
|
||||
:persons="selected"
|
||||
:persons="dataMapToSend"
|
||||
/>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@ const dataMapToSend = computed(() => {
|
|||
citizenId: i.citizenId,
|
||||
rootId: i.rootId,
|
||||
remarkVertical: i.reason,
|
||||
position: i.position,
|
||||
posType: i.posTypeName,
|
||||
posLevel: i.posLevelName,
|
||||
}));
|
||||
});
|
||||
const mixin = useCounterMixin();
|
||||
|
|
|
|||
|
|
@ -43,6 +43,9 @@ const dataMapToSend = computed(() => {
|
|||
lastName: i.lastName,
|
||||
citizenId: i.citizenId,
|
||||
remarkVertical: i.reason,
|
||||
position: i.positionOld,
|
||||
posType: i.posTypeNameOld,
|
||||
posLevel: i.posLevelNameOld,
|
||||
}));
|
||||
});
|
||||
const columns2 = ref<QTableProps["columns"]>([
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import DialogCreateCommand from "@/modules/18_command/components/DialogCreateCom
|
|||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const { statusText } = useTransferDataStore();
|
||||
const { dialogConfirm, date2Thai,onSearchDataTable } = mixin;
|
||||
const { dialogConfirm, date2Thai, onSearchDataTable } = mixin;
|
||||
|
||||
const modal = defineModel<boolean>("modal", { required: true });
|
||||
/** props */
|
||||
|
|
@ -23,8 +23,8 @@ const props = defineProps({
|
|||
fetchData: Function,
|
||||
});
|
||||
|
||||
const rows = defineModel<any[]>('rows',{required:true})
|
||||
const rowsData = defineModel<any[]>('rowsData',{required:true})
|
||||
const rows = defineModel<any[]>("rows", { required: true });
|
||||
const rowsData = defineModel<any[]>("rowsData", { required: true });
|
||||
const modalCommand = ref<boolean>(false); //เปิด-ปิด modal สร้างคำสั่ง
|
||||
//Table
|
||||
const selected = ref<ResponseData[]>([]); //รายชื่อที่เลือก
|
||||
|
|
@ -37,6 +37,9 @@ const dataMapToSend = computed(() => {
|
|||
lastName: i.lastName,
|
||||
citizenId: i.citizenId,
|
||||
remarkVertical: i.reason,
|
||||
position: i.positionOld,
|
||||
posType: i.positionTypeOld,
|
||||
posLevel: i.positionLevelOld,
|
||||
}));
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -61,6 +61,9 @@ const dataMapToSend = computed(() => {
|
|||
firstName: i.firstName,
|
||||
lastName: i.lastName,
|
||||
citizenId: i.idcard,
|
||||
position: i.positionOld,
|
||||
posType: i.positionTypeOld,
|
||||
posLevel: i.positionLevelOld,
|
||||
}));
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,9 @@ const dataMapToSend = computed(() => {
|
|||
lastName: i.lastName,
|
||||
citizenId: i.citizenId,
|
||||
rootId: i.rootId,
|
||||
position: i.positionOld,
|
||||
posType: i.positionTypeOld,
|
||||
posLevel: i.positionLevelOld,
|
||||
}))
|
||||
: [];
|
||||
});
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ export const useProbationDataStore = defineStore("probationStore", () => {
|
|||
evaluate.value = await data.evaluate;
|
||||
tabs.value = await data.evaluate;
|
||||
};
|
||||
const fecthAssignoutput = (data: any) => {
|
||||
const fecthAssignoutput = async (data: any) => {
|
||||
assignOutput.value = data.assign_output;
|
||||
director.value = data.director;
|
||||
person.value = data.person;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue