ada7ba7a by xiaomiao

补录定位

1 parent 3410b445
......@@ -133,10 +133,20 @@ export default {
this.getleftMenubl();
},
// 获取右侧菜单
getleftMenubl() {
leftMenubl(this.bsmSlsq).then((res) => {
getleftMenubl(row) {
leftMenubl(this.bsmSlsq).then((res) => {
this.supplementarylist = res.result;
if(row){
this.supplementarylist.forEach((item,index) => {
if(item.bsmRepair==row.bsmRepair){
this.activeIndex=index
this.unitClick(index)
}
})
}
});
},
handleNodeClick(data, node, elem) {
this.$parent.loadComponent(this.currentSelectProps, data);
......@@ -154,10 +164,10 @@ export default {
// this.$parent.getdjblist()
},
// 定位到该条补录记录
orientation(){
// this.activeIndex="2"
this.unitClick(0)
},
// orientation(){
// // this.activeIndex="2"
// this.unitClick(0)
// },
// 删除补录记录
handleDel(row) {
this.$confirm("此操作将永久删除该条补录记录, 是否继续?", "提示", {
......
......@@ -160,7 +160,6 @@ export default {
// 增加补录记录
addRepairRecord(row){
this.$refs.Menu.orientation()
let from={
bsmQlxx:"",
bsmSlsq:this.bsmSlsq,
......@@ -170,13 +169,13 @@ export default {
}
if(row){
from.bsmQlxx=row.bsmQlxx
from.operate="U"
}
addRepairRecord(from).then((res) => {
if (res.code === 200) {
alert("补录成功")
}
this.$nextTick(() => {
this.$refs.Menu.getleftMenubl(res.result);
});
});
},
tabset(){
......