山东众工仓库管理系统前台vue代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import Vue from 'vue'
  2. import ElementUI from 'element-ui'
  3. import 'element-ui/lib/theme-chalk/index.css'
  4. Vue.use(ElementUI)
  5. import App from './App'
  6. import router from './router'
  7. import store from './store'
  8. import echarts from 'echarts'
  9. import './style/index.css'
  10. import './style/tabletree.css'
  11. Vue.config.productionTip = false
  12. Vue.prototype.$echarts = echarts
  13. /* eslint-disable no-new */
  14. new Vue({
  15. el: '#app',
  16. router,
  17. store,
  18. render: h => h(App)
  19. })
  20. Date.prototype.Format = function (fmt) {
  21. var o = {
  22. "M+": this.getMonth() + 1, //月份
  23. "d+": this.getDate(), //日
  24. "H+": this.getHours(), //小时
  25. "m+": this.getMinutes(), //分
  26. "s+": this.getSeconds(), //秒
  27. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  28. "S": this.getMilliseconds() //毫秒
  29. };
  30. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  31. for (var k in o)
  32. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  33. return fmt;
  34. }