| | |
| | | import App from "./App.vue"; |
| | | import router from "./router"; |
| | | import store from './store' |
| | | import TableCustom from '@/components/TableSlot/index.vue' |
| | | |
| | | Vue.config.productionTip = false; |
| | | Vue.use(ElementUI, { size: 'small' }) |
| | | Vue.component('TableCustom', TableCustom) |
| | | |
| | | Vue.prototype.msgsuccess = function (msg) { |
| | | this.$message({ |
| | |
| | | this.$message.info(msg); |
| | | } |
| | | |
| | | Vue.prototype.$baseTableHeight = (formType) => { |
| | | let height = window.innerHeight |
| | | let paddingHeight = 400 |
| | | const formHeight = 50 |
| | | |
| | | if ('number' == typeof formType) { |
| | | height = height - paddingHeight - formHeight * formType |
| | | } else { |
| | | height = height - paddingHeight |
| | | } |
| | | return height |
| | | } |
| | | |
| | | new Vue({ |
| | | router, |
| | | store, |