部署公司环境更改文件

Lvtianfang
吕天方 3 weeks ago
parent 7c9f5c5991
commit 3f0cb5dd58

@ -6,7 +6,8 @@ ENV = 'development'
# 若依管理系统/开发环境
# VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_API = 'http://192.168.0.110:9102/api'
# VUE_APP_BASE_API = 'http://192.168.0.110:9102/api'
VUE_APP_BASE_API = 'http://39.101.188.84:9102/api'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true

@ -5,4 +5,5 @@ VUE_APP_TITLE = 数字高新驾驶舱-算法预警服务平台
ENV = 'production'
# 若依管理系统/生产环境
VUE_APP_BASE_API = 'http://localhost:9002/api'
VUE_APP_BASE_API = 'http://39.101.188.84:9102/api'
# VUE_APP_BASE_API = 'http://localhost:9002/api'

@ -90,6 +90,11 @@ export function getErrorMsg(){
return request({
url: '/earlyWarningAudit/massEvents/getErrorMsg',
method: 'get',
headers:{
"clientId" :'3YSE6O8fRACPPRVCqAlxgkhzMG+tasXXYgdDsiWPi/U=',
"clientSecret" :'kdoiIv5Wn2VvPG0sSGNF9Q4SVvu3CoBy+m6e8skq3AY=',
}
})
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

@ -6,17 +6,22 @@
<div class="msgContent">请及时联系运维人员进行处理</div>
</div>
</div>
<div class="event-box" v-else-if="eventInfoTrue && !isTrue">
<div class="event-box" v-else-if="eventInfoTrue && !isTrue" @click="lookInfo">
<div class="event-background"></div>
<div class="event-right">
<div class="msgType">{{ eventInfo.msgTypeName }}</div>
<div class="msgContent">{{ eventInfo.title }}</div>
</div>
<urgency-audit title="事件详情" ref="urgencyAudit" :auditStatus="2"></urgency-audit>
</div>
</template>
<script>
import { limitOneMsg, getErrorMsg } from "@/api/eventPage/index"
import urgencyAudit from '@/views/components/urgencyAudit.vue'
export default {
components:{
urgencyAudit,
},
data() {
return {
eventInfo:{},
@ -27,31 +32,38 @@ export default {
}
},
watch:{
// $route:{
// handler(route){
// let timeOne;
// let timeTwo;
// if(route.meta.title == '') {
// this.isTrue = true;
// this.getGetErrorMsg();
// //
// timeOne = setInterval(()=>{
// this.getGetErrorMsg();
// },3600000)
// clearInterval(timeTwo)
// } else {
// clearInterval(timeTwo)
// this.isTrue = false;
// this.getLimitOneMsg();
// //
// timeTwo = setInterval(()=>{
// this.getLimitOneMsg();
// },60000)
// clearInterval(timeOne)
// }
// },
// immediate:true,
// }
$route:{
handler(route){
let timeOne;
let timeTwo;
this.isTrue = true;
this.getGetErrorMsg();
//
timeOne = setInterval(()=>{
this.getGetErrorMsg();
},60000)
// clearInterval(timeTwo)
// if(route.meta.title == '') {
// this.isTrue = true;
// this.getGetErrorMsg();
// //
// timeOne = setInterval(()=>{
// this.getGetErrorMsg();
// },3600000)
// clearInterval(timeTwo)
// } else {
// clearInterval(timeTwo)
// this.isTrue = false;
// this.getLimitOneMsg();
// //
// timeTwo = setInterval(()=>{
// this.getLimitOneMsg();
// },60000)
// clearInterval(timeOne)
// }
},
immediate:true,
}
},
methods:{
//
@ -69,18 +81,31 @@ export default {
//
getGetErrorMsg(){
getErrorMsg().then(res=>{
if(res.data) {
this.$store.dispatch("debug/changeDebugTime", res.data)
// this.$store.commit("debug/CHANGE_TIME",res.data)
this.ErrorMsgTime = res.data;
if(res.data == "算法运行异常") {
this.isTrue = true;
this.errorInfo = true;
this.$store.dispatch("debug/changeDebugTime", res.data[0])
} else {
this.$store.dispatch("debug/changeDebugTime", '')
// this.$store.commit("debug/CHANGE_TIME",res.data)
this.isTrue = false;
this.errorInfo = false;
this.eventInfo = res.data[0];
// if(res.data) {
// this.$store.dispatch("debug/changeDebugTime", res.data)
// this.ErrorMsgTime = res.data;
// // this.errorInfo = true;
// } else {
// this.$store.dispatch("debug/changeDebugTime", '')
// // this.errorInfo = false;
// }
}
})
},
lookInfo(){
// console.log(this.eventInfo,"this.eventInfo");
this.$refs.urgencyAudit.open(this.eventInfo);
},
},
}
</script>
@ -93,6 +118,7 @@ export default {
background: #4C4C4C;
padding: 0 10px;
align-items: center;
cursor: pointer;
.event-background {
background: url("../../assets/images/eventPrompt.png");

@ -7,14 +7,16 @@
<div class="right-menu">
<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
<div class="avatar-wrapper">
<img :src="avatar" class="user-avatar">
<!-- <img :src="avatar" class="user-avatar"> -->
<img src="@/assets/images/touxiang.png" class="user-avatar">
<i class="el-icon-caret-bottom" />
</div>
<el-dropdown-menu slot="dropdown">
<router-link to="/user/profile">
<!-- <router-link to="/user/profile">
<el-dropdown-item>个人中心</el-dropdown-item>
</router-link>
<el-dropdown-item divided @click.native="logout">
</router-link> -->
<!-- divided -->
<el-dropdown-item @click.native="logout">
<span>退出登录</span>
</el-dropdown-item>
</el-dropdown-menu>
@ -94,7 +96,8 @@ export default {
type: 'warning'
}).then(() => {
this.$store.dispatch('LogOut').then(() => {
location.href = '/index';
// location.href = '/index';
this.$router.replace("/login");
})
}).catch(() => {});
}

@ -5,7 +5,7 @@
<div class="searchP">
算法运行监测
<span v-if="!debugTime"> <span v-if="tableData.length > 0">{{ tableData[0].runningTime }}</span></span>
<span v-else> <span>{{ debugTime }}</span></span>
<span v-else> <span>{{ debugTime.firstWarnTimeDate }}</span></span>
</div>
</div>
<div class="arithmetic-query">
@ -95,47 +95,50 @@ export default {
// const currentDate = new Date();
// const targetDate = new Date(2024, 10, 1, 0, 0, 0);
// console.log(currentDate >= targetDate);
verify().then(res=>{
if(!res.data) {
this.$prompt('<div>算法已有3个月未迭代请联系算法人员进行迭代优化。</div><div class="warningText">正式使用码签约合同有效期2年有效期至2026年11月1日</div>', '提示', {
confirmButtonText: '确定',
type:"warning",
closeOnPressEscape:false,
showCancelButton: false,
closeOnClickModal:false,
dangerouslyUseHTMLString:true,
showInput:true,
showClose:false,
beforeClose:(action, instance, done)=>{
if (action === 'confirm') {
if(instance.inputValue == "88888888") {
done();
} else {
this.$message.error('试用码错误!');
}
}
}
}).then(({ value }) => {
verificationCode({verificationCode:value}).then(res=>{
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
})
})
} else {
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
}
})
// verify().then(res=>{
// if(!res.data) {
// this.$prompt('<div>3</div><div class="warningText">使22026111</div>', '', {
// confirmButtonText: '',
// type:"warning",
// closeOnPressEscape:false,
// showCancelButton: false,
// closeOnClickModal:false,
// dangerouslyUseHTMLString:true,
// showInput:true,
// showClose:false,
// beforeClose:(action, instance, done)=>{
// if (action === 'confirm') {
// if(instance.inputValue == "88888888") {
// done();
// } else {
// this.$message.error('');
// }
// }
// }
// }).then(({ value }) => {
// verificationCode({verificationCode:value}).then(res=>{
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// })
// })
// } else {
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// }
// })
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);

@ -1,8 +1,8 @@
<template>
<div class="app-container">
<el-row :gutter="20">
<!-- <el-row :gutter="20"> -->
<!--部门数据-->
<el-col :span="4" :xs="24">
<!-- <el-col :span="4" :xs="24">
<div class="head-container">
<el-input
v-model="deptName"
@ -26,9 +26,9 @@
@node-click="handleNodeClick"
/>
</div>
</el-col>
</el-col> -->
<!--用户数据-->
<el-col :span="20" :xs="24">
<el-col :span="24" :xs="24">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="用户名称" prop="userName">
<el-input
@ -200,7 +200,7 @@
@pagination="getList"
/>
</el-col>
</el-row>
<!-- </el-row> -->
<!-- 添加或修改用户配置对话框 -->
<el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>

@ -152,48 +152,52 @@ export default {
mounted() {
// const currentDate = new Date();
// const targetDate = new Date(2024, 10, 1, 0, 0, 0);
verify().then(res=>{
if(!res.data) {
this.$prompt('<div>算法已有3个月未迭代请联系算法人员进行迭代优化。</div><div class="warningText">正式使用码签约合同有效期2年有效期至2026年11月1日</div>', '提示', {
confirmButtonText: '确定',
type:"warning",
closeOnPressEscape:false,
showCancelButton: false,
closeOnClickModal:false,
dangerouslyUseHTMLString:true,
showInput:true,
showClose:false,
beforeClose:(action, instance, done)=>{
if (action === 'confirm') {
if(instance.inputValue == "88888888") {
done();
} else {
this.$message.error('试用码错误!');
}
}
}
}).then(({ value }) => {
verificationCode({verificationCode:value}).then(res=>{
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
localStorage.setItem('Admin-Token',res.token)
// setToken(res.token)
this.$nextTick(() => {
this.initMap();
});
this.getList();
})
})
});
} else {
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
localStorage.setItem('Admin-Token',res.token)
this.$nextTick(() => {
this.initMap();
});
this.getList();
})
}
})
// verify().then(res=>{
// if(!res.data) {
// this.$prompt('<div>3</div><div class="warningText">使22026111</div>', '', {
// confirmButtonText: '',
// type:"warning",
// closeOnPressEscape:false,
// showCancelButton: false,
// closeOnClickModal:false,
// dangerouslyUseHTMLString:true,
// showInput:true,
// showClose:false,
// beforeClose:(action, instance, done)=>{
// if (action === 'confirm') {
// if(instance.inputValue == "88888888") {
// done();
// } else {
// this.$message.error('');
// }
// }
// }
// }).then(({ value }) => {
// verificationCode({verificationCode:value}).then(res=>{
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// localStorage.setItem('Admin-Token',res.token)
// // setToken(res.token)
// this.$nextTick(() => {
// this.initMap();
// });
// this.getList();
// })
// })
// });
// } else {
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// localStorage.setItem('Admin-Token',res.token)
// this.$nextTick(() => {
// this.initMap();
// });
// this.getList();
// })
// }
// })
this.$nextTick(() => {
this.initMap();
});
this.getList();
},
methods:{
mountedMethods(){

@ -121,47 +121,50 @@ export default {
mounted(){
// const currentDate = new Date();
// const targetDate = new Date(2024, 10, 1, 0, 0, 0);
verify().then(res=>{
if(!res.data) {
this.$prompt('<div>算法已有3个月未迭代请联系算法人员进行迭代优化。</div><div class="warningText">正式使用码签约合同有效期2年有效期至2026年11月1日</div>', '提示', {
confirmButtonText: '确定',
type:"warning",
closeOnPressEscape:false,
showCancelButton: false,
closeOnClickModal:false,
dangerouslyUseHTMLString:true,
showInput:true,
showClose:false,
beforeClose:(action, instance, done)=>{
if (action === 'confirm') {
if(instance.inputValue == "88888888") {
done();
} else {
this.$message.error('试用码错误!');
}
}
}
}).then(({ value }) => {
verificationCode({verificationCode:value}).then(res=>{
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
})
})
} else {
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
}
})
// verify().then(res=>{
// if(!res.data) {
// this.$prompt('<div>3</div><div class="warningText">使22026111</div>', '', {
// confirmButtonText: '',
// type:"warning",
// closeOnPressEscape:false,
// showCancelButton: false,
// closeOnClickModal:false,
// dangerouslyUseHTMLString:true,
// showInput:true,
// showClose:false,
// beforeClose:(action, instance, done)=>{
// if (action === 'confirm') {
// if(instance.inputValue == "88888888") {
// done();
// } else {
// this.$message.error('');
// }
// }
// }
// }).then(({ value }) => {
// verificationCode({verificationCode:value}).then(res=>{
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// })
// })
// } else {
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// }
// })
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);

@ -122,47 +122,50 @@ export default {
// const currentDate = new Date();
// const targetDate = new Date(2024, 10, 1, 0, 0, 0);
// if(currentDate >= targetDate) {
verify().then(res=>{
if(!res.data) {
this.$prompt('<div>算法已有3个月未迭代请联系算法人员进行迭代优化。</div><div class="warningText">正式使用码签约合同有效期2年有效期至2026年11月1日</div>', '提示', {
confirmButtonText: '确定',
type:"warning",
closeOnPressEscape:false,
showCancelButton: false,
closeOnClickModal:false,
dangerouslyUseHTMLString:true,
showInput:true,
showClose:false,
beforeClose:(action, instance, done)=>{
if (action === 'confirm') {
if(instance.inputValue == "88888888") {
done();
} else {
this.$message.error('试用码错误!');
}
}
}
}).then(({ value }) => {
verificationCode({verificationCode:value}).then(res=>{
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
})
})
} else {
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
}
})
// verify().then(res=>{
// if(!res.data) {
// this.$prompt('<div>3</div><div class="warningText">使22026111</div>', '', {
// confirmButtonText: '',
// type:"warning",
// closeOnPressEscape:false,
// showCancelButton: false,
// closeOnClickModal:false,
// dangerouslyUseHTMLString:true,
// showInput:true,
// showClose:false,
// beforeClose:(action, instance, done)=>{
// if (action === 'confirm') {
// if(instance.inputValue == "88888888") {
// done();
// } else {
// this.$message.error('');
// }
// }
// }
// }).then(({ value }) => {
// verificationCode({verificationCode:value}).then(res=>{
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// })
// })
// } else {
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// }
// })
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);

@ -123,47 +123,51 @@ export default {
mounted(){
// const currentDate = new Date();
// const targetDate = new Date(2024, 10, 1, 0, 0, 0);
verify().then(res=>{
if(!res.data) {
this.$prompt('<div>算法已有3个月未迭代请联系算法人员进行迭代优化。</div><div class="warningText">正式使用码签约合同有效期2年有效期至2026年11月1日</div>', '提示', {
confirmButtonText: '确定',
type:"warning",
closeOnPressEscape:false,
showCancelButton: false,
closeOnClickModal:false,
dangerouslyUseHTMLString:true,
showInput:true,
showClose:false,
beforeClose:(action, instance, done)=>{
if (action === 'confirm') {
if(instance.inputValue == "88888888") {
done();
} else {
this.$message.error('试用码错误!');
}
}
}
}).then(({ value }) => {
verificationCode({verificationCode:value}).then(res=>{
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
})
})
} else {
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
}
})
// verify().then(res=>{
// if(!res.data) {
// this.$prompt('<div>3</div><div class="warningText">使22026111</div>', '', {
// confirmButtonText: '',
// type:"warning",
// closeOnPressEscape:false,
// showCancelButton: false,
// closeOnClickModal:false,
// dangerouslyUseHTMLString:true,
// showInput:true,
// showClose:false,
// beforeClose:(action, instance, done)=>{
// if (action === 'confirm') {
// if(instance.inputValue == "88888888") {
// done();
// } else {
// this.$message.error('');
// }
// }
// }
// }).then(({ value }) => {
// verificationCode({verificationCode:value}).then(res=>{
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// })
// })
// } else {
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// }
// })
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
},
destroyed() {

@ -121,47 +121,50 @@ export default {
mounted(){
// const currentDate = new Date();
// const targetDate = new Date(2024, 10, 1, 0, 0, 0);
verify().then(res=>{
if(!res.data) {
this.$prompt('<div>算法已有3个月未迭代请联系算法人员进行迭代优化。</div><div class="warningText">正式使用码签约合同有效期2年有效期至2026年11月1日</div>', '提示', {
confirmButtonText: '确定',
type:"warning",
closeOnPressEscape:false,
showCancelButton: false,
closeOnClickModal:false,
dangerouslyUseHTMLString:true,
showInput:true,
showClose:false,
beforeClose:(action, instance, done)=>{
if (action === 'confirm') {
if(instance.inputValue == "88888888") {
done();
} else {
this.$message.error('试用码错误!');
}
}
}
}).then(({ value }) => {
verificationCode({verificationCode:value}).then(res=>{
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
})
})
} else {
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
}
})
// verify().then(res=>{
// if(!res.data) {
// this.$prompt('<div>3</div><div class="warningText">使22026111</div>', '', {
// confirmButtonText: '',
// type:"warning",
// closeOnPressEscape:false,
// showCancelButton: false,
// closeOnClickModal:false,
// dangerouslyUseHTMLString:true,
// showInput:true,
// showClose:false,
// beforeClose:(action, instance, done)=>{
// if (action === 'confirm') {
// if(instance.inputValue == "88888888") {
// done();
// } else {
// this.$message.error('');
// }
// }
// }
// }).then(({ value }) => {
// verificationCode({verificationCode:value}).then(res=>{
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// })
// })
// } else {
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// }
// })
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);

@ -121,47 +121,50 @@ export default {
mounted(){
// const currentDate = new Date();
// const targetDate = new Date(2024, 10, 1, 0, 0, 0);
verify().then(res=>{
if(!res.data) {
this.$prompt('<div>算法已有3个月未迭代请联系算法人员进行迭代优化。</div><div class="warningText">正式使用码签约合同有效期2年有效期至2026年11月1日</div>', '提示', {
confirmButtonText: '确定',
type:"warning",
closeOnPressEscape:false,
showCancelButton: false,
closeOnClickModal:false,
dangerouslyUseHTMLString:true,
showInput:true,
showClose:false,
beforeClose:(action, instance, done)=>{
if (action === 'confirm') {
if(instance.inputValue == "88888888") {
done();
} else {
this.$message.error('试用码错误!');
}
}
}
}).then(({ value }) => {
verificationCode({verificationCode:value}).then(res=>{
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
})
})
} else {
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
}
})
// verify().then(res=>{
// if(!res.data) {
// this.$prompt('<div>3</div><div class="warningText">使22026111</div>', '', {
// confirmButtonText: '',
// type:"warning",
// closeOnPressEscape:false,
// showCancelButton: false,
// closeOnClickModal:false,
// dangerouslyUseHTMLString:true,
// showInput:true,
// showClose:false,
// beforeClose:(action, instance, done)=>{
// if (action === 'confirm') {
// if(instance.inputValue == "88888888") {
// done();
// } else {
// this.$message.error('');
// }
// }
// }
// }).then(({ value }) => {
// verificationCode({verificationCode:value}).then(res=>{
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// })
// })
// } else {
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// }
// })
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);

@ -113,47 +113,50 @@ export default {
mounted(){
// const currentDate = new Date();
// const targetDate = new Date(2024, 10, 1, 0, 0, 0);
verify().then(res=>{
if(!res.data) {
this.$prompt('<div>算法已有3个月未迭代请联系算法人员进行迭代优化。</div><div class="warningText">正式使用码签约合同有效期2年有效期至2026年11月1日</div>', '提示', {
confirmButtonText: '确定',
type:"warning",
closeOnPressEscape:false,
showCancelButton: false,
closeOnClickModal:false,
dangerouslyUseHTMLString:true,
showInput:true,
showClose:false,
beforeClose:(action, instance, done)=>{
if (action === 'confirm') {
if(instance.inputValue == "88888888") {
done();
} else {
this.$message.error('试用码错误!');
}
}
}
}).then(({ value }) => {
verificationCode({verificationCode:value}).then(res=>{
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
})
})
} else {
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
}
})
// verify().then(res=>{
// if(!res.data) {
// this.$prompt('<div>3</div><div class="warningText">使22026111</div>', '', {
// confirmButtonText: '',
// type:"warning",
// closeOnPressEscape:false,
// showCancelButton: false,
// closeOnClickModal:false,
// dangerouslyUseHTMLString:true,
// showInput:true,
// showClose:false,
// beforeClose:(action, instance, done)=>{
// if (action === 'confirm') {
// if(instance.inputValue == "88888888") {
// done();
// } else {
// this.$message.error('');
// }
// }
// }
// }).then(({ value }) => {
// verificationCode({verificationCode:value}).then(res=>{
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// })
// })
// } else {
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// }
// })
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);

@ -18,7 +18,8 @@ module.exports = {
// 部署生产环境和开发环境下的URL。
// 默认情况下Vue CLI 会假设你的应用是被部署在一个域名的根路径上
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
publicPath: process.env.NODE_ENV === "production" ? "./" : "/",
publicPath: process.env.NODE_ENV === "production" ? "/demo/SzplatformWeb" : "/",
// publicPath: process.env.NODE_ENV === "production" ? "./" : "/",
// 在npm run build 或 yarn build 时 生成文件的目录名称要和baseUrl的生产环境路径一致默认dist
outputDir: 'dist',
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)

Loading…
Cancel
Save