แก้การ uploadfile leave
This commit is contained in:
parent
3193c4a029
commit
e5af4ea14f
2 changed files with 18 additions and 17 deletions
|
|
@ -176,7 +176,7 @@ const fectDataresign = async (id: string) => {
|
|||
.then((res: any) => {
|
||||
let data = res.data.result
|
||||
// console.log(data);
|
||||
;(tranferOrg.value = data.location), (dateCommand.value = data.sendDate), (dateLeave.value = data.activeDate), (noteReason.value = data.reason), (files.value = data.file)
|
||||
;(tranferOrg.value = data.location), (dateCommand.value = data.sendDate), (dateLeave.value = data.activeDate), (noteReason.value = data.reason), (files.value = data.docs)
|
||||
})
|
||||
.catch((e: any) => {
|
||||
console.log(e)
|
||||
|
|
@ -189,6 +189,7 @@ const fectDataresign = async (id: string) => {
|
|||
|
||||
const fileUploadDoc = async (file: any) => {
|
||||
fileDocDataUpload.value.push(file)
|
||||
nameFile.value = file[0].name
|
||||
files.value = file
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -107,22 +107,22 @@ const adjust_option = ref<any>([
|
|||
const saveForm = () => {
|
||||
let hasError = false
|
||||
if (
|
||||
reasonWork.value === 0 ||
|
||||
reasonWorkOther.value.length < 0 ||
|
||||
timeThink.value === 0 ||
|
||||
exitFactor.value === 0 ||
|
||||
exitFactorOther.value.length < 0 ||
|
||||
adjust.value === 0 ||
|
||||
adjustOther.value.length < 0 ||
|
||||
realReason.value.length < 1 ||
|
||||
notExitFactor.value.length < 1 ||
|
||||
haveJob.value === null ||
|
||||
haveJobReason.value.length < 0 ||
|
||||
suggestFriends.value === null ||
|
||||
suggestFriendsReason.value.length < 0 ||
|
||||
futureWork.value === null ||
|
||||
futureWorkReason.value.length < 0 ||
|
||||
suggestion.value.length < 1
|
||||
reasonWork.value === 0
|
||||
// reasonWorkOther.value.length < 0 ||
|
||||
// timeThink.value === 0 ||
|
||||
// exitFactor.value === 0 ||
|
||||
// exitFactorOther.value.length < 0 ||
|
||||
// adjust.value === 0 ||
|
||||
// adjustOther.value.length < 0 ||
|
||||
// realReason.value.length < 1 ||
|
||||
// notExitFactor.value.length < 1 ||
|
||||
// haveJob.value === null ||
|
||||
// haveJobReason.value.length < 0 ||
|
||||
// suggestFriends.value === null ||
|
||||
// suggestFriendsReason.value.length < 0 ||
|
||||
// futureWork.value === null ||
|
||||
// futureWorkReason.value.length < 0 ||
|
||||
// suggestion.value.length < 1
|
||||
) {
|
||||
hasError = true
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue