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