fix bug rows
This commit is contained in:
parent
823fe93528
commit
8e422174a8
34 changed files with 34 additions and 34 deletions
|
|
@ -127,7 +127,7 @@
|
|||
import { ref, useAttrs, computed } from "vue";
|
||||
import type { Pagination } from "@/modules/01_metadata/interface/index/Main";
|
||||
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const attrs = ref<any>(useAttrs());
|
||||
const filterRef = ref<any>(null);
|
||||
// const history = ref<string>("");
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ import { useQuasar } from "quasar";
|
|||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin(); //เรียกฟังก์ชันกลาง
|
||||
const { dialogMessage } = mixin;
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const attrs = ref<any>(useAttrs());
|
||||
const table = ref<any>(null);
|
||||
const filterRef = ref<any>(null);
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import config from "@/app.config";
|
|||
const total = ref<number>();
|
||||
const id = ref<string>("");
|
||||
const modal = ref<boolean>(false);
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const editStatus = ref<boolean>(false);
|
||||
const groupName = ref<any>();
|
||||
const position = ref<any>();
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ function onDrop(from: any, to: any) {
|
|||
onDropRow(from, to);
|
||||
}
|
||||
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
function onDropRow(from: any, to: any) {
|
||||
rows.value.splice(to, 0, rows.value.splice(from, 1)[0]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
style: "font-size: 14px",
|
||||
},
|
||||
]);
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
|
||||
const visibleColumns = ref<string[]>([
|
||||
"no",
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ const positionMainOp = ref<DataOption[]>([{ id: "", name: "ทั้งหมด
|
|||
const maxPage = ref<number>(1);
|
||||
|
||||
/** หัวตาราง */
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
{
|
||||
name: "including",
|
||||
|
|
|
|||
|
|
@ -841,7 +841,7 @@ const editRow = ref<boolean>(false); //เช็คมีการแก้ไ
|
|||
const statusCode = ref<number>();
|
||||
const checkValidate = ref<boolean>(false); //validate data ผ่านหรือไม่
|
||||
const organizationId = ref<string>("");
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const filter = ref<string>(""); //search data table
|
||||
|
||||
const visibleColumns = ref<String[]>([
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ const props = defineProps({
|
|||
|
||||
const modal = defineModel<boolean>("sortAgency", { required: true });
|
||||
const modalSort = defineModel<Array<any>>("data", { required: true });
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
{
|
||||
name: "name",
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ const { dialogConfirm, showLoader, success, hideLoader, messageError } =
|
|||
useCounterMixin();
|
||||
|
||||
const modal = defineModel<boolean>("sortPosition", { required: true });
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
{
|
||||
name: "name",
|
||||
|
|
|
|||
|
|
@ -359,7 +359,7 @@ const checkValidate = ref<boolean>(false); //validate data ผ่านหรื
|
|||
const route = useRoute();
|
||||
const candidateId = ref<string>(route.params.candidateId.toString());
|
||||
const total = ref<string>("-");
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const filter = ref<string>(""); //search data table
|
||||
const { messageError, showLoader, hideLoader } = mixin;
|
||||
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ const name = ref<string>("");
|
|||
const count = ref<number>(0);
|
||||
const pass = ref<number>(0);
|
||||
const notpass = ref<number>(0);
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const importId = ref<string>(route.params.id as string); // Period Import Id
|
||||
const filter = ref<string>(""); //search data table
|
||||
const visibleColumns = ref<String[]>([
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
},
|
||||
]);
|
||||
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
|
||||
onMounted(async () => {
|
||||
await fetchData();
|
||||
|
|
|
|||
|
|
@ -403,7 +403,7 @@ const textTittle = ref<string>("");
|
|||
const { messageError } = mixin;
|
||||
const textTittleScore = ref<string>("");
|
||||
const textTittleCandidate = ref<string>("");
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const initialPagination = ref<Pagination>({
|
||||
rowsPerPage: 0,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -321,7 +321,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
||||
},
|
||||
]);
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const clickDetail = (examID: string) => {
|
||||
router.push(`/disable/import/${importId.value}/${examID}`);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -391,7 +391,7 @@ const selected_row_id = ref<string>("");
|
|||
const rowsHistory = ref<ResponseHistoryObject[]>([]); //select data history
|
||||
const tittleHistory = ref<string>("ประวัติการนำเข้าข้อมูล"); //
|
||||
const modalHistory = ref<boolean>(false); //modal ประวัติการแก้ไขข้อมูล
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const filter = ref<string>(""); //search data table
|
||||
const textTittle = ref<string>("");
|
||||
const textTittleScore = ref<string>("");
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@ const yearly = ref<number | null>(null);
|
|||
const examId = ref<string>(route.params.examId.toString());
|
||||
const visible = ref(true); //เปิดปิด card สรุปข้อมูล
|
||||
const dataNum = ref<DataNumObject[]>([]); //จำนวนสรุปจำนวนข้อมูลหลัก
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const checkProfile = ref<any>([]);
|
||||
const visibleColumns = ref<String[]>([
|
||||
// "check",
|
||||
|
|
|
|||
|
|
@ -618,7 +618,7 @@ const checkValidate = ref<boolean>(false); //validate data ผ่านหรื
|
|||
const profileId = ref<string>(
|
||||
route.params.id ? route.params.id.toString() : ""
|
||||
);
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const filter = ref<string>(""); //search data table
|
||||
const visibleColumns = ref<String[]>([]);
|
||||
profileData.insignia.columns.length == 0
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ const columns = ref<any["columns"]>([
|
|||
style: "font-size: 14px",
|
||||
},
|
||||
]);
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
|
||||
const clickOpenpopup = () => {
|
||||
modal.value = true;
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ const spouseDataEdit = reactive({
|
|||
job: "",
|
||||
});
|
||||
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const historyRows = ref<any>([]);
|
||||
const prefixFilter = ref([]);
|
||||
const childrenData: any = reactive({
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ const pagination = ref({
|
|||
rowsPerPage: 10,
|
||||
});
|
||||
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
|
||||
const formDataSalary = reactive<FormSalaryNew>({
|
||||
date: null,
|
||||
|
|
|
|||
|
|
@ -231,7 +231,7 @@ const columns = computed(() => {
|
|||
}
|
||||
return baseColumns.value;
|
||||
});
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const pagination = ref({
|
||||
page: 1,
|
||||
rowsPerPage: 10,
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ const {
|
|||
} = mixin;
|
||||
|
||||
const router = useRouter();
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const rows2 = ref<any>([]);
|
||||
const filterKeyword = ref<string>("");
|
||||
const filterKeyword2 = ref<string>("");
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ const {
|
|||
dialogRemove,
|
||||
} = mixin;
|
||||
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const modalTree = ref<boolean>(false);
|
||||
const personalId = ref<string>("");
|
||||
const filterKeyword = ref<string>("");
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ const userNote = ref<string>("");
|
|||
const filter = ref<string>("");
|
||||
const Name = ref<string>();
|
||||
const rowsAll = ref<any>([]);
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const rowsFilter = ref<any>([]);
|
||||
const myForm = ref<any>();
|
||||
const files = ref<any>(null);
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ const columns = ref<any["columns"]>([
|
|||
align: "left",
|
||||
},
|
||||
]);
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
|
||||
watch(modal, () => {
|
||||
if (modal.value === true) {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ const {
|
|||
} = mixin;
|
||||
|
||||
/** คอลัมน์ */
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
{
|
||||
name: "no",
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
|
|||
const optionsTypeOc = ref<any>([]);
|
||||
const typeOc = ref<string>("");
|
||||
const agency = ref<string>("");
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const listinsignia = ref<any>([]);
|
||||
const typeinsignia = ref<string>("all");
|
||||
const typeinsigniaOptions = ref<any>([{ id: "all", name: "ทั้งหมด" }]);
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ export const useAllocateDataStore = defineStore("insigniaallocate", () => {
|
|||
const insignia = ref<string>("");
|
||||
const insigniaOp = ref<any[]>([{ name: "ทั้งหมด", id: "", type: "" }]);
|
||||
const insigniaType = ref<any>();
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const listInsignia = ref<any>([]);
|
||||
const mainTab = ref<string>("");
|
||||
const type = ref<any[]>([]);
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ export const useBrrowDataStore = defineStore("insigniaBrrow", () => {
|
|||
{ name: "ทั้งหมด", id: "", type: "" },
|
||||
]);
|
||||
const insigniaType = ref<InsigniaType[]>();
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const listInsignia = ref<any>([]);
|
||||
const employeeClass = ref<string>("all");
|
||||
const employeeClassOps = ref<OptionData[]>([
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ export const useResultDataStore = defineStore("insigniaResult", () => {
|
|||
{ name: "ข้าราชการ กทม.สามัญ", id: "officer" },
|
||||
{ name: "ลูกจ้างประจำ", id: "employee" },
|
||||
]);
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const listInsignia = ref<any>([]);
|
||||
const type = ref<any[]>([]);
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ const props = defineProps({
|
|||
},
|
||||
close: Function,
|
||||
});
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
{
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ const itemsCard = computed(() => {
|
|||
return items;
|
||||
});
|
||||
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const columnsAPR = ref<QTableProps["columns"]>([
|
||||
{
|
||||
name: "org",
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
style: "font-size: 14px",
|
||||
},
|
||||
]);
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
|
||||
const props = defineProps({
|
||||
rowId: {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ const { dialogConfirm, showLoader, success, hideLoader, messageError } =
|
|||
useCounterMixin();
|
||||
|
||||
const modal = defineModel<boolean>("sortPosition", { required: true });
|
||||
const rows = ref<any>([]);
|
||||
const rows = ref<any[]>([]);
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
{
|
||||
name: "name",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue