BUG 28180

This commit is contained in:
aixianling
2022-03-14 20:11:04 +08:00
parent fa843289ba
commit fd7f904de4
4 changed files with 70 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div class="add">
<div class="pad-l32">
<div class="item">
<div class="item" v-if="!isEdit">
<span class="label"><span class="tips">*</span>类型</span>
<div class="value" @click="showType=true">
<span :class="appId ? '' : 'color-999'">{{ appName }}</span>
@@ -203,12 +203,19 @@ export default {
id: ''
}
},
computed: {...mapState(['user'])},
computed: {
...mapState(['user']),
isEdit() {
return !!this.$route.query.id
}
},
created() {
this.getType()
},
onShow() {
document.title = '新增人员'
document.title = this.isEdit ? "编辑人员" : '新增人员'
this.getDetail()
},
methods: {
...mapActions(['selectEnterpriseContact']),
@@ -464,6 +471,17 @@ export default {
this.formData[item.fieldDbName] = [info.id, info.girdName].join("_")
this.formData[item.fieldDbName + "_name"] = info.girdName
this.$forceUpdate()
},
getDetail() {
let {id, appId} = this.$route.query
id && this.$http.post("/app/appapplicationinfo/queryDetailById", null, {
params: {id, appId}
}).then(res => {
if (res?.data) {
this.formData = res.data
this.appId = appId
}
})
}
}
}