feat:天平调整
This commit is contained in:
@@ -160,11 +160,16 @@ async function loadTaskDetail() {
|
||||
label: item.fieldName,
|
||||
fieldKey: item.fieldKey,
|
||||
type: item.fieldType,
|
||||
placeholder: '请输入'
|
||||
placeholder: '请输入',
|
||||
hidden:false
|
||||
|
||||
}
|
||||
if (customConfig?.componentProps?.options) {
|
||||
field.options = customConfig.componentProps.options
|
||||
}
|
||||
if(customConfig.hidden){
|
||||
field.hidden = true
|
||||
}
|
||||
return field
|
||||
})
|
||||
formFields.value = [...staticFormSchema, ...dynamicFormSchema]
|
||||
@@ -282,7 +287,6 @@ async function handleSave(change) {
|
||||
let params = {}
|
||||
|
||||
const dynamicData = Object.fromEntries(Object.entries(realFormData.value).filter(([key]) => key !== 'assayTime'))
|
||||
console.log(dynamicData)
|
||||
if (change) {
|
||||
// 计算样品数据
|
||||
updateTableDataByConfigFields()
|
||||
@@ -367,7 +371,7 @@ function saveHeadData() {
|
||||
* todo: 关联字段在动态字段的change事件处理
|
||||
* */
|
||||
function pickerConfirm(event, field) {
|
||||
if (field.type == 'date') {
|
||||
if (field.type == 'Date') {
|
||||
field.value = nx.$dayjs(event.value).valueOf()
|
||||
field.showPicker = false
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user