This commit is contained in:
Pengxiansen
2025-02-24 20:24:27 +08:00
parent 8627d11239
commit 76a7070020
15 changed files with 254 additions and 140 deletions

View File

@@ -640,18 +640,19 @@ const columns = ref([
align: "center",
customRender: ({ record }) => {
return (
<div class="opa">
<a style="margin-right:10px;" onClick={() => planEdit(record)}>
编辑
</a>
<a onClick={() => del(record.id, record)}>删除</a>
</div>
record.type == 4 && (
<div class="opa">
<a style="margin-right:10px;" onClick={() => planEdit(record)}>
编辑
</a>
<a onClick={() => del(record.id, record)}>删除</a>
</div>
)
);
},
},
]);
const params = ref({
type: props.type,
offcourseId: "",
taskId: "",
createBeginTime: "",
@@ -866,7 +867,6 @@ function search() {
const resetTime = ref();
function reset() {
tableRef.value.reset({
type: props.type,
offcourseId: params.value.offcourseId,
});
resetTime.value.resetTime();
@@ -893,7 +893,6 @@ const closeDrawer = () => {
} else {
openCourseVisible.value = false;
tableRef.value.reset({
type: props.type,
offcourseId: params.value.offcourseId,
});
emit("refresh");