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
bee8228e
Commit
bee8228e
authored
Nov 27, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试环境添加调入公海池按钮
parent
638bf017
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
customer.js
src/api/ecw/customer.js
+8
-0
index.vue
src/views/ecw/customer/index.vue
+16
-2
No files found.
src/api/ecw/customer.js
View file @
bee8228e
...
@@ -294,3 +294,11 @@ export function getApproval(id) {
...
@@ -294,3 +294,11 @@ export function getApproval(id) {
params
:
{
id
}
params
:
{
id
}
})
})
}
}
//调入公海池
export
function
testEnterToOpenSea
(
customerId
)
{
return
request
({
url
:
'
/ecw/customer/test-enter-to-open-sea
'
,
method
:
'
get
'
,
params
:
{
customerId
}
})
}
src/views/ecw/customer/index.vue
View file @
bee8228e
...
@@ -127,6 +127,8 @@
...
@@ -127,6 +127,8 @@
<el-table-column
:label=
"$t('国家')"
align=
"center"
prop=
"country"
:formatter=
"countryFormatter"
></el-table-column>
<el-table-column
:label=
"$t('国家')"
align=
"center"
prop=
"country"
:formatter=
"countryFormatter"
></el-table-column>
<el-table-column
:label=
"$t('操作')"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
:label=
"$t('操作')"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
v-show=
"'development' === env"
@
click=
"seasPond(scope.row)"
v-hasPermi=
"['ecw:customer:query']"
>
{{
$t
(
'
掉入公海池
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-view"
@
click=
"handleView(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-view"
@
click=
"handleView(scope.row)"
v-hasPermi=
"['ecw:customer:query']"
>
{{
$t
(
'
查看
'
)
}}
</el-button>
v-hasPermi=
"['ecw:customer:query']"
>
{{
$t
(
'
查看
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
...
@@ -496,8 +498,10 @@
...
@@ -496,8 +498,10 @@
</template>
</template>
<
script
>
<
script
>
import
{
createCustomer
,
updateCustomer
,
deleteCustomer
,
getCustomer
,
import
{
getCustomerPage
,
exportCustomerExcel
}
from
"
@/api/ecw/customer
"
;
createCustomer
,
updateCustomer
,
deleteCustomer
,
getCustomer
,
getCustomerPage
,
exportCustomerExcel
,
testEnterToOpenSea
}
from
"
@/api/ecw/customer
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
CommonStatusEnum
}
from
'
@/utils/constants
'
import
{
CommonStatusEnum
}
from
'
@/utils/constants
'
import
{
uploadFile
}
from
"
@/api/infra/file
"
;
import
{
uploadFile
}
from
"
@/api/infra/file
"
;
...
@@ -521,6 +525,7 @@ export default {
...
@@ -521,6 +525,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
env
:
process
.
env
.
NODE_ENV
,
getDictDatas
,
getDictDatas
,
DICT_TYPE
,
DICT_TYPE
,
// 遮罩层
// 遮罩层
...
@@ -699,6 +704,15 @@ export default {
...
@@ -699,6 +704,15 @@ export default {
handleView
(
row
)
{
handleView
(
row
)
{
this
.
$router
.
push
(
'
/customer/query/
'
+
row
.
id
)
this
.
$router
.
push
(
'
/customer/query/
'
+
row
.
id
)
},
},
/** 调入公海池测试用 */
seasPond
(
row
)
{
testEnterToOpenSea
(
row
.
id
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
this
.
$t
(
'
调入公海池成功!
'
)
this
.
getList
();
}
})
},
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
$router
.
push
(
'
/customer/edit/
'
+
row
.
id
)
this
.
$router
.
push
(
'
/customer/edit/
'
+
row
.
id
)
...
...
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