获取状态

master
fanluyan 2 years ago
parent 0699651b42
commit 75d931899c

@ -33,16 +33,24 @@ service.interceptors.response.use(
(response) => {
const res = response.data;
if (res.code !== 200) {
Message({
showClose: true,
message: res.msg || "Error",
type: "error",
duration: 5 * 1000,
});
// Message({
// showClose: true,
// message: res.msg || "Error",
// type: "error",
// duration: 5 * 1000,
// });
if (res.code === 401) {
// Message({ message: '重新登录', type: 'error', duration: 5 * 1000 })
Message({ message: res.msg, type: "error", duration: 5 * 1000 });
router.push("/login");
}
if (res.code === 100) {
Message({
showClose: true,
message: res.msg,
type: "error",
duration: 5 * 1000,
});
}
if (res.code === 500) {
Message({
showClose: true,

@ -114,7 +114,11 @@
<h3>操作项</h3>
<div class="buttonGroup">
<el-dropdown trigger="click" @command="handleCommandpic">
<el-button type="primary" :loading="btnpicloading">
<el-button
type="primary"
:loading="btnpicloading"
:disabled="zzstatus == 0"
>
主动拍照<i class="el-icon-arrow-down el-icon--right"></i>
</el-button>
<el-dropdown-menu slot="dropdown" class="picdropStyle">
@ -131,7 +135,11 @@
</el-dropdown-menu>
</el-dropdown>
<el-dropdown trigger="click" @command="handleCommandvideo">
<el-button type="primary" :loading="btnvideoloading">
<el-button
type="primary"
:loading="btnvideoloading"
:disabled="zzstatus == 0"
>
主动录像<i class="el-icon-arrow-down el-icon--right"></i>
</el-button>
<el-dropdown-menu slot="dropdown" class="videodropStyle">
@ -148,10 +156,17 @@
</el-dropdown-menu>
</el-dropdown>
<el-button type="primary" @click="handleShowInfo">
<el-button
type="primary"
@click="handleShowInfo"
:disabled="zzstatus == 0"
>
装置信息</el-button
>
<el-button type="primary" @click.native.stop="handleSetSchedule()"
<el-button
type="primary"
@click.native.stop="handleSetSchedule()"
:disabled="zzstatus == 0"
>拍照时间表</el-button
>
<!-- <el-dropdown
@ -172,7 +187,7 @@
trigger="click"
@command="handleCommandWarn"
>
<el-button type="primary">
<el-button type="primary" :disabled="zzstatus == 0">
声光报警<i class="el-icon-arrow-down el-icon--right"></i>
</el-button>
<el-dropdown-menu slot="dropdown" class="gpsdropStyle">

Loading…
Cancel
Save