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