c4b70c3f by chentao

no message

1 parent 86dc5581
...@@ -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() {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!