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) =>{
|
||||
return axios.post('/login/doLogin',data)
|
||||
return axios.post('api/login/doLogin',data)
|
||||
}
|
||||
// export const getHomePageInfo = (params) => {
|
||||
// return axios.post('/gk/homePage/getHomePageInfo?cityId='+params)
|
||||
|
@ -47,26 +47,26 @@ export const getSiteInfo = (params) => {
|
|||
})
|
||||
};
|
||||
export const getSwitchInfo = (params) => {
|
||||
return axios.get('/gk/info/getSwitchInfo', {
|
||||
return axios.get('api/gk/info/getSwitchInfo', {
|
||||
params
|
||||
})
|
||||
};
|
||||
|
||||
//查询实时事件
|
||||
export const getDeviceRecord = (params) => {
|
||||
return axios.get('/gk/info/getDeviceRecord', {
|
||||
return axios.get('api/gk/info/getDeviceRecord', {
|
||||
params
|
||||
})
|
||||
};
|
||||
//查询实时记录下拉框
|
||||
export const getDeviceNum = (params) => {
|
||||
return axios.get('/gk/info/getDeviceNum', {
|
||||
return axios.get('api/gk/info/getDeviceNum', {
|
||||
params
|
||||
})
|
||||
};
|
||||
// 修改提交
|
||||
export const updateDeviceRecord = (params) => {
|
||||
return axios.get('/gk/info/updateDeviceRecord', {
|
||||
return axios.get('api/gk/info/updateDeviceRecord', {
|
||||
params
|
||||
})
|
||||
};
|
||||
|
|
|
@ -863,7 +863,7 @@
|
|||
<div class="select">
|
||||
<div class="seSearch">查询</div>
|
||||
<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>
|
||||
</el-select>
|
||||
|
@ -1811,7 +1811,8 @@ export default {
|
|||
this.init();
|
||||
// //查询实时记录
|
||||
window.setInterval(() => {
|
||||
if (this.unityChange == 0) {
|
||||
if (that.unityChange == 3 || that.unityChange == 0) {
|
||||
// getEnvironmentInfo( "2" ).then((res) => {
|
||||
getEnvironmentInfo( { siteId: "2" } ).then((res) => {
|
||||
// this.eniorArr
|
||||
console.log(res,'实时记录');
|
||||
|
@ -1888,7 +1889,8 @@ export default {
|
|||
}
|
||||
});
|
||||
} else {
|
||||
getEnvironmentInfo({siteId:"96445C7C4AD6F0C5"} ).then((res) => {
|
||||
// getEnvironmentInfo("96445C7C4AD6F0C5" ).then((res) => {
|
||||
getEnvironmentInfo({ siteId: "1" } ).then((res) => {
|
||||
// this.eniorArr
|
||||
for (const key in res.data.data) {
|
||||
if (key == "doorState") {
|
||||
|
@ -2125,7 +2127,7 @@ export default {
|
|||
},
|
||||
getTableData() {
|
||||
// this.tableData = [];
|
||||
if (this.unityChange == 0) {
|
||||
if (this.unityChange == 0 ||this.unityChange == 3) {
|
||||
getSwitchInfo({ siteId: "2" }).then((res) => {
|
||||
this.tableData = res.data.data.items;
|
||||
for (let i = 0; i < this.tableData.length; i++) {
|
||||
|
|
Loading…
Reference in New Issue