Commit d93a1eff authored by 15008242619's avatar 15008242619 Committed by jingnan

紧急领用 限制领用人为孙瑶雪和李晓倩

parent d0f8fe6d
......@@ -107,14 +107,18 @@ export default {
// 组件方法
methods: {
async getUseRequestTypes() {
// const user = localStorage.getItem('user')
const user = localStorage.getItem('user')
const dicData = await this.$utils.getDicListByCode('UseRequestType')
// 当前登陆人为孙瑶雪 和dexadmin的时候下拉可以看到试验领用,其他人看不到
// if (user === '孙瑶雪' || user === 'dexadmin') {
// this.options = dicData.filter(item => item.label !== '无指令领用')
// } else {
this.options = dicData.filter(item => item.label !== '试验领用' && item.label !== '无指令领用')
// }
// 当前登陆人为孙瑶雪 李晓倩 和dexadmin的时候下拉可以看到试验领用,其他人看不到
if (user === '孙瑶雪' || user === 'dexadmin' || user === '李晓倩') {
this.options = dicData.filter(item => item.label !== '无指令领用')
} else {
this.options = dicData.filter(item => item.label !== '试验领用' && item.label !== '无指令领用' && item.label !== '紧急领用')
}
},
dataChangeHandler(val) {
if (val) {
......
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