Commit fcae6954 authored by 皮倩雯's avatar 皮倩雯

修改页面加载UI

parent 6accde46
Pipeline #33977 passed with stages
in 43 minutes 5 seconds
...@@ -31,7 +31,7 @@ const AddModal = props => { ...@@ -31,7 +31,7 @@ const AddModal = props => {
const [pickItem, setPickItem] = useState('') const [pickItem, setPickItem] = useState('')
const [prefixName, setPrefixName] = useState('') const [prefixName, setPrefixName] = useState('')
const [selectValue, setSelectValue] = useState('') const [selectValue, setSelectValue] = useState('')
const [loading, setLoading] = useState(false);
const [standingTable, setStandingTable] = useState([]); const [standingTable, setStandingTable] = useState([]);
const [filed, setFiled] = useState({}); // 传给子组件列表数据 const [filed, setFiled] = useState({}); // 传给子组件列表数据
...@@ -50,7 +50,7 @@ const AddModal = props => { ...@@ -50,7 +50,7 @@ const AddModal = props => {
const onSubmit = () => { const onSubmit = () => {
form.validateFields().then(validate => { form.validateFields().then(validate => {
if (validate) { if (validate) {
// setLoading(true); setLoading(true);
let obj = form.getFieldsValue(); let obj = form.getFieldsValue();
// console.log(obj.Reportable) // console.log(obj.Reportable)
console.log(obj) console.log(obj)
...@@ -126,7 +126,7 @@ const AddModal = props => { ...@@ -126,7 +126,7 @@ const AddModal = props => {
InterfaceConfig:obj.InterfaceConfig, InterfaceConfig:obj.InterfaceConfig,
}) })
.then(res => { .then(res => {
// setLoading(false); setLoading(false);
if (res.msg === 'Ok') { if (res.msg === 'Ok') {
form.resetFields(); form.resetFields();
callBackSubmit(); callBackSubmit();
...@@ -155,7 +155,7 @@ const AddModal = props => { ...@@ -155,7 +155,7 @@ const AddModal = props => {
if (type == 'add') { if (type == 'add') {
CM_Event_AddEventTable(data) CM_Event_AddEventTable(data)
.then(res => { .then(res => {
// setLoading(false); setLoading(false);
if (res.msg === 'Ok') { if (res.msg === 'Ok') {
form.resetFields(); form.resetFields();
callBackSubmit(); callBackSubmit();
......
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