Compare commits
2 Commits
46787bcf0c
...
ed6844931d
| Author | SHA1 | Date |
|---|---|---|
|
|
ed6844931d | |
|
|
e952619b82 |
|
|
@ -5,7 +5,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import datav from './components/baozuo-demo/index.vue'
|
//import datav from './components/baozuo-demo/index.vue'
|
||||||
|
import datav from './components/datav/index.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'app',
|
name: 'app',
|
||||||
|
|
|
||||||
12
src/api.js
12
src/api.js
|
|
@ -3,16 +3,10 @@ import axios from 'axios'
|
||||||
const api = {
|
const api = {
|
||||||
|
|
||||||
|
|
||||||
// 定义API接口地址
|
|
||||||
// baseURL: process.env.NODE_ENV === 'production' ? '/api/' : 'http://localhost:3000/',
|
|
||||||
// GET请求示例
|
|
||||||
baseURL: 'http://39.101.165.228:9001',
|
|
||||||
baseURL2: 'http://39.101.165.228:9001',
|
|
||||||
|
|
||||||
//永盛
|
//永盛
|
||||||
baseURL2: 'http://123.207.37.67:9001',
|
baseURL2: 'http://123.207.37.67:9001',
|
||||||
baseURL22: 'http://123.207.37.67:9001',
|
|
||||||
|
|
||||||
|
baseURL: '',
|
||||||
|
|
||||||
get (url) {
|
get (url) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|
@ -50,7 +44,7 @@ const api = {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
axios({
|
axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
url: this.baseURL2 + url,
|
url: this.baseURL + url,
|
||||||
data: data,
|
data: data,
|
||||||
headers: headers
|
headers: headers
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -219,7 +219,7 @@ export default {
|
||||||
notices: [],
|
notices: [],
|
||||||
showNotices:false,
|
showNotices:false,
|
||||||
showData: {
|
showData: {
|
||||||
name: '永盛陶瓷智能数据看榜',
|
name: '',
|
||||||
times: [],
|
times: [],
|
||||||
leftData: [],
|
leftData: [],
|
||||||
reportedList: [],
|
reportedList: [],
|
||||||
|
|
@ -316,6 +316,7 @@ export default {
|
||||||
this.$api.post2('/api/web/GetScreenReport?category='+Aid).then(res => {
|
this.$api.post2('/api/web/GetScreenReport?category='+Aid).then(res => {
|
||||||
if (res.code === '200') {
|
if (res.code === '200') {
|
||||||
let data = res.data;
|
let data = res.data;
|
||||||
|
this.showData.name = res.data.title || '智能数据看板';
|
||||||
this.reportSettings = data.reportSettings;
|
this.reportSettings = data.reportSettings;
|
||||||
this.notices = data.notices;
|
this.notices = data.notices;
|
||||||
// console.log(data.notices.length>0 , data.notices[0].starttime , data.notices[0].Endtime)
|
// console.log(data.notices.length>0 , data.notices[0].starttime , data.notices[0].Endtime)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue