|
@@ -235,6 +235,7 @@
|
|
|
</el-container>
|
|
|
</el-header>
|
|
|
</el-container>
|
|
|
+ <UpdatePassword ref="updatePassword"></UpdatePassword>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -246,6 +247,8 @@
|
|
|
import NotifyForm from '@/views/modules/notify/NotifyForm'
|
|
|
import NotifyService from '@/api/notify/NotifyService'
|
|
|
import NoticeService from '@/api/flowable/NoticeService'
|
|
|
+ import UserService from '@/api/sys/UserService'
|
|
|
+ import UpdatePassword from '@/views/layout/UpdatePassword'
|
|
|
|
|
|
export default {
|
|
|
data () {
|
|
@@ -314,10 +317,12 @@
|
|
|
taskService: null,
|
|
|
notifyService: null,
|
|
|
noticeService: null,
|
|
|
+ userService: null,
|
|
|
created () {
|
|
|
this.taskService = new TaskService()
|
|
|
this.notifyService = new NotifyService()
|
|
|
this.noticeService = new NoticeService()
|
|
|
+ this.userService = new UserService()
|
|
|
},
|
|
|
activated () {
|
|
|
// 判断是否有签章页面带过来
|
|
@@ -345,12 +350,27 @@
|
|
|
console.log('取消前往签章页面,清除本页$router.query')
|
|
|
})
|
|
|
}
|
|
|
+ // 判断当前用户是否为管理员
|
|
|
+ this.userService.is().then(({data}) => {
|
|
|
+ console.log('是否为管理员', data)
|
|
|
+ if (!data) {
|
|
|
+ // 如果当前用户不是管理员,则判断是否修改过密码
|
|
|
+ this.userService.isUpdatePassword().then(({data}) => {
|
|
|
+ console.log('是否修改过密码', data)
|
|
|
+ if (!data) {
|
|
|
+ // 如果没有修改过密码,则弹出密码修改窗口
|
|
|
+ this.$refs.updatePassword.init()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
this.refreshList()
|
|
|
},
|
|
|
components: {
|
|
|
UserSelect,
|
|
|
// FlowChart
|
|
|
- NotifyForm
|
|
|
+ NotifyForm,
|
|
|
+ UpdatePassword
|
|
|
},
|
|
|
// watch: {
|
|
|
// },
|