Commit 1573bda4 authored by WangRui's avatar WangRui

[feature]自助服务问题调整

parent 426c5a41
......@@ -3,7 +3,7 @@ import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import moment from 'moment'
import { Notify, Toast } from 'vant';
import { Notify, Toast, Dialog } from 'vant';
// import VConsole from 'vconsole'
moment.locale('zh-cn')
......@@ -17,6 +17,7 @@ app.use(createPinia())
app.use(router)
app.use(Notify)
app.use(Toast)
app.use(Dialog)
// app.use(vConsole)
app.mount('#app')
......@@ -74,4 +74,4 @@ hr {
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
</style>
\ No newline at end of file
</style>
......@@ -17,7 +17,7 @@
</section>
<section class="sub">
<Button type="primary" block @click="confirm">确认</Button>
<Button type="primary" block @click="confirm">授权</Button>
</section>
<Popup v-model:show="showProjectNumber" position="bottom">
......@@ -42,7 +42,7 @@
<script setup>
import { goBack } from "@/utils/globalFun"
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 { useRouter } from "vue-router";
......@@ -121,8 +121,13 @@ const confirm = async () => {
}
const res = await api.confrimAgent(param);
if(res.success){
Toast.success('授权成功')
// router.push({ name: 'selfService-views-index' })
// Toast.success('授权成功')
Dialog.confirm({
title: '授权成功',
message: ''
}).then(() => {
goBack()
});
}else{
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