no message
Showing
1 changed file
with
12 additions
and
11 deletions
| ... | @@ -282,19 +282,20 @@ function handleDel(row) { | ... | @@ -282,19 +282,20 @@ 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 | const data = { | ||
| 286 | ...showForm.value.form, | ||
| 287 | type: ''; | ||
| 288 | } | ||
| 285 | if(showForm.value.form?.type!="undefined"){ | 289 | if(showForm.value.form?.type!="undefined"){ |
| 286 | const data = { | 290 | data.type = showForm.value.form?.type.join('、') |
| 287 | ...showForm.value.form, | ||
| 288 | type: showForm.value.form?.type.join('、') | ||
| 289 | } | ||
| 290 | const fun = showForm.value.form?.id ? editCourse : addCourse | ||
| 291 | fun(data).then(res => { | ||
| 292 | // console.log(res); | ||
| 293 | proxy.$modal.msgSuccess(res.msg); | ||
| 294 | getList() | ||
| 295 | showForm.value.open = false | ||
| 296 | }) | ||
| 297 | } | 291 | } |
| 292 | const fun = showForm.value.form?.id ? editCourse : addCourse | ||
| 293 | fun(data).then(res => { | ||
| 294 | // console.log(res); | ||
| 295 | proxy.$modal.msgSuccess(res.msg); | ||
| 296 | getList() | ||
| 297 | showForm.value.open = false | ||
| 298 | }) | ||
| 298 | } | 299 | } |
| 299 | 300 | ||
| 300 | function closeDialog() { | 301 | function closeDialog() { | ... | ... |
-
Please register or sign in to post a comment