脱敏提示用户修改密码

Lvtianfang
吕天方 1 day ago
parent a0531deade
commit 2f9789dbf2

@ -5,11 +5,11 @@ VUE_APP_TITLE = 金鸡湖现代服务业品牌管理系统
ENV = 'development'
# 金鸡湖现代服务业品牌管理系统/开发环境
# VUE_APP_BASE_API = 'http://192.168.0.108:9040'
VUE_APP_BASE_API = 'http://192.168.0.110:9031'
# 测试环境数据库
# VUE_APP_BASE_API = 'http://39.101.188.84:9040'
# 脱敏三方测试用数据库
VUE_APP_BASE_API = 'http://39.101.188.84:9031'
# VUE_APP_BASE_API = 'http://39.101.188.84:9031'
# 正式环境数据库
# VUE_APP_BASE_API = 'https://idp.sipac.gov.cn/api'

@ -1,6 +1,6 @@
{
"name": "ruoyi",
"version": "1.0.202409141058",
"version": "1.0.202409191417",
"description": "金鸡湖现代服务业品牌管理系统",
"author": "若依",
"license": "MIT",

@ -16,4 +16,12 @@ export function workSearch(params) {
method: "get",
params
})
}
// 提示用户修改密码
export function getNewSysLogininfor() {
return request({
url: "/monitor/logininfor/getNewSysLogininfor",
method: "get",
})
}

@ -194,6 +194,7 @@ export default {
this.$store
.dispatch("Login", {...this.loginForm,userType:this.userType, password: encrypt(this.loginForm.password)})
.then(() => {
Cookies.set("newSysLogininfor", 1);
this.$router.push({ path: this.redirect || "/" }).catch(() => {});
})
.catch(() => {

@ -252,8 +252,8 @@
<div class="appropriate-analyse-box">
<div class="box-header">
<span class="garden"></span>
<!-- <span class="box-header-title">资金引导-拨付情况分析</span> -->
<span class="box-header-title">资金引导</span>
<span class="box-header-title">资金引导-拨付情况分析</span>
<!-- <span class="box-header-title">资金引导</span> -->
</div>
<div class="capital-appropriate-analyse-box">
<echartDataFour></echartDataFour>
@ -348,8 +348,9 @@
<homeIndex v-else-if="userType == '01'" />
</template>
<script>
import Cookies from "js-cookie";
import { approvalList, uploadFile } from "@/api/onlineDeclartion/pendingReview"
import { selectAll, workSearch } from "@/api/jin_ji_hu/home"
import { selectAll, workSearch, getNewSysLogininfor } from "@/api/jin_ji_hu/home"
import { chiefAll, changeIsRead } from "@/api/jin_ji_hu/intelligentReminder"
import homeIndex from "@/views/home/index.vue"
import echartData from '@/views/dataCloudMap/components/echartData.vue'
@ -425,6 +426,19 @@ export default {
this.govRemind();
this.time = this.getNowFormatDate();
}
getNewSysLogininfor().then(res=>{
if(res.data && Cookies.get("newSysLogininfor") == 1) {
this.$confirm(`您上次登录时间为${res.data.accessTime},建议修改密码`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
Cookies.set("newSysLogininfor", 2);
}).catch(() => {
Cookies.set("newSysLogininfor", 2);
});
}
})
},
methods:{
//

Loading…
Cancel
Save