แก้การ 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) => {
|
.then((res: any) => {
|
||||||
let data = res.data.result
|
let data = res.data.result
|
||||||
// console.log(data);
|
// 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) => {
|
.catch((e: any) => {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
|
|
@ -189,6 +189,7 @@ const fectDataresign = async (id: string) => {
|
||||||
|
|
||||||
const fileUploadDoc = async (file: any) => {
|
const fileUploadDoc = async (file: any) => {
|
||||||
fileDocDataUpload.value.push(file)
|
fileDocDataUpload.value.push(file)
|
||||||
|
nameFile.value = file[0].name
|
||||||
files.value = file
|
files.value = file
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -107,22 +107,22 @@ const adjust_option = ref<any>([
|
||||||
const saveForm = () => {
|
const saveForm = () => {
|
||||||
let hasError = false
|
let hasError = false
|
||||||
if (
|
if (
|
||||||
reasonWork.value === 0 ||
|
reasonWork.value === 0
|
||||||
reasonWorkOther.value.length < 0 ||
|
// reasonWorkOther.value.length < 0 ||
|
||||||
timeThink.value === 0 ||
|
// timeThink.value === 0 ||
|
||||||
exitFactor.value === 0 ||
|
// exitFactor.value === 0 ||
|
||||||
exitFactorOther.value.length < 0 ||
|
// exitFactorOther.value.length < 0 ||
|
||||||
adjust.value === 0 ||
|
// adjust.value === 0 ||
|
||||||
adjustOther.value.length < 0 ||
|
// adjustOther.value.length < 0 ||
|
||||||
realReason.value.length < 1 ||
|
// realReason.value.length < 1 ||
|
||||||
notExitFactor.value.length < 1 ||
|
// notExitFactor.value.length < 1 ||
|
||||||
haveJob.value === null ||
|
// haveJob.value === null ||
|
||||||
haveJobReason.value.length < 0 ||
|
// haveJobReason.value.length < 0 ||
|
||||||
suggestFriends.value === null ||
|
// suggestFriends.value === null ||
|
||||||
suggestFriendsReason.value.length < 0 ||
|
// suggestFriendsReason.value.length < 0 ||
|
||||||
futureWork.value === null ||
|
// futureWork.value === null ||
|
||||||
futureWorkReason.value.length < 0 ||
|
// futureWorkReason.value.length < 0 ||
|
||||||
suggestion.value.length < 1
|
// suggestion.value.length < 1
|
||||||
) {
|
) {
|
||||||
hasError = true
|
hasError = true
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue