Commit 76a5a2d7 by zhaochengxiang

bug fix

parent 1abc39fe
...@@ -44,7 +44,7 @@ const FC = (props) => { ...@@ -44,7 +44,7 @@ const FC = (props) => {
dispatch({ dispatch({
type: 'datamodel.updateRuleTemplate', type: 'datamodel.updateRuleTemplate',
payload: { payload: {
data: {...item, ...rows} data: {...item, preCheckProperty: null, ...rows}
}, },
callback: data => { callback: data => {
close(true) close(true)
...@@ -161,7 +161,6 @@ export const Basic = React.forwardRef(function ({ type, item }, ref) { ...@@ -161,7 +161,6 @@ export const Basic = React.forwardRef(function ({ type, item }, ref) {
} }
const validatorCheckProperty = (_, value) => { const validatorCheckProperty = (_, value) => {
console.log('value', value)
if (!value?.propertyEnName) { if (!value?.propertyEnName) {
return Promise.reject(new Error('请选择检查对象!')); return Promise.reject(new Error('请选择检查对象!'));
} }
...@@ -238,6 +237,7 @@ export const Basic = React.forwardRef(function ({ type, item }, ref) { ...@@ -238,6 +237,7 @@ export const Basic = React.forwardRef(function ({ type, item }, ref) {
style={{ marginBottom }} style={{ marginBottom }}
rules={[ rules={[
{ {
required: true,
validator: validatorCheckProperty, validator: validatorCheckProperty,
}, },
]} ]}
...@@ -253,6 +253,7 @@ export const Basic = React.forwardRef(function ({ type, item }, ref) { ...@@ -253,6 +253,7 @@ export const Basic = React.forwardRef(function ({ type, item }, ref) {
style={{ marginBottom }} style={{ marginBottom }}
rules={[ rules={[
{ {
required: true,
validator: validatorCheckProperty, validator: validatorCheckProperty,
}, },
]} ]}
...@@ -265,6 +266,7 @@ export const Basic = React.forwardRef(function ({ type, item }, ref) { ...@@ -265,6 +266,7 @@ export const Basic = React.forwardRef(function ({ type, item }, ref) {
style={{ marginBottom }} style={{ marginBottom }}
rules={[ rules={[
{ {
required: true,
validator: validatorCheckProperty, validator: validatorCheckProperty,
}, },
]} ]}
......
.model-config { .model-config {
height: calc(100vh - 64px - 30px); height: 100%;
padding: 20px; padding: 20px;
background: #fff; background: #fff;
overflow: auto; 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