BUG 28301

This commit is contained in:
aixianling
2022-03-17 16:14:30 +08:00
parent 4e4263b2d1
commit 7eaac9b228
2 changed files with 8 additions and 6 deletions

View File

@@ -108,7 +108,7 @@ export default {
return this.user.girdCheckType != 0
},
isAdmin() {
return this.user.girdCheckType == 1
return this.user.girdCheckType == 2
},
},
created() {

View File

@@ -205,8 +205,10 @@ export default {
onShow() {
if (this.isEdit) {
document.title = "编辑人员"
this.appId = this.$route.query.appId
this.getDetail()
if (!this.appId) {
let {appId: value} = this.$route.query
Promise.all([this.getDetail(), this.typeConfirm([{value}])]).then(() => this.$forceUpdate())
}
} else {
document.title = '新增人员'
if (this.$route.query.appId && !this.appId) {
@@ -238,7 +240,7 @@ export default {
typeConfirm(e) {
this.appId = e[0].value
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) {
this.formData = {}
let data = res.data
@@ -469,13 +471,13 @@ export default {
},
getDetail() {
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}
}).then(res => {
if (res?.data) {
this.formData = res.data
}
})
}) : Promise.resolve()
}
}
}