fix workflow
This commit is contained in:
parent
cc0c600174
commit
3da2fbb8d0
3 changed files with 44 additions and 15 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, watch } from "vue";
|
||||
import { ref, watch, computed } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
|
@ -19,10 +19,18 @@ const search = ref<string>("");
|
|||
const modal = defineModel<boolean>("modal", { required: true });
|
||||
const props = defineProps({
|
||||
stateId: { type: String, require: true },
|
||||
keycloakId: { type: String, require: true },
|
||||
sysName: { type: String, require: true },
|
||||
fetchData: { type: Function, require: true },
|
||||
type: { type: String, require: true },
|
||||
});
|
||||
|
||||
const rejectName = computed(() =>
|
||||
props.sysName && ["SYS_RESIGN", "SYS_RESIGN_EMP"].includes(props.sysName)
|
||||
? "ยับยั้ง"
|
||||
: "ไม่อนุมัติ"
|
||||
);
|
||||
|
||||
/** table*/
|
||||
const selected = ref<any[]>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
|
|
@ -88,6 +96,7 @@ async function fetchLists() {
|
|||
keyword: search.value,
|
||||
page: pagination.value.page,
|
||||
pageSize: pagination.value.rowsPerPage,
|
||||
keycloakId: props.keycloakId,
|
||||
})
|
||||
.then(async (res) => {
|
||||
totalList.value = Math.ceil(
|
||||
|
|
@ -136,8 +145,8 @@ function onCloseModal() {
|
|||
isApproveSetting.value = false;
|
||||
isReasonSetting.value = false;
|
||||
|
||||
search.value = ''
|
||||
isAct.value = false
|
||||
search.value = "";
|
||||
isAct.value = false;
|
||||
}
|
||||
|
||||
function onSearchData() {
|
||||
|
|
@ -174,7 +183,6 @@ watch(modal, (val) => {
|
|||
<q-form q-form greedy @submit.prevent @validation-success="onSubmit">
|
||||
<DialogHeader :tittle="`เลือกรายชื่อ`" :close="onCloseModal" />
|
||||
<q-separator />
|
||||
|
||||
<q-card-section>
|
||||
<div class="row q-col-gutter-sm items-start q-mb-sm">
|
||||
<div class="col-12 col-sm-4 col-md-4">
|
||||
|
|
@ -271,8 +279,8 @@ watch(modal, (val) => {
|
|||
props.rowIndex +
|
||||
1
|
||||
}}
|
||||
</div v-else>
|
||||
<div>
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ col.value ? col.value : "-" }}
|
||||
</div>
|
||||
</q-td>
|
||||
|
|
@ -298,10 +306,10 @@ watch(modal, (val) => {
|
|||
keep-color
|
||||
color="primary"
|
||||
v-model="isApproveSetting"
|
||||
label="ให้เลือกพิจารณา (อนุมัติ/ไม่อนุมัติ)"
|
||||
:label="`ให้เลือกพิจารณา (อนุมัติ/${rejectName})`"
|
||||
/>
|
||||
</div>
|
||||
<div v-if="!isAcceptSetting">
|
||||
<div>
|
||||
<q-checkbox
|
||||
dense
|
||||
keep-color
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue