|
|
@ -25,7 +25,7 @@
|
|
|
|
<el-input v-model="deviceTimeForm.newzztime"></el-input>
|
|
|
|
<el-input v-model="deviceTimeForm.newzztime"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-button type="primary">查询</el-button>
|
|
|
|
<el-button type="primary" @click="setTermFn">查询</el-button>
|
|
|
|
<el-button type="primary">设置</el-button>
|
|
|
|
<el-button type="primary">设置</el-button>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
@ -263,7 +263,7 @@
|
|
|
|
></el-input>
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item class="runformbtn">
|
|
|
|
<el-form-item class="runformbtn">
|
|
|
|
<el-button type="primary">查询</el-button>
|
|
|
|
<el-button type="primary" @click="setTermFn">查询</el-button>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -318,7 +318,12 @@
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { resetTerminalApi, getTermLastGPSPosition } from "@/utils/api/index";
|
|
|
|
import {
|
|
|
|
|
|
|
|
resetTerminalApi,
|
|
|
|
|
|
|
|
getTermLastGPSPosition,
|
|
|
|
|
|
|
|
setTermCamera,
|
|
|
|
|
|
|
|
getTermCameraRequest,
|
|
|
|
|
|
|
|
} from "@/utils/api/index";
|
|
|
|
|
|
|
|
|
|
|
|
import imageCapture from "./imageCapture.vue";
|
|
|
|
import imageCapture from "./imageCapture.vue";
|
|
|
|
import videoCapture from "./videoCapture.vue";
|
|
|
|
import videoCapture from "./videoCapture.vue";
|
|
|
@ -344,6 +349,9 @@ export default {
|
|
|
|
gpsForm: {}, //gps位置
|
|
|
|
gpsForm: {}, //gps位置
|
|
|
|
tabsActive: "first",
|
|
|
|
tabsActive: "first",
|
|
|
|
rowData: {},
|
|
|
|
rowData: {},
|
|
|
|
|
|
|
|
requestid: "",
|
|
|
|
|
|
|
|
timer: null,
|
|
|
|
|
|
|
|
i: 0,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {},
|
|
|
|
mounted() {},
|
|
|
@ -365,6 +373,30 @@ export default {
|
|
|
|
this.$refs.videoCaptureref.getRatio();
|
|
|
|
this.$refs.videoCaptureref.getRatio();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
setTermFn() {
|
|
|
|
|
|
|
|
console.log("点击了统一的接口", "runningstatus");
|
|
|
|
|
|
|
|
setTermCamera({
|
|
|
|
|
|
|
|
termId: this.rowData.id,
|
|
|
|
|
|
|
|
list: [{ name: "act", value: "gpsinfo" }],
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
this.requestid = res.data.requestId;
|
|
|
|
|
|
|
|
this.getinfo();
|
|
|
|
|
|
|
|
// this.timer = window.setInterval(() => {
|
|
|
|
|
|
|
|
// this.getinfo();
|
|
|
|
|
|
|
|
// this.i++;
|
|
|
|
|
|
|
|
// }, 1000);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
getinfo() {
|
|
|
|
|
|
|
|
getTermCameraRequest({ requestid: this.requestid })
|
|
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch();
|
|
|
|
|
|
|
|
},
|
|
|
|
//gps位置查询
|
|
|
|
//gps位置查询
|
|
|
|
gpsSearch() {
|
|
|
|
gpsSearch() {
|
|
|
|
console.log(this.rowData);
|
|
|
|
console.log(this.rowData);
|
|
|
|