|
|
@@ -58,7 +58,9 @@
|
|
|
@click="onPauseReport()"
|
|
|
>
|
|
|
<span class="btn-content">
|
|
|
- <span class="btn-name">{{ reportStatus === "paused" ? "继续" : "暂停" }}</span>
|
|
|
+ <span class="btn-name">{{
|
|
|
+ reportStatus === "paused" ? "继续" : "暂停"
|
|
|
+ }}</span>
|
|
|
</span>
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
@@ -94,7 +96,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { ElMessage } from "element-plus";
|
|
|
+import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
import { reportTagInfo, startReport, stopReport } from "@/api.js";
|
|
|
import tagCoordinateList from "./tagCoordinateList.json";
|
|
|
import reportInfoStream from "./reportInfoStream.js";
|
|
|
@@ -137,7 +139,6 @@ export default {
|
|
|
if (this.$route.query.userId) {
|
|
|
this.userId = this.$route.query.userId;
|
|
|
}
|
|
|
- console.error(this.$route.query);
|
|
|
const floorList = Array.from(
|
|
|
new Set(this.tagList.map((item) => item.floor).filter(Boolean)),
|
|
|
);
|
|
|
@@ -304,10 +305,19 @@ export default {
|
|
|
this.isRequesting = false;
|
|
|
|
|
|
try {
|
|
|
- await stopReport({
|
|
|
+ let res = await stopReport({
|
|
|
num: this.num,
|
|
|
userId: this.userId,
|
|
|
});
|
|
|
+ console.error(res);
|
|
|
+ if (res.data) {
|
|
|
+ ElMessageBox.alert(`记录ID: ${res.data}`, "", {
|
|
|
+ confirmButtonText: "OK",
|
|
|
+ callback: (action) => {
|
|
|
+ console.log(action);
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
} catch (err) {
|
|
|
ElMessage({
|
|
|
message: err?.message || err || "stopReport failed",
|
|
|
@@ -430,3 +440,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
</style>
|
|
|
+<style>
|
|
|
+.el-message-box {
|
|
|
+ width: 80% !important;
|
|
|
+}
|
|
|
+</style>
|