Commit bfdb22d0 authored by TZW's avatar TZW

11

parent 9e3ebb1d
import React, { useState, useEffect } from 'react';
const App = () => {
return (
<>
<div>新增编号规则</div>
</>
);
};
export default App;
...@@ -13,6 +13,7 @@ import PremButton from '@/components/PremButton'; ...@@ -13,6 +13,7 @@ import PremButton from '@/components/PremButton';
import getcolumns from './columns'; import getcolumns from './columns';
import { doFetch } from '@/utils/doFetch'; import { doFetch } from '@/utils/doFetch';
import { message } from 'antd'; import { message } from 'antd';
import AddRules from './AddRules';
function Rules(props) { function Rules(props) {
const actionRef = useRef(), const actionRef = useRef(),
...@@ -151,7 +152,8 @@ function Rules(props) { ...@@ -151,7 +152,8 @@ function Rules(props) {
item: null, item: null,
detailpath: null, detailpath: null,
title: '新增', title: '新增',
val: 'add', type: 'add',
val: 'only',
onFinish: async (vals) => { onFinish: async (vals) => {
console.log(1); console.log(1);
let params = { let params = {
...@@ -190,7 +192,9 @@ function Rules(props) { ...@@ -190,7 +192,9 @@ function Rules(props) {
})); }));
}} }}
{...drawer} {...drawer}
/> >
{drawer?.type == 'add' ? <AddRules /> : null}
</DrawerPro>
</div> </div>
); );
} }
......
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