fix bug rows

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-07-15 17:30:51 +07:00
parent 823fe93528
commit 8e422174a8
34 changed files with 34 additions and 34 deletions

View file

@ -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>("");

View file

@ -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);

View file

@ -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>();

View file

@ -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]);
}

View file

@ -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",

View file

@ -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",

View file

@ -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[]>([

View file

@ -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",

View file

@ -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",

View file

@ -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;

View file

@ -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[]>([

View file

@ -178,7 +178,7 @@ const columns = ref<QTableProps["columns"]>([
},
]);
const rows = ref<any>([]);
const rows = ref<any[]>([]);
onMounted(async () => {
await fetchData();

View file

@ -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,
});

View file

@ -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}`);
};

View file

@ -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>("");

View file

@ -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",

View file

@ -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

View file

@ -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;

View file

@ -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({

View file

@ -163,7 +163,7 @@ const pagination = ref({
rowsPerPage: 10,
});
const rows = ref<any>([]);
const rows = ref<any[]>([]);
const formDataSalary = reactive<FormSalaryNew>({
date: null,

View file

@ -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,

View file

@ -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>("");

View file

@ -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>("");

View file

@ -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);

View file

@ -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) {

View file

@ -21,7 +21,7 @@ const {
} = mixin;
/** คอลัมน์ */
const rows = ref<any>([]);
const rows = ref<any[]>([]);
const columns = ref<QTableProps["columns"]>([
{
name: "no",

View file

@ -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: "ทั้งหมด" }]);

View file

@ -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[]>([]);

View file

@ -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[]>([

View file

@ -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[]>([]);

View file

@ -27,7 +27,7 @@ const props = defineProps({
},
close: Function,
});
const rows = ref<any>([]);
const rows = ref<any[]>([]);
const columns = ref<QTableProps["columns"]>([
{

View file

@ -130,7 +130,7 @@ const itemsCard = computed(() => {
return items;
});
const rows = ref<any>([]);
const rows = ref<any[]>([]);
const columnsAPR = ref<QTableProps["columns"]>([
{
name: "org",

View file

@ -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: {

View file

@ -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",