Commit b5b0aea3 authored by wdy's avatar wdy

设备领用处理表单

parent fadef9df
......@@ -550,9 +550,32 @@ export default {
next()
},
created() {
this.getDict()
this.getList()
},
methods: {
replace(value) {
let label = ''
if (this.dictList.length > 0) {
this.dictList.forEach(item => {
if (item.dictValue === value) {
label = item.dictLabel
}
})
}
return label
},
getDict() {
const obj = {
key: 'GX_CODE'
}
getDictData(obj).then(res => {
console.log('res', res)
if (res.code === 200 && res.data !== null) {
this.dictList = res.data
}
})
},
handlemenuClose() {
this.menu = false
this.loadingDetail = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment