|
|
@@ -180,22 +180,19 @@
|
|
|
禁用
|
|
|
</el-link>
|
|
|
|
|
|
- <el-popconfirm
|
|
|
- class="ele-action"
|
|
|
- title="确定要删除此信息吗?"
|
|
|
+ <el-link
|
|
|
v-if="
|
|
|
row.assignStatus !== 1 &&
|
|
|
$hasPermission('eom:contact:delete') &&
|
|
|
[0, 3].includes(row.approvalStatus)
|
|
|
"
|
|
|
- @confirm="remove(row)"
|
|
|
+ type="danger"
|
|
|
+ :underline="false"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ @click="remove(row)"
|
|
|
>
|
|
|
- <template v-slot:reference>
|
|
|
- <el-link type="danger" :underline="false" icon="el-icon-delete">
|
|
|
- 删除
|
|
|
- </el-link>
|
|
|
- </template>
|
|
|
- </el-popconfirm>
|
|
|
+ 删除
|
|
|
+ </el-link>
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
</div>
|
|
|
@@ -587,7 +584,12 @@
|
|
|
this.reload();
|
|
|
});
|
|
|
},
|
|
|
- remove(row) {
|
|
|
+ async remove(row) {
|
|
|
+ try {
|
|
|
+ await this.$confirm('确定要删除此信息吗?', '提示', { type: 'warning' });
|
|
|
+ } catch (e) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
contactDelete([row.id]).then((res) => {
|
|
|
this.$message.success('删除成功!');
|
|
|
this.reload();
|