|
@@ -1,4 +1,5 @@
|
|
|
let fileArray = [];
|
|
let fileArray = [];
|
|
|
|
|
+
|
|
|
function openApply() {
|
|
function openApply() {
|
|
|
const manual = document.getElementById('advice_manual');
|
|
const manual = document.getElementById('advice_manual');
|
|
|
const manualHead = document.getElementById('advice_manual_header');
|
|
const manualHead = document.getElementById('advice_manual_header');
|
|
@@ -59,7 +60,7 @@ function clearApply() {
|
|
|
inputElements.forEach(input => {
|
|
inputElements.forEach(input => {
|
|
|
input.value = '';
|
|
input.value = '';
|
|
|
});
|
|
});
|
|
|
- btnElements.forEach(btn=>{
|
|
|
|
|
|
|
+ btnElements.forEach(btn => {
|
|
|
btn.disabled = false;
|
|
btn.disabled = false;
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -68,7 +69,7 @@ function clearApply() {
|
|
|
fileArray = [];
|
|
fileArray = [];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function clearModal() {
|
|
|
|
|
|
|
+/*function clearModal() {
|
|
|
const form = document.getElementById('check_info');
|
|
const form = document.getElementById('check_info');
|
|
|
const inputElements = form.querySelectorAll('input');
|
|
const inputElements = form.querySelectorAll('input');
|
|
|
inputElements.forEach(input => {
|
|
inputElements.forEach(input => {
|
|
@@ -77,10 +78,11 @@ function clearModal() {
|
|
|
|
|
|
|
|
const timer = document.getElementById('timer');
|
|
const timer = document.getElementById('timer');
|
|
|
timer.innerHTML = '';
|
|
timer.innerHTML = '';
|
|
|
-}
|
|
|
|
|
|
|
+}*/
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
-function initFile (input) {
|
|
|
|
|
|
|
+function initFile(input) {
|
|
|
const files = input.files;
|
|
const files = input.files;
|
|
|
let html = '';
|
|
let html = '';
|
|
|
if (fileArray.length > 5) {
|
|
if (fileArray.length > 5) {
|
|
@@ -99,14 +101,22 @@ function initFile (input) {
|
|
|
|
|
|
|
|
async function bindDetail(id) {
|
|
async function bindDetail(id) {
|
|
|
const data = await getDetail(id);
|
|
const data = await getDetail(id);
|
|
|
|
|
+ console.log(data);
|
|
|
|
|
+ document.getElementById('lg_detail_name').value = data.userName;
|
|
|
|
|
+ document.getElementById('lg_detail_phone').value = data.phoneNum;
|
|
|
|
|
+ document.getElementById('lg_detail_email').value = data.email;
|
|
|
|
|
+ document.getElementById('lg_detail_nickname').value = data.nickName;
|
|
|
|
|
+ document.getElementById('lg_detail_company').value = data.company;
|
|
|
|
|
+ document.getElementById('lg_detail_title').value = data.title;
|
|
|
|
|
+ document.getElementById('lg_detail_content').value = data.content;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function getDetail(id) {
|
|
function getDetail(id) {
|
|
|
- axios.get('/api/v1/board/detail', {params : {id}})
|
|
|
|
|
|
|
+ return axios.get('/api/v1/board/detail', {params: {id}})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
return res.data;
|
|
return res.data;
|
|
|
})
|
|
})
|
|
|
.catch(error => {
|
|
.catch(error => {
|
|
|
- console.log(error)
|
|
|
|
|
|
|
+ return error;
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|