style : input box 스타일 변경 완료

This commit is contained in:
Yesol Choi
2025-05-27 15:21:02 +09:00
parent 11e719a0c7
commit 35ca6200a5
2 changed files with 35 additions and 16 deletions

View File

@@ -2,6 +2,7 @@
import {deletePrcsFile, getPrcsFileDown, savePrice} from '/src/service/priceApi'
import {type iPbAtt, Person} from '/@src/utils/types'
import {formatBizNum,formatDatefromString} from "/@src/utils/common/comfunc.ts";
import Control from "/@src/pages/components/forms/control.vue";
const notyf = useNotyf()
const showTable = ref(false)
@@ -204,9 +205,11 @@ const onFileChange = (e: any) => {
}
const onFilDelete = async ( index: number, fileOrd: number) => {
notyf.dismissAll()
const confirmed = confirm('삭제하시겠습니까?')
if (index) {
pbAtts.value.splice(index, 1)
if (confirmed){
pbAtts.value.splice(index, 1)
}
}
}
@@ -308,7 +311,7 @@ function onInput(row, column){
<VControl>
<input
v-model="row[column.key]"
class="editable-input"
class="input custom-text-filter"
ref="prcsBizsRef"
@blur="onInput(row, column)"
/>
@@ -353,7 +356,9 @@ function onInput(row, column){
@close="detailActionsOpen = false"
>
<template #content>
<div class="form-label">
<VButton color="success">일괄업로드</VButton>
</div>
<ComVFlexTable
:key="params.dtlSpecs.length"
:data="params.dtlSpecs"
@@ -368,7 +373,7 @@ function onInput(row, column){
<input
v-if="column.editable"
v-model="row[column.key]"
class="editable-input"
class="input custom-text-filter"
/>
<span v-else-if="column.key=='num'">{{index+1}}</span>
<span v-else-if="column.key=='delete'" class="lnil lnil-close"

View File

@@ -222,15 +222,21 @@ const onFileChange = (e: any) => {
const onFilDelete = async (prcsNo: string, index: number, fileOrd: number) => {
notyf.dismissAll()
console.log(prcsNo)
if (prcsNo === undefined || prcsNo === null) {
pbAtts.value.splice(index, 1)
}
else {
await deletePrcsFile(params.prcsNo, fileOrd).then((res: string) => {
notyf.success(res)
const confirmed = confirm('삭제하시겠습니까?')
if (!prcsNo) {
if (confirmed){
pbAtts.value.splice(index, 1)
})
}
} else {
if (confirmed) {
await deletePrcsFile(prcsNo, fileOrd).then((res: string) => {
notyf.success(res)
pbAtts.value.splice(index, 1)
}).catch((err) => {
notyf.error('삭제 중 오류가 발생했습니다.')
console.error(err)
})
}
}
}
@@ -334,7 +340,7 @@ const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: stri
<input
v-if="column.editable"
v-model="row[column.key]"
class="input editable-input"
class="input custom-text-filter"
@blur="onInput(row, column)"
/>
<span v-else-if="column.key=='num'">{{index + 1}}</span>
@@ -377,7 +383,9 @@ const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: stri
@close="detailActionsOpen = false"
>
<template #content>
<div class="form-label">
<VButton color="success">일괄업로드</VButton>
</div>
<ComVFlexTable
:key="params.dtlSpecs.length"
:data="params.dtlSpecs"
@@ -391,7 +399,7 @@ const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: stri
<input
v-if="column.editable"
v-model="row[column.key]"
class="editable-input input"
class="input custom-text-filter"
/>
<span v-else-if="column.key=='num'">{{index+1}}</span>
<span v-else-if="column.key=='delete'" class="lnil lnil-close"
@@ -514,9 +522,12 @@ const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: stri
<div class="estimate-file-name">
{{ f.logiFnm }}{{" ("}}{{Math.ceil(f.size / 1024)}}kb{{")"}}
</div>
<div>
<span>
<i class="fa fa-download estimate-file-download" @click="onPrcsFileDownload(f.prcsNo, f.fileOrd, f.logiFnm)" />
</div>
</span>
<span>
<i class="fa fa-trash estimate-file-delete" @click="onFilDelete(f.prcsNo, i, f.fileOrd)" />
</span>
</div>
</VControl>
</VField>
@@ -557,6 +568,9 @@ const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: stri
placeholder="재중"
cd_grp=6
v-model="row.attendCd">
<!-- <template #code>-->
<!-- <span v-if="!row.attendCd">{{"재중"}}</span>-->
<!-- </template>-->
</VCodeSelect>
</VField>
</span>