fix: source和entity setting的必填项添加红点标识
This commit is contained in:
@@ -322,4 +322,10 @@ $border-color-light: var(--el-border-color-light);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.from-dot {
|
||||
font-size: 14px;
|
||||
color: var(--el-color-danger);
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -186,4 +186,10 @@ $color-text-primary: var(--el-text-color-primary);
|
||||
min-width: 74px;
|
||||
}
|
||||
}
|
||||
|
||||
.from-dot {
|
||||
font-size: 14px;
|
||||
color: var(--el-color-danger);
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,8 +33,7 @@
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<div class="form-content__title">{{ $t('setting.schemaMapping') }}</div>
|
||||
|
||||
<div class="form-content__title"><span class="from-dot">*</span>{{ $t('setting.schemaMapping') }}</div>
|
||||
<el-form :model="editObj.schemaMappingData" ref="mappingForm">
|
||||
<div class="form-content__block" v-for="(item, index) in editObj.schemaMappingData.data" :key="index">
|
||||
<div class="block-header">
|
||||
@@ -180,7 +179,7 @@
|
||||
</div>
|
||||
|
||||
<div class="switch__block margin-20">
|
||||
<div class="block-title">{{ $t('overall.status') }}</div>
|
||||
<div class="block-title"><span class="from-dot">*</span>{{ $t('overall.status') }}</div>
|
||||
<el-switch
|
||||
v-model="editObj.enable"
|
||||
:active-value="1"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<div class="form__body__label">{{ $t('overall.fields') }}</div>
|
||||
<div class="form__body__label"><span class="from-dot">*</span>{{ $t('overall.fields') }}</div>
|
||||
<el-form ref="fieldsForm" :model="sourceObj.fieldsData">
|
||||
<div class="form-fields__block">
|
||||
<div class="block__header">
|
||||
@@ -67,7 +67,7 @@
|
||||
</div>
|
||||
</el-form>
|
||||
|
||||
<div class="form__body__label">{{ $t('setting.lookups') }}</div>
|
||||
<div class="form__body__label"><span class="from-dot">*</span>{{ $t('setting.lookups') }}</div>
|
||||
<el-form ref="lookupsForm" :model="sourceObj.lookupsData">
|
||||
<div class="form-fields__block">
|
||||
<div class="block__body">
|
||||
@@ -140,7 +140,7 @@
|
||||
id="role-box-input-remark"/>
|
||||
|
||||
<div class="form-setting__block margin-b-20">
|
||||
<div class="block-title">{{ $t('overall.status') }}</div>
|
||||
<div class="block-title"><span class="from-dot">*</span>{{ $t('overall.status') }}</div>
|
||||
<el-switch
|
||||
v-model="sourceObj.enable"
|
||||
:active-value="1"
|
||||
@@ -313,6 +313,7 @@ export default {
|
||||
this.sourceObj = { ...this.sourceObj, ...response.data.data, sourceId: this.sourceId }
|
||||
this.sourceObj.fieldsData.data = JSON.parse(this.sourceObj.fields)
|
||||
this.sourceObj.lookupsData.data = JSON.parse(this.sourceObj.lookups)
|
||||
this.lookupsObj.lookupFieldsOption = this.sourceObj.fieldsData.data
|
||||
} else {
|
||||
console.error(response.data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user