WXL
2025-12-29 cd574e3394883b79eac5d63f3b11bca852dbc7a0
src/main.js
@@ -3,7 +3,7 @@
 * @Date: 2022-04-25 08:04:47
 * @LastEditors: your Name
 * @LastEditTime: 2022-04-25 16:33:00
 * @Description:
 * @Description:
 */
import Vue from 'vue'
import yearPicker from 'vue-year-picker'
@@ -20,11 +20,13 @@
import directive from './directive' //directive
import plugins from './plugins' // plugins
import './assets/icons' // icon
import './permission' // permission control
import { getDicts } from "@/api/system/dict/data";
import { getConfigKey } from "@/api/system/config";
import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/ruoyi";
import { formatTime } from "@/utils/index";
import dataV from '@jiaminghi/data-view';//dataV
// 分页组件
import Pagination from "@/components/Pagination";
@@ -46,6 +48,17 @@
// import li_area_select from '@components/Address'
import moment from "moment"
import '@/utils/drag.js';
import DingTalkPC from 'dingtalk-jsapi';
Vue.prototype.$dingtalk = DingTalkPC;
DingTalkPC.config({
  agentId: 'your_agentId',
  corpId: 'your_corpId',
  timeStamp: new Date().getTime(),
  nonceStr: 'your_nonceStr',
  signature: 'your_signature',
  jsApiList: ['runtime.permission.requestAuthCode']
});
Vue.prototype.$moment = moment;
@@ -53,6 +66,7 @@
Vue.prototype.getDicts = getDicts
Vue.prototype.getConfigKey = getConfigKey
Vue.prototype.parseTime = parseTime
Vue.prototype.formatTime = formatTime
Vue.prototype.resetForm = resetForm
Vue.prototype.addDateRange = addDateRange
Vue.prototype.selectDictLabel = selectDictLabel
@@ -63,6 +77,7 @@
import echarts from 'echarts'
Vue.prototype.$echarts = echarts
// 全局组件挂载
// Vue.component('li_area_select',li_area_select)
Vue.component('DictTag', DictTag)