|
@@ -15,7 +15,7 @@
|
|
|
type="text"
|
|
|
:icon="item.icon || ''"
|
|
|
size="mini"
|
|
|
- @click="handleOpera(row, item.method, item.confirm, item.methodZh)"
|
|
|
+ @click="handleOpera(row, item.method, item.confirm, item.methodZh, item.label)"
|
|
|
></el-button>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
@@ -60,7 +60,10 @@ export default {
|
|
|
} else return cellValue;
|
|
|
}
|
|
|
},
|
|
|
- handleOpera(data, method, confirm = false, methodZh = '操作') {
|
|
|
+ handleOpera(data, method, confirm = false, methodZh, label) {
|
|
|
+ if (!methodZh) {
|
|
|
+ methodZh = label;
|
|
|
+ }
|
|
|
if (confirm) {
|
|
|
this.$confirm(`您确认${methodZh}该数据?`, '提示', {
|
|
|
confirmButtonText: '确定',
|