|
|
|
@ -37,7 +37,7 @@
|
|
|
|
|
<div class="opt-box">
|
|
|
|
|
<h3>字段属性设置</h3>
|
|
|
|
|
<!-- 表格操作列组件 -->
|
|
|
|
|
<a-form ref="form" :model="formItems.formData" :rules="rules">
|
|
|
|
|
<a-form ref="form" :model="formItems.formData" :rules="rules" v-if="!isPermissions">
|
|
|
|
|
<a-form-item label="字段名称(中文)" name="label">
|
|
|
|
|
<a-input
|
|
|
|
|
v-model:value="formItems.formData.label"
|
|
|
|
@ -99,6 +99,14 @@
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-form>
|
|
|
|
|
<a-form ref="form" :model="formItems.formData" :rules="rules" v-else>
|
|
|
|
|
<a-form-item label="是否不校验" name="permissions">
|
|
|
|
|
<a-radio-group v-model:value="formItems.formData.permissions" :disabled="formDisable">
|
|
|
|
|
<a-radio :value="true">是</a-radio>
|
|
|
|
|
<a-radio :value="false">否</a-radio>
|
|
|
|
|
</a-radio-group>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
@ -157,6 +165,8 @@
|
|
|
|
|
}
|
|
|
|
|
// 选择字段触发编辑
|
|
|
|
|
const chooseItem = (item) => {
|
|
|
|
|
console.log(item)
|
|
|
|
|
|
|
|
|
|
if (formItems.formData.field) {
|
|
|
|
|
form.value.validate().then(() => {
|
|
|
|
|
formToggle(item)
|
|
|
|
@ -165,9 +175,12 @@
|
|
|
|
|
formToggle(item)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const isPermissions = ref(false)
|
|
|
|
|
const formToggle = (item) => {
|
|
|
|
|
form.value.clearValidate()
|
|
|
|
|
activeClass.value = item.field
|
|
|
|
|
item.field.includes('permissions-')
|
|
|
|
|
isPermissions.value = item.field.includes('permissions-') ? true : false
|
|
|
|
|
formItems.formData = item
|
|
|
|
|
formDisable.value = false
|
|
|
|
|
}
|
|
|
|
|