添加dayjs插件,入库记录出库记录,毛坯仓库调整
This commit is contained in:
@@ -55,6 +55,12 @@ import dataV from '@jiaminghi/data-view';
|
||||
//需要按需引入,先引入vue并引入element-ui
|
||||
import AFTableColumn from 'af-table-column'
|
||||
|
||||
// dayjs
|
||||
import dayjs from 'dayjs'
|
||||
import 'dayjs/locale/zh-cn' // 引入中文语言包
|
||||
import relativeTime from 'dayjs/plugin/relativeTime'
|
||||
dayjs.extend(relativeTime)
|
||||
|
||||
// 全局方法挂载
|
||||
Vue.prototype.getDicts = getDicts
|
||||
Vue.prototype.getConfigKey = getConfigKey
|
||||
@@ -67,6 +73,7 @@ Vue.prototype.download = download
|
||||
Vue.prototype.handleTree = handleTree
|
||||
Vue.prototype.handleDict = handleDict
|
||||
Vue.prototype.downFile = downFile
|
||||
Vue.prototype.$dayjs = dayjs
|
||||
|
||||
Vue.prototype.msgSuccess = function (msg) {
|
||||
this.$message({ showClose: true, message: msg, type: "success" });
|
||||
|
||||
Reference in New Issue
Block a user