Commit 9b0525b0 authored by xhx's avatar xhx

用户管理

parent e93bb628
...@@ -167,9 +167,19 @@ export default Vue.extend({ ...@@ -167,9 +167,19 @@ export default Vue.extend({
getRouteQuery() { getRouteQuery() {
if (this.$route.query.rankVal) { if (this.$route.query.rankVal) {
const keys = JSON.parse(this.$route.query.rankVal as string) const keys = JSON.parse(this.$route.query.rankVal as string)
const level = this.$route.query.level let level = this.$route.query.level
const uuid = this.$route.query.uuid const uuid = this.$route.query.uuid
const role = this.$route.query.role const role = this.$route.query.role
if (uuid) {
console.log('join In Scan')
if (role === eNewRoleRelatedToBackEnd.Management) {
// 查看 -- 管理员
keys[keys.length - 1] = undefined
} else {
// 经理
keys.length = +level - 1
}
}
this.params = { this.params = {
firstBranch: +keys[0]?.value || undefined, firstBranch: +keys[0]?.value || undefined,
firstSubBranch: +keys[2]?.value || undefined, firstSubBranch: +keys[2]?.value || undefined,
...@@ -179,23 +189,23 @@ export default Vue.extend({ ...@@ -179,23 +189,23 @@ export default Vue.extend({
uuid, uuid,
role role
} }
console.log(this.params)
} else {
this.params = {
location: this.$route.query.address
}
} }
// else {
// this.params = {
// location: this.$route.query.address
// }
// }
}, },
getLists() { getLists() {
const uuid = this.$route.query.uuid
this.platformSave({ this.platformSave({
...this.params ...this.params
}) })
const uuid = this.$route.query.uuid // if (uuid) {
if (uuid) { // this.platform()
this.platform() // } else {
} else {
this.platformQuery() this.platformQuery()
} // }
}, },
changeHandle(e: any) { changeHandle(e: any) {
this.platformSave({ this.platformSave({
......
...@@ -15,8 +15,8 @@ export enum eUserStatusAction { ...@@ -15,8 +15,8 @@ export enum eUserStatusAction {
} }
export enum eUserStatus { export enum eUserStatus {
disable_notOnPosition = 0, disable_notOnPosition = 0b00,
disable_noPosition = 1, enable_notOnPosition = 0b01,
enable_notOnPosition = 2, disable_noPosition = 0b10,
enable_onPosition = 3, enable_onPosition = 0b11,
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment