|
|
|
@ -14,7 +14,7 @@
|
|
|
|
|
<el-tab-pane label="待审核" name="first" />
|
|
|
|
|
<el-tab-pane label="已上报" name="second" />
|
|
|
|
|
<el-tab-pane label="重训练" name="third" />
|
|
|
|
|
<el-tab-pane label="审核通过" name="four" />
|
|
|
|
|
<!-- <el-tab-pane label="审核通过" name="four" /> -->
|
|
|
|
|
</el-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="container-info" id="L-size-main">
|
|
|
|
@ -89,7 +89,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import { colonyPage, login } from "@/api/eventPage"
|
|
|
|
|
import { colonyPage, login, verify, verificationCode } from "@/api/eventPage"
|
|
|
|
|
import { setToken } from '@/utils/auth'
|
|
|
|
|
import { encrypt } from '@/utils/jsencrypt'
|
|
|
|
|
import EventAudit from '@/views/components/eventAudit.vue'
|
|
|
|
@ -119,38 +119,50 @@ 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>', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
type:"warning",
|
|
|
|
|
closeOnPressEscape:false,
|
|
|
|
|
showCancelButton: false,
|
|
|
|
|
closeOnClickModal:false,
|
|
|
|
|
dangerouslyUseHTMLString:true,
|
|
|
|
|
inputPattern: /^3939$/,
|
|
|
|
|
inputErrorMessage: "试用码错误!",
|
|
|
|
|
showInput:true,
|
|
|
|
|
showClose:false,
|
|
|
|
|
}).then(({ value }) => {
|
|
|
|
|
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);
|
|
|
|
|
})
|
|
|
|
|
// 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);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} 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);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
destroyed() {
|
|
|
|
|
window.removeEventListener('resize', this.cancalDebounce);
|
|
|
|
|