能力上架样式修改

This commit is contained in:
851673013@qq.com 2022-06-14 16:36:17 +08:00
parent 4399b2ddc8
commit 3d6df3e3f4
2 changed files with 21 additions and 5 deletions

View File

@ -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({

View File

@ -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({