装备详情添加属性

This commit is contained in:
jjLv 2024-12-12 10:58:12 +08:00
parent 871fa7ff27
commit 69d3d249ed
2 changed files with 25 additions and 7 deletions

View File

@ -172,6 +172,13 @@
{{ pageData[v.key] }}
</div>
</div>
<div class="item" v-for="(v, i) in propertyNames" :key="i">
<div class="label">{{ v.propertyName }}</div>
<div
>
{{ v.propertyValue }}
</div>
</div>
</div>
</div>
<div class="appearance">
@ -611,12 +618,12 @@ const equipDetailKeyList = reactive([
fn: '',
arg: '',
},
{
label: '整机重量(KG)',
key: 'deviceWeight',
fn: '',
arg: '',
},
// {
// label: '(KG)',
// key: 'deviceWeight',
// fn: '',
// arg: '',
// },
// {
// label: '',
// key: 'modelName',
@ -655,6 +662,10 @@ const equipDetailKeyList = reactive([
// },
])
const propertyNames = ref([])
//
const dialogPhone = ref(false)
@ -853,6 +864,13 @@ const getData = async () => {
console.log('res详情数据', res)
pageData.value = res.data
if(res.data.devInfoProperties.length > 0 && res.data.devInfoProperties !=null) {
propertyNames.value = [];
propertyNames.value = res.data.devInfoProperties
// res.data.devInfoProperties.forEach((item:any) => {
// propertyNames.value.push({labelany:item.propertyName,keya:any:item.propertyValue})
// })
}
goodsImgList.value = res.data.mainFileList
}

View File

@ -1452,7 +1452,7 @@ const options = ref<any>([])
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="属性值:" :rules="getProertyValueRules(item)" :prop="item.propertyValue">
<el-form-item label="属性值:" >
<el-input
v-model="item.propertyValue"
placeholder="请输入"