Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
logistics-center
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
前端
logistics-center
Commits
7b5f1c9f
Commit
7b5f1c9f
authored
Jun 28, 2021
by
冯腾骁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物流公司渠道页面完善
parent
c599cf0e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
14 deletions
+26
-14
companyChannels.vue
src/views/logisticsConfiguration/companyChannels.vue
+26
-14
No files found.
src/views/logisticsConfiguration/companyChannels.vue
View file @
7b5f1c9f
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<el-table-column
prop=
"contactWay"
label=
"联系方式"
/>
<el-table-column
prop=
"contactWay"
label=
"联系方式"
/>
<el-table-column
label=
"操作"
>
<el-table-column
label=
"操作"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span
class=
"poi textButton"
@
click=
"
edit
Company(scope.row)"
>
编辑
</span>
<span
class=
"poi textButton"
@
click=
"
update
Company(scope.row)"
>
编辑
</span>
<span
class=
"poi textButton"
@
click=
"removeCompany(scope.row)"
>
删除
</span>
<span
class=
"poi textButton"
@
click=
"removeCompany(scope.row)"
>
删除
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -373,26 +373,38 @@ export default {
...
@@ -373,26 +373,38 @@ export default {
}
}
})
})
},
},
updateChannel
()
{
removeCompany
(
item
)
{
this
.
$confirm
(
'确定删除该物流公司?'
,
'删除'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
axios
({
this
.
axios
({
data
:
this
.
insertChannelParams
,
url
:
'logisticsConfig/logisticsCompany/removeCompany'
,
url
:
'logisticsConfig/logisticsCompany/updateChannel'
,
method
:
'post'
,
method
:
'post'
data
:
{
}).
then
(
res
=>
{
id
:
item
.
id
if
(
res
.
success
)
{
}
this
.
$message
(
"更新成功"
)
}).
then
(
result
=>
{
this
.
getChannelPage
();
if
(
result
.
success
)
{
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
});
this
.
getCompanyPage
();
}
}
})
})
}).
catch
(()
=>
{});
},
},
removeC
ompany
(
item
)
{
removeC
hannel
(
item
)
{
this
.
$confirm
(
'确定删除该
物流公司
?'
,
'删除'
,
{
this
.
$confirm
(
'确定删除该
渠道
?'
,
'删除'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
axios
({
this
.
axios
({
url
:
'logisticsConfig/logisticsCompany/removeC
ompany
'
,
url
:
'logisticsConfig/logisticsCompany/removeC
hannel
'
,
method
:
'post'
,
method
:
'post'
,
data
:
{
data
:
{
id
:
item
.
id
id
:
item
.
id
...
@@ -403,7 +415,7 @@ export default {
...
@@ -403,7 +415,7 @@ export default {
type
:
'success'
,
type
:
'success'
,
message
:
'删除成功!'
message
:
'删除成功!'
});
});
this
.
get
ProductList
();
this
.
get
ChannelPage
();
}
}
})
})
...
...
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