|
|
@@ -22,8 +22,8 @@
|
|
22
|
22
|
<el-input v-model="search" size="small" placeholder="请输入标题" />
|
|
23
|
23
|
</template>
|
|
24
|
24
|
<template #default="scope">
|
|
25
|
|
- <el-button size="small" @click="handleEdit(scope.row)">Edit</el-button>
|
|
26
|
|
- <el-button size="small" type="danger" @click="handleDelete(scope.row.id)">Delete</el-button>
|
|
|
25
|
+ <el-button size="small" @click="handleEdit(scope.row)">编辑</el-button>
|
|
|
26
|
+ <el-button size="small" type="danger" @click="handleDelete(scope.row.id)">删除</el-button>
|
|
27
|
27
|
</template>
|
|
28
|
28
|
</el-table-column>
|
|
29
|
29
|
</el-table>
|
|
|
@@ -197,7 +197,7 @@ const filterTableData = computed(() =>
|
|
197
|
197
|
)
|
|
198
|
198
|
|
|
199
|
199
|
const handleEdit = (row: Acitvity) => {
|
|
200
|
|
- fileList.value = [];
|
|
|
200
|
+ fileList.value = [];
|
|
201
|
201
|
ruleForm.title = row.title;
|
|
202
|
202
|
ruleForm.content = row.content;
|
|
203
|
203
|
ruleForm.file = row.file.split(',');
|