โครงสร้างอัตรากำลังข้าราชการ ส่งไปออกคำสั่งกรณีสำนักปลัด
This commit is contained in:
parent
aecf75c1e7
commit
f33da756af
4 changed files with 9 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ const { showLoader, hideLoader, messageError } = useCounterMixin();
|
|||
/** props*/
|
||||
const historyId = defineModel<string>("historyId", { required: true }); // id ประวัติโครงสร้าง
|
||||
const count = defineModel<number>("count", { required: true });
|
||||
const isDeputy = defineModel<boolean>("isDeputy", { default: false });
|
||||
|
||||
const nodeTree = ref<OrgTree[]>(); // ข้อมูล Tree
|
||||
const nodeId = ref<string>(""); // id ของ Tree
|
||||
|
|
@ -267,6 +268,7 @@ onMounted(async () => {
|
|||
v-model:short-name="shortName"
|
||||
v-model:node-id="nodeId"
|
||||
v-model:org-root-id="orgRootId"
|
||||
v-model:is-deputy="isDeputy"
|
||||
:fetch-data-table="fetchDataTable"
|
||||
:fetch-data-tree="fetchDataTree"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ const nodeId = defineModel<string>("nodeId", { required: true });
|
|||
const orgRootId = defineModel<string | undefined>("orgRootId", {
|
||||
required: true,
|
||||
});
|
||||
const isDeputy = defineModel<boolean>("isDeputy", { default: false });
|
||||
const shortName = defineModel<string>("shortName", { required: true });
|
||||
const props = defineProps({
|
||||
fetchDataTree: {
|
||||
|
|
@ -101,6 +102,7 @@ const orgId = ref<string>("");
|
|||
* @param data ข่อมูล Tree
|
||||
*/
|
||||
function updateSelected(data: DataTree) {
|
||||
isDeputy.value = data.isDeputy;
|
||||
orgRootId.value = data?.orgLevel === 0 ? data?.orgTreeId : data?.orgRootId;
|
||||
store.rootId = (
|
||||
data.orgLevel === 0 ? data.orgTreeId : data.orgRootId
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ interface DataTree {
|
|||
totalRootPositionCurrentVacant: number;
|
||||
totalRootPositionNextUse: number;
|
||||
totalRootPositionNextVacant: number;
|
||||
isDeputy: boolean;
|
||||
|
||||
children?: DataTree[];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ const count = ref<number>(0);
|
|||
|
||||
const modalCommand = ref<boolean>(false); //ส่งไปออกคำสั่ง
|
||||
const modalRemark = ref<boolean>(false); // หมายเหตุ
|
||||
const isDeputy = ref<boolean>(false); // สำนักงานปลัด
|
||||
|
||||
/**
|
||||
* function เรียกข้อมูลโครงสร้าง แบบปัจุบันและ แบบร่าง
|
||||
|
|
@ -333,6 +334,7 @@ onMounted(async () => {
|
|||
@click="ocClickAddStructure('ADD')"
|
||||
class="q-px-md"
|
||||
/>
|
||||
|
||||
<q-btn
|
||||
v-if="
|
||||
store.typeOrganizational === 'draft' &&
|
||||
|
|
@ -407,6 +409,7 @@ onMounted(async () => {
|
|||
v-if="store.statusView === 'list'"
|
||||
v-model:historyId="historyId"
|
||||
v-model:count="count"
|
||||
v-model:is-deputy="isDeputy"
|
||||
/>
|
||||
</q-tab-panel>
|
||||
|
||||
|
|
@ -447,6 +450,7 @@ onMounted(async () => {
|
|||
v-model:is-staff="store.isStaff as boolean"
|
||||
v-model:root-id="store.rootId"
|
||||
:system-name="'ORGANIZATION'"
|
||||
v-model:is-deputy="isDeputy"
|
||||
/>
|
||||
|
||||
<q-dialog v-model="modalRemark">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue