Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
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
TFMOM
TF-MOM-WEB
Commits
0029ede9
Commit
0029ede9
authored
Apr 19, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通用联动属性组件配置
parent
d0e36c3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
0 deletions
+89
-0
config.js
...ivateComponents/components/GeneralLinkageSelect/config.js
+88
-0
http.js
applications/dee-mes/src/utils/http.js
+1
-0
No files found.
applications/dee-mes/src/privateComponents/components/GeneralLinkageSelect/config.js
0 → 100644
View file @
0029ede9
export
default
{
props
:
{},
layoutConfigData
:
[
{
title
:
'高级组件配置'
,
data
:
[
{
key
:
'linkageAttr'
,
title
:
'联动属性'
,
component
:
{
defaultValue
:
''
,
name
:
'el-input'
}
},
{
key
:
'requestMethod'
,
title
:
'请求方式'
,
width
:
1
,
component
:
{
name
:
'el-select'
,
isLabelTop
:
true
,
options
:
[
{
label
:
'get'
,
value
:
'get'
},
{
label
:
'post'
,
value
:
'post'
}
]
}
},
{
key
:
'requestURL'
,
title
:
'请求url'
,
width
:
1
,
component
:
{
isLabelTop
:
true
,
defaultValue
:
'requestURL=""'
,
name
:
'btnCodeEdit'
,
remindText
:
`requestURL为接口地址变量,直接给赋值,该变量必须有值`
}
},
{
key
:
'requestParameters'
,
title
:
'请求参数'
,
width
:
1
,
component
:
{
isLabelTop
:
true
,
defaultValue
:
'requestParameters = {}'
,
name
:
'btnCodeEdit'
,
remindText
:
`requestParameters为请求参数变量,直接给赋值,该变量必须有值`
}
},
{
key
:
'formateResponse'
,
title
:
'接口返回数据格式化'
,
width
:
1
,
component
:
{
isLabelTop
:
true
,
defaultValue
:
`responseData = res.items.content.map(row => {
return {
value: row.id,
label: row.name
}
})`
,
name
:
'btnCodeEdit'
,
remindText
:
`responseData为接口返回数据`
}
}
]
}
],
data
()
{
return
{
}
},
created
()
{
},
computed
:
{
},
methods
:
{
}
}
applications/dee-mes/src/utils/http.js
View file @
0029ede9
...
...
@@ -25,5 +25,6 @@ function downloadFile(url, type, params, userAction) {
function
downloadZip
(
url
,
type
)
{
return
http
.
downloadZip
(
url
,
type
)
}
export
default
{
get
,
post
,
put
,
del
,
patch
,
downloadFile
,
downloadZip
}
export
{
get
,
post
,
put
,
del
,
patch
,
downloadFile
,
downloadZip
}
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