zyh
This commit is contained in:
parent
d282824afc
commit
6d0f8b356d
|
|
@ -0,0 +1,5 @@
|
|||
module.exports = {
|
||||
presets: [
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
module.exports = {
|
||||
"presets": [
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
],
|
||||
"plugins": [
|
||||
["component", {
|
||||
"libraryName": "element-ui",
|
||||
"styleLibraryName": "theme-chalk"
|
||||
}]
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
module.exports = {
|
||||
"presets": [["es2015", { "modules": false }]],
|
||||
"plugins": [
|
||||
[
|
||||
"component",
|
||||
{
|
||||
"libraryName": "element-ui",
|
||||
"styleLibraryName": "theme-chalk"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
module.exports = {
|
||||
"presets": [["es2015", { "modules": false }]],
|
||||
"plugins": [
|
||||
[
|
||||
"component",
|
||||
{
|
||||
"libraryName": "element-ui",
|
||||
"styleLibraryName": "theme-chalk"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
module.exports = {
|
||||
"presets": [["es2015", { "modules": false }]],
|
||||
"plugins": [
|
||||
[
|
||||
"component",
|
||||
{
|
||||
"libraryName": "element-ui",
|
||||
"styleLibraryName": "theme-chalk"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
module.exports = {
|
||||
"presets": [
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
],
|
||||
"plugins": [
|
||||
["component", {
|
||||
"libraryName": "element-ui",
|
||||
"styleLibraryName": "theme-chalk"
|
||||
}]
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
module.exports = {
|
||||
"presets": [["es2015", { "modules": false }]],
|
||||
"plugins": [
|
||||
[
|
||||
"component",
|
||||
{
|
||||
"libraryName": "element-ui",
|
||||
"styleLibraryName": "theme-chalk"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
module.exports = {
|
||||
presets: [
|
||||
'@vue/cli-plugin-babel/preset',
|
||||
["@babel/preset-env", { "modules": false }],
|
||||
],
|
||||
plugins:[
|
||||
[
|
||||
"component",
|
||||
{
|
||||
"libraryName": "element-ui",
|
||||
"styleLibraryName": "theme-chalk"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
module.exports = {
|
||||
presets: [
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
import message from '@/utils/message.js';
|
||||
Vue.prototype.$messages = message
|
||||
// 然后挂载在vue原型上;
|
||||
Vue.prototype.$echarts = echarts;
|
||||
|
||||
Vue.use(ElementUI);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
import message from '@/utils/msg.js';
|
||||
Vue.prototype.$messages = message
|
||||
// 然后挂载在vue原型上;
|
||||
Vue.prototype.$echarts = echarts;
|
||||
|
||||
Vue.use(ElementUI);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
import Msg from '@/utils/msg.js';
|
||||
Vue.prototype.$messages = message
|
||||
// 然后挂载在vue原型上;
|
||||
Vue.prototype.$echarts = echarts;
|
||||
|
||||
Vue.use(ElementUI);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
import {Msg} from '@/utils/msg.js';
|
||||
Vue.prototype.$messages = Msg
|
||||
// 然后挂载在vue原型上;
|
||||
Vue.prototype.$echarts = echarts;
|
||||
|
||||
Vue.use(ElementUI);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.prototype.$echarts = echarts;
|
||||
|
||||
Vue.use(ElementUI);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
// import ElementUI from "element-ui";
|
||||
// import "element-ui/lib/theme-chalk/index.css";
|
||||
import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.prototype.$echarts = echarts;
|
||||
Vue.use(Table,TableColumn);
|
||||
Vue.use(Calendar);
|
||||
Vue.use(Button);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
// import ElementUI from "element-ui";
|
||||
// import "element-ui/lib/theme-chalk/index.css";
|
||||
import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.prototype.$echarts = echarts;
|
||||
Vue.use(Table,TableColumn);
|
||||
Vue.use(Calendar);
|
||||
Vue.use(Button,Select);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
// import ElementUI from "element-ui";
|
||||
// import "element-ui/lib/theme-chalk/index.css";
|
||||
import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.prototype.$echarts = echarts;
|
||||
Vue.use(Table,TableColumn,Calendar,Button,Select);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
// import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.prototype.$echarts = echarts;
|
||||
Vue.use(Table,TableColumn,Calendar,Button,Select);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.prototype.$echarts = echarts;
|
||||
Vue.use(Table,TableColumn,Calendar,Button,Select);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.prototype.$echarts = echarts;
|
||||
Vue.use(Table,TableColumn,Calendar,Button,Select);
|
||||
Vue.use(ElementUI);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.prototype.$echarts = echarts;
|
||||
Vue.use(Table,TableColumn,Calendar,Button,Select);
|
||||
Vue.use(ElementUI)
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
// import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.prototype.$echarts = echarts;
|
||||
// Vue.use(Table,TableColumn,Calendar,Button,Select);
|
||||
Vue.use(ElementUI)
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
// import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.use(ElementUI);
|
||||
Vue.prototype.$echarts = echarts;
|
||||
// Vue.use(Table,TableColumn,Calendar,Button,Select);
|
||||
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
// import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.use(ElementUI);
|
||||
Vue.prototype.$echarts = echarts;
|
||||
// Vue.use(Table,TableColumn,Calendar,Button,Select);
|
||||
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
// import ElementUI from "element-ui";
|
||||
// import "element-ui/lib/theme-chalk/index.css";
|
||||
import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.use(ElementUI);
|
||||
Vue.prototype.$echarts = echarts;
|
||||
// Vue.use(Table,TableColumn,Calendar,Button,Select);
|
||||
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
// import ElementUI from "element-ui";
|
||||
// import "element-ui/lib/theme-chalk/index.css";
|
||||
import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.use(ElementUI);
|
||||
Vue.prototype.$echarts = echarts;
|
||||
Vue.use(Table,TableColumn,Calendar,Button,Select);
|
||||
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
// import ElementUI from "element-ui";
|
||||
// import "element-ui/lib/theme-chalk/index.css";
|
||||
import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
// Vue.use(ElementUI);
|
||||
Vue.prototype.$echarts = echarts;
|
||||
Vue.use(Table,TableColumn,Calendar,Button,Select);
|
||||
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
// import ElementUI from "element-ui";
|
||||
// import "element-ui/lib/theme-chalk/index.css";
|
||||
import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.prototype.$echarts = echarts;
|
||||
Vue.use(Table,TableColumn,Calendar,Button,Select);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
// import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.prototype.$echarts = echarts;
|
||||
// Vue.use(Table,TableColumn,Calendar,Button,Select);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
// import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.prototype.$echarts = echarts;
|
||||
VUe.use(ElementUI);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
// import { Button, Calendar, Select, Table, TableColumn } from 'element-ui';
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.prototype.$echarts = echarts;
|
||||
Vue.use(ElementUI);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import "./registerServiceWorker";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
Vue.config.productionTip = false;
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
Vue.prototype.$echarts = echarts;
|
||||
Vue.use(ElementUI);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
export const ShowMessage = (msg, type) => {
|
||||
this.$message({
|
||||
message: msg,
|
||||
type: type
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import {Message} from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
export const ShowMessage = (msg, type) => {
|
||||
this.$message({
|
||||
message: msg,
|
||||
type: type
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
import {Message} from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
Vue.prototype.$message = Message;
|
||||
export const ShowMessage = (msg, type) => {
|
||||
this.$message({
|
||||
message: msg,
|
||||
type: type
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
import {Message} from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
// Vue.prototype.$message = Message;
|
||||
export const ShowMessage = (msg, type) => {
|
||||
this.$message({
|
||||
message: msg,
|
||||
type: type
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
import {Message} from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
// Vue.prototype.$message = Message;
|
||||
export const ShowMessage = (msg, type) => {
|
||||
Message({
|
||||
message: msg,
|
||||
type: type
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
import {Message} from "element-ui";
|
||||
// import "element-ui/lib/theme-chalk/index.css";
|
||||
// Vue.prototype.$message = Message;
|
||||
export const ShowMessage = (msg, type) => {
|
||||
Message({
|
||||
message: msg,
|
||||
type: type
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import { Message } from "element-ui"
|
||||
export const Msg = (msg, type) => {
|
||||
this.$message({
|
||||
message: msg,
|
||||
type: type
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
export const Msg = (msg, type) => {
|
||||
this.$message({
|
||||
message: msg,
|
||||
type: type
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
/* 封装axios用于发送请求 */
|
||||
import axios from "axios";
|
||||
import { Message } from "element-ui"
|
||||
import { Message } from "element-ui"; // 请确保你的项目中已经安装了 Element UI
|
||||
const request = axios.create({
|
||||
baseURL: "", // 设置基地址,博主这个请求跨域了因此我设置了代理服务器,因此基地址才这么短
|
||||
timeout: 5000, // 请求超时:当5s没有响应就会结束请求
|
||||
});
|
||||
|
||||
// 添加请求拦截器,一下内容是axios的拦截器,可以不用写
|
||||
request.interceptors.request.use(
|
||||
function (config) {
|
||||
// 在发送请求之前做些什么
|
||||
return config;
|
||||
},
|
||||
function (error) {
|
||||
// 对请求错误做些什么
|
||||
return Promise.reject(error);
|
||||
}
|
||||
);
|
||||
|
||||
// 添加响应拦截器
|
||||
request.interceptors.response.use(
|
||||
function (response) {
|
||||
// 对响应数据做点什么
|
||||
return response.data;
|
||||
},
|
||||
function (error) {
|
||||
// 对响应错误做点什么
|
||||
if (error.response) {
|
||||
// 请求已发出,但服务器响应状态码不在 2xx 范围内
|
||||
console.error("Error status:", error.response.status);
|
||||
console.error("Error data:", error.response.data);
|
||||
console.error("Error headers:", error.response.headers);
|
||||
|
||||
// 提示错误信息
|
||||
Message.error(`请求错误:${error.response.status}`);
|
||||
} else if (error.request) {
|
||||
// 请求被发出但未收到响应
|
||||
console.error("No response received:", error.request);
|
||||
|
||||
// 提示错误信息
|
||||
Message.error("网络错误,请稍后重试");
|
||||
} else {
|
||||
// 设置请求时发生了一些错误
|
||||
console.error("Error:", error.message);
|
||||
|
||||
// 提示错误信息
|
||||
Message.error("请求失败,请稍后重试");
|
||||
}
|
||||
return Promise.reject(error);
|
||||
}
|
||||
);
|
||||
|
||||
export default request;
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
/* 封装axios用于发送请求 */
|
||||
import axios from "axios";
|
||||
import { Message } from "element-ui"; // 请确保你的项目中已经安装了 Element UI
|
||||
const request = axios.create({
|
||||
baseURL: "", // 设置基地址,博主这个请求跨域了因此我设置了代理服务器,因此基地址才这么短
|
||||
timeout: 5000, // 请求超时:当5s没有响应就会结束请求
|
||||
});
|
||||
|
||||
// 添加请求拦截器,一下内容是axios的拦截器,可以不用写
|
||||
request.interceptors.request.use(
|
||||
function (config) {
|
||||
// 在发送请求之前做些什么
|
||||
return config;
|
||||
},
|
||||
function (error) {
|
||||
// 对请求错误做些什么
|
||||
return Promise.reject(error);
|
||||
}
|
||||
);
|
||||
|
||||
// 添加响应拦截器
|
||||
request.interceptors.response.use(
|
||||
function (response) {
|
||||
// 对响应数据做点什么
|
||||
return response.data;
|
||||
},
|
||||
function (error) {
|
||||
// 对响应错误做点什么
|
||||
if (error.response) {
|
||||
// 请求已发出,但服务器响应状态码不在 2xx 范围内
|
||||
console.error("Error status:", error.response.status);
|
||||
console.error("Error data:", error.response.data);
|
||||
console.error("Error headers:", error.response.headers);
|
||||
|
||||
// 提示错误信息
|
||||
Message.error(`请求错误:${error.response.status}`);
|
||||
} else if (error.request) {
|
||||
// 请求被发出但未收到响应
|
||||
console.error("No response received:", error.request);
|
||||
|
||||
// 提示错误信息
|
||||
Message.error("网络错误,请稍后重试");
|
||||
} else {
|
||||
// 设置请求时发生了一些错误
|
||||
console.error("Error:", error.message);
|
||||
|
||||
// 提示错误信息
|
||||
Message.error("请求失败,请稍后重试");
|
||||
}
|
||||
return Promise.reject(error);
|
||||
}
|
||||
);
|
||||
|
||||
export default request;
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -8,6 +8,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"axios": "^1.6.2",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"core-js": "^3.8.3",
|
||||
"echarts": "^5.4.3",
|
||||
"echarts-gl": "^2.0.9",
|
||||
|
|
@ -25,11 +26,13 @@
|
|||
"vuex": "^3.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/preset-env": "^7.23.6",
|
||||
"@vue/cli-plugin-babel": "~5.0.0",
|
||||
"@vue/cli-plugin-pwa": "~5.0.0",
|
||||
"@vue/cli-plugin-router": "~5.0.0",
|
||||
"@vue/cli-plugin-vuex": "~5.0.0",
|
||||
"@vue/cli-service": "~5.0.0",
|
||||
"babel-plugin-component": "^1.1.1",
|
||||
"less": "^4.2.0",
|
||||
"less-loader": "^8.0.0",
|
||||
"postcss": "^8.4.31",
|
||||
|
|
|
|||
|
|
@ -9,9 +9,7 @@ import "element-ui/lib/theme-chalk/index.css";
|
|||
// 全局引入Echarts;
|
||||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
// 然后挂载在vue原型上;
|
||||
Vue.prototype.$echarts = echarts;
|
||||
|
||||
Vue.use(ElementUI);
|
||||
new Vue({
|
||||
router,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
import {Message} from "element-ui";
|
||||
// import "element-ui/lib/theme-chalk/index.css";
|
||||
// Vue.prototype.$message = Message;
|
||||
export const ShowMessage = (msg, type) => {
|
||||
Message({
|
||||
message: msg,
|
||||
type: type
|
||||
})
|
||||
}
|
||||
|
|
@ -125,8 +125,7 @@
|
|||
import * as echarts from "echarts";
|
||||
import "echarts-gl";
|
||||
import { getPie3D, getParametricEquation } from "../../utils/fhgl";
|
||||
import {Msg} from "@/utils/msg";
|
||||
import { Message } from "element-ui";
|
||||
import {ShowMessage} from "@/utils/ShowMessage";
|
||||
const color = ["#099FE3", "#00DBEB", "#50F4C1"];
|
||||
export default {
|
||||
name: "FHGL",
|
||||
|
|
@ -286,7 +285,7 @@ export default {
|
|||
methods: {
|
||||
//U3D交互的绑定
|
||||
sendMessageToCSharp() {
|
||||
Msg("成功","success");
|
||||
ShowMessage("添加成功","success");
|
||||
window.vuplex.postMessage("负荷管理");
|
||||
this.$router.push("/kdfh");
|
||||
},
|
||||
|
|
|
|||
|
|
@ -849,7 +849,7 @@ export default {
|
|||
let myChart = this.$echarts.init(chartDom);
|
||||
myChart.setOption(option);
|
||||
},
|
||||
getcalendar() {
|
||||
getcalendar(message) {
|
||||
if(message=="prev-month"){
|
||||
this.$refs.getcalendar.selectDate("prev-month")
|
||||
}else if(message=="next-month"){
|
||||
|
|
@ -1175,6 +1175,7 @@ opacity: 1;
|
|||
|
||||
.img {
|
||||
width: 29px;
|
||||
cursor: pointer;
|
||||
height: 31px;
|
||||
opacity: 1
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
<h2>摄像头信息</h2>
|
||||
<div class="footers">
|
||||
<div class="one">
|
||||
<p>余热发电站</p>
|
||||
<p>鲁西平阴厂区全景</p>
|
||||
</div>
|
||||
<div class="two">
|
||||
<p>网络数据</p>
|
||||
|
|
@ -391,33 +391,33 @@ export default {
|
|||
{
|
||||
channel: "9",
|
||||
ip: "221.214.127.18",
|
||||
name: "3号煤磨在线监测",
|
||||
name: "2号窑尾取样处",
|
||||
},
|
||||
{
|
||||
channel: "12",
|
||||
ip: "221.214.127.18",
|
||||
name: "水泥散12#发货口",
|
||||
name: "1号泥磨取样处",
|
||||
},
|
||||
{
|
||||
channel: "6",
|
||||
ip: "221.214.127.18",
|
||||
name: "1#回转窑",
|
||||
name: "2号窑尾监测房",
|
||||
},
|
||||
{
|
||||
channel: "10",
|
||||
ip: "221.214.127.18",
|
||||
name: "辊压机",
|
||||
name: "1号窑尾取样处",
|
||||
},
|
||||
{
|
||||
channel: "3",
|
||||
ip: "221.214.127.18",
|
||||
name: "2#窑",
|
||||
name: "2号窑头取样处",
|
||||
},
|
||||
|
||||
{
|
||||
channel: "13",
|
||||
ip: "221.214.127.18",
|
||||
name: "垃圾处理北门外",
|
||||
name: "3号窑尾监测房",
|
||||
},
|
||||
{
|
||||
channel: "5",
|
||||
|
|
@ -1026,15 +1026,15 @@ export default {
|
|||
position: relative;
|
||||
|
||||
p {
|
||||
width: 166px;
|
||||
width: 236px;
|
||||
height: 33px;
|
||||
font-size: 28px;
|
||||
font-family: MicrosoftYaHei;
|
||||
color: #ffffff;
|
||||
left: 50%;
|
||||
// left: 30%;
|
||||
top: 50%;
|
||||
margin-left: 20px;
|
||||
transform: translate(50%, 50%);
|
||||
margin-left: 96px;
|
||||
transform: translateY(50%);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue