'修改图片参数转换处理'

This commit is contained in:
esacpe
2025-09-26 10:50:15 +08:00
parent 204a199990
commit 141c0d5962
12 changed files with 78 additions and 28 deletions

View File

@ -89,8 +89,14 @@ const close = () => {
const open = (row = {}, type = 'add') => {
dialogVisible.value = true
disabled.value = false
row.tp = row.tp ? row.tp.split(','):[]
row.bazzp = row.bazzp ? row.bazzp.split(','):[]
const fieldsToSplit = ['tp', 'bazzp'];
fieldsToSplit.forEach(field => {
row[field] = typeof row[field] === 'string'
? row[field].split(',')
: row[field];
});
formData.value = { ...row }
if (type === 'add') {
title.value = '新增从业人员'