แก้ไขตัวแปร suggestion ไม่ได้ส่งไป
This commit is contained in:
parent
e5af4ea14f
commit
74200a6b3e
1 changed files with 17 additions and 16 deletions
|
|
@ -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 < 1 ||
|
||||
timeThink.value === 0 ||
|
||||
exitFactor.value === 0 &&
|
||||
exitFactorOther.value.length < 1 ||
|
||||
adjust.value === 0 &&
|
||||
adjustOther.value.length < 1 ||
|
||||
realReason.value.length < 1 ||
|
||||
notExitFactor.value.length < 1 ||
|
||||
haveJob.value === null &&
|
||||
haveJobReason.value.length < 1 ||
|
||||
suggestFriends.value === null &&
|
||||
suggestFriendsReason.value.length < 1 ||
|
||||
futureWork.value === null &&
|
||||
futureWorkReason.value.length < 1 ||
|
||||
suggestion.value.length < 1
|
||||
) {
|
||||
hasError = true
|
||||
} else {
|
||||
|
|
@ -185,6 +185,7 @@ const createResult = async () => {
|
|||
SuggestFriendsReason: suggestFriendsReason.value,
|
||||
FutureWork: futureWork.value,
|
||||
FutureWorkReason: futureWorkReason.value,
|
||||
Suggestion:suggestion.value
|
||||
}
|
||||
await http
|
||||
.post(config.API.listquestionnaire(), data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue