弹框更换

Lvtianfang
吕天方 2 months ago
parent d855b165b6
commit b151d746a5

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

@ -116,4 +116,19 @@ export function login(username, password) {
method: 'post',
data: data
})
}
export function verificationCode(params){
return request({
url: '/earlyWarningAudit/massEvents/verificationCode',
method: 'get',
params
})
}
export function verify (){
return request({
url: '/earlyWarningAudit/massEvents/verify',
method: 'get',
})
}

@ -783,6 +783,9 @@
}
}
}
.el-message-box {
width: 430px;
}
.el-message-box__container {
margin: 0 0 35px 0;
.el-message-box__message {

@ -118,7 +118,7 @@
<el-button type="primary" @click="reported(1)"></el-button>
<!-- <el-button type="info" plain>不上报</el-button> -->
<el-button type="danger" @click="reported(2)">退</el-button>
<el-button type="success" @click="reported(3)"></el-button>
<!-- <el-button type="success" @click="reported(3)"></el-button> -->
</div>
<el-dialog
width="30%"

@ -216,7 +216,7 @@
<el-button type="primary" @click="reported(1)"></el-button>
<!-- <el-button type="info" plain>不上报</el-button> -->
<el-button type="danger" @click="reported(2)">退</el-button>
<el-button type="success" @click="reported(3)"></el-button>
<!-- <el-button type="success" @click="reported(3)"></el-button> -->
</div>
<el-dialog
width="30%"

@ -63,7 +63,7 @@
// import tabContent from "./components/algorithmTime"
import { getEventLogs } from "@/api/platform/index"
import { mapState, mapGetters } from 'vuex'
import { login } from "@/api/eventPage"
import { login, verify, verificationCode } from "@/api/eventPage"
import { setToken } from '@/utils/auth'
import { encrypt } from '@/utils/jsencrypt'
export default {
@ -92,22 +92,41 @@ export default {
...mapGetters(['debugTime']),
},
mounted() {
const currentDate = new Date();
const targetDate = new Date(2024, 10, 1, 0, 0, 0);
console.log(currentDate >= targetDate);
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 }) => {
// 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)
@ -115,16 +134,8 @@ export default {
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);

@ -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,40 +150,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 }) => {
// 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)
// 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();
})
}
}
})
},
methods:{
mountedMethods(){

@ -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,21 +119,40 @@ 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 }) => {
// 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)
@ -141,16 +160,8 @@ export default {
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);

@ -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);

@ -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 urgencyAudit from '@/views/components/urgencyAudit.vue'
@ -121,21 +121,40 @@ 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 }) => {
// 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)
@ -143,16 +162,8 @@ export default {
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() {

@ -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,21 +119,40 @@ 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 }) => {
// 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)
@ -141,16 +160,8 @@ export default {
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);

@ -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,21 +119,40 @@ 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 }) => {
// 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)
@ -141,16 +160,8 @@ export default {
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);

@ -82,7 +82,7 @@
</div>
</template>
<script>
import { colonyEventPage, login } from "@/api/eventPage"
import { colonyEventPage, login, verify, verificationCode } from "@/api/eventPage"
import { setToken } from '@/utils/auth'
import { encrypt } from '@/utils/jsencrypt'
import relevancyEventAudit from '@/views/components/relevancyEventAudit.vue'
@ -111,21 +111,40 @@ 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 }) => {
// 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)
@ -133,16 +152,8 @@ export default {
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);

Loading…
Cancel
Save