This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-12-20 11:30:37 +07:00
parent 302b947a2b
commit e4827229f8
3 changed files with 25 additions and 21 deletions

View file

@ -228,7 +228,7 @@ const columnsExpand = ref<QTableProps["columns"]>([
const reqMaster = reactive<FilterReqMaster>({
id: "",
type: 0,
isAll: false,
isAll: true,
isBlank: false,
page: 1,
pageSize: 10,
@ -340,6 +340,7 @@ async function fetchDataTable(
* @param data
*/
function updateSelected(data: NodeTree) {
reqMaster.isAll = data.orgTreeId === "" ? true : reqMaster.isAll;
nodeId.value = data.orgTreeId;
isOfficer.value = data.isOfficer;
fetchDataTable(data.orgTreeId, data.orgRevisionId, data.orgLevel);
@ -411,8 +412,7 @@ watch(
() => [reqMaster.isAll, reqMaster.isBlank],
() => {
reqMaster.page = 1;
reqMaster.id &&
fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type);
fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type);
}
);
@ -515,7 +515,10 @@ onMounted(() => {
</div>
<!-- TOOLBAR -->
<div class="col-xs-12 col-sm-9 q-pa-md row">
<div
class="col-xs-12 col-sm-9 q-pa-md row scroll"
style="height: 85vh"
>
<div class="col-12">
<q-toolbar style="padding: 0">
<q-space />
@ -534,6 +537,7 @@ onMounted(() => {
<div>
<q-checkbox
keep-color
:disable="nodeId"
v-model="reqMaster.isAll"
label="แสดงตำแหน่งทั้งหมด"
color="primary"
@ -828,7 +832,7 @@ onMounted(() => {
<style scoped>
.tree-container {
overflow: auto;
height: 75vh;
height: 80vh;
border: 1px solid #e6e6e7;
border-radius: 10px;
}