|
@@ -188,7 +188,7 @@ const indexconfig : React.FC<widowRush> = (prop:widowRush) => {
|
|
|
title: '操作',
|
|
|
valueType: 'option',
|
|
|
width: 200,
|
|
|
- render: (text, record, _, action) => [
|
|
|
+ render: (_text, record, _, action) => [
|
|
|
<a
|
|
|
key="editable"
|
|
|
onClick={() => {
|
|
@@ -267,7 +267,7 @@ const indexconfig : React.FC<widowRush> = (prop:widowRush) => {
|
|
|
validator:validateFun.account
|
|
|
},
|
|
|
{
|
|
|
- validator: (rule, value, callback)=> {
|
|
|
+ validator: (_rule, value, callback)=> {
|
|
|
if (firstCharIsNotNumber(value)>0) {
|
|
|
callback('编号不能以数字开头');
|
|
|
} else {
|
|
@@ -283,8 +283,13 @@ const indexconfig : React.FC<widowRush> = (prop:widowRush) => {
|
|
|
<EditableProTable<IndexSourceModel>
|
|
|
rowKey="indexSourceNo"
|
|
|
columns={indexSourceColumns}
|
|
|
- editable={{
|
|
|
- onValuesChange: (record) => {
|
|
|
+ value={indexSourceList}
|
|
|
+ dataSource={indexSourceList}
|
|
|
+ onValuesChange={ (values,record)=> {
|
|
|
+ if (undefined === record) {
|
|
|
+ setIndexSourceList([...values]);
|
|
|
+ }
|
|
|
+ if ( record.dataSourceType) {
|
|
|
if ( record.dataSourceType === "INDEX") {
|
|
|
setrSelectType1(true);
|
|
|
setrSelectType2(false);
|
|
@@ -295,11 +300,6 @@ const indexconfig : React.FC<widowRush> = (prop:widowRush) => {
|
|
|
}
|
|
|
}
|
|
|
}}
|
|
|
- value={indexSourceList}
|
|
|
- dataSource={indexSourceList}
|
|
|
- onChange={(value)=>{
|
|
|
- setIndexSourceList([...value]);
|
|
|
- }}
|
|
|
recordCreatorProps={
|
|
|
{
|
|
|
position:'bottom',
|