能力上架样式修改
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,9 +140,17 @@
|
|||
let applicationDataList = ref([])
|
||||
let indexSwitch = ref()
|
||||
//样式修改
|
||||
function styleFunction(type) {
|
||||
function styleFunction(type, attrType) {
|
||||
if (type == 'select' || type == 'radio') {
|
||||
return 'display: inline-block;width: 50%;'
|
||||
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({
|
||||
|
|
|
@ -151,8 +151,16 @@
|
|||
let plainOptions = ref([])
|
||||
//样式修改
|
||||
function styleFunction(type, attrType) {
|
||||
if (type == 'select' || type == 'radio' || attrType == '部门联系人电话') {
|
||||
return 'display: inline-block;width: 45%;'
|
||||
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({
|
||||
|
|
Loading…
Reference in New Issue