Commit 8aec5d0c420661ebce0d159f47e1772acbc9404e
1 parent
fc27f5b8
Exists in
master
fix:关闭vue注册未使用组件报错提醒,修复js按钮禁用前后置js按钮,修复组件按钮无法添加多次限制
Showing
3 changed files
with
17 additions
and
8 deletions
Show diff stats
frontend/manage/.eslintrc.js
... | ... | @@ -15,5 +15,9 @@ module.exports = { |
15 | 15 | // required to lint *.vue files |
16 | 16 | plugins: ['vue'], |
17 | 17 | // add your custom rules here |
18 | - rules: {} | |
18 | + rules: { | |
19 | + 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | |
20 | + 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | |
21 | + "vue/no-unused-components": "off" | |
22 | + } | |
19 | 23 | } | ... | ... |
frontend/manage/package.json
... | ... | @@ -110,7 +110,9 @@ |
110 | 110 | "plugin:vue/essential", |
111 | 111 | "@vue/prettier" |
112 | 112 | ], |
113 | - "rules": {}, | |
113 | + "rules": { | |
114 | + "vue/no-unused-components": "off" | |
115 | + }, | |
114 | 116 | "parserOptions": { |
115 | 117 | "parser": "babel-eslint" |
116 | 118 | } |
... | ... | @@ -124,4 +126,4 @@ |
124 | 126 | "> 1%", |
125 | 127 | "last 2 versions" |
126 | 128 | ] |
127 | 129 | -} |
130 | +} | |
128 | 131 | \ No newline at end of file | ... | ... |
frontend/manage/src/components/form/dataTemplate/ManageSetting.vue
... | ... | @@ -2969,7 +2969,8 @@ export default { |
2969 | 2969 | btn.key == 'addFlow' || |
2970 | 2970 | btn.key == 'addData' || |
2971 | 2971 | btn.key == 'searchData' || |
2972 | - btn.key == 'batchSave' | |
2972 | + btn.key == 'batchSave' || | |
2973 | + btn.key == 'moduleButton' | |
2973 | 2974 | ) |
2974 | 2975 | ) { |
2975 | 2976 | btn.disabled = true |
... | ... | @@ -3120,7 +3121,7 @@ export default { |
3120 | 3121 | 'add', |
3121 | 3122 | 'edit', |
3122 | 3123 | 'detail', |
3123 | - 'del' | |
3124 | + 'del', | |
3124 | 3125 | // 'copy', |
3125 | 3126 | // 'approval', |
3126 | 3127 | // 'taskDetail', |
... | ... | @@ -3157,7 +3158,8 @@ export default { |
3157 | 3158 | 'addFlow', |
3158 | 3159 | 'addData', |
3159 | 3160 | 'searchData', |
3160 | - 'batchSave' | |
3161 | + 'batchSave', | |
3162 | + 'js' | |
3161 | 3163 | ].indexOf(row.name) === -1 |
3162 | 3164 | ) |
3163 | 3165 | }, |
... | ... | @@ -3550,7 +3552,7 @@ export default { |
3550 | 3552 | 'addFlow', |
3551 | 3553 | 'searchData', |
3552 | 3554 | 'batchUpdate', |
3553 | - 'batchSave' | |
3555 | + 'batchSave', | |
3554 | 3556 | ] |
3555 | 3557 | let manageField = { |
3556 | 3558 | desc: 'js按钮', |
... | ... | @@ -3661,7 +3663,8 @@ export default { |
3661 | 3663 | btn.key == 'addFlow' || |
3662 | 3664 | btn.key == 'addData' || |
3663 | 3665 | btn.key == 'searchData' || |
3664 | - btn.key == 'batchSave' | |
3666 | + btn.key == 'batchSave' || | |
3667 | + btn.key == 'moduleButton' | |
3665 | 3668 | ) |
3666 | 3669 | ) { |
3667 | 3670 | btn.disabled = true | ... | ... |