ปรับ ui โครงสร้างอัตรากำลัง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-02-12 10:31:37 +07:00
parent 2a7051f5f6
commit 628a9aae9f
4 changed files with 10 additions and 9 deletions

View file

@ -31,7 +31,7 @@ const props = defineProps({
orgLevel: Number,
treeId: String,
actionType: String,
rowId: String,
rowId: { type: String, default: "" },
fetchDataTable: Function,
});
@ -779,6 +779,7 @@ async function emitSearch(keyword: string, typeSelect: string) {
label="คำค้น"
hide-bottom-space
:rules="[(val) => !!val || `กรุณากรอกคำค้น`]"
@keydown.enter.prevent="searchInput()"
/>
</div>

View file

@ -372,10 +372,10 @@ function clearPosition() {
/** callback function ทำงานเมื่อเปิด popup*/
watch(
() => modal.value,
() => {
async () => {
if (modal.value == true) {
clearForm();
fetchType();
await clearForm();
await fetchType();
if (props.dataDetailPos) {
formData.positionNo = props.dataDetailPos.posMasterNo;
@ -397,6 +397,9 @@ watch(
: "-",
positionArea: e.positionArea ? e.positionArea : "-",
}));
if (row.value.length === 1) {
selected.value.push(row.value[0]);
}
}
}
}

View file

@ -176,7 +176,6 @@ watch(
<TreeView
v-model:nodeTree="nodeTree"
v-model:nodeId="nodeId"
v-model:isLoad="isLoad"
v-model:selected="selected"
:fetchDataTree="fetchDataTree"
:fetchDataTable="fetchDataTable"
@ -209,9 +208,7 @@ watch(
class="row col-12 justify-between list-summary q-gutter-xs bg-grey-1 q-pb-xs q-pr-xs"
>
<div class="row col q-pa-sm item">
<div class="ellipsis">
ตำแหนงทงหมด
</div>
<div class="ellipsis">ตำแหนงทงหมด</div>
<q-space />
<q-badge
color="secondary"

View file

@ -240,7 +240,7 @@ const dialogPosition = ref<boolean>(false);
* @param id id
*/
function onClickPosition(type: string, id: string) {
rowId.value = id;
rowId.value = id ? id : "";
actionType.value = type;
dialogPosition.value = !dialogPosition.value;
}