|
|
|
@ -20,7 +20,7 @@
|
|
|
|
|
<el-radio-button :label="6">全部</el-radio-button>
|
|
|
|
|
<el-radio-button :label="4">待审核</el-radio-button>
|
|
|
|
|
<el-radio-button :label="5">已审核</el-radio-button>
|
|
|
|
|
<el-radio-button :label="3">审核通过</el-radio-button>
|
|
|
|
|
<!-- <el-radio-button :label="3">审核通过</el-radio-button> -->
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
<div class="warning-list-list" v-loading="loading">
|
|
|
|
|
<div v-if="eventList.length > 0">
|
|
|
|
@ -85,7 +85,7 @@ import "proj4";
|
|
|
|
|
import "proj4leaflet";
|
|
|
|
|
import "@/utils/lib/leaflet.ChineseTmsProviders.js";
|
|
|
|
|
import "@/utils/lib/leaflet.mapCorrection.min.js";
|
|
|
|
|
import { new100Page, colonyPage, login } from "@/api/eventPage"
|
|
|
|
|
import { new100Page, colonyPage, login, verify, verificationCode } from "@/api/eventPage"
|
|
|
|
|
import { setToken } from '@/utils/auth'
|
|
|
|
|
import { encrypt } from '@/utils/jsencrypt'
|
|
|
|
|
import urgencyAudit from '@/views/components/urgencyAudit.vue'
|
|
|
|
@ -150,21 +150,30 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
const currentDate = new Date();
|
|
|
|
|
const targetDate = new Date(2024, 10, 1, 0, 0, 0);
|
|
|
|
|
if(currentDate >= targetDate) {
|
|
|
|
|
this.$prompt('<div>算法服务已超过使用期限</div><div class="warningText">请输入试用码(有效期30天)</div>', '提示', {
|
|
|
|
|
// 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,
|
|
|
|
|
inputPattern: /^3939$/,
|
|
|
|
|
inputErrorMessage: "试用码错误!",
|
|
|
|
|
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)
|
|
|
|
@ -173,6 +182,7 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
this.getList();
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
|
|
|
|
@ -183,7 +193,7 @@ export default {
|
|
|
|
|
this.getList();
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
methods:{
|
|
|
|
|
mountedMethods(){
|
|
|
|
|