Merge branch 'nice_dev' into develop

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-02-12 10:31:54 +07:00
commit 335d500e11
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,
getSummary: Function,
});
@ -781,6 +781,7 @@ async function emitSearch(keyword: string, typeSelect: string) {
label="คำค้น"
hide-bottom-space
:rules="[(val) => !!val || `กรุณากรอกคำค้น`]"
@keydown.enter.prevent="searchInput()"
/>
</div>

View file

@ -377,10 +377,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;
@ -402,6 +402,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;
}