课程推荐查看列表

This commit is contained in:
zhangsir
2023-09-22 17:31:46 +08:00
parent 57fda551d1
commit ab271a82ad
2 changed files with 64 additions and 22 deletions

View File

@@ -12,7 +12,8 @@
@ok="handleCancel" @ok="handleCancel"
class="modal" class="modal"
> >
<div class="title">项目管理系列课</div> <div class="header">项目管理系列课</div>
<div class="title">
<dl> <dl>
<dt>推荐值27</dt> <dt>推荐值27</dt>
<dt>推荐组织京东方大学堂</dt> <dt>推荐组织京东方大学堂</dt>
@@ -23,6 +24,8 @@
<a-input v-model:value="value" placeholder="请输入姓名" /> <a-input v-model:value="value" placeholder="请输入姓名" />
<a-button type="primary">搜索</a-button> <a-button type="primary">搜索</a-button>
</div> </div>
</div>
<!-- 表格 --> <!-- 表格 -->
<div class="tableBox"> <div class="tableBox">
<a-table style="border: 1px solid #f2f6fe" :columns="column" :data-source="data" <a-table style="border: 1px solid #f2f6fe" :columns="column" :data-source="data"
@@ -32,7 +35,7 @@
<a-space style="padding-right: 10px"> <a-space style="padding-right: 10px">
<a-button <a-button
@click="() => handleLook()" @click="() => handleLook(record, String(record.courseform))"
type="link" type="link"
>查看详情 >查看详情
</a-button> </a-button>
@@ -47,6 +50,11 @@
</div> </div>
</a-modal> </a-modal>
<SeeModal
:visible="lookCourseModal"
:detail="faceDetailObj"
@cancel="ft_exit_see"
/>
</template> </template>
<script> <script>
@@ -61,6 +69,7 @@ import {
} from "@/api/case"; } from "@/api/case";
import { Form, message,} from "ant-design-vue"; import { Form, message,} from "ant-design-vue";
import SeeModal from "@/components/courserecommended/CourseCheck.vue";
// const { resetFields } = Form.useForm(searchData, {}); // const { resetFields } = Form.useForm(searchData, {});
@@ -87,10 +96,32 @@ export default defineComponent({
components: { components: {
// OrgClassCheck, // OrgClassCheck,
OrgClass, OrgClass,
SeeModal,
}, },
setup(props, { emit }) { setup(props, { emit }) {
// 预览弹框 开启和关闭
const ft_exit_see = () => {
state.lookCourseModal = false;
};
const handleLook = async (itm, type) => {
// // if (type === "1") {
// // return;
// // }
// // state.offcourseId = itm.id;
// // const item = await detail({
// // offcourseId: Number(state.offcourseId),
// // }).then((res) => {
// // if (res.data.code === 200) return res.data.data;
// // });
state.lookCourseModal = true;
// // item.attach = item.attach == "" ? [] : item.attach.split(",");
// // state.faceDetailObj = item;
// // console.log("获取查看信息", item);
};
// // 查询数据 // // 查询数据
const searchData = ref({ const searchData = ref({
pageIndex: 1, pageIndex: 1,
@@ -125,6 +156,8 @@ getList()
const store = useStore(); const store = useStore();
const state = reactive({ const state = reactive({
faceDetailObj:{},
lookCourseModal:false,
tableLoading:false, tableLoading:false,
imgList: [], imgList: [],
categoryName: "", categoryName: "",
@@ -192,6 +225,14 @@ getList()
return text ? text : "-"; return text ? text : "-";
}, },
}, },
{
title: "操作",
width: "10%",
dataIndex: "operation",
key: "operation",
align: "center",
slots: { customRender: "operation" },
},
], ],
data:[] data:[]
@@ -315,6 +356,8 @@ getList()
searchData, searchData,
getList, getList,
handelChangePage, handelChangePage,
handleLook,
ft_exit_see,
}; };
}, },
}); });
@@ -323,7 +366,7 @@ getList()
.modal{ .modal{
overflow-y: auto; overflow-y: auto;
} }
.title{ .header{
// background-color: rgba(255, 255, 255, 0); // background-color: rgba(255, 255, 255, 0);
box-sizing: border-box; box-sizing: border-box;
font-weight: 650; font-weight: 650;
@@ -331,8 +374,10 @@ getList()
text-align: left; text-align: left;
padding:20px 0 16px 19px; padding:20px 0 16px 19px;
border-bottom: 1px solid rgba(121, 121, 121, 0.38); border-bottom: 1px solid rgba(121, 121, 121, 0.38);
}
margin-bottom: 18px; .title{
display: flex;
justify-content: space-between;
} }
dl{ dl{
display: flex; display: flex;
@@ -341,7 +386,7 @@ getList()
color: #333333; color: #333333;
text-align: left; text-align: left;
margin-left: 19px; margin-left: 19px;
margin-bottom: 19px; margin-top: 25px;
} }
dl dt{ dl dt{
padding-right: 70px; padding-right: 70px;
@@ -351,6 +396,7 @@ getList()
.inp{ .inp{
text-align: right; text-align: right;
margin-bottom: 32px; margin-bottom: 32px;
margin-top: 17px;
} }
.ant-input{ .ant-input{
width: 130px; width: 130px;

View File

@@ -50,7 +50,7 @@
<a-button @click="() => handleOper(record, 'withdraw', record.pushProgress)" type="link"> <a-button @click="() => handleOper(record, 'withdraw', record.pushProgress)" type="link">
{{ state.status[record.pushProgress] }} {{ state.status[record.pushProgress] }}
</a-button> </a-button>
<a-button @click="handleOper(record, 'del')" type="link">删除 <a-button @click="handleOper(record, 'del')" danger type="link">删除
</a-button> </a-button>
</a-space> </a-space>
</template> </template>
@@ -311,7 +311,7 @@ const authenticationColumn = {
align: "center", align: "center",
slots: { customRender: "operation" }, slots: { customRender: "operation" },
} }
const lookCourseModal = ref(true) const lookCourseModal = ref(false)
const faceDetailObj = ref({}) const faceDetailObj = ref({})
const state = reactive({ const state = reactive({
@@ -433,11 +433,7 @@ const handleRest = () => {
const handleNew = () => { const handleNew = () => {
newNext.value = true; newNext.value = true;
}; };
// return {
// ...toRefs(state),
// handleLook,
// ft_exit_see,
// }
</script> </script>
<style lang="scss"> <style lang="scss">
.clearfix:before, .clearfix:before,