装备详情添加属性
This commit is contained in:
parent
871fa7ff27
commit
69d3d249ed
|
|
@ -172,6 +172,13 @@
|
||||||
{{ pageData[v.key] }}
|
{{ pageData[v.key] }}
|
||||||
</div>
|
</div>
|
||||||
</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>
|
</div>
|
||||||
<div class="appearance">
|
<div class="appearance">
|
||||||
|
|
@ -611,12 +618,12 @@ const equipDetailKeyList = reactive([
|
||||||
fn: '',
|
fn: '',
|
||||||
arg: '',
|
arg: '',
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
label: '整机重量(KG)',
|
// label: '整机重量(KG)',
|
||||||
key: 'deviceWeight',
|
// key: 'deviceWeight',
|
||||||
fn: '',
|
// fn: '',
|
||||||
arg: '',
|
// arg: '',
|
||||||
},
|
// },
|
||||||
// {
|
// {
|
||||||
// label: '装备型号',
|
// label: '装备型号',
|
||||||
// key: 'modelName',
|
// key: 'modelName',
|
||||||
|
|
@ -655,6 +662,10 @@ const equipDetailKeyList = reactive([
|
||||||
// },
|
// },
|
||||||
])
|
])
|
||||||
|
|
||||||
|
const propertyNames = ref([])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
const dialogPhone = ref(false)
|
const dialogPhone = ref(false)
|
||||||
|
|
||||||
|
|
@ -853,6 +864,13 @@ const getData = async () => {
|
||||||
|
|
||||||
console.log('res详情数据', res)
|
console.log('res详情数据', res)
|
||||||
pageData.value = res.data
|
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({label:any:item.propertyName,keya:any:item.propertyValue})
|
||||||
|
// })
|
||||||
|
}
|
||||||
goodsImgList.value = res.data.mainFileList
|
goodsImgList.value = res.data.mainFileList
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1452,7 +1452,7 @@ const options = ref<any>([])
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12" >
|
<el-col :span="12" >
|
||||||
<el-form-item label="属性值:" :rules="getProertyValueRules(item)" :prop="item.propertyValue">
|
<el-form-item label="属性值:" >
|
||||||
<el-input
|
<el-input
|
||||||
v-model="item.propertyValue"
|
v-model="item.propertyValue"
|
||||||
placeholder="请输入"
|
placeholder="请输入"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue