mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 14:26:45 +08:00
提交
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user