Commit cbda43be by lp784568205

修改节点点击方法

parent 295f0f20
...@@ -998,19 +998,8 @@ export default { ...@@ -998,19 +998,8 @@ export default {
axios.get(`JsonData/CODE_AJXZ.json`).then((response) => { axios.get(`JsonData/CODE_AJXZ.json`).then((response) => {
if (response.success === true) { if (response.success === true) {
this.laData = response.data.rows.filter((val) => { this.laData = response.data.rows.filter((val) => {
if (val.id.indexOf(this.ajzlb, 0) == 0) { return val.parentId == `${this.ajzlb}0000`;
return val;
}
}); });
// response.data.rows.map((item) => {
// this.laData.forEach((good) => {
// if (good.id == item.parentId) {
// this.laData.push(item);
// }
// });
// });
console.log(this.laData);
function compare(id) { function compare(id) {
return function (a, b) { return function (a, b) {
var value1 = a[id]; var value1 = a[id];
...@@ -1205,7 +1194,6 @@ export default { ...@@ -1205,7 +1194,6 @@ export default {
array[1]; array[1];
}, },
shrHighlight(val) { shrHighlight(val) {
debugger
var array = this.jyaq.split(val); var array = this.jyaq.split(val);
this.jyaq = this.jyaq =
array[0] + array[0] +
...@@ -1443,18 +1431,8 @@ export default { ...@@ -1443,18 +1431,8 @@ export default {
axios.get(`JsonData/CODE_AJXZ.json`).then((response) => { axios.get(`JsonData/CODE_AJXZ.json`).then((response) => {
if (response.success === true) { if (response.success === true) {
this.laData = response.data.rows.filter((val) => { this.laData = response.data.rows.filter((val) => {
if (val.id.indexOf(this.ajzlb, 0) == 0) { return val.parentId == `${this.ajzlb}0000`;
return val;
}
}); });
response.data.rows.map((item) => {
this.laData.forEach((good) => {
if (good.id == item.parentId) {
// this.laData.push(item);
}
});
});
console.log(this.laData);
} }
}); });
axios.get(`JsonData/CODE_AJXLB.json`).then((response) => { axios.get(`JsonData/CODE_AJXLB.json`).then((response) => {
...@@ -1601,28 +1579,20 @@ export default { ...@@ -1601,28 +1579,20 @@ export default {
this.xaData = []; this.xaData = [];
this.parentLb.childId = ""; this.parentLb.childId = "";
this.parentLb.id = res.id; this.parentLb.id = res.id;
// queryCodeByType({type: 'CODE_AJXZ', id: res.id}).then((res) => { var laDataData = []
// if (res.rows != null && res.rows.length > 0) { axios.get(`JsonData/CODE_AJXZ.json`).then((response) => {
// this.laData = res.rows; if (response.success === true) {
// } response.data.rows.map((item) =>{
// }).catch((err) => { if(item.parentId == res.id) {
// console.log(err); laDataData.push(item)
// this.$message.error("数据加载失败"); }
// }); })
// axios.get(`JsonData/CODE_AJXZ.json`).then((response) => { if(laDataData.length > 0){
// if (response.success === true) { this.laData = laDataData
// this.laData = response.data.rows; }
// } }
// }); });
// queryCodeByType({type: 'CODE_AJXLB', id: res.id}).then((res) => {
// if (res.rows != null && res.rows.length > 0) {
// this.xaData = res.rows;
// }
// }).catch((err) => {
// console.log(err);
// this.$message.error("数据加载失败");
// });
axios.get(`JsonData/CODE_AJXLB.json`).then((response) => { axios.get(`JsonData/CODE_AJXLB.json`).then((response) => {
if (response.success === true) { if (response.success === true) {
this.xaData = response.data.rows.filter((val) => { this.xaData = response.data.rows.filter((val) => {
......
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