Commit 41d7a0e3 by lp784568205

修改了标注

parent b2efa683
......@@ -911,7 +911,6 @@ export default {
// value: "zfb",
// label: "支付宝账号",
// },
// {
// value: "carid",
// label: "车牌号",
......@@ -981,10 +980,10 @@ export default {
this.isCheck = this.$route.query.isCheck;
this.bzzt = this.$route.query.bzzt;
axios.get(`JsonData/CODE_BLHLX.json`).then((response) => {
if (response.success === true) {
this.options = response.data.rows;
}
});
if (response.success === true) {
this.options = response.data.rows;
}
});
},
methods: {
initAjlbTree() {
......@@ -1001,6 +1000,13 @@ export default {
this.laData = response.data.rows.filter((val) => {
return val.parentId == `${this.ajzlb}0000`;
});
response.data.rows.map((item) => {
this.laData.forEach((good) => {
if (good.parentId == item.id) {
this.laData.push(good);
}
});
});
this.parentLb.id = this.ajxzlb;
}
});
......@@ -1424,17 +1430,26 @@ export default {
axios.get(`JsonData/CODE_AJXZ.json`).then((response) => {
if (response.success === true) {
this.laData = response.data.rows.filter((val) => {
return val.parentId != "";
if (val.id.indexOf(this.ajzlb, 0) == 0) {
return val;
}
});
response.data.rows.map((item) => {
this.laData.forEach((good) => {
if (good.id == item.parentId) {
this.laData.push(item);
}
});
});
}
});
axios.get(`JsonData/CODE_AJXLB.json`).then((response) => {
if (response.success === true) {
this.xaData = response.data.rows.filter((val) => {
if (val.id.indexOf(this.ajzlb, 0) == 0) {
return val;
}
});;
if (val.id.indexOf(this.ajzlb, 0) == 0) {
return val;
}
});
}
});
},
......@@ -1521,40 +1536,40 @@ export default {
// }
},
zaHandleNodeClick(res) {
this.laData = [];
this.xaData = [];
this.parentLb.id = "";
this.parentLb.childId = "";
this.parentLb.parentId = res.id;
// queryCodeByType({type: 'CODE_AJLB', id: res.id}).then((res) => {
// if (res.rows != null && res.rows.length > 0) {
// this.zaData = res.rows;
// }
// }).catch((err) => {
// console.log(err);
// this.$message.error("数据加载失败");
// });
axios.get(`JsonData/CODE_AJLB.json`).then((response) => {
if (response.success === true) {
this.zaData = response.data.rows;
}
});
let ajxzId = res.id + "0000";
// queryCodeByType({type: 'CODE_AJXZ', id: ajxzId}).then((res) => {
// if (res.rows != null && res.rows.length > 0) {
// this.laData = res.rows;
// }
// }).catch((err) => {
// console.log(err);
// this.$message.error("数据加载失败");
// });
axios.get(`JsonData/CODE_AJXZ.json`).then((response) => {
if (response.success === true) {
this.laData = response.data.rows;
}
});
},
// zaHandleNodeClick(res) {
// this.laData = [];
// this.xaData = [];
// this.parentLb.id = "";
// this.parentLb.childId = "";
// this.parentLb.parentId = res.id;
// // queryCodeByType({type: 'CODE_AJLB', id: res.id}).then((res) => {
// // if (res.rows != null && res.rows.length > 0) {
// // this.zaData = res.rows;
// // }
// // }).catch((err) => {
// // console.log(err);
// // this.$message.error("数据加载失败");
// // });
// axios.get(`JsonData/CODE_AJLB.json`).then((response) => {
// if (response.success === true) {
// this.zaData = response.data.rows;
// }
// });
// let ajxzId = res.id + "0000";
// // queryCodeByType({type: 'CODE_AJXZ', id: ajxzId}).then((res) => {
// // if (res.rows != null && res.rows.length > 0) {
// // this.laData = res.rows;
// // }
// // }).catch((err) => {
// // console.log(err);
// // this.$message.error("数据加载失败");
// // });
// axios.get(`JsonData/CODE_AJXZ.json`).then((response) => {
// if (response.success === true) {
// this.laData = response.data.rows;
// }
// });
// },
xaHandleNodeClick(data) {
this.parentLb.childId = data.id;
axios.get(`JsonData/CODE_AJXZ.json`).then((response) => {
......
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