Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
41d7a0e3
Commit
41d7a0e3
authored
Jan 11, 2022
by
lp784568205
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了标注
parent
b2efa683
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
33 deletions
+48
-33
src/views/ajbzDetail.vue
+48
-33
No files found.
src/views/ajbzDetail.vue
View file @
41d7a0e3
...
@@ -911,7 +911,6 @@ export default {
...
@@ -911,7 +911,6 @@ export default {
// value: "zfb",
// value: "zfb",
// label: "支付宝账号",
// label: "支付宝账号",
// },
// },
// {
// {
// value: "carid",
// value: "carid",
// label: "车牌号",
// label: "车牌号",
...
@@ -1001,6 +1000,13 @@ export default {
...
@@ -1001,6 +1000,13 @@ export default {
this
.
laData
=
response
.
data
.
rows
.
filter
((
val
)
=>
{
this
.
laData
=
response
.
data
.
rows
.
filter
((
val
)
=>
{
return
val
.
parentId
==
`
${
this
.
ajzlb
}
0000`
;
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
;
this
.
parentLb
.
id
=
this
.
ajxzlb
;
}
}
});
});
...
@@ -1424,7 +1430,16 @@ export default {
...
@@ -1424,7 +1430,16 @@ 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
)
=>
{
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
);
}
});
});
});
}
}
});
});
...
@@ -1434,7 +1449,7 @@ export default {
...
@@ -1434,7 +1449,7 @@ export default {
if
(
val
.
id
.
indexOf
(
this
.
ajzlb
,
0
)
==
0
)
{
if
(
val
.
id
.
indexOf
(
this
.
ajzlb
,
0
)
==
0
)
{
return
val
;
return
val
;
}
}
});
;
});
}
}
});
});
},
},
...
@@ -1521,40 +1536,40 @@ export default {
...
@@ -1521,40 +1536,40 @@ export default {
// }
// }
},
},
zaHandleNodeClick
(
res
)
{
// zaHandleNodeClick(res) {
this
.
laData
=
[];
// this.laData = [];
this
.
xaData
=
[];
// this.xaData = [];
this
.
parentLb
.
id
=
""
;
// this.parentLb.id = "";
this
.
parentLb
.
childId
=
""
;
// this.parentLb.childId = "";
this
.
parentLb
.
parentId
=
res
.
id
;
// this.parentLb.parentId = res.id;
// queryCodeByType({type: 'CODE_AJLB', id: res.id}).then((res) => {
// // queryCodeByType({type: 'CODE_AJLB', id: res.id}).then((res) => {
// if (res.rows != null && res.rows.length > 0) {
// // if (res.rows != null && res.rows.length > 0) {
// this.zaData = res.rows;
// // 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;
// }
// }
// }).catch((err) => {
// console.log(err);
// this.$message.error("数据加载失败");
// });
// });
axios
.
get
(
`JsonData/CODE_AJLB.json`
).
then
((
response
)
=>
{
// let ajxzId = res.id + "0000";
if
(
response
.
success
===
true
)
{
// // queryCodeByType({type: 'CODE_AJXZ', id: ajxzId}).then((res) => {
this
.
zaData
=
response
.
data
.
rows
;
// // if (res.rows != null && res.rows.length > 0) {
}
// // this.laData = res.rows;
});
// // }
let
ajxzId
=
res
.
id
+
"0000"
;
// // }).catch((err) => {
// queryCodeByType({type: 'CODE_AJXZ', id: ajxzId}).then((res) => {
// // console.log(err);
// if (res.rows != null && res.rows.length > 0) {
// // this.$message.error("数据加载失败");
// this.laData = res.rows;
// // });
// axios.get(`JsonData/CODE_AJXZ.json`).then((response) => {
// if (response.success === true) {
// this.laData = response.data.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
)
{
xaHandleNodeClick
(
data
)
{
this
.
parentLb
.
childId
=
data
.
id
;
this
.
parentLb
.
childId
=
data
.
id
;
axios
.
get
(
`JsonData/CODE_AJXZ.json`
).
then
((
response
)
=>
{
axios
.
get
(
`JsonData/CODE_AJXZ.json`
).
then
((
response
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment