|
|
@@ -46,7 +46,8 @@
|
|
|
<div class="filter-flex-button">
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
- @click="onClickAdd">
|
|
|
+ @click="onClickAdd"
|
|
|
+ v-if="!$route.meta.onlyView">
|
|
|
Amend Credit
|
|
|
</el-button>
|
|
|
</div>
|
|
|
@@ -63,7 +64,11 @@
|
|
|
<template slot-scope="{row}">
|
|
|
<div
|
|
|
class="link-type"
|
|
|
- @click="onClickEdit(row)">
|
|
|
+ @click="onClickEdit(row)"
|
|
|
+ v-if="$route.meta.onlyView">
|
|
|
+ {{row.creditActionId}}
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
{{row.creditActionId}}
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -220,8 +225,10 @@ export default {
|
|
|
this.dialog.visible = true;
|
|
|
},
|
|
|
onClickEdit(row) {
|
|
|
- this.dialog.request = row.creditActionId;
|
|
|
- this.dialog.visible = true;
|
|
|
+ if (this.$route.meta.onlyView) {
|
|
|
+ this.dialog.request = row.creditActionId;
|
|
|
+ this.dialog.visible = true;
|
|
|
+ }
|
|
|
},
|
|
|
hideDialog(e) {
|
|
|
this.dialog.request = "";
|