Commit bee8228e authored by dcy's avatar dcy

测试环境添加调入公海池按钮

parent 638bf017
......@@ -294,3 +294,11 @@ export function getApproval(id) {
params: {id}
})
}
//调入公海池
export function testEnterToOpenSea(customerId) {
return request({
url: '/ecw/customer/test-enter-to-open-sea',
method: 'get',
params: {customerId}
})
}
......@@ -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" class-name="small-padding fixed-width">
<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)"
v-hasPermi="['ecw:customer:query']">{{$t('查看')}}</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
......@@ -496,8 +498,10 @@
</template>
<script>
import { createCustomer, updateCustomer, deleteCustomer, getCustomer,
getCustomerPage, exportCustomerExcel } from "@/api/ecw/customer";
import {
createCustomer, updateCustomer, deleteCustomer, getCustomer,
getCustomerPage, exportCustomerExcel, testEnterToOpenSea
} from "@/api/ecw/customer";
import { getDictDatas, DICT_TYPE } from '@/utils/dict';
import {CommonStatusEnum} from '@/utils/constants'
import { uploadFile } from "@/api/infra/file";
......@@ -521,6 +525,7 @@ export default {
},
data() {
return {
env:process.env.NODE_ENV,
getDictDatas,
DICT_TYPE,
// 遮罩层
......@@ -699,6 +704,15 @@ export default {
handleView(row) {
this.$router.push('/customer/query/' + row.id)
},
/** 调入公海池测试用 */
seasPond(row) {
testEnterToOpenSea(row.id).then(r => {
if(r.code === 0){
this.$t('调入公海池成功!')
this.getList();
}
})
},
/** 修改按钮操作 */
handleUpdate(row) {
this.$router.push('/customer/edit/' + row.id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment