|
|
@@ -118,24 +118,19 @@
|
|
|
@click="sub(row)"
|
|
|
>提交</el-link>
|
|
|
|
|
|
- <el-popconfirm
|
|
|
- class="ele-action"
|
|
|
- title="确定要删除此信息吗?"
|
|
|
- @confirm="remove(row)"
|
|
|
+ <el-link
|
|
|
+ v-if="
|
|
|
+ row.assignStatus !== 1 &&
|
|
|
+ [0, 3].includes(row.approvalStatus) &&
|
|
|
+ $hasPermission('eom:contact:delete')
|
|
|
+ "
|
|
|
+ type="danger"
|
|
|
+ :underline="false"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ @click="remove(row)"
|
|
|
>
|
|
|
- <template v-slot:reference>
|
|
|
- <el-link
|
|
|
- v-if="
|
|
|
- row.assignStatus !== 1 && [0, 3].includes(row.approvalStatus)
|
|
|
- "
|
|
|
- type="danger"
|
|
|
- :underline="false"
|
|
|
- icon="el-icon-delete"
|
|
|
- >
|
|
|
- 删除
|
|
|
- </el-link>
|
|
|
- </template>
|
|
|
- </el-popconfirm>
|
|
|
+ 删除
|
|
|
+ </el-link>
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
</div>
|
|
|
@@ -511,7 +506,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();
|