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

View file

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

View file

@ -176,7 +176,6 @@ watch(
<TreeView <TreeView
v-model:nodeTree="nodeTree" v-model:nodeTree="nodeTree"
v-model:nodeId="nodeId" v-model:nodeId="nodeId"
v-model:isLoad="isLoad"
v-model:selected="selected" v-model:selected="selected"
:fetchDataTree="fetchDataTree" :fetchDataTree="fetchDataTree"
:fetchDataTable="fetchDataTable" :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" 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="row col q-pa-sm item">
<div class="ellipsis"> <div class="ellipsis">ตำแหนงทงหมด</div>
ตำแหนงทงหมด
</div>
<q-space /> <q-space />
<q-badge <q-badge
color="secondary" color="secondary"

View file

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