diff --git a/src/views/evaluate/reviewevaluate/components/list.vue b/src/views/evaluate/reviewevaluate/components/list.vue
index 68407c2..346981b 100644
--- a/src/views/evaluate/reviewevaluate/components/list.vue
+++ b/src/views/evaluate/reviewevaluate/components/list.vue
@@ -68,8 +68,8 @@
@@ -87,7 +87,7 @@
@@ -123,6 +123,9 @@ export default {
// 页面参数
dialogTableVisible: false, // 兑换统计列表隐藏
listLoading: false, // 是否加载
+ add: false, // 新增权限
+ del: false, // 删除权限
+ edit: false, // 修改权限
listQuery: {
page: 1,
limit: 20
@@ -170,6 +173,21 @@ export default {
this.listLoading = false
})
},
+ hasButton: function() {
+ var keys = 'reviewevaluate:add,reviewevaluate:del,reviewevaluate:edit,toExcel'
+ requestFN(
+ '/head/hasButton',
+ {
+ keys: keys
+ }
+ ).then((data) => {
+ this.add = data.reviewevaluatefhadminadd // 新增权限
+ this.del = data.reviewevaluatefhadmindel // 删除权限
+ this.edit = data.reviewevaluatefhadminedit // 修改权限
+ }).catch((e) => {
+ this.listLoading = false
+ })
+ },
// 获取参数列表
getParam() {
this.listLoading = true
diff --git a/src/views/security_commitment/promise/components/list.vue b/src/views/security_commitment/promise/components/list.vue
index 9e51cb6..47c4b6f 100644
--- a/src/views/security_commitment/promise/components/list.vue
+++ b/src/views/security_commitment/promise/components/list.vue
@@ -43,16 +43,16 @@
查看
- 启用
- 禁用
- 删除
- 编辑
+ 启用
+ 禁用
+ 删除
+ 编辑
@@ -77,6 +77,9 @@ export default {
},
total: 0,
KEYWORDS: '',
+ add: false, // 新增权限
+ del: false, // 删除权限
+ edit: false, // 修改权限
varList: [],
dialog: {
visible: false,
@@ -86,6 +89,7 @@ export default {
},
created() {
this.getList()
+ this.hasButton()
},
methods: {
// 搜索
@@ -149,6 +153,21 @@ export default {
this.dialog.visible = true
})
},
+ hasButton: function() {
+ var keys = 'promise:add,promise:del,promise:edit,toExcel'
+ requestFN(
+ '/head/hasButton',
+ {
+ keys: keys
+ }
+ ).then((data) => {
+ this.add = data.promisefhadminadd // 新增权限
+ this.del = data.promisefhadmindel // 删除权限
+ this.edit = data.promisefhadminedit // 修改权限
+ }).catch((e) => {
+ this.listLoading = false
+ })
+ },
handleDelete(id) {
this.$confirm('确定要删除吗?', {
confirmButtonText: '确定',
diff --git a/src/views/security_commitment/promise_book/components/list.vue b/src/views/security_commitment/promise_book/components/list.vue
index 1c80b01..073c9f8 100644
--- a/src/views/security_commitment/promise_book/components/list.vue
+++ b/src/views/security_commitment/promise_book/components/list.vue
@@ -87,17 +87,17 @@
查看
- 启用
- 禁用
- 编辑
+ 启用
+ 禁用
+ 编辑
详情
- 删除
+ 删除
@@ -118,6 +118,9 @@ export default {
page: 1,
limit: 20
},
+ add: false, // 新增权限
+ del: false, // 删除权限
+ edit: false, // 修改权限
total: 0,
KEYWORDS: '',
LEVEL: '',
@@ -138,6 +141,7 @@ export default {
this.getTreeData()
this.getLevel()
this.getEditMyInfo()
+ this.hasButton()
},
methods: {
@@ -207,6 +211,21 @@ export default {
this.listLoading = false
})
},
+ hasButton: function() {
+ var keys = 'promisebook:add,promisebook:del,promisebook:edit,toExcel'
+ requestFN(
+ '/head/hasButton',
+ {
+ keys: keys
+ }
+ ).then((data) => {
+ this.add = data.promisebookfhadminadd // 新增权限
+ this.del = data.promisebookfhadmindel // 删除权限
+ this.edit = data.promisebookfhadminedit // 修改权限
+ }).catch((e) => {
+ this.listLoading = false
+ })
+ },
goEnableOrDisable(STATE, PROMISE_ID) {
this.$confirm(`确定要${STATE === '1' ? '禁用' : '启用'}当前承诺书吗?`, {
type: 'warning'
diff --git a/src/views/xgf/audit/components/list.vue b/src/views/xgf/audit/components/list.vue
index f325bae..9f123d9 100644
--- a/src/views/xgf/audit/components/list.vue
+++ b/src/views/xgf/audit/components/list.vue
@@ -108,7 +108,7 @@
查看
- 审核
+ 审核
@@ -392,16 +392,16 @@ export default {
// 判断按钮权限,用于是否显示按钮
hasButton: function() {
- var keys = 'units:add,units:del,units:edit,toExcel'
+ var keys = 'xgfaudit:add,xgfaudit:del,xgfaudit:edit,toExcel'
requestFN(
'/head/hasButton',
{
keys: keys
}
).then((data) => {
- this.add = data.unitsfhadminadd // 新增权限
- this.del = data.unitsfhadmindel // 删除权限
- this.edit = data.unitsfhadminedit // 修改权限
+ this.add = data.xgfauditfhadminadd // 新增权限
+ this.del = data.xgfauditfhadmindel // 删除权限
+ this.edit = data.xgfauditfhadminedit // 修改权限
}).catch((e) => {
this.listLoading = false
})
diff --git a/src/views/xgf/flow_audit/index.vue b/src/views/xgf/flow_audit/index.vue
index 4284de7..f3c1cb1 100644
--- a/src/views/xgf/flow_audit/index.vue
+++ b/src/views/xgf/flow_audit/index.vue
@@ -65,7 +65,7 @@
- 审核
+ 审核
查看
@@ -100,6 +100,9 @@ export default {
},
total: 0,
varList: [],
+ add: false,
+ del: false,
+ edit: false,
XGF_NAME: '',
dates: [],
statusList: [{ value: 0, label: '股份公司待审核' }, { value: 1, label: '分公司待审核' }, { value: 2, label: '培训中' }, { value: 3, label: '培训完成' }, { value: -1, label: '股份公司审核未通过' }, { value: -2, label: '分公司审核未通过' }],
@@ -108,6 +111,7 @@ export default {
},
created() {
this.getList()
+ this.hasButton()
},
methods: {
getQuery() {
@@ -124,6 +128,21 @@ export default {
this.AUDIT_STATUS = ''
this.getQuery()
},
+ hasButton: function() {
+ var keys = 'flowaudit:add,flowaudit:del,flowaudit:edit,toExcel'
+ requestFN(
+ '/head/hasButton',
+ {
+ keys: keys
+ }
+ ).then((data) => {
+ this.add = data.flowauditfhadminadd // 新增权限
+ this.del = data.flowauditfhadmindel // 删除权限
+ this.edit = data.flowauditfhadminedit // 修改权限
+ }).catch((e) => {
+ this.listLoading = false
+ })
+ },
getList() {
this.listLoading = true
requestFN(
diff --git a/src/views/xgf/insert/components/corpInfoList.vue b/src/views/xgf/insert/components/corpInfoList.vue
index 0658c9d..c2b2f06 100644
--- a/src/views/xgf/insert/components/corpInfoList.vue
+++ b/src/views/xgf/insert/components/corpInfoList.vue
@@ -98,7 +98,7 @@
- 重置密码
+ 重置密码
@@ -198,6 +198,7 @@ export default {
this.getList()
this.getDict()
this.getTreeList()
+ this.hasButton()
},
methods: {
onChange(value) {
@@ -299,16 +300,16 @@ export default {
},
// 判断按钮权限,用于是否显示按钮
hasButton: function() {
- var keys = 'relevantunits:add,relevantunits:del,relevantunits:edit,toExcel'
+ var keys = 'xgfinsert:add,xgfinsert:del,xgfinsert:edit,toExcel'
requestFN(
'/head/hasButton',
{
keys: keys
}
).then((data) => {
- this.add = data.corpinfofhadminadd // 新增权限
- this.del = data.corpinfofhadmindel // 删除权限
- this.edit = data.corpinfofhadminedit // 修改权限
+ this.add = data.xgfinsertfhadminadd // 新增权限
+ this.del = data.xgfinsertfhadmindel // 删除权限
+ this.edit = data.xgfinsertfhadminedit // 修改权限
}).catch((e) => {
this.listLoading = false
})