diff --git a/web-admin/src/views/pl/transport-address/index.vue b/web-admin/src/views/pl/transport-address/index.vue index 4082f4285..9c2a4ada7 100644 --- a/web-admin/src/views/pl/transport-address/index.vue +++ b/web-admin/src/views/pl/transport-address/index.vue @@ -141,6 +141,13 @@ min-width="120" align="center" /> + + + + @@ -302,6 +319,7 @@ const listColumnDefs = [ { prop: 'coordinates', label: '坐标', defaultVisible: false }, { prop: 'contactName', label: '联系人' }, { prop: 'contactPhone', label: '联系电话' }, + { prop: 'notes', label: '注意事项' }, { prop: 'status', label: '状态' }, { prop: 'remark', label: '备注', defaultVisible: false } ] @@ -366,6 +384,7 @@ const formData = reactive({ lat: null as number | null, contactName: '', contactPhone: '', + notes: '', status: '1', remark: '' }) @@ -415,6 +434,7 @@ const viewSections = computed(() => { }, { label: '创建时间', value: formatDateTime(d.createTime) }, { label: '更新时间', value: formatDateTime(d.updateTime) }, + { label: '注意事项', value: d.notes || '—', long: true }, { label: '备注', value: d.remark || '—', long: true } ] } @@ -506,6 +526,7 @@ function handleAdd() { lat: null, contactName: '', contactPhone: '', + notes: '', status: '1', remark: '' }) @@ -542,6 +563,7 @@ async function handleEdit(row: TransportAddress) { lat: detail.lat != null ? Number(detail.lat) : null, contactName: detail.contactName || '', contactPhone: detail.contactPhone || '', + notes: detail.notes || '', status: detail.status, remark: detail.remark || '' }) @@ -584,6 +606,7 @@ async function handleSubmit() { lat: formData.lat as number, contactName: formData.contactName.trim() || undefined, contactPhone: formData.contactPhone.trim() || undefined, + notes: formData.notes.trim() || undefined, status: formData.status, remark: formData.remark.trim() || undefined }