能力上架样式修改
This commit is contained in:
parent
4399b2ddc8
commit
3d6df3e3f4
|
@ -10,7 +10,7 @@
|
|||
<div
|
||||
v-for="(item, index) in dataList"
|
||||
:key="item.attrType"
|
||||
:style="styleFunction(item.type)"
|
||||
:style="styleFunction(item.type, item.attrType)"
|
||||
>
|
||||
<a-form-item :label="item.attrType" v-if="item.type == 'input'">
|
||||
<a-input
|
||||
|
@ -140,11 +140,19 @@
|
|||
let applicationDataList = ref([])
|
||||
let indexSwitch = ref()
|
||||
//样式修改
|
||||
function styleFunction(type) {
|
||||
function styleFunction(type, attrType) {
|
||||
if (type == 'select' || type == 'radio') {
|
||||
if (attrType == '服务商' || attrType == '服务商联系人') {
|
||||
if (attrType == '服务商联系人') {
|
||||
return 'display: inline-block;width: 45%;margin-left: 30px;'
|
||||
} else {
|
||||
return 'display: inline-block;width: 45%;'
|
||||
}
|
||||
} else {
|
||||
return 'display: inline-block;width: 50%;'
|
||||
}
|
||||
}
|
||||
}
|
||||
const props = defineProps({
|
||||
refData: { type: Object, default: null },
|
||||
videoList: { type: Array, default: null },
|
||||
|
|
|
@ -151,9 +151,17 @@
|
|||
let plainOptions = ref([])
|
||||
//样式修改
|
||||
function styleFunction(type, attrType) {
|
||||
if (type == 'select' || type == 'radio' || attrType == '部门联系人电话') {
|
||||
if (type == 'select' || type == 'radio') {
|
||||
if (attrType == '部门联系人' || attrType == '归属部门') {
|
||||
if (attrType == '部门联系人') {
|
||||
return 'display: inline-block;width: 45%;margin-left: 30px;'
|
||||
} else {
|
||||
return 'display: inline-block;width: 45%;'
|
||||
}
|
||||
} else {
|
||||
return 'display: inline-block;width: 50%;'
|
||||
}
|
||||
}
|
||||
}
|
||||
const props = defineProps({
|
||||
refData: { type: Object, default: null },
|
||||
|
|
Loading…
Reference in New Issue