mask รหัสหน่วยงาน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-02-13 17:11:54 +07:00
parent f755d6e12e
commit 6d34aa5db4
2 changed files with 16 additions and 4 deletions

View file

@ -281,6 +281,7 @@ const tittleName = computed(() => {
</div>
<div class="col-2">
<q-input
mask="##"
v-model="formData.orgCode"
ref="orgCodeRef"
dense
@ -288,8 +289,6 @@ const tittleName = computed(() => {
for="#ocNo"
:label="level == 0 ? 'รหัสหน่วยงาน' : 'รหัสส่วนราชการ'"
hide-bottom-space
maxlength="2"
type="number"
class="inputNumber"
:rules="[
(val) =>

View file

@ -311,12 +311,25 @@ onMounted(async () => {
</q-card-section>
<q-separator />
<q-card-section style="padding: 0px">
<ListView
<!-- <ListView
v-if="store.statusView === 'list'"
v-model:historyId="historyId"
v-model:count="count"
/>
<StructureView v-if="store.statusView === 'tree'" />
<StructureView v-if="store.statusView === 'tree'" /> -->
<q-tab-panels v-model="store.statusView" animated>
<q-tab-panel name="list" style="padding: 0px">
<ListView
v-if="store.statusView === 'list'"
v-model:historyId="historyId"
v-model:count="count"
/>
</q-tab-panel>
<q-tab-panel name="tree" style="padding: 0px">
<StructureView v-if="store.statusView === 'tree'" />
</q-tab-panel>
</q-tab-panels>
</q-card-section>
</q-card>
</div>