Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datax-cloud
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
黄营
datax-cloud
Commits
dc41b1a8
Commit
dc41b1a8
authored
Jun 23, 2020
by
yuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.0.0项目初始化
parent
206774fe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletions
+33
-1
DataApiAdd.vue
datax-ui/src/views/market/dataapi/DataApiAdd.vue
+33
-1
No files found.
datax-ui/src/views/market/dataapi/DataApiAdd.vue
View file @
dc41b1a8
...
@@ -139,6 +139,16 @@
...
@@ -139,6 +139,16 @@
</el-table-column>
</el-table-column>
<el-table-column
prop=
"colComment"
label=
"列注释"
align=
"center"
show-overflow-tooltip
>
<el-table-column
prop=
"colComment"
label=
"列注释"
align=
"center"
show-overflow-tooltip
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"reqable"
label=
"是否作为请求参数"
align=
"center"
width=
"50"
>
<
template
slot-scope=
"scope"
>
<el-checkbox
v-model=
"scope.row.reqable"
></el-checkbox>
</
template
>
</el-table-column>
<el-table-column
prop=
"resable"
label=
"是否作为返回参数"
align=
"center"
width=
"50"
>
<
template
slot-scope=
"scope"
>
<el-checkbox
v-model=
"scope.row.resable"
></el-checkbox>
</
template
>
</el-table-column>
</el-table>
</el-table>
</el-form-item>
</el-form-item>
<el-row
v-if=
"form2.configType === '2'"
>
<el-row
v-if=
"form2.configType === '2'"
>
...
@@ -328,6 +338,28 @@ export default {
...
@@ -328,6 +338,28 @@ export default {
}
else
if
(
this
.
active
===
2
)
{
}
else
if
(
this
.
active
===
2
)
{
this
.
$refs
[
'form2'
].
validate
(
valid
=>
{
this
.
$refs
[
'form2'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form2
.
configType
&&
this
.
form2
.
configType
===
'1'
)
{
this
.
form3
.
reqParams
=
this
.
fieldParamList
.
filter
(
item
=>
item
.
reqable
).
map
(
function
(
item
)
{
let
json
=
{}
json
.
paramName
=
item
.
colName
json
.
nullable
=
false
json
.
remark
=
item
.
colComment
json
.
paramType
=
undefined
json
.
whereType
=
undefined
json
.
exampleValue
=
undefined
json
.
defaultValue
=
undefined
return
json
})
this
.
form3
.
resParams
=
this
.
fieldParamList
.
filter
(
item
=>
item
.
resable
).
map
(
function
(
item
)
{
let
json
=
{}
json
.
fieldName
=
item
.
colName
json
.
remark
=
item
.
colComment
json
.
dataType
=
item
.
dataType
json
.
exampleValue
=
undefined
return
json
})
console
.
log
(
this
.
form3
)
}
this
.
active
++
this
.
active
++
}
}
})
})
...
@@ -341,7 +373,7 @@ export default {
...
@@ -341,7 +373,7 @@ export default {
this
.
form2
.
sqlText
=
val
this
.
form2
.
sqlText
=
val
},
},
configTypeSelectChanged
(
val
)
{
configTypeSelectChanged
(
val
)
{
if
(
this
.
form2
.
configType
===
'1'
&&
this
.
form2
.
sourceId
&&
this
.
dbTabl
eOptions
.
length
<=
0
)
{
if
(
this
.
form2
.
configType
===
'1'
&&
this
.
form2
.
sourceId
&&
this
.
tableNam
eOptions
.
length
<=
0
)
{
getDbTables
(
this
.
form2
.
sourceId
).
then
(
response
=>
{
getDbTables
(
this
.
form2
.
sourceId
).
then
(
response
=>
{
if
(
response
.
success
)
{
if
(
response
.
success
)
{
this
.
tableNameOptions
=
response
.
data
this
.
tableNameOptions
=
response
.
data
...
...
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