no message
Showing
1 changed file
with
4 additions
and
3 deletions
| ... | @@ -282,10 +282,12 @@ function handleDel(row) { | ... | @@ -282,10 +282,12 @@ function handleDel(row) { |
| 282 | 282 | ||
| 283 | function submitForm(type) { | 283 | function submitForm(type) { |
| 284 | alert(showForm.value.form?.type) | 284 | alert(showForm.value.form?.type) |
| 285 | if(showForm.value.form?.type!="undefined"){ | ||
| 286 | const data = { | 285 | const data = { |
| 287 | ...showForm.value.form, | 286 | ...showForm.value.form, |
| 288 | type: showForm.value.form?.type.join('、') | 287 | type: ''; |
| 288 | } | ||
| 289 | if(showForm.value.form?.type!="undefined"){ | ||
| 290 | data.type = showForm.value.form?.type.join('、') | ||
| 289 | } | 291 | } |
| 290 | const fun = showForm.value.form?.id ? editCourse : addCourse | 292 | const fun = showForm.value.form?.id ? editCourse : addCourse |
| 291 | fun(data).then(res => { | 293 | fun(data).then(res => { |
| ... | @@ -294,7 +296,6 @@ function submitForm(type) { | ... | @@ -294,7 +296,6 @@ function submitForm(type) { |
| 294 | getList() | 296 | getList() |
| 295 | showForm.value.open = false | 297 | showForm.value.open = false |
| 296 | }) | 298 | }) |
| 297 | } | ||
| 298 | } | 299 | } |
| 299 | 300 | ||
| 300 | function closeDialog() { | 301 | function closeDialog() { | ... | ... |
-
Please register or sign in to post a comment