Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
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
杨硕
template_vue
Commits
a06c7146
Commit
a06c7146
authored
Mar 21, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.测试按钮
parent
12f77bd4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
1 deletion
+50
-1
incomeWmsLabel.js
src/api/incomeWmsLabel.js
+9
-0
incomeWmsLabel.vue
src/views/template/incomeWmsLabel.vue
+41
-1
No files found.
src/api/incomeWmsLabel.js
View file @
a06c7146
...
@@ -66,3 +66,12 @@ export function exportIncomeWmsLabel(query) {
...
@@ -66,3 +66,12 @@ export function exportIncomeWmsLabel(query) {
responseType
:
'blob'
responseType
:
'blob'
})
})
}
}
// 7.测试接口
export
function
test
(
query
)
{
return
request
({
url
:
'/incomewmslabel/test'
,
method
:
'get'
,
params
:
query
,
})
}
src/views/template/incomeWmsLabel.vue
View file @
a06c7146
...
@@ -180,6 +180,15 @@
...
@@ -180,6 +180,15 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
style=
"margin-left: 107px;float: left;"
class=
"commonField.exportClass"
:type=
"commonField.typeSuccess"
:icon=
"commonField.exportIcon"
:size=
"commonField.smallSize"
@
click=
"test"
:loading=
"testLoading"
>
测试
</el-button>
<el-button
class=
"cancelBtn"
@
click=
"cancel"
>
取 消
</el-button>
<el-button
class=
"cancelBtn"
@
click=
"cancel"
>
取 消
</el-button>
<el-button
:loading=
"addLoading"
class=
"submitBtn"
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
:loading=
"addLoading"
class=
"submitBtn"
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
</div>
</div>
...
@@ -194,12 +203,15 @@ import {
...
@@ -194,12 +203,15 @@ import {
delIncomeWmsLabel
,
delIncomeWmsLabel
,
addIncomeWmsLabel
,
addIncomeWmsLabel
,
updateIncomeWmsLabel
,
updateIncomeWmsLabel
,
exportIncomeWmsLabel
}
from
'@/api/incomeWmsLabel'
exportIncomeWmsLabel
,
test
}
from
'@/api/incomeWmsLabel'
import
commonField
from
'@/utils/commonField'
import
commonField
from
'@/utils/commonField'
export
default
{
export
default
{
name
:
'IncomeWmsLabel'
,
name
:
'IncomeWmsLabel'
,
data
()
{
data
()
{
return
{
return
{
// 测试按钮loading
testLoading
:
false
,
// 新增确认按钮loading
// 新增确认按钮loading
addLoading
:
false
,
addLoading
:
false
,
// 遮罩层
// 遮罩层
...
@@ -260,6 +272,34 @@ export default {
...
@@ -260,6 +272,34 @@ export default {
this
.
getList
()
// 列表查询
this
.
getList
()
// 列表查询
},
},
methods
:
{
methods
:
{
/**
* @description: 测试接口
* @author: gaoyu
* @param:
* @return:
**/
test
()
{
if
(
this
.
form
.
mac
&&
this
.
form
.
mac
!==
undefined
&&
this
.
form
.
mac
!==
''
)
{
this
.
testLoading
=
true
// 调接口
const
obj
=
{
mac
:
this
.
form
.
mac
}
test
(
obj
).
then
(
res
=>
{
if
(
res
.
data
)
{
this
.
testLoading
=
false
this
.
$message
.
success
(
"成功"
)
}
else
{
this
.
testLoading
=
false
this
.
$message
.
error
(
"失败"
)
}
}).
catch
(()
=>
{
this
.
testLoading
=
false
})
}
else
{
this
.
$refs
.
form
.
validateField
(
"mac"
)
}
},
/**
/**
* @description: 提交时校验parms中的数据
* @description: 提交时校验parms中的数据
* @author: gaoyu
* @author: gaoyu
...
...
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