123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- import Vue from 'vue'
- import axios from 'axios'
- import App from './App'
- import router from './router'
- import store from './store'
- import ElementUI from 'element-ui'
- import 'element-ui/lib/theme-chalk/index.css'
- import "video.js/dist/video-js.css"
- import Chat from 'jwchat';
- import http from '../utils/http'
- import md5 from 'js-md5';
- import TestResults from './components/TestResults'
- import StackedLine from './components/StackedLine'
- import TopPage from './components/TopPage'
- import TopDes from './components/TopDes.vue'
- import FootDes from './components/FootDes.vue'
- import '../utils/componetSubRegister.js'
- import '../utils/public.css'
- Vue.prototype.$md5 = md5;
- Vue.use(Chat)
- // import echarts from 'echarts/lib/echarts'
- // Vue.prototype.$echarts = echarts
- // import echarts from 'echarts'
- // Vue.prototype.$echarts = echarts
- if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
- // Vue.http = Vue.prototype.$http = axios
- Vue.prototype.$http = http;
- Vue.config.productionTip = false
- Vue.use(ElementUI)
- Vue.component("TestResults", TestResults)
- Vue.component("StackedLine", StackedLine)
- Vue.component("TopPage", TopPage)
- Vue.component("TopDes",TopDes)
- Vue.component('FootDes',FootDes)
- // Vue.use(TestResults)
- // Vue.use(StackedLine)
- /* eslint-disable no-new */
- new Vue({
- components: {
- App
- },
- data: function () {
- return {
- smartNum:0,
- topPageFlag:false,
- //登录类型设置
- // 设置全局变量 视频状态 加速度 状态, 脉搏状态 皮电状态
- statusFlag: {
- videoFlag: false,
- accelerationFlag: false,
- pulseFlag: false,
- dermatoelectric: false
- },
- acceleration: {
- x: [{
- jump: '',
- dataX: 0
- }],
- y: [{
- jump: '',
- dataY: 0
- }],
- z: [{
- jump: '',
- dataZ: 0
- }],
- pluse: [{
- jump: '',
- dataPluse: 0
- }]
- },
- flagAR: false,
- recordFlagGl: '记录',
- jumpFlag: false,
- timeCount: 0,
- // 全局变量得到脉搏的全部数据
- pluseAll: [],
- // 加一个全局字段保存hrv值得属性
- // HRV
- performanceData: '',
- // 全局变量
- reactionTime: 0,
- // 判断数据查看是否显示
- dataShowFlag: false,
- // 数据库ip
- // host:'49.232.26.44',
- host: 'localhost',
- // port:"3306",
- port: '54027',
- // 数据库用户名
- user: 'root',
- // 数据库密码
- password: 'Mysql@.2020',
- // 数据库名
- // database:"test_psychological2"
- database: 'psychological2_army',
- // 人员姓名
- name: '',
- // 人员编号
- num: '',
- // 人员性别
- sex: '1',
- //情绪量表的值
- mood: {
- testOne: '',
- testTwo: '',
- testThree: '',
- testFour: '',
- testFive: ''
- }
- }
- },
- router,
- store,
- template: '<App/>'
- // eslint-disable-next-line eol-last
- }).$mount('#app')
|