feat: 档案详情

This commit is contained in:
wanglei
2024-06-25 11:23:15 +08:00
parent 2143da5dce
commit 8279b89ff5
2 changed files with 44 additions and 102 deletions

View File

@@ -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