pyt
2 天以前 be31adc8150e5b21008aa7d6212fc105fc425818
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import Vue from "vue";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import {Calendar,ConfigProvider } from 'ant-design-vue';
import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN';
import 'ant-design-vue/dist/antd.css';
// import Antd from 'ant-design-vue';
// import 'ant-design-vue/dist/antd.css';
// import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN';
import '@/assets/font/font.css'
import App from "./App.vue";
import router from "./router";
import store from './store'
import Table from '@/components/Table/index.vue'
import TableCustom from '@/components/TableSlot/index.vue'
import Card from '@/components/Card/index.vue'
import ShowDelConfirm from '@/components/showDelConfirm/index.vue'
import SelectMember from '@/components/SelectMember/index.vue'
import EvaluateTable from '@/components/EvaluateTable/index.vue'
import "aieditor/dist/style.css"
import './assets/tailwind.css'
import './styles/element-variables.less'
 
 
 
 
Vue.config.productionTip = false;
Vue.use(ElementUI, { size: 'small' })
Vue.use('Calendar',Calendar)
Vue.use(ConfigProvider)
// Vue.use(Antd)
Vue.component('Table', Table)
Vue.component('TableCustom', TableCustom)
Vue.component('Card', Card)
Vue.component('ShowDelConfirm', ShowDelConfirm)
Vue.component('SelectMember', SelectMember)
Vue.component('EvaluateTable', EvaluateTable)
// app.use(Button).mount('#app');
 
Vue.prototype.msgsuccess = function (msg) {
  this.$message({
    message: msg,
    type: "success"
  });
}
 
Vue.prototype.msgerror = function (msg) {
  this.$message({
    message: msg,
    type: "error"
  });
}
 
Vue.prototype.msgwarning = function (msg) {
  this.$message({
    message: msg,
    type: "warning"
  });
}
 
Vue.prototype.msginfo = function (msg) {
  this.$message.info(msg);
}
 
Vue.prototype.$baseTableHeight = (formType) => {
  let height = window.innerHeight
  let paddingHeight = 400
  const formHeight = 50
 
  if ('number' == typeof formType) {
    height = height - paddingHeight - formHeight * formType
  } else {
    height = height - paddingHeight
  }
  return height
}
 
new Vue({
  router,
  store,
  render: (h) => (
    <a-config-provider locale={zhCN}>
      <App />
    </a-config-provider>
  ),
}).$mount("#app");