通知板块 及 功能调整

This commit is contained in:
浅念
2025-08-22 18:27:26 +08:00
parent b319944007
commit 329acaf68d
22 changed files with 1771 additions and 218 deletions
+25
View File
@@ -175,6 +175,15 @@
>
<i class="iconfont-sys"> &#xe64e;</i>跟进记录
</el-link>
<el-link
type="danger"
underline="never"
style="margin-right: 8px"
@click="delectfn(scope.row)"
v-if="hasAuth('customer@delete')"
>
<i class="iconfont-sys">&#xe6d4;</i>删除
</el-link>
</template>
</el-table-column>
</template>
@@ -555,6 +564,22 @@
plzyDialogVisible.value = false
gettableList()
}
const delectfn = (row: any) => {
ElMessageBox.confirm('确定要删除此客户吗?删除后将无法恢复!', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(async () => {
const res = await manageService.crmCustomerDelete({ customer_id: row.id, scene: 'list' })
ElMessage.success(res?.message || '提交成功!')
gettableList()
// 你可以在这里调用接口或做后续处理
})
.catch(() => {
// 用户点击了取消
})
}
</script>
<style scoped lang="scss">