工具类和sass版本修改
This commit is contained in:
@@ -1,14 +1,7 @@
|
||||
import Vue from 'vue'
|
||||
|
||||
import Cookies from 'js-cookie'
|
||||
import 'normalize.css/normalize.css'
|
||||
|
||||
import Element from 'element-ui'
|
||||
// 列自适应宽度:https://github.com/legendJaden/AFTableColumn
|
||||
import AFTableColumn from 'af-table-column'
|
||||
|
||||
// 可编辑grid插件
|
||||
import 'xe-utils'
|
||||
|
||||
import 'font-awesome/css/font-awesome.css'
|
||||
|
||||
@@ -44,18 +37,27 @@ import 'jquery'
|
||||
import LogicFlow from '@logicflow/core'
|
||||
import { Menu } from '@logicflow/extension'
|
||||
import '@logicflow/extension/lib/style/index.css'
|
||||
LogicFlow.use(Menu)
|
||||
|
||||
// Form Generator 组件需要使用到 tinymce
|
||||
import Tinymce from '@/views/system/build/tinymce/index.vue'
|
||||
Vue.component('tinymce', Tinymce)
|
||||
// import '@/views/system/build/icons'
|
||||
import request from '@/utils/request' // 实现 form generator 使用自己定义的 axios request 对象
|
||||
|
||||
import { addDateRange, handleTree, parseTime, resetForm, selectDictLabel, selectDictLabels } from '@/utils/nladmin'
|
||||
|
||||
LogicFlow.use(Menu)
|
||||
|
||||
Vue.component('tinymce', Tinymce)
|
||||
Vue.prototype.$axios = request
|
||||
|
||||
Vue.use(scroll)
|
||||
// 全局方法挂载
|
||||
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.use(AFTableColumn)
|
||||
Vue.use(scroll)
|
||||
|
||||
Vue.use(VueHighlightJS)
|
||||
Vue.use(mavonEditor)
|
||||
@@ -76,27 +78,3 @@ new Vue({
|
||||
store,
|
||||
render: h => h(App)
|
||||
})
|
||||
|
||||
// var time1 = new Date().format("yyyy-MM-dd hh:mm:ss");
|
||||
// eslint-disable-next-line no-extend-native
|
||||
Date.prototype.format = function(fmt) {
|
||||
var o = {
|
||||
'M+': this.getMonth() + 1, // 月份
|
||||
'd+': this.getDate(), // 日
|
||||
'h+': this.getHours(), // 小时
|
||||
'm+': this.getMinutes(), // 分
|
||||
's+': this.getSeconds(), // 秒
|
||||
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
||||
'S': this.getMilliseconds() // 毫秒
|
||||
}
|
||||
if (/(y+)/.test(fmt)) {
|
||||
fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
||||
}
|
||||
for (var k in o) {
|
||||
if (new RegExp('(' + k + ')').test(fmt)) {
|
||||
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
||||
}
|
||||
}
|
||||
return fmt
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user