feat: 档案详情
This commit is contained in:
@@ -185,9 +185,27 @@ export default {
|
||||
created() {
|
||||
this.form.areaId = this.$store.state.user.info.areaId
|
||||
this.$dict.load('sex', 'operatorType')
|
||||
|
||||
if(this.params.id){
|
||||
this.getDetail(this.params);
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
async getDetail({id}){
|
||||
try {
|
||||
const {code,data} = await this.instance.post('/app/appshoparchives/queryDetailById',null,{
|
||||
params:{
|
||||
id
|
||||
}
|
||||
})
|
||||
if(code===0){
|
||||
this.form = {...data}
|
||||
}
|
||||
}catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
},
|
||||
async handleSelectGrid() {
|
||||
try {
|
||||
this.dialog = true
|
||||
|
||||
Reference in New Issue
Block a user