mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 21:36:44 +08:00
fix:增加课程审核时间字段,类型搜索问题修复
This commit is contained in:
@@ -1,19 +1,11 @@
|
||||
<template>
|
||||
<a-drawer
|
||||
:visible="ProjAuditvisible"
|
||||
class="drawerStyle ProjectAudit"
|
||||
placement="right"
|
||||
width="60%"
|
||||
@after-visible-change="afterVisibleChange"
|
||||
>
|
||||
<a-drawer :visible="ProjAuditvisible" class="drawerStyle ProjectAudit" placement="right" width="60%"
|
||||
@after-visible-change="afterVisibleChange">
|
||||
<div class="drawerMain">
|
||||
<div class="header">
|
||||
<div class="headerTitle">审核项目</div>
|
||||
<img
|
||||
style="width: 29px; height: 29px; cursor: pointer"
|
||||
src="../../assets/images/basicinfo/close.png"
|
||||
@click="closeDrawer"
|
||||
/>
|
||||
<img style="width: 29px; height: 29px; cursor: pointer" src="../../assets/images/basicinfo/close.png"
|
||||
@click="closeDrawer" />
|
||||
</div>
|
||||
<div class="main" style="padding-right: 10px">
|
||||
<a-tabs v-model:activeKey="activeSetKey">
|
||||
@@ -29,19 +21,13 @@
|
||||
<div class="set_content">
|
||||
<div class="setc_name"><span>封面图:</span></div>
|
||||
<div class="setc_main">
|
||||
<img
|
||||
style="width: 151px; height: 84px"
|
||||
:src="picUrl"
|
||||
alt=""
|
||||
/>
|
||||
<img style="width: 151px; height: 84px" :src="picUrl" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="set_content">
|
||||
<div class="setc_name"><span>项目时间:</span></div>
|
||||
<div class="setc_main">
|
||||
<span style="color: #999999"
|
||||
>{{ startTime }} ~ {{ endTime }}</span
|
||||
>
|
||||
<span style="color: #999999">{{ startTime }} ~ {{ endTime }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set_content">
|
||||
@@ -65,11 +51,8 @@
|
||||
<div class="set_content">
|
||||
<div class="setc_name"><span>同步学习记录:</span></div>
|
||||
<div class="setc_main">
|
||||
<a-radio v-model:checked="checkedSty"
|
||||
><span style="color: #333333"
|
||||
>同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)</span
|
||||
></a-radio
|
||||
>
|
||||
<a-radio v-model:checked="checkedSty"><span
|
||||
style="color: #333333">同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)</span></a-radio>
|
||||
</div>
|
||||
</div>
|
||||
<div class="set_content">
|
||||
@@ -87,9 +70,7 @@
|
||||
<div class="set_content">
|
||||
<div class="setc_name"><span>是否BOEU实施:</span></div>
|
||||
<div class="setc_main">
|
||||
<a-radio v-model:checked="checkedBOEU"
|
||||
><span style="color: #333333">BOEU实施</span></a-radio
|
||||
>
|
||||
<a-radio v-model:checked="checkedBOEU"><span style="color: #333333">BOEU实施</span></a-radio>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -101,7 +82,7 @@
|
||||
</button>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2" tab="修改记录"></a-tab-pane>
|
||||
<!-- <a-tab-pane key="2" tab="修改记录"></a-tab-pane> -->
|
||||
</a-tabs>
|
||||
<div class="audit">
|
||||
<div class="set_content">
|
||||
|
||||
@@ -14,35 +14,24 @@
|
||||
<div class="tmplh_inp">
|
||||
<div class="inpbox">
|
||||
<div class="inpbox1">
|
||||
<a-select
|
||||
v-model:value="valueproj"
|
||||
value-key="value"
|
||||
:options="[{label:'请选择内容分类',value:''},...calssifyList]"
|
||||
/>
|
||||
<a-select v-model:value="valueproj" value-key="value"
|
||||
:options="[{ label: '请选择内容分类', value: '' }, ...calssifyList]" />
|
||||
</div>
|
||||
<div class="inpbox1">
|
||||
<a-input
|
||||
v-model:value="valuecreater"
|
||||
style="
|
||||
<a-input v-model:value="valuecreater" style="
|
||||
width: 270px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
margin-right: 14px;
|
||||
"
|
||||
placeholder="请输入创建人"
|
||||
/>
|
||||
" placeholder="请输入创建人" />
|
||||
</div>
|
||||
<div class="inpbox1">
|
||||
<a-input
|
||||
v-model:value="valuename"
|
||||
style="
|
||||
<a-input v-model:value="valuename" style="
|
||||
width: 270px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
margin-right: 14px;
|
||||
"
|
||||
placeholder="请输入名称"
|
||||
/>
|
||||
" placeholder="请输入名称" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -59,28 +48,13 @@
|
||||
</div>
|
||||
<div class="tmpl_body">
|
||||
<div class="tmpl_tabbox">
|
||||
<a-table
|
||||
:columns="columns1"
|
||||
:data-source="tableData1"
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
expandRowByClick="true"
|
||||
@expand="expandTable"
|
||||
:scroll="{ x: 1300 }"
|
||||
:pagination="false"
|
||||
/>
|
||||
<a-table :columns="columns1" :data-source="tableData1" :loading="tableDataTotal === -1 ? true : false"
|
||||
expandRowByClick="true" @expand="expandTable" :scroll="{ x: 1300 }" :pagination="false" />
|
||||
</div>
|
||||
<div class="tableBox">
|
||||
<div class="pa">
|
||||
<a-pagination
|
||||
v-if="total > 10"
|
||||
showSizeChanger="true"
|
||||
show-quick-jumper
|
||||
:pageSize="pageSize"
|
||||
v-model:current="currentPage"
|
||||
:total="total"
|
||||
class="pagination"
|
||||
@change="changePagination"
|
||||
/>
|
||||
<a-pagination v-if="total > 10" showSizeChanger="true" show-quick-jumper :pageSize="pageSize"
|
||||
v-model:current="currentPage" :total="total" class="pagination" @change="changePagination" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -91,6 +65,7 @@
|
||||
import { reactive, toRefs, onMounted } from "vue";
|
||||
import { courseListView } from "../../api/indexAudit";
|
||||
import * as api1 from "@/api/index1";
|
||||
import { toDate } from "../../api/method";
|
||||
|
||||
export default {
|
||||
name: "CoursereViewed",
|
||||
@@ -147,6 +122,11 @@ export default {
|
||||
dataIndex: "time",
|
||||
key: "time",
|
||||
align: "center",
|
||||
customRender: (time) => {
|
||||
console.log(time)
|
||||
return <div style="color:#387DF7">{toDate(time, "Y-M-D h:m")}</div>;
|
||||
},
|
||||
|
||||
},
|
||||
{
|
||||
title: "审核说明",
|
||||
@@ -154,15 +134,15 @@ export default {
|
||||
key: "msg",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "操作",
|
||||
dataIndex: "opt",
|
||||
key: "opt",
|
||||
align: "center",
|
||||
customRender: () => {
|
||||
return <div style="color:#387DF7">审核日志</div>;
|
||||
},
|
||||
},
|
||||
// {
|
||||
// title: "操作",
|
||||
// dataIndex: "opt",
|
||||
// key: "opt",
|
||||
// align: "center",
|
||||
// customRender: () => {
|
||||
// return <div style="color:#387DF7">审核日志</div>;
|
||||
// },
|
||||
// },
|
||||
],
|
||||
tableData1: [
|
||||
// {
|
||||
@@ -180,12 +160,13 @@ export default {
|
||||
const getList = () => {
|
||||
let objn = {
|
||||
auditStatus: 0,
|
||||
categoryId: state.valueproj,
|
||||
categoryId: Number(state.valueproj),
|
||||
createName: state.valuecreater,
|
||||
name: state.valuename,
|
||||
pageNo: state.currentPage,
|
||||
pageSize: 10,
|
||||
};
|
||||
console.log(objn)
|
||||
courseListView(objn)
|
||||
.then((res) => {
|
||||
console.log("获取已审核课程成功", res.data.data);
|
||||
@@ -220,7 +201,7 @@ export default {
|
||||
? "拒绝"
|
||||
: "-",
|
||||
creater: item.createName,
|
||||
time: "-",
|
||||
time: item.createTime,
|
||||
msg: item.description || "-",
|
||||
};
|
||||
array.push(obj);
|
||||
|
||||
Reference in New Issue
Block a user