Commit 584a5877 authored by TZW's avatar TZW

111

parent c7729c19
...@@ -12,7 +12,7 @@ import routes from '../config/authRoutes'; ...@@ -12,7 +12,7 @@ import routes from '../config/authRoutes';
const { LinkOutlined } = Ant4Icons; const { LinkOutlined } = Ant4Icons;
// const isDev = process.env.NODE_ENV === 'development'; // const isDev = process.env.NODE_ENV === 'development';
const isDev = false; const isDev = true;
//console.log(isDev); //console.log(isDev);
const loginPath = '/user/login'; const loginPath = '/user/login';
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44 * @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-14 09:15:23 * @Last Modified time: 2022-12-15 17:19:25
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -15,8 +15,11 @@ import getcolumns from './columns'; ...@@ -15,8 +15,11 @@ import getcolumns from './columns';
import { doFetch } from '@/utils/doFetch'; import { doFetch } from '@/utils/doFetch';
import { message, AutoComplete } from 'antd'; import { message, AutoComplete } from 'antd';
import ExtendField from '@/components/ExtendField'; import ExtendField from '@/components/ExtendField';
import { useModel } from 'umi';
function User(props) { function User(props) {
const { initialState, loading, error, refresh, setInitialState } = useModel('@@initialState');
console.log('usermsg:', initialState);
const actionRef = useRef(), const actionRef = useRef(),
formRef = useRef(); formRef = useRef();
const [drawer, setDrawer] = useState({ const [drawer, setDrawer] = useState({
...@@ -264,6 +267,7 @@ function User(props) { ...@@ -264,6 +267,7 @@ function User(props) {
type: 'primary', type: 'primary',
disabled: false, disabled: false,
onClick: () => { onClick: () => {
// let res = await doFetch({url:})
setDrawer((s) => ({ setDrawer((s) => ({
...s, ...s,
visible: true, visible: true,
......
...@@ -81,6 +81,7 @@ function getcolumns(ifs) { ...@@ -81,6 +81,7 @@ function getcolumns(ifs) {
}, },
fieldProps: { fieldProps: {
disabled: ifs, disabled: ifs,
placeholder: '请输入,用分号“;”隔开',
}, },
hideInForm: { hideInForm: {
fieldChar: ['1'], fieldChar: ['1'],
......
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