Compare commits
2 Commits
b14a5434b9
...
6922280fa8
Author | SHA1 | Date |
---|---|---|
|
6922280fa8 | |
|
4138e4d774 |
|
@ -25,7 +25,7 @@ axios.interceptors.request.use(function (config) {
|
||||||
})
|
})
|
||||||
// 登录的请求
|
// 登录的请求
|
||||||
export const doLogin = (data) =>{
|
export const doLogin = (data) =>{
|
||||||
return axios.post('/login/doLogin',data)
|
return axios.post('api/login/doLogin',data)
|
||||||
}
|
}
|
||||||
// export const getHomePageInfo = (params) => {
|
// export const getHomePageInfo = (params) => {
|
||||||
// return axios.post('/gk/homePage/getHomePageInfo?cityId='+params)
|
// return axios.post('/gk/homePage/getHomePageInfo?cityId='+params)
|
||||||
|
@ -47,26 +47,26 @@ export const getSiteInfo = (params) => {
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
export const getSwitchInfo = (params) => {
|
export const getSwitchInfo = (params) => {
|
||||||
return axios.get('/gk/info/getSwitchInfo', {
|
return axios.get('api/gk/info/getSwitchInfo', {
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
//查询实时事件
|
//查询实时事件
|
||||||
export const getDeviceRecord = (params) => {
|
export const getDeviceRecord = (params) => {
|
||||||
return axios.get('/gk/info/getDeviceRecord', {
|
return axios.get('api/gk/info/getDeviceRecord', {
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
//查询实时记录下拉框
|
//查询实时记录下拉框
|
||||||
export const getDeviceNum = (params) => {
|
export const getDeviceNum = (params) => {
|
||||||
return axios.get('/gk/info/getDeviceNum', {
|
return axios.get('api/gk/info/getDeviceNum', {
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
// 修改提交
|
// 修改提交
|
||||||
export const updateDeviceRecord = (params) => {
|
export const updateDeviceRecord = (params) => {
|
||||||
return axios.get('/gk/info/updateDeviceRecord', {
|
return axios.get('api/gk/info/updateDeviceRecord', {
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
|
@ -863,7 +863,7 @@
|
||||||
<div class="select">
|
<div class="select">
|
||||||
<div class="seSearch">查询</div>
|
<div class="seSearch">查询</div>
|
||||||
<div class="changeselect">
|
<div class="changeselect">
|
||||||
<el-select v-model="chaValue" placeholder="请选择" @change="searchChange">
|
<el-select v-model="chaValue" placeholder="请选择" @change="searchChange" clearable >
|
||||||
<el-option v-for="item in optionsOpen" :key="item.value" :label="item.label" :value="item.value">
|
<el-option v-for="item in optionsOpen" :key="item.value" :label="item.label" :value="item.value">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
@ -1811,8 +1811,9 @@ export default {
|
||||||
this.init();
|
this.init();
|
||||||
// //查询实时记录
|
// //查询实时记录
|
||||||
window.setInterval(() => {
|
window.setInterval(() => {
|
||||||
if (this.unityChange == 0) {
|
if (that.unityChange == 3 || that.unityChange == 0) {
|
||||||
getEnvironmentInfo( {siteId:"2"} ).then((res) => {
|
// getEnvironmentInfo( "2" ).then((res) => {
|
||||||
|
getEnvironmentInfo( { siteId: "2" } ).then((res) => {
|
||||||
// this.eniorArr
|
// this.eniorArr
|
||||||
console.log(res,'实时记录');
|
console.log(res,'实时记录');
|
||||||
for (const key in res.data.data) {
|
for (const key in res.data.data) {
|
||||||
|
@ -1888,7 +1889,8 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
getEnvironmentInfo({siteId:"96445C7C4AD6F0C5"} ).then((res) => {
|
// getEnvironmentInfo("96445C7C4AD6F0C5" ).then((res) => {
|
||||||
|
getEnvironmentInfo({ siteId: "1" } ).then((res) => {
|
||||||
// this.eniorArr
|
// this.eniorArr
|
||||||
for (const key in res.data.data) {
|
for (const key in res.data.data) {
|
||||||
if (key == "doorState") {
|
if (key == "doorState") {
|
||||||
|
@ -2125,7 +2127,7 @@ export default {
|
||||||
},
|
},
|
||||||
getTableData() {
|
getTableData() {
|
||||||
// this.tableData = [];
|
// this.tableData = [];
|
||||||
if (this.unityChange == 0) {
|
if (this.unityChange == 0 ||this.unityChange == 3) {
|
||||||
getSwitchInfo({ siteId: "2" }).then((res) => {
|
getSwitchInfo({ siteId: "2" }).then((res) => {
|
||||||
this.tableData = res.data.data.items;
|
this.tableData = res.data.data.items;
|
||||||
for (let i = 0; i < this.tableData.length; i++) {
|
for (let i = 0; i < this.tableData.length; i++) {
|
||||||
|
|
Loading…
Reference in New Issue