Commit 840fc479 by 吴娟华

'1.2.1'

1 parent 33e98f4c
...@@ -2,8 +2,9 @@ import store from '@/store/index' ...@@ -2,8 +2,9 @@ import store from '@/store/index'
export const Common = { export const Common = {
setAuthBtn(resData) { setAuthBtn(resData) {
let data = resData || store.getters.curMenuAuth.data let data = resData || store.getters.curMenuAuth.data
//console.log('setAuthBtn', data)
const authBtnEl = document.getElementsByTagName('button') const authBtnEl = document.getElementsByTagName('button')
const authStringArr = ['新增', '编辑', '删除', '导出', '导入', '修改', '解绑', '选择试驾车辆','新增车辆'] const authStringArr = ['新增', '编辑', '删除', '导出', '导入', '修改', '解绑', '选择试驾车辆','新增车辆', '查看']
if (authBtnEl && authBtnEl.length > 0) { if (authBtnEl && authBtnEl.length > 0) {
if (data && data.length > 0) { if (data && data.length > 0) {
authBtnEl.forEach(elItem => { authBtnEl.forEach(elItem => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!