updated format code
This commit is contained in:
parent
b75d69ea08
commit
b14bad2249
241 changed files with 14012 additions and 13811 deletions
|
|
@ -14,7 +14,7 @@ const router = useRouter();
|
|||
|
||||
/**
|
||||
* บันทึกข้อมูล อุทธรณ์/ร้องทุกข์
|
||||
* @param data ชุดข้อมูล
|
||||
* @param data ชุดข้อมูล
|
||||
*/
|
||||
async function onSubmit(data: any) {
|
||||
const formData = new FormData();
|
||||
|
|
|
|||
|
|
@ -19,11 +19,11 @@ const { showLoader, messageError, hideLoader, dialogConfirm, success } = mixin;
|
|||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
const id = ref<string>(route.params.id as string);
|
||||
const checkRoutePermission = ref<boolean>(route.name == 'appealComplainDetail')
|
||||
const checkRoutePermission = ref<boolean>(route.name == "appealComplainDetail");
|
||||
const historyStatusOb = reactive<HistoryStatusType>({
|
||||
status: "",
|
||||
createdFullName: "",
|
||||
createdAt: new Date,
|
||||
createdAt: new Date(),
|
||||
});
|
||||
|
||||
const fileOb = reactive<FileObType>({
|
||||
|
|
@ -53,7 +53,7 @@ const data = reactive<EditDataList>({
|
|||
|
||||
/**
|
||||
* บันทึกข้อมูล อุทธรณ์/ร้องทุกข์
|
||||
* @param data ชุดข้อมูล
|
||||
* @param data ชุดข้อมูล
|
||||
*/
|
||||
async function onSubmit(data: any) {
|
||||
const dataList = {
|
||||
|
|
@ -103,9 +103,9 @@ function getData() {
|
|||
data.oc = dataList.oc;
|
||||
data.position = dataList.position;
|
||||
data.lastUpdatedAt = dataList.lastUpdatedAt;
|
||||
data.disciplineComplaint_Appeal_Docs = dataList.disciplineComplaint_Appeal_Docs
|
||||
data.historyStatus = dataList.historyStatus
|
||||
|
||||
data.disciplineComplaint_Appeal_Docs =
|
||||
dataList.disciplineComplaint_Appeal_Docs;
|
||||
data.historyStatus = dataList.historyStatus;
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -134,7 +134,7 @@ onMounted(() => {
|
|||
class="q-mr-sm"
|
||||
@click="router.push('/discipline-appealcomplain')"
|
||||
/>
|
||||
{{ checkRoutePermission ? `รายละเอียด`:`แก้ไข` }}การอุทธรณ์/ร้องทุกข์
|
||||
{{ checkRoutePermission ? `รายละเอียด` : `แก้ไข` }}การอุทธรณ์/ร้องทุกข์
|
||||
</div>
|
||||
|
||||
<Form :on-submit="onSubmit" :data="data" :get-data="getData" />
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ const {
|
|||
messageError,
|
||||
dialogMessageNotify,
|
||||
hideLoader,
|
||||
downloadRenameFileByLink
|
||||
downloadRenameFileByLink,
|
||||
} = mixin;
|
||||
const dataStore = useAppealComplainStore();
|
||||
|
||||
|
|
@ -702,7 +702,9 @@ onMounted(() => {
|
|||
dense
|
||||
color="blue"
|
||||
icon="mdi-download"
|
||||
@click="downloadRenameFileByLink(data.pathName, data.fileName)"
|
||||
@click="
|
||||
downloadRenameFileByLink(data.pathName, data.fileName)
|
||||
"
|
||||
><q-tooltip>ดาวน์โหลดไฟล์</q-tooltip></q-btn
|
||||
>
|
||||
<q-btn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue