|
@@ -28,6 +28,9 @@ import bus from './utils/bus';
|
|
|
import DICT from '@/const/dictType';
|
|
|
import TABLECOLSIZE from '@/const/tableColSize';
|
|
|
|
|
|
+// 时间
|
|
|
+import Moment from 'moment';
|
|
|
+
|
|
|
Vue.prototype.$Bus = bus;
|
|
|
Vue.prototype.$g_emit = (eventName, payload) => {
|
|
|
bus.$emit(eventName, payload);
|
|
@@ -64,6 +67,8 @@ Vue.prototype.$success = message.success;
|
|
|
Vue.prototype.$error = message.error;
|
|
|
Vue.prototype.$warning = message.warning;
|
|
|
|
|
|
+Vue.prototype.$moment = Moment;
|
|
|
+
|
|
|
// 数据字典搜索关键词
|
|
|
Vue.prototype.$dict = DICT;
|
|
|
|