แก้ไข Type

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-22 17:17:15 +07:00
parent 3664bff957
commit dfefd9d5f9
2 changed files with 9 additions and 5 deletions

View file

@ -89,7 +89,7 @@ const columnsModal = ref<QTableProps["columns"]>([
const rowsModal = ref<ResponseOrganiz[]>([]);
const optionSelect = ref<any>([
const optionSelect = ref<DataOption[]>([
{ id: 1, name: "อีเมล" },
{ id: 2, name: "กล่องข้อความ" },
]);
@ -300,7 +300,7 @@ const nodeTree = async () => {
showLoader();
await http
.get(config.API.profileOrganizRoot)
.then((res: any) => {
.then((res) => {
const data = res.data.result;
nodesTree.value = data;
if (data.length > 0) {
@ -357,7 +357,7 @@ const fetchSaveCopyOrder = async () => {
showLoader();
await http
.put(config.API.copyOrder, list)
.then((res: any) => {
.then(() => {
success($q, "บันทึกข้อมูลสำเร็จ");
next();
})
@ -464,7 +464,11 @@ const updateData = (row: DataCopyOrder) => {
dense
lazy-rules
v-model="props.row.mutiselect"
:rules="[(val:any) => !!val || `${'กรุณาเลือกช่องทางการส่งสำเนา'}`,(val:any) => val.length > 0 || `${'กรุณาเลือกช่องทางการส่งสำเนา'}`]"
:rules="[
(val) => !!val || `${'กรุณาเลือกช่องทางการส่งสำเนา'}`,
(val) =>
val.length > 0 || `${'กรุณาเลือกช่องทางการส่งสำเนา'}`,
]"
:label="`${'เลือกช่องทางการส่งสำเนา'}`"
emit-value
map-options

View file

@ -240,7 +240,7 @@ const props = defineProps({
// const next = () => props.next();
const previous = () => props.previous();
const onchangePage = (val: any) => {
const onchangePage = () => {
if (vuePDFRef !== null) {
vuePDFRef.value.reload();
}