|
@@ -143,6 +143,29 @@ onMounted(() => {
|
|
|
<el-table :data="tableData" style="width: 100%" :max-height="tableMaxHeight" v-loading="loading">
|
|
|
<el-table-column prop="phone" label="电话号码" align="center" :width="130"/>
|
|
|
<el-table-column prop="description" label="备注" align="center" />
|
|
|
+ <el-table-column prop="address" label="操作" align="center" :width="130">
|
|
|
+ <template #default="scope">
|
|
|
+ <div class="flex justify-center space-x-[20px]">
|
|
|
+ <!-- <span class="text-[#165DFF] cursor-pointer" @click="handleEditRow(scope.row)">编辑</span> -->
|
|
|
+ <span class="text-[#165DFF] cursor-pointer">
|
|
|
+ <el-popconfirm
|
|
|
+ width="220"
|
|
|
+ icon-color="#626AEF"
|
|
|
+ title="确认要删除本条数据吗?"
|
|
|
+ @confirm="onConfirm(scope.row)"
|
|
|
+ >
|
|
|
+ <template #reference>
|
|
|
+ <span>删除</span>
|
|
|
+ </template>
|
|
|
+ <template #actions="{ confirm, cancel }">
|
|
|
+ <el-button size="small" @click="cancel">否</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="confirm">是</el-button>
|
|
|
+ </template>
|
|
|
+ </el-popconfirm>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
<pagination
|