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
479cddc9
Commit
479cddc9
authored
Aug 25, 2021
by
刘玉帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.....
parent
76f5bd02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
src/components/tjajForm.vue
+3
-1
src/components/treeCode_components.vue
+13
-1
No files found.
src/components/tjajForm.vue
View file @
479cddc9
...
...
@@ -260,11 +260,13 @@ export default {
},
initCode
()
{
let
self
=
this
;
debugger
self
.
ajxxDefaultField
.
data
.
forEach
((
val
,
index
)
=>
{
if
(
val
.
type
==
"code"
||
val
.
type
==
"codeTreeDialog"
)
{
if
(
val
.
codeOptions
.
length
==
0
)
{
axios
.
get
(
`JsonData/
${
val
.
codeTree
}
.json`
).
then
(
response
=>
{
if
(
response
.
success
===
true
)
{
debugger
self
.
$set
(
val
,
"codeOptions"
,
response
.
data
.
rows
);
}
});
...
...
@@ -278,7 +280,7 @@ export default {
if
(
val
.
type
==
"code"
||
val
.
type
==
"codeTreeDialog"
)
{
if
(
val
.
codeOptions
.
length
==
0
)
{
axios
.
get
(
`JsonData/
${
val
.
codeTree
}
.json`
).
then
(
response
=>
{
if
(
response
.
success
===
true
)
{
if
(
response
.
success
)
{
self
.
$set
(
val
,
"codeOptions"
,
response
.
data
.
rows
);
}
});
...
...
src/components/treeCode_components.vue
View file @
479cddc9
...
...
@@ -205,6 +205,19 @@ export default {
},
newValue
(
val
)
{
// if (val != '') {
// let value = this.queryTree(this.curItem.codeOptions, val)[0];
// this.codeTreeConfig.fieldItem = [];
// this.$set(
// this.curFormData,
// this.curItem.id,
// value == undefined ? '' : val
// );
// this.codeTreeConfig.fieldItem.push({
// id: val,
// label: value == undefined ? '' : value
// })
// }
if
(
val
!=
''
)
{
let
value
=
this
.
queryTree
(
this
.
curItem
.
codeOptions
,
val
)[
0
];
this
.
codeTreeConfig
.
fieldItem
=
[];
...
...
@@ -218,7 +231,6 @@ export default {
label
:
value
==
undefined
?
''
:
value
})
}
}
/*curFormData(val){
if(val[this.id]!=''){
...
...
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