This commit is contained in:
chenjinsong
2021-06-11 10:00:22 +08:00
parent 13329e8f85
commit bc54fc58fd
31 changed files with 2819 additions and 92 deletions

35
src/mixins/common.js Normal file
View File

@@ -0,0 +1,35 @@
import theme from '@/assets/css/theme.scss'
import { hasButton } from '@/permission'
import { nextTick } from 'vue'
export default {
data () {
return {
blockOperation: {
save: false,
import: false,
delete: false,
refresh: false,
query: false
},
theme: theme // scss主题变量
}
},
methods: {
$nextTick: nextTick,
hasButton (code) {
return hasButton(this.$store.getters.buttonList, code)
},
isBuiltIn (row) {
return (row.buildIn && row.buildIn === 1) || (row.builtIn && row.builtIn === 1)
},
unblockOperation () {
this.blockOperation = {
save: false,
import: false,
delete: false,
refresh: false,
query: false
}
}
}
}