no message
Showing
1 changed file
with
1 additions
and
2 deletions
| ... | @@ -256,7 +256,7 @@ function handleEdit (row) { | ... | @@ -256,7 +256,7 @@ function handleEdit (row) { |
| 256 | form: { | 256 | form: { |
| 257 | ...row, | 257 | ...row, |
| 258 | type: row.type.split('、'), | 258 | type: row.type.split('、'), |
| 259 | canPack: row.canPack || '0' // 确保canPack有值,如果为null或undefined则默认为'0' | 259 | canPack: row.canPack ? String(row.canPack) : '0' // 将数字转换为字符串 |
| 260 | } | 260 | } |
| 261 | } | 261 | } |
| 262 | console.log('编辑表单数据:', showForm.value.form) // 添加日志查看数据 | 262 | console.log('编辑表单数据:', showForm.value.form) // 添加日志查看数据 |
| ... | @@ -290,7 +290,6 @@ function submitForm(type) { | ... | @@ -290,7 +290,6 @@ function submitForm(type) { |
| 290 | ...showForm.value.form, | 290 | ...showForm.value.form, |
| 291 | type: '' | 291 | type: '' |
| 292 | } | 292 | } |
| 293 | console.log(showForm.value.form); | ||
| 294 | if(showForm.value.form?.type===undefined || showForm.value.form?.type==''){ | 293 | if(showForm.value.form?.type===undefined || showForm.value.form?.type==''){ |
| 295 | proxy.$modal.alert('搭建类型不能为空'); | 294 | proxy.$modal.alert('搭建类型不能为空'); |
| 296 | } | 295 | } | ... | ... |
-
Please register or sign in to post a comment