แก้ space ขึ้นบรรทัดใหม่ เเก้คำ พ้นราชการ

This commit is contained in:
setthawutttty 2025-03-19 17:41:35 +07:00
parent 90ed596dec
commit b8f971e251
23 changed files with 377 additions and 170 deletions

View file

@ -23,8 +23,14 @@ const stroeResign = useDataStore();
const { statusText } = stroe;
const router = useRouter();
const mixin = useCounterMixin();
const { messageError, date2Thai, showLoader, hideLoader, onSearchDataTable } =
mixin;
const {
messageError,
date2Thai,
showLoader,
hideLoader,
onSearchDataTable,
textTranForm,
} = mixin;
/** Table */
const rows = ref<ResponseItems[]>([]);
@ -85,7 +91,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "positionNumberOld",
align: "left",
label: "เลขที่",
label: "ตำแหน่งเลขที่",
sortable: true,
field: "positionNumberOld",
headerStyle: "font-size: 14px",
@ -99,6 +105,9 @@ const columns = ref<QTableProps["columns"]>([
field: "organizationPositionOld",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(val, row) {
return `${row.organizationPositionOld.replace(/\n/g, " ")}`;
},
},
{
name: "datetext",
@ -374,13 +383,16 @@ onMounted(async () => {
</q-td>
<q-td v-for="col in props.cols" :key="col.id">
<div
:class="
col.name === 'organizationPositionOld' ||
col.name === 'organization'
? 'table_ellipsis2'
: ''
"
v-if="col.name == 'organizationPositionOld'"
class="text-html"
>
{{
props.row.organizationPositionOld
? textTranForm(props.row.organizationPositionOld)
: "-"
}}
</div>
<div v-else>
{{ col.value ? col.value : "-" }}
</div>
</q-td>
@ -393,7 +405,7 @@ onMounted(async () => {
<DialogSendToCommand
v-model:modal="modal"
v-model:filter-keyword2="filterKeyword2"
v-model:filter-keyword="filterKeyword2"
:close-modal="closeModal"
:rows="rowsSendToCommand"
:fecth-list="fecthlist"