|
@@ -81,17 +81,37 @@
|
|
|
<template v-for="(item, index) in opera">
|
|
|
<template v-if="display(item, row)">
|
|
|
<el-tooltip v-if="item.icon" :key="index" effect="dark" :content="item.label" placement="bottom">
|
|
|
- <el-button
|
|
|
+ <!-- <el-button
|
|
|
:key="index"
|
|
|
type="text"
|
|
|
:icon="item.icon || ''"
|
|
|
size="mini"
|
|
|
@click="handleOpera(row, item.method, item.confirm, item.methodZh, item.label, $index)"
|
|
|
- ></el-button>
|
|
|
+ ></el-button> -->
|
|
|
+ <el-link
|
|
|
+ :key="index"
|
|
|
+ :type="item.type || 'primary'"
|
|
|
+ :icon="item.icon || ''"
|
|
|
+ size="mini"
|
|
|
+ :underline="false"
|
|
|
+ @click="handleOpera(row, item.method, item.confirm, item.methodZh, item.label, $index)"
|
|
|
+ >
|
|
|
+ </el-link>
|
|
|
</el-tooltip>
|
|
|
- <el-button v-else :key="index" type="text" size="mini" @click="handleOpera(row, item.method, item.confirm, item.methodZh, item.label, $index)">
|
|
|
+ <el-link
|
|
|
+ v-else
|
|
|
+ :key="index"
|
|
|
+ :type="item.type || 'primary'"
|
|
|
+ :icon="item.icon || ''"
|
|
|
+ size="mini"
|
|
|
+ :underline="false"
|
|
|
+ @click="handleOpera(row, item.method, item.confirm, item.methodZh, item.label, $index)"
|
|
|
+ >
|
|
|
+ {{ item.label }}
|
|
|
+ </el-link>
|
|
|
+ <!-- <el-button v-else :key="index" type="text" size="mini" @click="handleOpera(row, item.method, item.confirm, item.methodZh, item.label, $index)">
|
|
|
{{ item.label }}
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
</template>
|
|
|
</template>
|
|
|
</template>
|