订单处理页面手机号解密优化

master
zccbbg 2 years ago
parent aa09441628
commit 471220c8af

@ -38,11 +38,11 @@
<el-table-column label="收件信息" prop="receiverName" width="280"> <el-table-column label="收件信息" prop="receiverName" width="280">
<template v-slot="scope"> <template v-slot="scope">
<div> <div>
<span>{{ getHiddenName(scope.row.receiverName) }} {{ scope.row.receiverPhone }}</span> <span>{{ scope.row.decrypt?scope.row.receiverName:getHiddenName(scope.row.receiverName) }} {{ scope.row.receiverPhone }}</span>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@click="handleWatch(scope.row.id)" @click="handleWatch(scope.row)"
style="margin-left: 10px" style="margin-left: 10px"
>查看 >查看
</el-button> </el-button>
@ -55,7 +55,7 @@
</div> </div>
<div> <div>
<span>{{ scope.row.receiverProvince }}{{ scope.row.receiverCity }}{{ scope.row.receiverDistrict }}</span> <span>{{ scope.row.receiverProvince }}{{ scope.row.receiverCity }}{{ scope.row.receiverDistrict }}</span>
<span>{{ getHiddenDetailAddress(scope.row.receiverDetailAddress) }}</span> <span>{{ scope.row.decrypt?scope.row.receiverDetailAddress:getHiddenDetailAddress(scope.row.receiverDetailAddress) }}</span>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -478,9 +478,10 @@ export default {
handleUpdate() { handleUpdate() {
this.$modal.msgError("无操作权限"); this.$modal.msgError("无操作权限");
}, },
handleWatch(id) { handleWatch(row) {
getDecryptPhone(id).then(response =>{ getDecryptPhone(row.id).then(response =>{
this.$modal.msgSuccess(response); row.receiverPhone=response;
row.decrypt=true;
}) })
}, },
/** 提交按钮 */ /** 提交按钮 */

Loading…
Cancel
Save