เรื่องร้องเรียน อัปโหลด ลบ ไฟล์
This commit is contained in:
parent
7e88b119cf
commit
e5291cfe34
4 changed files with 99 additions and 85 deletions
|
|
@ -46,6 +46,7 @@ const fileListOj = reactive<ArrayFileList>({
|
|||
});
|
||||
|
||||
const data = reactive<FormData>({
|
||||
id:'',
|
||||
respondentType: "",
|
||||
organizationId: "",
|
||||
consideredAgency: "",
|
||||
|
|
@ -132,6 +133,7 @@ async function getData() {
|
|||
.get(config.API.complaintbyId(id.value))
|
||||
.then((res) => {
|
||||
const dataList = res.data.result;
|
||||
data.id = dataList.id
|
||||
data.respondentType = dataList.respondentType
|
||||
data.organizationId = dataList.organizationId
|
||||
data.consideredAgency = dataList.consideredAgency
|
||||
|
|
@ -149,7 +151,7 @@ async function getData() {
|
|||
data.rejectReason = dataList.rejectReason
|
||||
data.disciplineComplaintDocs = dataList.disciplineComplaintDocs
|
||||
|
||||
console.log('list', dataList.persons)
|
||||
console.log('list', data.id)
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -271,7 +273,7 @@ onMounted(() => {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<Form :on-submit="onSubmit" :data="data" />
|
||||
<Form :on-submit="onSubmit" :data="data" :get-data="getData"/>
|
||||
<Popup :modal="modalPopup" :close="closePopup" />
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue