fanzhen1223
This commit is contained in:
@@ -190,6 +190,10 @@ export default {
|
|||||||
localStorage.setItem('userPwd', this.userpwd)
|
localStorage.setItem('userPwd', this.userpwd)
|
||||||
localStorage.setItem('token', 'Bearer ' + res.data.data.token)
|
localStorage.setItem('token', 'Bearer ' + res.data.data.token)
|
||||||
localStorage.setItem('tokenB', res.data.data.token)
|
localStorage.setItem('tokenB', res.data.data.token)
|
||||||
|
setTimeout(() => {
|
||||||
|
localStorage.clear()
|
||||||
|
this.$router.go(0)
|
||||||
|
}, 7200)
|
||||||
// 登录状态
|
// 登录状态
|
||||||
localStorage.setItem('userLogin', true)
|
localStorage.setItem('userLogin', true)
|
||||||
console.log(this.$route, '000111')
|
console.log(this.$route, '000111')
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
blurUpset (textCont) {
|
blurUpset (textCont) {
|
||||||
console.log(textCont, '3523')
|
console.log(textCont, '3523')
|
||||||
|
this.searchContext = textCont
|
||||||
if (this.searchContext === '') {
|
if (this.searchContext === '') {
|
||||||
alert('搜索词不能为空!')
|
alert('搜索词不能为空!')
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -96,6 +96,10 @@ axios({
|
|||||||
localStorage.setItem('userPwd', '123456')
|
localStorage.setItem('userPwd', '123456')
|
||||||
localStorage.setItem('token', 'Bearer ' + res.data.data.token)
|
localStorage.setItem('token', 'Bearer ' + res.data.data.token)
|
||||||
localStorage.setItem('tokenB', res.data.data.token)
|
localStorage.setItem('tokenB', res.data.data.token)
|
||||||
|
setTimeout(() => {
|
||||||
|
localStorage.clear()
|
||||||
|
this.$router.go(0)
|
||||||
|
}, 7200)
|
||||||
// 登录状态
|
// 登录状态
|
||||||
localStorage.setItem('userLogin', true)
|
localStorage.setItem('userLogin', true)
|
||||||
Vue.prototype.$auth = true
|
Vue.prototype.$auth = true
|
||||||
|
|||||||
@@ -555,6 +555,7 @@ export default {
|
|||||||
console.log(objStex, 'this.indexDatalabel[this.objStex]')
|
console.log(objStex, 'this.indexDatalabel[this.objStex]')
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case true:// 快速查询(专题统计报表)
|
case true:// 快速查询(专题统计报表)
|
||||||
|
console.log(12000)
|
||||||
if (objStex.type === '1') { // 非地区
|
if (objStex.type === '1') { // 非地区
|
||||||
this.$router.push(
|
this.$router.push(
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -356,7 +356,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
name: item.name,
|
name: item.name,
|
||||||
database: item.db,
|
database: item.db,
|
||||||
birthTime: item.updated_at,
|
birthTime: item.created_at,
|
||||||
staticInput: false,
|
staticInput: false,
|
||||||
adv: item.adv,
|
adv: item.adv,
|
||||||
id: item.id,
|
id: item.id,
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ export default {
|
|||||||
alert('机构地址不能为空!')
|
alert('机构地址不能为空!')
|
||||||
} else if (this.registerData.department === '') {
|
} else if (this.registerData.department === '') {
|
||||||
alert('所属部门不能为空!')
|
alert('所属部门不能为空!')
|
||||||
} else if (!(/^1[3456789]\d{9}$/.test(this.registerData.userIphone))) { // 验证手机号
|
} else if (!(/^1(?:3\d|4[4-9]|5[0-35-9]|6[67]|7[013-8]|8\d|9\d)\d{8}$/.test(this.registerData.userIphone))) { // 验证手机号
|
||||||
alert('您输入的手机号码有误!')
|
alert('您输入的手机号码有误!')
|
||||||
} else if (!(/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/.test(this.registerData.userMail))) { // 验证邮箱
|
} else if (!(/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/.test(this.registerData.userMail))) { // 验证邮箱
|
||||||
alert('您输入的邮箱地址有误!')
|
alert('您输入的邮箱地址有误!')
|
||||||
|
|||||||
Reference in New Issue
Block a user