|
@@ -30,20 +30,19 @@ export default (props) => {
|
30
|
30
|
// Taro.redirectTo({
|
31
|
31
|
// url: '/pages/index/index'
|
32
|
32
|
// })
|
33
|
|
- // setUserInfo({ ...fieldValues, person: person?.personId, deptCode: deptName?.id }).then(() => {
|
34
|
|
- // // setFormValue(fieldValues)
|
35
|
|
-
|
36
|
|
- // Taro.showToast({
|
37
|
|
- // title: '保存成功',
|
38
|
|
- // icon: 'none',
|
39
|
|
- // duration: 2000
|
40
|
|
- // }).then(() => {
|
41
|
|
- // Taro.redirectTo({
|
42
|
|
- // url: '/pages/index/index'
|
43
|
|
- // })
|
44
|
|
- // })
|
45
|
|
-
|
46
|
|
- // })
|
|
33
|
+ setUserInfo({ ...fieldValues, person: person?.personId, deptCode: deptName?.id }).then(() => {
|
|
34
|
+ // setFormValue(fieldValues)
|
|
35
|
+ Taro.showToast({
|
|
36
|
+ title: '保存成功',
|
|
37
|
+ icon: 'none',
|
|
38
|
+ duration: 2000
|
|
39
|
+ }).then(() => {
|
|
40
|
+ Taro.redirectTo({
|
|
41
|
+ url: '/pages/index/index'
|
|
42
|
+ })
|
|
43
|
+ })
|
|
44
|
+
|
|
45
|
+ })
|
47
|
46
|
|
48
|
47
|
}
|
49
|
48
|
})
|
|
@@ -59,7 +58,7 @@ export default (props) => {
|
59
|
58
|
useEffect(() => {
|
60
|
59
|
console.log('form', form);
|
61
|
60
|
form.setFields(person)
|
62
|
|
- }, [person])
|
|
61
|
+ }, [form, person])
|
63
|
62
|
|
64
|
63
|
|
65
|
64
|
const getPhone = (e) => {
|