|
@@ -180,6 +180,7 @@
|
|
:style="{ height: '80%' }"
|
|
:style="{ height: '80%' }"
|
|
>
|
|
>
|
|
<PullDownSelector
|
|
<PullDownSelector
|
|
|
|
+ :showElement="visitShowPicker"
|
|
:options="purposeOfVisitList"
|
|
:options="purposeOfVisitList"
|
|
:doYouNeedTranslation="false"
|
|
:doYouNeedTranslation="false"
|
|
@change="visitSelectChange"
|
|
@change="visitSelectChange"
|
|
@@ -193,6 +194,7 @@
|
|
:style="{ height: '80%' }"
|
|
:style="{ height: '80%' }"
|
|
>
|
|
>
|
|
<PullDownSelector
|
|
<PullDownSelector
|
|
|
|
+ :showElement="remindShowPicker"
|
|
:options="reminderTimeList"
|
|
:options="reminderTimeList"
|
|
:doYouNeedTranslation="false"
|
|
:doYouNeedTranslation="false"
|
|
@change="remindSelectChange"
|
|
@change="remindSelectChange"
|
|
@@ -245,7 +247,11 @@ function onSubmit() {
|
|
requests.post(PLAN_TO_ADD_EDITORS, { ...data }).then((res) => {
|
|
requests.post(PLAN_TO_ADD_EDITORS, { ...data }).then((res) => {
|
|
toastSuccess("保存成功")
|
|
toastSuccess("保存成功")
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- history.back();
|
|
|
|
|
|
+ router.navigateBack({
|
|
|
|
+ success: () => {
|
|
|
|
+ router.emit('visitorDetailsParameter', { row: JSON.stringify({...addOrEditRow.value}) })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}, 2000)
|
|
}, 2000)
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
toastFail(`保存失败:${err.msg}`)
|
|
toastFail(`保存失败:${err.msg}`)
|