BUG 28301
This commit is contained in:
@@ -108,7 +108,7 @@ export default {
|
|||||||
return this.user.girdCheckType != 0
|
return this.user.girdCheckType != 0
|
||||||
},
|
},
|
||||||
isAdmin() {
|
isAdmin() {
|
||||||
return this.user.girdCheckType == 1
|
return this.user.girdCheckType == 2
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|||||||
@@ -205,8 +205,10 @@ export default {
|
|||||||
onShow() {
|
onShow() {
|
||||||
if (this.isEdit) {
|
if (this.isEdit) {
|
||||||
document.title = "编辑人员"
|
document.title = "编辑人员"
|
||||||
this.appId = this.$route.query.appId
|
if (!this.appId) {
|
||||||
this.getDetail()
|
let {appId: value} = this.$route.query
|
||||||
|
Promise.all([this.getDetail(), this.typeConfirm([{value}])]).then(() => this.$forceUpdate())
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
document.title = '新增人员'
|
document.title = '新增人员'
|
||||||
if (this.$route.query.appId && !this.appId) {
|
if (this.$route.query.appId && !this.appId) {
|
||||||
@@ -238,7 +240,7 @@ export default {
|
|||||||
typeConfirm(e) {
|
typeConfirm(e) {
|
||||||
this.appId = e[0].value
|
this.appId = e[0].value
|
||||||
this.appName = e[0].label
|
this.appName = e[0].label
|
||||||
this.$http.post(`/app/appapplicationinfo/queryApplicationInfo?appId=${this.appId}`).then((res) => {
|
return this.$http.post(`/app/appapplicationinfo/queryApplicationInfo?appId=${this.appId}`).then((res) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.formData = {}
|
this.formData = {}
|
||||||
let data = res.data
|
let data = res.data
|
||||||
@@ -469,13 +471,13 @@ export default {
|
|||||||
},
|
},
|
||||||
getDetail() {
|
getDetail() {
|
||||||
let {id, appId} = this.$route.query
|
let {id, appId} = this.$route.query
|
||||||
id && this.$http.post("/app/appapplicationinfo/queryDetailById", null, {
|
return id ? this.$http.post("/app/appapplicationinfo/queryDetailById", null, {
|
||||||
params: {id, appId}
|
params: {id, appId}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.formData = res.data
|
this.formData = res.data
|
||||||
}
|
}
|
||||||
})
|
}) : Promise.resolve()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user