Commit 7fe0c212 by gao_yingdong

警情标注

parent ea29f257
......@@ -16,9 +16,9 @@
<el-col :span="8">
<div class="grid-content bg-purple">{{ asjbh }}</div>
</el-col>
<el-col :span="3" v-if="ajxxInfo.ajlbdmMc">
<el-col :span="3" v-if="mc">
<div class="grid-content bg-purple">
<el-tag>{{ ajxxInfo.ajlbdmMc }}</el-tag>
<el-tag>{{ mc }}</el-tag>
</div>
</el-col>
</el-row>
......@@ -1388,9 +1388,13 @@ export default {
jjms: "",
bzzt: "",
isDetail: false,
zalbdmMc: '',
lalbdmMc:'',
calbdmMc:'',
zalbdmMc: "",
lalbdmMc: "",
calbdmMc: "",
mc: "",
jjzalbDm: "",
jjlalbDm: "",
jjcalbDm: "",
};
},
created() {
......@@ -1444,6 +1448,28 @@ export default {
this.asjbh = info.asjbh;
this.bzzt = info.bzzt == "1" ? "已标注" : "未标注";
this.ajlbdm_dm = res.data.rows[0].zalbdm;
this.mc = res.data.rows[0].zalbdmMc;
this.jjzalbDm = res.data.rows[0].zalbdm;
this.jjlalbDm = res.data.rows[0].lalbdm;
this.jjcalbDm = res.data.rows[0].calbdm;
this.parentLb.zalb = res.data.rows[0].zalbdm
? res.data.rows[0].zalbdm
: "";
this.parentLb.lalb = res.data.rows[0].lalbdm
? res.data.rows[0].lalbdm
: "";
this.parentLb.calb = res.data.rows[0].calbdm
? res.data.rows[0].calbdm
: "";
this.zalbdmMc = res.data.rows[0].zalbdmMc
? res.data.rows[0].zalbdmMc
: "";
this.lalbdmMc = res.data.rows[0].lalbdmMc
? res.data.rows[0].lalbdmMc
: "";
this.calbdmMc = res.data.rows[0].calbdmMc
? res.data.rows[0].calbdmMc
: "";
this.getQueryza("yes");
this.getQueryla("yes");
this.getQueryca("yes");
......@@ -1465,6 +1491,12 @@ export default {
// this.$message.error("请选择案件分类");
// return;
// }
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
const param = {
jjdbh: this.jjdbh,
// ajfl:`0${self.selectIndex1}`,
......@@ -1478,11 +1510,15 @@ export default {
// sswpdm: this.sswpARR.join(","),
// zagjdm: this.zagjARR.join(","),
};
this.loading = true;
post(`${url.alyIP2}${this.wcbzUrl}`, param).then((res) => {
if (res.success) {
self.$message.success("标注成功");
this.getjjxq();
loading.close();
setTimeout(() => {
window.opener.location.reload();
window.close();
}, 100);
// this.getjjxq();
} else {
self.$message.error("标注失败");
}
......@@ -1986,7 +2022,7 @@ export default {
return val.id.indexOf(self.ajlbdm_dm) != -1;
});
} else {
this.data1 = this.sxdata1 = response.data.rows
this.data1 = this.sxdata1 = response.data.rows;
}
})
.catch((err) => {
......@@ -2065,6 +2101,12 @@ export default {
this.data2 = this.sxdata2 = response.data.rows.filter((val) => {
return val.id.indexOf(self.ajlbdm_dm) != -1;
});
self.$nextTick(() => {
debugger;
self.$refs.tree.setCurrentKey(self.parentLb.lalb);
self.$refs.tree1.setCurrentKey(self.parentLb.zalb);
self.$refs.tree2.setCurrentKey(self.parentLb.calb);
});
} else {
this.data2 = this.sxdata2 = response.data.rows;
}
......@@ -2224,7 +2266,7 @@ export default {
hanldTableBar() {
this.loadingIndex++;
this.selectIndex1 = "";
this.ajlbdm_dm = ''
this.ajlbdm_dm = "";
this.$set(this.parentLb, "zalb", "");
this.$set(this.parentLb, "lalb", "");
this.$set(this.parentLb, "calb", "");
......@@ -2289,7 +2331,7 @@ export default {
// // });
// // this.data = newData;
// // debugger;
this.zalbdmMc = res.label.substring(0,res.label.length-10)
this.zalbdmMc = res.label.substring(0, res.label.length - 10);
let parentId = res.id;
this.$nextTick(() => {
// treeBox 元素的ref value 绑定的node-key
......@@ -2315,7 +2357,7 @@ export default {
// });
// this.data2 = newData;
this.lalbdmMc = res.label.substring(0,res.label.length-14)
this.lalbdmMc = res.label.substring(0, res.label.length - 14);
let parentId = res.id;
this.$nextTick(() => {
// treeBox 元素的ref value 绑定的node-key
......@@ -2325,10 +2367,10 @@ export default {
return val.parentId == parentId;
});
this.data2 = newData;
this.two(res)
this.two(res);
},
two(res) {
debugger
debugger;
let parentId = res.parentId.substring(0, 8);
this.$nextTick(() => {
// treeBox 元素的ref value 绑定的node-key
......@@ -2347,7 +2389,7 @@ export default {
// this.$refs.tree2.setCurrentKey(parentId);
// });
this.calbdmMc = res.label.substring(0,res.label.length-16)
this.calbdmMc = res.label.substring(0, res.label.length - 16);
debugger;
let parentId = res.parentId;
this.$nextTick(() => {
......@@ -2358,10 +2400,10 @@ export default {
return val.id == parentId;
});
this.data = newData;
this.one(res)
this.one(res);
},
one(res) {
debugger
debugger;
let parentId = res.parentId.substring(0, 8);
this.$nextTick(() => {
// treeBox 元素的ref value 绑定的node-key
......
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