You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.7 KiB
68 lines
1.7 KiB
<template> |
|
<template v-if="itemSlot.style !== '固定'"> |
|
<tr v-if="isShow" :key="itemSlot.slotName + indexSlot + Math.floor(Math.random() * 100000) + 1"> |
|
<td rowspan="2" colspan="2">{{ itemSlot.slotIndex }}</td> |
|
<td rowspan="2" colspan="2">{{ itemSlot.slotName }}</td> |
|
</tr> |
|
<tr v-else :key="itemSlot.slotName + indexSlot + Math.floor(Math.random() * 100000) + 1"> |
|
<td :rowspan="2" :colspan="quality ? '1' : '4'">{{ itemSlot.slotName }}</td> |
|
</tr> |
|
<template |
|
v-for="(itemChild, indexChild) in itemSlot.childrenList" |
|
:key="itemSlot.slotName + indexSlot + indexChild + Math.floor(Math.random() * 100000) + 1" |
|
> |
|
<tr> |
|
<td :colspan="quality ? '4' : '2'">{{ itemSlot.childrenList[0].detailName }}</td> |
|
<td :colspan="quality ? '4' : '5'"> |
|
<div v-if="itemType=='电子档案维护'"> |
|
<el-input v-model="itemSlot.childrenList[0].paramValue" placeholder="请输入内容" /> |
|
</div> |
|
<div v-else> |
|
{{ itemSlot.childrenList[0].paramValue }} |
|
</div> |
|
</td> |
|
</tr> |
|
</template> |
|
</template> |
|
<template v-else> |
|
<!-- 第1行 --> |
|
<tr> |
|
<td colspan="1"></td> |
|
<td colspan="2"></td> |
|
<td colspan="2"></td> |
|
</tr> |
|
|
|
</template> |
|
</template> |
|
<script> |
|
export default { |
|
props: { |
|
itemSlot: { |
|
type: Object, |
|
default: () => {}, |
|
}, |
|
indexSlot: { |
|
type: Number, |
|
default: 0, |
|
}, |
|
quality:{ |
|
type: Boolean, |
|
default: false |
|
}, |
|
isShow: { |
|
type: Boolean, |
|
default: false |
|
}, |
|
itemType:{ |
|
type: String, |
|
default: '' |
|
} |
|
}, |
|
data() { |
|
return {}; |
|
}, |
|
methods: {}, |
|
}; |
|
</script> |
|
<style lang="scss" scoped> |
|
</style> |