ลบ log
This commit is contained in:
parent
4d0e40ea91
commit
e4188b7ed3
38 changed files with 108 additions and 167 deletions
|
|
@ -219,7 +219,6 @@ const uploadData = async () => {
|
|||
const formData = new FormData();
|
||||
formData.append("avatar", newFile);
|
||||
formData.append("moss", "newFile");
|
||||
console.log(formData);
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.profilePaperId(profileId.value), formData)
|
||||
|
|
|
|||
|
|
@ -752,8 +752,6 @@ const saveData = async () => {
|
|||
};
|
||||
|
||||
const selectProvince = async (e: string | null, name: string) => {
|
||||
console.log("5555555555555");
|
||||
|
||||
if (e != null) {
|
||||
if (name == "1") {
|
||||
addressData.value.districtId = "";
|
||||
|
|
|
|||
|
|
@ -726,7 +726,6 @@ const fetchData = async () => {
|
|||
.get(config.API.profileLeaveId(profileId.value))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
// console.log(data);
|
||||
data.map((e: ResponseObject) => {
|
||||
rows.value.push({
|
||||
id: e.id,
|
||||
|
|
@ -918,7 +917,6 @@ const clickAddLeave = async () => {
|
|||
numUsedLeave.value = 0;
|
||||
await clickTotal();
|
||||
if (rowsTotal.value.length > 0) {
|
||||
// console.log(rowsTotal.value);
|
||||
let data: DataOptionLeave[] = [];
|
||||
rowsTotal.value.map((e: ResponseTotalObject) => {
|
||||
data.push({
|
||||
|
|
@ -1140,7 +1138,6 @@ const selectData = async (props: DataProps) => {
|
|||
numUsedLeave.value = props.row.sumLeave;
|
||||
await clickTotal();
|
||||
if (rowsTotal.value.length > 0) {
|
||||
// console.log(rowsTotal.value);
|
||||
let data: DataOptionLeave[] = [];
|
||||
rowsTotal.value.map((e: ResponseTotalObject) => {
|
||||
data.push({
|
||||
|
|
|
|||
|
|
@ -90,7 +90,6 @@ const fecthPositionOfficer = async () => {
|
|||
.get(config.API.listPositionPathHistory)
|
||||
.then((res) => {
|
||||
let data = res.data.result.items;
|
||||
console.log(data);
|
||||
positionOps.value = data.map((e: any) => ({ id: e.id, name: e.name }));
|
||||
options.value = positionOps.value;
|
||||
})
|
||||
|
|
|
|||
|
|
@ -838,7 +838,6 @@ const fetchData = async () => {
|
|||
} else {
|
||||
leaveReason.value = ` (พ้นจากราชการด้วยสาเหตุ: ${data.leaveReason})`;
|
||||
}
|
||||
console.log(data.leaveReason);
|
||||
reasonStatus.value = reason.length > 0 ? true : false;
|
||||
})
|
||||
.catch((e) => {
|
||||
|
|
@ -1301,12 +1300,6 @@ const Retire = async () => {
|
|||
}
|
||||
};
|
||||
const clickSaveDeceased = async () => {
|
||||
// console.log(
|
||||
// filePassaway.value,
|
||||
// deathCertificateNo.value,
|
||||
// placeDeathCertificate.value,
|
||||
// reasonDeath.value
|
||||
// );
|
||||
const formData = new FormData();
|
||||
formData.append("File", filePassaway.value);
|
||||
formData.append("Number", deathCertificateNo.value);
|
||||
|
|
@ -1333,7 +1326,6 @@ const clickSaveDeceased = async () => {
|
|||
router.push("/deceased");
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log(e);
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
|
|
|
|||
|
|
@ -1578,9 +1578,7 @@ const fetchData = async () => {
|
|||
await http
|
||||
.get(config.API.profileSalaryId(profileId.value))
|
||||
.then((res) => {
|
||||
let data = res.data.result;
|
||||
console.log(data);
|
||||
|
||||
let data = res.data.result;
|
||||
rows.value = [];
|
||||
data.map((e: ResponseObject) => {
|
||||
rows.value.push({
|
||||
|
|
|
|||
|
|
@ -1493,7 +1493,7 @@ const fetchData = async () => {
|
|||
.get(config.API.profileSalaryEmployeeId(profileId.value))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
console.log(data);
|
||||
|
||||
rows.value = [];
|
||||
data.map((e: any) => {
|
||||
rows.value.push({
|
||||
|
|
@ -1634,7 +1634,6 @@ const checkRowPage = () => {
|
|||
editRow.value = false;
|
||||
next.value = true;
|
||||
previous.value = true;
|
||||
// console.log(rowIndex.value);
|
||||
if (rowIndex.value + 1 >= rows.value.length) {
|
||||
next.value = false;
|
||||
}
|
||||
|
|
@ -1885,7 +1884,6 @@ const clickClose = async () => {
|
|||
* @param props ค่า props ใน row ที่เลือก
|
||||
*/
|
||||
const selectData = async (props: DataPropsEmployee) => {
|
||||
// console.log(props.row);
|
||||
modalEdit.value = true;
|
||||
modal.value = true;
|
||||
edit.value = false;
|
||||
|
|
@ -1996,7 +1994,6 @@ const clickHistory = async (row: RequestItemsEmployee) => {
|
|||
.get(config.API.profileSalaryEmployeeHisId(row.id))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
// console.log("clickHistory", data);
|
||||
rowsHistory.value = [];
|
||||
data.map((e: ResponseObjectEmployee) => {
|
||||
rowsHistory.value.push({
|
||||
|
|
|
|||
|
|
@ -1522,7 +1522,6 @@ const fetchData = async () => {
|
|||
.get(config.API.profileSalaryEmployeeId(profileId.value))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
// console.log(data);
|
||||
rows.value = [];
|
||||
data.map((e: ResponseObjectEmployee) => {
|
||||
rows.value.push({
|
||||
|
|
@ -1663,7 +1662,6 @@ const checkRowPage = () => {
|
|||
editRow.value = false;
|
||||
next.value = true;
|
||||
previous.value = true;
|
||||
// console.log(rowIndex.value);
|
||||
if (rowIndex.value + 1 >= rows.value.length) {
|
||||
next.value = false;
|
||||
}
|
||||
|
|
@ -1914,7 +1912,6 @@ const clickClose = async () => {
|
|||
* @param props ค่า props ใน row ที่เลือก
|
||||
*/
|
||||
const selectData = async (props: DataPropsEmployee) => {
|
||||
// console.log(props.row);
|
||||
modalEdit.value = true;
|
||||
modal.value = true;
|
||||
edit.value = false;
|
||||
|
|
@ -2025,7 +2022,6 @@ const clickHistory = async (row: RequestItemsEmployee) => {
|
|||
.get(config.API.profileSalaryEmployeeHisId(row.id))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
// console.log("clickHistory", data);
|
||||
rowsHistory.value = [];
|
||||
data.map((e: ResponseObjectEmployee) => {
|
||||
rowsHistory.value.push({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue