【修改】获取领导 修改逻辑

This commit is contained in:
zhoulingpo
2023-05-18 09:41:01 +08:00
parent 11a21aefeb
commit 0efac04704
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -287,7 +287,7 @@ export default {
} }
if (this.form.cellPhoneNumber && !(/^1[3|4|5|7|8|9][0-9]{9}$/.test(this.form.cellPhoneNumber))) { if (this.form.cellPhoneNumber && !(/^(?:\+86)?-(1[3456789]\d)\d{8}$/.test(this.form.cellPhoneNumber))) {
return this.$message.warning('请检查手机号') && false return this.$message.warning('请检查手机号') && false
} }
if (this.form.email && !(/^[\w-.]+@[a-z\d-]+(\.[a-z\d-]+)*\.[a-z\d]{2,6}$/i.test(this.form.email))) { if (this.form.email && !(/^[\w-.]+@[a-z\d-]+(\.[a-z\d-]+)*\.[a-z\d]{2,6}$/i.test(this.form.email))) {
@@ -490,7 +490,7 @@ export default {
}, },
mounted() { mounted() {
this.updateList() this.updateList()
this.getAllPerson() // this.getAllPerson()
} }
} }
</script> </script>
@@ -56,6 +56,7 @@ export default {
console.log(this.form,"hhh") console.log(this.form,"hhh")
}) })
let name=this.controlNode('RXXTU4A5YN')?'first':'five' let name=this.controlNode('RXXTU4A5YN')?'first':'five'
this.$store.commit('setActiveTabIndex',this.activeName)
this.activeName=this.$store.getters.activeTab ?this.$store.getters.activeTab:name this.activeName=this.$store.getters.activeTab ?this.$store.getters.activeTab:name
}, },
methods: { methods: {