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,5 +15,9 @@ module.exports = { | ||
15 | // required to lint *.vue files | 15 | // required to lint *.vue files |
16 | plugins: ['vue'], | 16 | plugins: ['vue'], |
17 | // add your custom rules here | 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,7 +110,9 @@ | ||
110 | "plugin:vue/essential", | 110 | "plugin:vue/essential", |
111 | "@vue/prettier" | 111 | "@vue/prettier" |
112 | ], | 112 | ], |
113 | - "rules": {}, | 113 | + "rules": { |
114 | + "vue/no-unused-components": "off" | ||
115 | + }, | ||
114 | "parserOptions": { | 116 | "parserOptions": { |
115 | "parser": "babel-eslint" | 117 | "parser": "babel-eslint" |
116 | } | 118 | } |
@@ -124,4 +126,4 @@ | @@ -124,4 +126,4 @@ | ||
124 | "> 1%", | 126 | "> 1%", |
125 | "last 2 versions" | 127 | "last 2 versions" |
126 | ] | 128 | ] |
127 | -} | 129 | -} |
130 | +} | ||
128 | \ No newline at end of file | 131 | \ No newline at end of file |
frontend/manage/src/components/form/dataTemplate/ManageSetting.vue
@@ -2969,7 +2969,8 @@ export default { | @@ -2969,7 +2969,8 @@ export default { | ||
2969 | btn.key == 'addFlow' || | 2969 | btn.key == 'addFlow' || |
2970 | btn.key == 'addData' || | 2970 | btn.key == 'addData' || |
2971 | btn.key == 'searchData' || | 2971 | btn.key == 'searchData' || |
2972 | - btn.key == 'batchSave' | 2972 | + btn.key == 'batchSave' || |
2973 | + btn.key == 'moduleButton' | ||
2973 | ) | 2974 | ) |
2974 | ) { | 2975 | ) { |
2975 | btn.disabled = true | 2976 | btn.disabled = true |
@@ -3120,7 +3121,7 @@ export default { | @@ -3120,7 +3121,7 @@ export default { | ||
3120 | 'add', | 3121 | 'add', |
3121 | 'edit', | 3122 | 'edit', |
3122 | 'detail', | 3123 | 'detail', |
3123 | - 'del' | 3124 | + 'del', |
3124 | // 'copy', | 3125 | // 'copy', |
3125 | // 'approval', | 3126 | // 'approval', |
3126 | // 'taskDetail', | 3127 | // 'taskDetail', |
@@ -3157,7 +3158,8 @@ export default { | @@ -3157,7 +3158,8 @@ export default { | ||
3157 | 'addFlow', | 3158 | 'addFlow', |
3158 | 'addData', | 3159 | 'addData', |
3159 | 'searchData', | 3160 | 'searchData', |
3160 | - 'batchSave' | 3161 | + 'batchSave', |
3162 | + 'js' | ||
3161 | ].indexOf(row.name) === -1 | 3163 | ].indexOf(row.name) === -1 |
3162 | ) | 3164 | ) |
3163 | }, | 3165 | }, |
@@ -3550,7 +3552,7 @@ export default { | @@ -3550,7 +3552,7 @@ export default { | ||
3550 | 'addFlow', | 3552 | 'addFlow', |
3551 | 'searchData', | 3553 | 'searchData', |
3552 | 'batchUpdate', | 3554 | 'batchUpdate', |
3553 | - 'batchSave' | 3555 | + 'batchSave', |
3554 | ] | 3556 | ] |
3555 | let manageField = { | 3557 | let manageField = { |
3556 | desc: 'js按钮', | 3558 | desc: 'js按钮', |
@@ -3661,7 +3663,8 @@ export default { | @@ -3661,7 +3663,8 @@ export default { | ||
3661 | btn.key == 'addFlow' || | 3663 | btn.key == 'addFlow' || |
3662 | btn.key == 'addData' || | 3664 | btn.key == 'addData' || |
3663 | btn.key == 'searchData' || | 3665 | btn.key == 'searchData' || |
3664 | - btn.key == 'batchSave' | 3666 | + btn.key == 'batchSave' || |
3667 | + btn.key == 'moduleButton' | ||
3665 | ) | 3668 | ) |
3666 | ) { | 3669 | ) { |
3667 | btn.disabled = true | 3670 | btn.disabled = true |