查看,编辑属性
This commit is contained in:
parent
5cdcd2f9bf
commit
8643c87a71
|
|
@ -187,12 +187,13 @@ const editRowInfo = (row: any) => {
|
||||||
/* 查看按钮 */
|
/* 查看按钮 */
|
||||||
const previewRowInfo = (row: any) => {
|
const previewRowInfo = (row: any) => {
|
||||||
settleinTitle.value = '装备详情'
|
settleinTitle.value = '装备详情'
|
||||||
getDetailData(row)
|
console.log('row',row)
|
||||||
if(row.devInfoProperties!=null){
|
if(row.devInfoProperties!=null){
|
||||||
row.devInfoProperties.forEach((item:any)=>{
|
row.devInfoProperties.forEach((item:any)=>{
|
||||||
propertyNamesTwo.value.push({'propertyName':item.propertyName,'propertyValue':item.propertyValue})
|
propertyNamesTwo.value.push({'propertyName':item.propertyName,'propertyValue':item.propertyValue})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
getDetailData(row)
|
||||||
disabledForm.value = true
|
disabledForm.value = true
|
||||||
isEditDisabled.value = false
|
isEditDisabled.value = false
|
||||||
isViewForm.value = true
|
isViewForm.value = true
|
||||||
|
|
@ -242,6 +243,7 @@ const getDetailData = async (row: any) => {
|
||||||
detailsFileList,
|
detailsFileList,
|
||||||
insurancePdf,
|
insurancePdf,
|
||||||
examinationPdf,
|
examinationPdf,
|
||||||
|
devInfoProperties,
|
||||||
} = res
|
} = res
|
||||||
|
|
||||||
Object.assign(addAndEditForm, {
|
Object.assign(addAndEditForm, {
|
||||||
|
|
@ -263,7 +265,9 @@ const getDetailData = async (row: any) => {
|
||||||
detailsFileList,
|
detailsFileList,
|
||||||
insurancePdf,
|
insurancePdf,
|
||||||
examinationPdf,
|
examinationPdf,
|
||||||
|
devInfoProperties,
|
||||||
})
|
})
|
||||||
|
|
||||||
if (settleinTitle.value == '装备编辑') {
|
if (settleinTitle.value == '装备编辑') {
|
||||||
Object.assign(addAndEditForm, {
|
Object.assign(addAndEditForm, {
|
||||||
maId: row.maId,
|
maId: row.maId,
|
||||||
|
|
@ -285,6 +289,16 @@ const getDetailData = async (row: any) => {
|
||||||
descriptionFormList.value[0].insurancePdfs = insurancePdf
|
descriptionFormList.value[0].insurancePdfs = insurancePdf
|
||||||
descriptionFormList.value[0].examinationPdfs = examinationPdf
|
descriptionFormList.value[0].examinationPdfs = examinationPdf
|
||||||
addAndEditForm.deviceTypeList = getSelectId(deviceTypeTree.value, addAndEditForm.typeId)
|
addAndEditForm.deviceTypeList = getSelectId(deviceTypeTree.value, addAndEditForm.typeId)
|
||||||
|
if(res.devInfoProperties!=null){
|
||||||
|
res.devInfoProperties.forEach((item:any)=>{
|
||||||
|
propertyNamesTwo.value.push({'propertyName':item.propertyName,'propertyValue':item.propertyValue})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
options.value=[]
|
||||||
|
console.log('addAndEditForm.deviceTypeList',addAndEditForm.deviceTypeList)
|
||||||
|
// addAndEditForm.deviceTypeList[0].data.propertyNames.forEach((item:any) =>{
|
||||||
|
// options.value.push({'label':item,'value':item})
|
||||||
|
// })
|
||||||
dialogFormVisibleSettlein.value = true
|
dialogFormVisibleSettlein.value = true
|
||||||
|
|
||||||
console.log(res, '详情接口')
|
console.log(res, '详情接口')
|
||||||
|
|
@ -424,8 +438,6 @@ const dialogTypeChange = () => {
|
||||||
options.value.push({'label':item,'value':item})
|
options.value.push({'label':item,'value':item})
|
||||||
})
|
})
|
||||||
console.log(propertyNames.value)
|
console.log(propertyNames.value)
|
||||||
// propertyNames.value = deviceTypeList[0].data.propertyNames
|
|
||||||
// console.log(propertyNames.value)
|
|
||||||
}
|
}
|
||||||
// propertyNames.value = deviceTypeList[0].data.propertyNames
|
// propertyNames.value = deviceTypeList[0].data.propertyNames
|
||||||
isDisabled.value = true
|
isDisabled.value = true
|
||||||
|
|
@ -676,6 +688,7 @@ const closeDialogBtn = () => {
|
||||||
const handleClose = (done: () => void) => {
|
const handleClose = (done: () => void) => {
|
||||||
// ruleFormRef.value.resetFields()
|
// ruleFormRef.value.resetFields()
|
||||||
done()
|
done()
|
||||||
|
propertyNamesTwo.value = []
|
||||||
dialogFormVisibleSettlein.value = false
|
dialogFormVisibleSettlein.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue