|
|
@ -37,7 +37,7 @@
|
|
|
|
<div class="opt-box">
|
|
|
|
<div class="opt-box">
|
|
|
|
<h3>字段属性设置</h3>
|
|
|
|
<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-form-item label="字段名称(中文)" name="label">
|
|
|
|
<a-input
|
|
|
|
<a-input
|
|
|
|
v-model:value="formItems.formData.label"
|
|
|
|
v-model:value="formItems.formData.label"
|
|
|
@ -99,6 +99,14 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form>
|
|
|
|
</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>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -157,6 +165,8 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 选择字段触发编辑
|
|
|
|
// 选择字段触发编辑
|
|
|
|
const chooseItem = (item) => {
|
|
|
|
const chooseItem = (item) => {
|
|
|
|
|
|
|
|
console.log(item)
|
|
|
|
|
|
|
|
|
|
|
|
if (formItems.formData.field) {
|
|
|
|
if (formItems.formData.field) {
|
|
|
|
form.value.validate().then(() => {
|
|
|
|
form.value.validate().then(() => {
|
|
|
|
formToggle(item)
|
|
|
|
formToggle(item)
|
|
|
@ -165,9 +175,12 @@
|
|
|
|
formToggle(item)
|
|
|
|
formToggle(item)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const isPermissions = ref(false)
|
|
|
|
const formToggle = (item) => {
|
|
|
|
const formToggle = (item) => {
|
|
|
|
form.value.clearValidate()
|
|
|
|
form.value.clearValidate()
|
|
|
|
activeClass.value = item.field
|
|
|
|
activeClass.value = item.field
|
|
|
|
|
|
|
|
item.field.includes('permissions-')
|
|
|
|
|
|
|
|
isPermissions.value = item.field.includes('permissions-') ? true : false
|
|
|
|
formItems.formData = item
|
|
|
|
formItems.formData = item
|
|
|
|
formDisable.value = false
|
|
|
|
formDisable.value = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|