Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
95b1d12a
Commit
95b1d12a
authored
Jul 04, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公海池客户捞取
parent
cc3cbf87
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
4 deletions
+28
-4
customer.js
src/api/ecw/customer.js
+4
-2
index.vue
src/views/ecw/oceanCustomer/index.vue
+24
-2
No files found.
src/api/ecw/customer.js
View file @
95b1d12a
...
...
@@ -117,9 +117,11 @@ export function getPublicList(query) {
}
//捞取
export
function
setFishing
(
query
){
export
function
setFishing
(
data
){
return
request
({
url
:
''
,
url
:
'
/ecw/customer/catch-open-sea-customer
'
,
method
:
'
put
'
,
data
:
data
})
}
...
...
src/views/ecw/oceanCustomer/index.vue
View file @
95b1d12a
...
...
@@ -90,7 +90,7 @@
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-folder-add"
@
click=
"distribution(scope.row)"
>
移交
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-crop"
>
捞取
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-crop"
@
click=
"fishingFn(scope.row)"
>
捞取
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -120,7 +120,7 @@
</template>
<
script
>
import
{
createCustomer
,
updateCustomer
,
deleteCustomer
,
handOverCustomer
,
getPublicList
,
exportCustomerExcel
}
from
"
@/api/ecw/customer
"
;
import
{
createCustomer
,
updateCustomer
,
deleteCustomer
,
handOverCustomer
,
getPublicList
,
exportCustomerExcel
,
setFishing
}
from
"
@/api/ecw/customer
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
upload
from
'
@/components/ImageUpload
'
import
{
listServiceUser
}
from
"
@/api/system/user
"
;
...
...
@@ -365,6 +365,28 @@ export default {
}
})
},
fishingFn
(
row
){
this
.
$confirm
(
`是否要捞取
${
row
.
name
}
的客户`
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
setFishing
({
id
:
row
.
id
}
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
this
.
getList
()
this
.
$message
({
type
:
'
success
'
,
message
:
'
捞取成功!
'
});
}
})
}).
catch
(()
=>
{
this
.
$message
({
type
:
'
info
'
,
message
:
'
已取消捞取
'
});
});
}
}
};
</
script
>
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