Commit 1573bda4 authored by WangRui's avatar WangRui

[feature]自助服务问题调整

parent 426c5a41
...@@ -3,7 +3,7 @@ import { createPinia } from 'pinia' ...@@ -3,7 +3,7 @@ import { createPinia } from 'pinia'
import App from './App.vue' import App from './App.vue'
import router from './router' import router from './router'
import moment from 'moment' import moment from 'moment'
import { Notify, Toast } from 'vant'; import { Notify, Toast, Dialog } from 'vant';
// import VConsole from 'vconsole' // import VConsole from 'vconsole'
moment.locale('zh-cn') moment.locale('zh-cn')
...@@ -17,6 +17,7 @@ app.use(createPinia()) ...@@ -17,6 +17,7 @@ app.use(createPinia())
app.use(router) app.use(router)
app.use(Notify) app.use(Notify)
app.use(Toast) app.use(Toast)
app.use(Dialog)
// app.use(vConsole) // app.use(vConsole)
app.mount('#app') app.mount('#app')
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</section> </section>
<section class="sub"> <section class="sub">
<Button type="primary" block @click="confirm">确认</Button> <Button type="primary" block @click="confirm">授权</Button>
</section> </section>
<Popup v-model:show="showProjectNumber" position="bottom"> <Popup v-model:show="showProjectNumber" position="bottom">
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<script setup> <script setup>
import { goBack } from "@/utils/globalFun" import { goBack } from "@/utils/globalFun"
import Notice from "@/components/Notice.vue" import Notice from "@/components/Notice.vue"
import {NavBar, Field, CellGroup, Popup, Picker, Button, Icon, Search, Toast} from "vant"; import {NavBar, Field, CellGroup, Popup, Picker, Button, Icon, Search, Toast, Dialog} from "vant";
import api from '../api' import api from '../api'
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
...@@ -121,8 +121,13 @@ const confirm = async () => { ...@@ -121,8 +121,13 @@ const confirm = async () => {
} }
const res = await api.confrimAgent(param); const res = await api.confrimAgent(param);
if(res.success){ if(res.success){
Toast.success('授权成功') // Toast.success('授权成功')
// router.push({ name: 'selfService-views-index' }) Dialog.confirm({
title: '授权成功',
message: ''
}).then(() => {
goBack()
});
}else{ }else{
Toast.fail('授权失败') Toast.fail('授权失败')
} }
......
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