be8c3d81 by fanguang Committed by lihua

fix

1 parent c03e57b7
<template>
<el-dialog v-model="visible" :title="title" width="900" modal-class="standard-modal">
<el-form :rules="formRules" :model="form" ref="formEl">
<el-form :rules="formRules" :model="form" ref="formEl" require-asterisk-position="right">
<el-row>
<el-col :span="12" style="padding-right:10px">
<el-form-item label="元数据标准名称" prop="standardName">
......@@ -51,7 +51,7 @@
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="自定义字段选择" v-if="form.fieldRQVOS && form.fieldRQVOS.length">
<el-form-item label="自定义字段选择" v-if="form.fieldRQVOS && form.fieldRQVOS.length" required>
<div class="table-form">
<div class="table-form-wrapper" v-for="item,index in form.fieldRQVOS" :key="index">
<div class="table-form-item">
......@@ -248,9 +248,15 @@ watch(
() => visible.value,
(v) => {
if (!v) return
if (props.type === 'edit') {
getDetail()
} else {
form.value = { ...formTpl }
}
setTimeout(() => {
formEl.value.clearValidate()
}, 100)
}
)
onBeforeMount(() => {
......@@ -292,7 +298,10 @@ onBeforeMount(() => {
.el-dialog__footer {
padding: 10px;
}
.el-dialog__body {
height: 500px;
overflow: auto;
}
.table-form-wrapper {
display: flex;
margin-bottom: 5px;
......
......@@ -358,7 +358,8 @@ const formTable = ref({
title: "定义表结构",
col: 'no-margin',
style: {
height: 'calc(100% - 234px)'
// height: 'calc(100% - 234px)'
height: 'auto'
},
tableInfo: {
id: "role-authority-table",
......@@ -380,9 +381,9 @@ const formTable = ref({
},
editInfo: {},
readonly: false,
col: 'auto-height',
// col: 'auto-height',
style: {
height: 'calc(100% - 40px)'
// height: 'calc(100% - 40px)'
},
loading: false
},
......@@ -1535,8 +1536,8 @@ onMounted(() => {
<div class="table_tool_wrap">
<div class="tools_btns">
<el-button type="primary" @click="loadDrawer" v-preReClick>新建</el-button>
<el-button @click="batching('delete')" v-preReClick>批量删除</el-button>
<el-button @click="batching('export')" v-preReClick>批量导入</el-button>
<el-button @click="batching('delete')" v-preReClick>批量删除</el-button>
</div>
<el-input class="table_search_input" v-model.trim="tableSearchInput" placeholder="请输入关键字搜索"
:suffix-icon="Search" clearable @change="val => getFirstPageData()" />
......@@ -1570,5 +1571,11 @@ onMounted(() => {
height: calc(100% - 68px);
overflow: hidden auto;
}
}
</style>
<style>
.el-scrollbar__bar.is-vertical {
display: none!important;
}
</style>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!