แก้ไข Type
This commit is contained in:
parent
3664bff957
commit
dfefd9d5f9
2 changed files with 9 additions and 5 deletions
|
|
@ -89,7 +89,7 @@ const columnsModal = ref<QTableProps["columns"]>([
|
||||||
|
|
||||||
const rowsModal = ref<ResponseOrganiz[]>([]);
|
const rowsModal = ref<ResponseOrganiz[]>([]);
|
||||||
|
|
||||||
const optionSelect = ref<any>([
|
const optionSelect = ref<DataOption[]>([
|
||||||
{ id: 1, name: "อีเมล" },
|
{ id: 1, name: "อีเมล" },
|
||||||
{ id: 2, name: "กล่องข้อความ" },
|
{ id: 2, name: "กล่องข้อความ" },
|
||||||
]);
|
]);
|
||||||
|
|
@ -300,7 +300,7 @@ const nodeTree = async () => {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(config.API.profileOrganizRoot)
|
.get(config.API.profileOrganizRoot)
|
||||||
.then((res: any) => {
|
.then((res) => {
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
nodesTree.value = data;
|
nodesTree.value = data;
|
||||||
if (data.length > 0) {
|
if (data.length > 0) {
|
||||||
|
|
@ -357,7 +357,7 @@ const fetchSaveCopyOrder = async () => {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.put(config.API.copyOrder, list)
|
.put(config.API.copyOrder, list)
|
||||||
.then((res: any) => {
|
.then(() => {
|
||||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||||
next();
|
next();
|
||||||
})
|
})
|
||||||
|
|
@ -464,7 +464,11 @@ const updateData = (row: DataCopyOrder) => {
|
||||||
dense
|
dense
|
||||||
lazy-rules
|
lazy-rules
|
||||||
v-model="props.row.mutiselect"
|
v-model="props.row.mutiselect"
|
||||||
:rules="[(val:any) => !!val || `${'กรุณาเลือกช่องทางการส่งสำเนา'}`,(val:any) => val.length > 0 || `${'กรุณาเลือกช่องทางการส่งสำเนา'}`]"
|
:rules="[
|
||||||
|
(val) => !!val || `${'กรุณาเลือกช่องทางการส่งสำเนา'}`,
|
||||||
|
(val) =>
|
||||||
|
val.length > 0 || `${'กรุณาเลือกช่องทางการส่งสำเนา'}`,
|
||||||
|
]"
|
||||||
:label="`${'เลือกช่องทางการส่งสำเนา'}`"
|
:label="`${'เลือกช่องทางการส่งสำเนา'}`"
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,7 @@ const props = defineProps({
|
||||||
// const next = () => props.next();
|
// const next = () => props.next();
|
||||||
const previous = () => props.previous();
|
const previous = () => props.previous();
|
||||||
|
|
||||||
const onchangePage = (val: any) => {
|
const onchangePage = () => {
|
||||||
if (vuePDFRef !== null) {
|
if (vuePDFRef !== null) {
|
||||||
vuePDFRef.value.reload();
|
vuePDFRef.value.reload();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue