fix: สรรหา ปรับ pagin /โครงสร้าง ปิดดาวโหลดได้เเค่ root ปรับข้อความ
This commit is contained in:
parent
e4bdf45beb
commit
8263697759
8 changed files with 162 additions and 58 deletions
|
|
@ -576,7 +576,9 @@ const dataCondition = ref<DataPositionCondition>();
|
|||
|
||||
function onClickCodition(data: PosMaster2) {
|
||||
dataCondition.value = {
|
||||
conditionReason: data.conditionReason,
|
||||
conditionReason: data.conditionReason
|
||||
? data.conditionReason.replace(/ /g, " \n")
|
||||
: "",
|
||||
id: data.id,
|
||||
isCondition: data.isCondition,
|
||||
orgShortname: data.orgShortname,
|
||||
|
|
@ -600,7 +602,7 @@ async function fetchDataCondition() {
|
|||
}
|
||||
|
||||
function onClickAction(type: string, data: PosMaster2) {
|
||||
console.log(data);
|
||||
|
||||
switch (type) {
|
||||
case "EDIT":
|
||||
onClickPosition(type, data.id, data);
|
||||
|
|
@ -698,7 +700,14 @@ watch(
|
|||
</div>
|
||||
|
||||
<!-- v-if="store.typeOrganizational === 'draft'" -->
|
||||
<q-btn flat round dense color="deep-purple" icon="save_alt">
|
||||
<q-btn
|
||||
v-if="orgLevel == 0"
|
||||
flat
|
||||
round
|
||||
dense
|
||||
color="deep-purple"
|
||||
icon="save_alt"
|
||||
>
|
||||
<q-menu>
|
||||
<q-list
|
||||
dense
|
||||
|
|
@ -955,35 +964,36 @@ watch(
|
|||
}}
|
||||
</div>
|
||||
<div v-else-if="col.name == 'positionIsSelected'">
|
||||
{{
|
||||
props.row.positionIsSelected
|
||||
? props.row.positionIsSelected
|
||||
: "-"
|
||||
}}
|
||||
{{
|
||||
props.row.isCondition && props.row.conditionReason
|
||||
? `(${props.row.conditionReason})`
|
||||
: ""
|
||||
}}
|
||||
|
||||
<q-btn
|
||||
v-if="props.row.positionIsSelected != 'ว่าง'"
|
||||
size="12px"
|
||||
dense
|
||||
flat
|
||||
icon="info"
|
||||
color="info"
|
||||
round
|
||||
@click="
|
||||
(modalPerson = true),
|
||||
(personalId =
|
||||
store.typeOrganizational === 'draft'
|
||||
? props.row.next_holderId
|
||||
: props.row.current_holderId)
|
||||
"
|
||||
>
|
||||
<q-tooltip>ดูข้อมูลในทะเบียนประวัติ</q-tooltip>
|
||||
</q-btn>
|
||||
<div class="row text-html items-center">
|
||||
{{
|
||||
props.row.positionIsSelected
|
||||
? props.row.positionIsSelected
|
||||
: "-"
|
||||
}}
|
||||
{{
|
||||
props.row.isCondition && props.row.conditionReason
|
||||
? `(${props.row.conditionReason})`
|
||||
: ""
|
||||
}}
|
||||
<q-btn
|
||||
v-if="props.row.positionIsSelected != 'ว่าง'"
|
||||
size="12px"
|
||||
dense
|
||||
flat
|
||||
icon="info"
|
||||
color="info"
|
||||
round
|
||||
@click="
|
||||
(modalPerson = true),
|
||||
(personalId =
|
||||
store.typeOrganizational === 'draft'
|
||||
? props.row.next_holderId
|
||||
: props.row.current_holderId)
|
||||
"
|
||||
>
|
||||
<q-tooltip>ดูข้อมูลในทะเบียนประวัติ</q-tooltip>
|
||||
</q-btn>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ col.value ? col.value : "-" }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue