add:前端js

This commit is contained in:
zhangzhiqiang
2023-03-14 15:57:53 +08:00
parent 163721bdc9
commit 4afdd3814d
2 changed files with 277 additions and 1 deletions

View File

@@ -35,6 +35,8 @@ import router from './router/routers'
import './assets/icons' // icon
import './router/index' // permission control
import 'echarts-gl'
import { addDateRange, handleTree, parseTime, resetForm, selectDictLabel, selectDictLabels, flexWidth } from '@/utils/nladmin'
import { getValueByCode } from '@/api/system/param'
import 'jquery'
@@ -55,7 +57,15 @@ Vue.use(Element, {
})
Vue.config.productionTip = false
// 全局方法挂载
Vue.prototype.parseTime = parseTime
Vue.prototype.resetForm = resetForm
Vue.prototype.addDateRange = addDateRange
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.handleTree = handleTree
Vue.prototype.getValueByCode = getValueByCode
Vue.prototype.flexWidth = flexWidth
new Vue({
el: '#app',
router,