[update] 按钮权限
This commit is contained in:
@@ -140,6 +140,10 @@
|
||||
formInline: {
|
||||
type: Object,
|
||||
default: true
|
||||
},
|
||||
currentPersonRole: {
|
||||
type: String,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -203,7 +207,6 @@
|
||||
loading: false,
|
||||
orderBy: '1',
|
||||
orderByField: '',
|
||||
LoginUserType: '', // 登陆人角色状态
|
||||
homo: 0, // 认证工程师
|
||||
sdt: 0, // 工程接口人
|
||||
dre: 0, // 填写人
|
||||
@@ -339,9 +342,8 @@
|
||||
}
|
||||
getAction(this.url.getLoginUserType, params).then((res) => {
|
||||
if (res.success) {
|
||||
this.LoginUserType = res.result
|
||||
this.getTableList()
|
||||
this.$emit('LoginUserType', this.LoginUserType)
|
||||
this.$emit('LoginUserType', res.result)
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -414,10 +416,11 @@
|
||||
getTableListReset() {
|
||||
let params = {
|
||||
paramsManifestId: this.paramsManifest.id,
|
||||
userTypes: this.LoginUserType
|
||||
userTypes: this.currentPersonRole
|
||||
}
|
||||
this.loading = true
|
||||
this.$emit('listReset', '')
|
||||
// todo
|
||||
getAction(this.url.tableList, params).then((res) => {
|
||||
if (res.success) {
|
||||
this.dataSource = res.result
|
||||
@@ -430,6 +433,7 @@
|
||||
})
|
||||
},
|
||||
getTableList() {
|
||||
// todo
|
||||
let paramsManifestid
|
||||
let url
|
||||
if (this.$route.query.it === undefined) {
|
||||
@@ -443,7 +447,7 @@
|
||||
url = 'params/collectManifestHistory/list'
|
||||
}
|
||||
let params = {
|
||||
userTypes: this.LoginUserType,
|
||||
userTypes: this.currentPersonRole,
|
||||
paramsManifestId: paramsManifestid,
|
||||
...this.formInline
|
||||
}
|
||||
@@ -480,6 +484,9 @@
|
||||
paramsManifest(newVal, oldVal) {
|
||||
this.getData()
|
||||
this.getLoginUserType()
|
||||
},
|
||||
currentPersonRole(newVal,oldVal){
|
||||
console.log(newVal,oldVal)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user