Commit dd043161 by zhangzhijie

修复“下一页”bug

parent 4feb07d0
...@@ -475,7 +475,8 @@ ...@@ -475,7 +475,8 @@
type="warning" type="warning"
@click="nextData" @click="nextData"
:disabled="currentLastData" :disabled="currentLastData"
>下一条</el-button >下一条
</el-button
> >
</div> </div>
</el-card> </el-card>
...@@ -715,7 +716,7 @@ import { ...@@ -715,7 +716,7 @@ import {
updateBzStatus, updateBzStatus,
} from "@/api/ajbzDetail.js"; } from "@/api/ajbzDetail.js";
import axios from "@/utils/http.js"; import axios from "@/utils/http.js";
import { getAsjbhArrayList, ajbzHt } from "@/views/hainanBZ/ajbzdetailHN.js"; import {getAsjbhArrayList, ajbzHt} from "@/views/hainanBZ/ajbzdetailHN.js";
export default { export default {
name: "ajbzDetailHN", name: "ajbzDetailHN",
...@@ -767,50 +768,50 @@ export default { ...@@ -767,50 +768,50 @@ export default {
formLabelAlign: [], formLabelAlign: [],
formLabelAlign2: [], formLabelAlign2: [],
barData: [ barData: [
{ id: 1, name: "案件信息" }, {id: 1, name: "案件信息"},
{ id: 2, name: "现场信息" }, {id: 2, name: "现场信息"},
{ id: 3, name: "人员" }, {id: 3, name: "人员"},
], ],
tableBar: [ tableBar: [
{ key: 1, name: "盗窃案" }, {key: 1, name: "盗窃案"},
{ key: 2, name: "诈骗案" }, {key: 2, name: "诈骗案"},
{ key: 3, name: "抢劫案" }, {key: 3, name: "抢劫案"},
{ key: 4, name: "抢夺案" }, {key: 4, name: "抢夺案"},
{ key: 5, name: "招摇撞骗案" }, {key: 5, name: "招摇撞骗案"},
], ],
ryList: [ ryList: [
{ ryid: 1, name: "嫌疑人" }, {ryid: 1, name: "嫌疑人"},
{ ryid: 2, name: "受害人" }, {ryid: 2, name: "受害人"},
{ ryid: 3, name: "报案人" }, {ryid: 3, name: "报案人"},
], ],
bshClass: [ bshClass: [
{ num: "01", val: "mobile" }, {num: "01", val: "mobile"},
{ num: "02", val: "imsi" }, {num: "02", val: "imsi"},
{ num: "03", val: "yhzh" }, {num: "03", val: "yhzh"},
{ num: "04", val: "yhkh" }, {num: "04", val: "yhkh"},
{ num: "05", val: "otherid" }, {num: "05", val: "otherid"},
{ num: "06", val: "jjzh" }, {num: "06", val: "jjzh"},
{ num: "07", val: "gpzh" }, {num: "07", val: "gpzh"},
{ num: "08", val: "wljyzh" }, {num: "08", val: "wljyzh"},
{ num: "09", val: "wldjzh" }, {num: "09", val: "wldjzh"},
{ num: "10", val: "otherid" }, {num: "10", val: "otherid"},
{ num: "11", val: "email" }, {num: "11", val: "email"},
{ num: "12", val: "qq" }, {num: "12", val: "qq"},
{ num: "13", val: "wx" }, {num: "13", val: "wx"},
{ num: "14", val: "yx" }, {num: "14", val: "yx"},
{ num: "15", val: "wbzh" }, {num: "15", val: "wbzh"},
{ num: "16", val: "personid" }, {num: "16", val: "personid"},
{ num: "17", val: "mac" }, {num: "17", val: "mac"},
{ num: "18", val: "cjh" }, {num: "18", val: "cjh"},
{ num: "19", val: "imei" }, {num: "19", val: "imei"},
{ num: "20", val: "imsi" }, {num: "20", val: "imsi"},
{ num: "21", val: "ip" }, {num: "21", val: "ip"},
{ num: "22", val: "zfb" }, {num: "22", val: "zfb"},
{ num: "23", val: "carid" }, {num: "23", val: "carid"},
{ num: "24", val: "app" }, {num: "24", val: "app"},
{ num: "25", val: "qqq" }, {num: "25", val: "qqq"},
{ num: "26", val: "wxq" }, {num: "26", val: "wxq"},
{ num: "99", val: "otherid" }, {num: "99", val: "otherid"},
], ],
centerDialogVisible: false, centerDialogVisible: false,
...@@ -1007,6 +1008,7 @@ export default { ...@@ -1007,6 +1008,7 @@ export default {
asjbhCurrentIndex: "", asjbhCurrentIndex: "",
xzaStr: "", xzaStr: "",
xalbStr: "", xalbStr: "",
alreadyFinishedCount: 0
}; };
}, },
created() { created() {
...@@ -1142,7 +1144,9 @@ export default { ...@@ -1142,7 +1144,9 @@ export default {
return new Promise((resolve) => { return new Promise((resolve) => {
if (this.asjbhArraySearchData == "") { if (this.asjbhArraySearchData == "") {
this.asjbhArraySearchData = this.$route.query.searchData; this.asjbhArraySearchData = this.$route.query.searchData;
this.asjbhArraySearchData = JSON.parse(this.asjbhArraySearchData)
} }
this.asjbhArraySearchData.alreadyFinishedCount = this.alreadyFinishedCount;
getAsjbhArrayList(JSON.stringify(this.asjbhArraySearchData)) getAsjbhArrayList(JSON.stringify(this.asjbhArraySearchData))
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
...@@ -1176,9 +1180,7 @@ export default { ...@@ -1176,9 +1180,7 @@ export default {
this.asjbh = this.asjbhArrayList[this.asjbhCurrentIndex]; this.asjbh = this.asjbhArrayList[this.asjbhCurrentIndex];
this.query(); this.query();
} else { } else {
let asjbhSearchItem = JSON.parse(this.asjbhArraySearchData); this.asjbhArraySearchData.page++;
asjbhSearchItem.page++;
this.asjbhArraySearchData = JSON.stringify(asjbhSearchItem);
await this.getAsjbhArrayList(); await this.getAsjbhArrayList();
if (!this.currentLastData) { if (!this.currentLastData) {
this.query(); this.query();
...@@ -1205,7 +1207,8 @@ export default { ...@@ -1205,7 +1207,8 @@ export default {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}).then(() => {}); }).then(() => {
});
} }
}, },
toXk() { toXk() {
...@@ -1282,8 +1285,8 @@ export default { ...@@ -1282,8 +1285,8 @@ export default {
}).then((res) => { }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
self.$message.success("标注成功"); self.$message.success("标注成功");
debugger;
self.bzzt = 1; self.bzzt = 1;
this.alreadyFinishedCount++;
self.query(); self.query();
// self.$confirm("点击确定关闭当前窗口", "提示", { // self.$confirm("点击确定关闭当前窗口", "提示", {
// confirmButtonText: "确定", // confirmButtonText: "确定",
...@@ -1754,7 +1757,6 @@ export default { ...@@ -1754,7 +1757,6 @@ export default {
// }); // });
// }, // },
xaHandleNodeClick(data) { xaHandleNodeClick(data) {
debugger;
this.xzaStr = data.label.substring(0, data.label.length - 16); this.xzaStr = data.label.substring(0, data.label.length - 16);
this.parentLb.childId = data.id; this.parentLb.childId = data.id;
this.parentLb.id = data.parentId; this.parentLb.id = data.parentId;
...@@ -1767,7 +1769,7 @@ export default { ...@@ -1767,7 +1769,7 @@ export default {
}); });
setTimeout(() => { setTimeout(() => {
this.$refs.tree3.setCurrentKey(data.parentId); this.$refs.tree3.setCurrentKey(data.parentId);
}, 50); }, 100);
}, },
lzHandleNodeClick(res) { lzHandleNodeClick(res) {
this.xalbStr = res.label.substring(0, res.label.length - 14); this.xalbStr = res.label.substring(0, res.label.length - 14);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment