Merge branch 'hdw' of http://118.89.139.230:10101/r/admin_manage into hdw
| | |
| | | import rejectReplay from "@/assets/js/tools/rejectReplay"; |
| | | if(process.env.NODE_ENV == 'dev') { |
| | | // 跨域请求 |
| | | axios.defaults.baseURL = 'http://localhost:8919/fg/'; |
| | | axios.defaults.baseURL = 'http://localhost:8092/fg/'; |
| | | axios.defaults.withCredentials = true; // 保持请求头 |
| | | } |
| | | let skipUrls = ["Server_stateAction_action_getTimestamp"]; |
| | |
| | | } |
| | | ]; |
| | | } |
| | | list.splice(1, 0, { |
| | | label: "服务器管理", |
| | | name: "state", |
| | | src: '#/state', |
| | | icon: "el-icon-coin", |
| | | noChild: true, |
| | | closable: false, |
| | | id: 9, |
| | | menuId: 0, |
| | | enableduse: true, |
| | | ord: 1, |
| | | level: 1, |
| | | disabled: true |
| | | }); |
| | | if (config.clientName.name == 'cdsh') { |
| | | list.splice(1, 0, { |
| | | label: "服务器管理", |
| | | name: "state", |
| | | src: '#/state', |
| | | icon: "el-icon-coin", |
| | | noChild: true, |
| | | closable: false, |
| | | id: 9, |
| | | menuId: 0, |
| | | enableduse: true, |
| | | ord: 1, |
| | | level: 1, |
| | | disabled: true |
| | | }); |
| | | } |
| | | return list; |
| | | } |
| | | |
| | |
| | | <span class="sys-version">{{ version }}</span> |
| | | </div> |
| | | <div class="page-header-content"> |
| | | <div class="header-info-list" v-if="false"> |
| | | <div class="header-info-list" v-if="$CFG.clientName.name != 'cdsh'"> |
| | | <el-tooltip |
| | | class="item" |
| | | effect="dark" |
| | |
| | | }, |
| | | methods: { |
| | | setOption(opt) { |
| | | let name = "chengdushihua"; |
| | | let isCDSH = this.$CFG.clientName.name == 'cdsh'; |
| | | let name = isCDSH ? "chengdushihua" : this.name; |
| | | let geoJson = require(`../../../public/mapJson/${name}.json`); |
| | | ECharts.registerMap("map", geoJson); |
| | | let areaList = geoJson.features || []; |
| | | let data0 = []; |
| | | // if (isCDSH) { |
| | | if (isCDSH) { |
| | | areaList.forEach((v) => { |
| | | data0.push({ |
| | | name: v.properties.name, |
| | |
| | | value: v.properties.value, |
| | | }); |
| | | }); |
| | | // } |
| | | } |
| | | let series0 = { |
| | | name: "MAP", |
| | | type: "map", |
| | |
| | | }, |
| | | series: this.getSeries(opt), |
| | | }; |
| | | option.series.unshift(series0); |
| | | if (isCDSH) { |
| | | option.series.unshift(series0); |
| | | } |
| | | // 设置配置项 |
| | | this.$G.chartManage.get(this.id).setOption(option); |
| | | }, |