|
|
@@ -64,7 +64,7 @@
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
label="Current Useage"
|
|
|
- prop="creditLimitRemainingAmount"
|
|
|
+ prop="creditLimitUsagedAmount"
|
|
|
min-width="140"/>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
@@ -98,8 +98,9 @@
|
|
|
Edit
|
|
|
</el-dropdown-item>
|
|
|
<el-dropdown-item
|
|
|
- command="deleteLimit">
|
|
|
- Delete
|
|
|
+ command="deleteLimit"
|
|
|
+ v-if="row.dataStatus == 'Active'">
|
|
|
+ Set Inactive
|
|
|
</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
@@ -194,7 +195,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
deleteLimit(row) {
|
|
|
- this.$confirm('Are you sure you want to delete this credit limit?', 'Delete', {
|
|
|
+ this.$confirm('Are you sure you want set inactive to this credit limit?', 'Set Inactive', {
|
|
|
confirmButtonText: 'OK',
|
|
|
cancelButtonText: 'Cancel',
|
|
|
type: 'warning'
|
|
|
@@ -205,7 +206,7 @@ export default {
|
|
|
handleDeleteLimit(id) {
|
|
|
limit.deleteCreditLimit(id).then(res => {
|
|
|
this.$message({
|
|
|
- message: 'Delete credit limit successfully',
|
|
|
+ message: 'Set inactive credit limit successfully',
|
|
|
type: 'success'
|
|
|
});
|
|
|
this.getTableData();
|