Commit 76a5a2d7 by zhaochengxiang

bug fix

parent 1abc39fe
......@@ -44,7 +44,7 @@ const FC = (props) => {
dispatch({
type: 'datamodel.updateRuleTemplate',
payload: {
data: {...item, ...rows}
data: {...item, preCheckProperty: null, ...rows}
},
callback: data => {
close(true)
......@@ -161,7 +161,6 @@ export const Basic = React.forwardRef(function ({ type, item }, ref) {
}
const validatorCheckProperty = (_, value) => {
console.log('value', value)
if (!value?.propertyEnName) {
return Promise.reject(new Error('请选择检查对象!'));
}
......@@ -238,6 +237,7 @@ export const Basic = React.forwardRef(function ({ type, item }, ref) {
style={{ marginBottom }}
rules={[
{
required: true,
validator: validatorCheckProperty,
},
]}
......@@ -253,6 +253,7 @@ export const Basic = React.forwardRef(function ({ type, item }, ref) {
style={{ marginBottom }}
rules={[
{
required: true,
validator: validatorCheckProperty,
},
]}
......@@ -265,6 +266,7 @@ export const Basic = React.forwardRef(function ({ type, item }, ref) {
style={{ marginBottom }}
rules={[
{
required: true,
validator: validatorCheckProperty,
},
]}
......
.model-config {
height: calc(100vh - 64px - 30px);
height: 100%;
padding: 20px;
background: #fff;
overflow: auto;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment