feat:合并

This commit is contained in:
lixg
2022-11-30 12:03:59 +08:00
16 changed files with 453 additions and 356 deletions

View File

@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com * @Author: lixg lixg@dongwu-inc.com
* @Date: 2022-11-04 22:45:31 * @Date: 2022-11-04 22:45:31
* @LastEditors: lixg lixg@dongwu-inc.com * @LastEditors: lixg lixg@dongwu-inc.com
* @LastEditTime: 2022-11-29 18:17:23 * @LastEditTime: 2022-11-30 10:39:27
* @FilePath: /fe-manage/src/api/index1.js * @FilePath: /fe-manage/src/api/index1.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
@@ -130,7 +130,7 @@ export const orgtree = () => http.get("/org/tree");
//获取积分列表 //获取积分列表
export const noticeList = (projectId) => export const noticeList = (projectId) =>
http.post( http.post(
`http://localhost:8080/api/admin/project/noticeList?projectId=` + `/admin/project/noticeList?projectId=` +
projectId + projectId +
`` ``
); );

View File

@@ -21,3 +21,5 @@ export const queryExaminationList = (obj) => http.post('/examination/queryExamin
export const queryExaminationAloneExtendList = (obj) => http.post('/examination/queryExaminationAloneExtendList', obj); export const queryExaminationAloneExtendList = (obj) => http.post('/examination/queryExaminationAloneExtendList', obj);
// 对接三方考试任务保存接口-三方 // 对接三方考试任务保存接口-三方
export const examinationTaskSave = (obj) => http.post('/examination/examinationTaskSave', obj); export const examinationTaskSave = (obj) => http.post('/examination/examinationTaskSave', obj);
//编辑考试信息
export const updateExamination = (obj) => http.post('/examination/updateExamination', obj);

View File

@@ -12,7 +12,7 @@ import http from "./config";
// 接口-请求 // 接口-请求
//查询在线课信息列表接口 //查询在线课信息列表接口
export const queryOnlinelList = (obj) => http.post('/queryOnlineClassesDetailList', obj) export const queryOnlinelList = (obj) => http.post('/onlineClasses/queryOnlineClassesDetailList', obj)

View File

@@ -160,7 +160,6 @@ export default {
currentPage: 1, currentPage: 1,
tableDataTotal: 0, tableDataTotal: 0,
pageSize: 10, pageSize: 10,
searching:false,
selectedRowKeys: [], selectedRowKeys: [],
apiTaskList: [], apiTaskList: [],
inputV1: "", inputV1: "",
@@ -222,23 +221,6 @@ export default {
const getTableDate = (tableData) => { const getTableDate = (tableData) => {
let data = tableData; let data = tableData;
let array = []; let array = [];
if(state.searching){
data.map((value, index) => {
let obj = {
key: index,
authorId: value.authorId,
authorName: value.authorName,
companyId: value.companyId,
coverUrl: value.coverUrl,
id: value.id,
casesId: value.casesId,
title: value.title,
};
if(obj.title == state.inputV1){
array.push(obj);
}
});
} else {
data.map((value, index) => { data.map((value, index) => {
let obj = { let obj = {
key: index, key: index,
@@ -252,7 +234,6 @@ export default {
}; };
array.push(obj); array.push(obj);
}); });
}
state.tableData = array; state.tableData = array;
}; };
//获取全部案例信息接口 //获取全部案例信息接口
@@ -264,7 +245,7 @@ export default {
orderField: "", orderField: "",
pageIndex: state.currentPage, pageIndex: state.currentPage,
pageSize: state.pageSize, pageSize: state.pageSize,
top: true, isTop: "",
}) })
.then((res) => { .then((res) => {
if (res.status === 200) { if (res.status === 200) {
@@ -318,10 +299,6 @@ export default {
} }
} else if (props.isLevel == 3) { } else if (props.isLevel == 3) {
for (let i = 0; i < state.apiTaskList.length; i++) { for (let i = 0; i < state.apiTaskList.length; i++) {
console.log(
state.apiTaskList[i],
"state.apiTaskList[i].caseIdstate.apiTaskList[i].caseId"
);
apiTask apiTask
.addTask({ .addTask({
courseId: state.apiTaskList[i].caseid, courseId: state.apiTaskList[i].caseid,
@@ -349,17 +326,14 @@ export default {
//搜索案例列表 //搜索案例列表
const searchList = ()=> { const searchList = ()=> {
if(state.inputV1 !== ''){ if(state.inputV1 !== ''){
state.searching = true
getAllCaseText() getAllCaseText()
}else { }else {
state.searching = false
resetCase() resetCase()
} }
} }
//重置案例信息 //重置案例信息
const resetCase = () => { const resetCase = () => {
state.inputV1 = "" state.inputV1 = ""
state.searching = false
state.selectedRowKeys=[] state.selectedRowKeys=[]
state.currentPage = 1 state.currentPage = 1
getAllCaseText(); getAllCaseText();

View File

@@ -198,7 +198,6 @@ export default {
time: undefined, time: undefined,
onlineClassesId: null, onlineClassesId: null,
onlineName: "", onlineName: "",
searching:false,
selectV: "", selectV: "",
selectedRowKeys: [], selectedRowKeys: [],
tableData: [], tableData: [],
@@ -286,23 +285,10 @@ export default {
let data = tableData; let data = tableData;
let array = []; let array = [];
data.map((value,index) => { data.map((value,index) => {
if(state.searching){ {
let obj = { let obj = {
key: index + 1, key: index + 1,
num:"", num:value.onlineClassesId,
name:value.name,
contenttype:value.contentType == 10 ? "微课" : "录播课",
teacher:value.teacher,
sysCreateBy:value.sysCreateBy,
overtime:"",
};
if(obj.name == state.inputV1 || obj.contenttype == state.selectV){
array.push(obj);
}
} else {
let obj = {
key: index + 1,
num:"",
name:value.name, name:value.name,
contenttype:value.contentType == 10 ? "微课" : "录播课", contenttype:value.contentType == 10 ? "微课" : "录播课",
teacher:value.teacher, teacher:value.teacher,
@@ -345,7 +331,7 @@ export default {
state.addOnlineList.map((value) => { state.addOnlineList.map((value) => {
RouterEditTask({ RouterEditTask({
chapterId: Number(props.isactive), chapterId: Number(props.isactive),
courseId: value.onlineClassesId, courseId: value.num,
name: value.name, name: value.name,
routerId: props.routerId, routerId: props.routerId,
routerTaskId: props.routerTaskId || 0, routerTaskId: props.routerTaskId || 0,
@@ -363,11 +349,11 @@ export default {
message.error(`${props.edit ? "编辑" : "新增"}关卡任务失败`); message.error(`${props.edit ? "编辑" : "新增"}关卡任务失败`);
}); });
}) })
} else if (props.isLevel == 2) { } else if (props.isLevel === 2) {
state.addOnlineList.map((value) => { state.addOnlineList.map((value) => {
apiTask apiTask
.addTask({ .addTask({
courseId: value.onlineClassesId, courseId: value.num,
name: value.name, name: value.name,
projectId: props.projectId, projectId: props.projectId,
projectTaskId: props.projectTaskId || 0, projectTaskId: props.projectTaskId || 0,
@@ -415,7 +401,6 @@ export default {
//搜索在线列表 //搜索在线列表
const searchList = ()=> { const searchList = ()=> {
if(state.inputV1 !== '' || state.selectV !== ''){ if(state.inputV1 !== '' || state.selectV !== ''){
state.searching = true
getAllOnlineText() getAllOnlineText()
}else { }else {
resetOnline() resetOnline()
@@ -425,7 +410,6 @@ export default {
const resetOnline = () => { const resetOnline = () => {
state.inputV1 = ""; state.inputV1 = "";
state.selectV = ""; state.selectV = "";
state.searching = false;
state.selectedRowKeys = []; state.selectedRowKeys = [];
state.addOnlineList = []; state.addOnlineList = [];
state.currentPage = 1; state.currentPage = 1;

View File

@@ -32,7 +32,6 @@
外部考试 外部考试
</button> </button>
</div> </div>
<a-form <a-form
v-if="isOuter == 1" v-if="isOuter == 1"
ref="formRef" ref="formRef"
@@ -119,6 +118,7 @@
class="tag-style" class="tag-style"
v-if="paperName != ''" v-if="paperName != ''"
:closable="true" :closable="true"
@close="delTag"
>{{ paperName }}</a-tag >{{ paperName }}</a-tag
> >
<!-- <a-tag <!-- <a-tag
@@ -266,7 +266,6 @@
style="width: 88px; height: 32px; margin-left: 35px" style="width: 88px; height: 32px; margin-left: 35px"
/> />
</a-form-item> </a-form-item>
<span style="margin-left: 8px"></span> <span style="margin-left: 8px"></span>
</div> </div>
</div> </div>
@@ -310,7 +309,6 @@
<a-button class="btn2" html-type="submit">确定</a-button> <a-button class="btn2" html-type="submit">确定</a-button>
</div> </div>
</a-form> </a-form>
<a-form <a-form
v-else v-else
ref="formRef" ref="formRef"
@@ -341,7 +339,6 @@
</a-form-item> </a-form-item>
</div> </div>
</div> </div>
<div class="main_item"> <div class="main_item">
<div class="btnbox"> <div class="btnbox">
<a-form-item <a-form-item
@@ -403,7 +400,6 @@ import STest from "./SelectTest.vue";
import { ProjectEditTask, RouterEditTask } from "@/api/indexTask"; import { ProjectEditTask, RouterEditTask } from "@/api/indexTask";
import { addTempTask } from "../../api/indexTaskadd"; import { addTempTask } from "../../api/indexTaskadd";
import dayjs from "dayjs"; import dayjs from "dayjs";
export default { export default {
name: "AddTest", name: "AddTest",
components: { components: {
@@ -476,6 +472,7 @@ export default {
showAnalysis: 2, showAnalysis: 2,
showAnswers: 2, showAnswers: 2,
choosedTime: "", choosedTime: "",
paperName: "",
choosedTest: [ choosedTest: [
{ {
key: 1, key: 1,
@@ -497,6 +494,8 @@ export default {
STvisible: false, //选择试卷抽屉 STvisible: false, //选择试卷抽屉
paperId: null, //试卷id 子组件传过来给考试抽屉创建考试信息需要 paperId: null, //试卷id 子组件传过来给考试抽屉创建考试信息需要
paperName: "", //试卷名称 子组件传过来给考试抽屉选择试卷后框框用 paperName: "", //试卷名称 子组件传过来给考试抽屉选择试卷后框框用
id: "",
testName: "",
choosedTestList: [ choosedTestList: [
{ {
value: "提高核心竞争力", value: "提高核心竞争力",
@@ -626,7 +625,6 @@ export default {
}, },
], ],
}; };
const options1 = ref([ const options1 = ref([
{ {
label: "math", label: "math",
@@ -640,16 +638,16 @@ export default {
const handleFinish = () => { const handleFinish = () => {
updateTest(); updateTest();
}; };
const handleFinishFailed = () => {
const handleFinishFailed = (e) => {
console.log("提交失败", e);
message.error("handleFinishFailed"); message.error("handleFinishFailed");
}; };
const resetForm = () => { const resetForm = () => {
formRef.value.resetFields(); formRef.value.resetFields();
state.paperName = "";
state.paperId = null;
state.id = "";
state.testName = "";
}; };
const handleValidate = (...args) => { const handleValidate = (...args) => {
console.log(args); console.log(args);
}; };
@@ -668,11 +666,13 @@ export default {
queryTest(); queryTest();
} }
}; };
const selectTest = () => { const selectTest = () => {
state.STvisible = true; state.STvisible = true;
}; };
const delTag = () => {
state.paperId = 0;
state.paperName = "";
};
const queryTest = () => { const queryTest = () => {
// state.addLoading = true; // state.addLoading = true;
queryExaminationDetailById({ examinationId: props.EditTestId }) queryExaminationDetailById({ examinationId: props.EditTestId })
@@ -689,6 +689,8 @@ export default {
formState.scoringModel = Number(res.data.data.scoringModel) || 1; formState.scoringModel = Number(res.data.data.scoringModel) || 1;
formState.showAnalysis = Number(res.data.data.showAnalysis) || 1; formState.showAnalysis = Number(res.data.data.showAnalysis) || 1;
formState.showAnswers = Number(res.data.data.showAnswers) || 1; formState.showAnswers = Number(res.data.data.showAnswers) || 1;
formState.papaerName = res.data.data.examinationTestName;
state.paperName = res.data.data.examinationTestName;
if ( if (
res.data.data.examinationEndTime && res.data.data.examinationEndTime &&
res.data.data.examinationStartTime res.data.data.examinationStartTime
@@ -707,7 +709,7 @@ export default {
}); });
}; };
const updateTest = () => { const updateTest = () => {
//state.addLoading = true; //state.addLoading = true;updateTask
let obj = { let obj = {
examinationDuration: formState.examinationDuration, examinationDuration: formState.examinationDuration,
examinationEndTime: dayjs(formState.choosedTime[1]).format( examinationEndTime: dayjs(formState.choosedTime[1]).format(
@@ -727,17 +729,17 @@ export default {
scoringModel: formState.scoringModel, scoringModel: formState.scoringModel,
showAnalysis: formState.showAnalysis, showAnalysis: formState.showAnalysis,
showAnswers: formState.showAnswers, showAnswers: formState.showAnswers,
examinationTestId: state.id,
examinationTestName: state.testName,
}; };
if (props.edit) { if (props.edit) {
// 编辑任务 // 编辑任务
updateExamination(obj) updateExamination(obj)
.then((res) => { .then((res) => {
console.log("编辑考试", res);
updateTask(res); updateTask(res);
closeDrawer(); closeDrawer();
}) })
.catch((err) => { .catch(() => {
console.log("编辑失败", err);
message.error(`编辑失败`); message.error(`编辑失败`);
}); });
} else { } else {
@@ -747,19 +749,15 @@ export default {
updateTask(res); updateTask(res);
closeDrawer(); closeDrawer();
}) })
.catch((err) => { .catch(() => {
console.log("创建失败", err);
message.error(`编辑失败`); message.error(`编辑失败`);
}); });
} }
}; };
const updateTask = (res) => { const updateTask = (res) => {
state.EditTestId = res.data.data.examinationId; state.EditTestId = res.data.data.examinationId;
console.log("state.EditTestId=====0", state.EditTestId, props.faceLevel);
if (props.faceLevel) { if (props.faceLevel) {
state.EditTestId = res.data.data.examinationId; state.EditTestId = res.data.data.examinationId;
console.log("state.EditTestId=====", state.EditTestId);
} else { } else {
if (props.isLevel == 1) { if (props.isLevel == 1) {
let editObj1 = { let editObj1 = {
@@ -804,7 +802,6 @@ export default {
); );
}); });
} else if (props.isLevel == 3) { } else if (props.isLevel == 3) {
console.log("");
addTempTask({ addTempTask({
courseId: res.data.data.examinationId, courseId: res.data.data.examinationId,
duration: res.data.data.examinationDuration, duration: res.data.data.examinationDuration,
@@ -828,7 +825,6 @@ export default {
} }
} }
}; };
const cloradio1 = (value) => { const cloradio1 = (value) => {
if (value != "") { if (value != "") {
formState.showAnswers = ""; formState.showAnswers = "";
@@ -868,6 +864,8 @@ export default {
const getData = (value) => { const getData = (value) => {
state.paperId = value.paperId; state.paperId = value.paperId;
state.paperName = value.testName; state.paperName = value.testName;
state.id = value.id;
state.testName = value.testName;
}; };
return { return {
formState, formState,
@@ -884,6 +882,7 @@ export default {
resetForm, resetForm,
handleValidate, handleValidate,
formRef, formRef,
delTag,
// layout, // layout,
rules, rules,
updateTest, updateTest,

View File

@@ -97,7 +97,6 @@ import { reactive, toRefs } from "vue";
tableDataTotal: 0, tableDataTotal: 0,
pageSize: 10, pageSize: 10,
inputV1:"", inputV1:"",
searching:false,
evaluationTypeId:null, evaluationTypeId:null,
evaluationTypeName:"", evaluationTypeName:"",
tableData: [], tableData: [],
@@ -160,11 +159,10 @@ import { reactive, toRefs } from "vue";
state.evListData = selectedRows[0] ? selectedRows[0] : {} state.evListData = selectedRows[0] ? selectedRows[0] : {}
} }
const closeDrawer = () => { const closeDrawer = () => {
ctx.emit("update:EvalListVisible", false);
state.selectedRowKeys = [] state.selectedRowKeys = []
state.evListData = {} state.evListData = {}
state.inputV1 = "" state.inputV1 = ""
state.searching = false ctx.emit("update:EvalListVisible", false);
}; };
const afterVisibleChange = (bol) => { const afterVisibleChange = (bol) => {
if ( bol == true ) { if ( bol == true ) {
@@ -177,6 +175,7 @@ import { reactive, toRefs } from "vue";
} }
const changePagination = (page) => { const changePagination = (page) => {
state.currentPage = page; state.currentPage = page;
getAllEvalText();
}; };
//如果编辑情况会通过父亲传回来evaluationTypeId遍历出相同的那个选项 再将那个选项的key值赋给state.selectRowKeys //如果编辑情况会通过父亲传回来evaluationTypeId遍历出相同的那个选项 再将那个选项的key值赋给state.selectRowKeys
const getTableDataList = (tableData) => { const getTableDataList = (tableData) => {
@@ -202,24 +201,6 @@ import { reactive, toRefs } from "vue";
}); });
state.tableData = array; state.tableData = array;
state.selectedRowKeys = arrayKey; state.selectedRowKeys = arrayKey;
}else if (state.searching){
data.map((value,index) => {
let obj = {
key:index+1,
status:value.status,
quiz_code:value.quiz_code,
quiz_kid:value.quiz_kid,
title:value.title,
theme_desc:value.theme_desc,
quiz_price:value.quiz_price,
quiz_range:value.quiz_range,
};
if(state.inputV1 == obj.title)
{
array.push(obj);
}
});
state.tableData = array;
} }
else{ else{
data.map((value,index) => { data.map((value,index) => {
@@ -242,7 +223,7 @@ import { reactive, toRefs } from "vue";
//获取测评列表 //获取测评列表
const getAllEvalText = ()=> { const getAllEvalText = ()=> {
let objael = { let objael = {
"keyword": "", "keyword": state.inputV1,
"user_id": "965341999643234304", "user_id": "965341999643234304",
} }
api api
@@ -256,10 +237,8 @@ import { reactive, toRefs } from "vue";
//搜索测评列表 //搜索测评列表
const searchList = ()=> { const searchList = ()=> {
if(state.inputV1 !== ''){ if(state.inputV1 !== ''){
state.searching = true
getAllEvalText() getAllEvalText()
}else { }else {
state.searching = false
resetData() resetData()
} }
} }

View File

@@ -23,17 +23,18 @@
<a-input <a-input
v-model:value="inputPname" v-model:value="inputPname"
style="width: 270px; height: 40px; border-radius: 8px" style="width: 270px; height: 40px; border-radius: 8px"
placeholder="请输入试卷名称或序号" placeholder="请输入试卷名称"
/> />
</div> </div>
<div class="namecon" style="margin-right: 30px"> <!-- 因为接口不支持创建人搜索所以暂时注调 -->
<!-- <div class="namecon" style="margin-right: 30px">
<div class="name">创建人</div> <div class="name">创建人</div>
<a-input <a-input
v-model:value="inputCname" v-model:value="inputCname"
style="width: 240px; height: 40px; border-radius: 8px" style="width: 240px; height: 40px; border-radius: 8px"
placeholder="请输入创建人" placeholder="请输入创建人"
/> />
</div> </div> -->
</div> </div>
<div class="btns"> <div class="btns">
<div <div
@@ -72,6 +73,7 @@
<div class="tableBox"> <div class="tableBox">
<div class="pa"> <div class="pa">
<a-pagination <a-pagination
v-if="tableDataTotal>10"
showSizeChanger="true" showSizeChanger="true"
showQuickJumper="true" showQuickJumper="true"
hideOnSinglePage="true" hideOnSinglePage="true"
@@ -147,6 +149,7 @@ export default {
closeDrawer(); closeDrawer();
}; };
const closeDrawer = () => { const closeDrawer = () => {
state.selectedRowKeys = []
ctx.emit("update:STvisible", false); ctx.emit("update:STvisible", false);
}; };
@@ -217,56 +220,57 @@ export default {
} }
state.selectedRowKeys = selectedRowKeys; state.selectedRowKeys = selectedRowKeys;
state.SelectTestData = selectedRows[0]; state.SelectTestData = selectedRows[0];
console.log("state.SelectTestData---------------", state.SelectTestData);
}; };
const newTest = () => { const newTest = () => {
console.log("创建考试没设计图");
state.addExamVisible = true; state.addExamVisible = true;
}; };
const getTableDate = (tableData) => { // const getTableDate = (tableData) => {
let data = tableData; // let data = tableData;
let array = []; // let array = [];
data.map((value, index) => { // data.map((value, index) => {
let obj = { // let obj = {
key: index + 1, // key: index + 1,
sysCreateBy: value.sysCreateBy, // sysCreateBy: value.sysCreateBy,
paperId: value.paperId, // paperId: value.paperId,
testName: value.testName, // testName: value.testName,
paperMode: value.paperMode, // paperMode: value.paperMode == 1 ? "固定试卷" : "随机",
sysUpdateTime: value.sysUpdateTime, // sysUpdateTime: value.sysUpdateTime,
}; // };
array.push(obj); // array.push(obj);
}); // });
state.tableData = array; // state.tableData = array;
}; // state.tableDataTotal = array.length
// };
//获取选择考试列表 //获取选择考试列表
const getManageList = () => { const getManageList = () => {
let obj = { let obj = {
keyWord: state.inputPname, keyWord: state.inputPname,
pageIndex: state.pageSize, pageIndex: state.currentPage,
pageSize: state.pageSize, pageSize: state.pageSize,
published: true, published: true,
}; };
api api
.queryExaminationList(obj) .queryExaminationList(obj)
.then((data) => { .then((data) => {
// getTableDate(res.data.data); // getTableDate(res.data.data);
//** 表格repaint */ //** 表格repaint */
let array = [] let array = []
data.map((value, index) => { data.data.data.map((value, index) => {
let obj = { let obj = {
key: index + 1, key: index + 1,
sysCreateBy: value.sysCreateBy, sysCreateBy: value.sysCreateBy,
paperId: value.paperId, paperId: index + 1,
testName: value.testName, testName: value.testName,
paperMode: value.paperMode, paperMode: value.randomMode ? "是" : "否",
sysUpdateTime: value.sysUpdateTime, sysUpdateTime: value.sysUpdateTime,
id:value.id,
}; };
array.push(obj); array.push(obj);
}); });
//** */ state.tableData = array
state.tableDataTotal = array.length
message.destroy()
message.success("获取选择考试列表成功"); message.success("获取选择考试列表成功");
}) })
.catch(() => { .catch(() => {
@@ -289,7 +293,6 @@ export default {
...toRefs(state), ...toRefs(state),
closeDrawer, closeDrawer,
afterVisibleChange, afterVisibleChange,
getTableDate,
onSelectChange, onSelectChange,
CreatSTText, CreatSTText,
newTest, newTest,

View File

@@ -4813,7 +4813,7 @@ export default defineComponent({
deptList: res[1], deptList: res[1],
groupList: res[2], groupList: res[2],
offcourseId: state.offcourseId, offcourseId: state.offcourseId,
offcoursePlanId: "", offcoursePlanId: state.offcoursePlanId, //开课id
studentList: res[0], studentList: res[0],
}; };
console.log("obj", obj); console.log("obj", obj);

View File

@@ -16,9 +16,8 @@
<div class="inpbox1"> <div class="inpbox1">
<a-select <a-select
v-model:value="valueproj" v-model:value="valueproj"
placeholder="请选择内容分类" value-key="value"
@change="handleChangeproj" :options="[{label:'请选择内容分类',value:''},...calssifyList]"
:options="optionsproj"
/> />
</div> </div>
<div class="inpbox1"> <div class="inpbox1">
@@ -89,23 +88,16 @@
</div> </div>
</template> </template>
<script> <script>
import { reactive, toRefs, onMounted } from "vue"; import {reactive, toRefs, onMounted} from "vue";
import { courseListView } from "../../api/indexAudit"; import {courseListView} from "../../api/indexAudit";
import * as api1 from "@/api/index1";
export default { export default {
name: "CoursereViewed", name: "CoursereViewed",
setup() { setup() {
const state = reactive({ const state = reactive({
optionsproj: [ calssifyList: [], //分类字典
{
value: "0",
label: "Jack",
},
{
value: "1",
label: "rose",
},
],
valueproj: "", valueproj: "",
valuecreater: "", valuecreater: "",
valuename: "", valuename: "",
@@ -136,6 +128,7 @@ export default {
dataIndex: "content", dataIndex: "content",
key: "content", key: "content",
align: "center", align: "center",
customRender: ({text}) => state.calssifyList.find(e => e.value == text)?.label,
}, },
{ {
title: "审核状态", title: "审核状态",
@@ -187,7 +180,7 @@ export default {
const getList = () => { const getList = () => {
let objn = { let objn = {
auditStatus: 0, auditStatus: 0,
// categoryId: 0, categoryId: state.valueproj,
createName: state.valuecreater, createName: state.valuecreater,
name: state.valuename, name: state.valuename,
pageNo: state.currentPage, pageNo: state.currentPage,
@@ -196,17 +189,18 @@ export default {
courseListView(objn) courseListView(objn)
.then((res) => { .then((res) => {
console.log("获取已审核课程成功", res.data.data); console.log("获取已审核课程成功", res.data.data);
let result = res.data.data.rows;
state.total = res.data.data.total; state.total = res.data.data.total;
if (res.data.data.total > 0) { setTableData(res.data.data.rows);
setTableData(result);
}
}) })
.catch((err) => { .catch((err) => {
console.log("获取已审核课程失败", err); console.log("获取已审核课程失败", err);
}); });
}; };
const setTableData = (table) => { const setTableData = (table) => {
if(!table || !table.length){
state.tableData1 = []
return
}
let data = table; let data = table;
let array = []; let array = [];
data.map((item) => { data.map((item) => {
@@ -234,27 +228,30 @@ export default {
state.tableData1 = array; state.tableData1 = array;
}; };
const reset = () => { const reset = () => {
(state.valueproj = null), (state.valueproj = ''),
(state.valuecreater = null), (state.valuecreater = null),
(state.valuename = null), (state.valuename = null),
getList(); getList();
}; };
const handleChangeproj = (value, item) => {
console.log(value, item);
state.valueproj = item.value;
};
const changePagination = (pagina) => { const changePagination = (pagina) => {
state.currentPage = pagina; state.currentPage = pagina;
getList(); getList();
}; };
onMounted(() => { const getDictList = (param) => api1.getDict({
pageNo: 1,
pageSize: 20,
setCode: param
}).then((res) => res.data.data.rows)
onMounted(async () => {
getList(); getList();
//获取分类列表
state.calssifyList = (await getDictList("faceclassClass")).map(e => ({label: e.dictName, value: e.dictCode}))
}); });
return { return {
...toRefs(state), ...toRefs(state),
getList, getList,
setTableData, setTableData,
handleChangeproj,
reset, reset,
changePagination, changePagination,
}; };
@@ -264,8 +261,10 @@ export default {
<style lang="scss"> <style lang="scss">
.coursereviewed { .coursereviewed {
width: 100%; width: 100%;
.tmpl { .tmpl {
width: 100%; width: 100%;
.tmpl_header { .tmpl_header {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
@@ -274,33 +273,39 @@ export default {
margin-left: 32px; margin-left: 32px;
margin-right: 32px; margin-right: 32px;
.tmplh_inp { .tmplh_inp {
.inpbox { .inpbox {
display: flex; display: flex;
margin-top: 32px; margin-top: 32px;
flex-wrap: wrap; flex-wrap: wrap;
.inpbox1 { .inpbox1 {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-right: 24px; margin-right: 24px;
margin-top: 10px; margin-top: 10px;
.ant-select-selector { .ant-select-selector {
border-radius: 8px; border-radius: 8px;
width: 270px; width: 270px;
height: 40px; height: 40px;
padding-top: 5px; padding-top: 5px;
} }
span { span {
white-space: nowrap; white-space: nowrap;
} }
} }
} }
} }
.tmplh_btn { .tmplh_btn {
display: flex; display: flex;
// margin-left: 38px; // margin-left: 38px;
margin-top: 42px; margin-top: 42px;
.btn { .btn {
padding: 0px 26px 0px 26px; padding: 0px 26px 0px 26px;
height: 38px; height: 38px;
@@ -311,72 +316,90 @@ export default {
margin-right: 14px; margin-right: 14px;
cursor: pointer; cursor: pointer;
flex-shrink: 0; flex-shrink: 0;
.search { .search {
background-size: 100%; background-size: 100%;
} }
.btnText { .btnText {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
line-height: 36px; line-height: 36px;
margin-left: 5px; margin-left: 5px;
} }
.btnText1 { .btnText1 {
color: rgb(255, 255, 255); color: rgb(255, 255, 255);
} }
.btnText2 { .btnText2 {
color: rgba(64, 158, 255, 1); color: rgba(64, 158, 255, 1);
} }
} }
.btn1 { .btn1 {
background: #409eff; background: #409eff;
.search { .search {
width: 15px; width: 15px;
height: 17px; height: 17px;
background-image: url("../../assets/images/courseManage/search0.png"); background-image: url("../../assets/images/courseManage/search0.png");
} }
} }
.btn2 { .btn2 {
background: #ffffff; background: #ffffff;
border: 1px solid #388be1; border: 1px solid #388be1;
.search { .search {
width: 16px; width: 16px;
height: 18px; height: 18px;
background-image: url("../../assets/images/courseManage/reset1.png"); background-image: url("../../assets/images/courseManage/reset1.png");
} }
} }
.btn1:hover { .btn1:hover {
background: rgb(255, 255, 255); background: rgb(255, 255, 255);
border: 1px solid #388be1; border: 1px solid #388be1;
.search { .search {
background-image: url("../../assets/images/courseManage/search1.png"); background-image: url("../../assets/images/courseManage/search1.png");
} }
.btnText { .btnText {
color: rgba(64, 158, 255, 1); color: rgba(64, 158, 255, 1);
} }
} }
.btn2:hover { .btn2:hover {
background: rgba(64, 158, 255, 1); background: rgba(64, 158, 255, 1);
.search { .search {
background-image: url("../../assets/images/courseManage/reset0.png"); background-image: url("../../assets/images/courseManage/reset0.png");
} }
.btnText { .btnText {
color: #ffffff; color: #ffffff;
} }
} }
} }
} }
.tmpl_body { .tmpl_body {
padding: 0px 30px; padding: 0px 30px;
.tmpl_tabbox { .tmpl_tabbox {
.operation { .operation {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
color: #4ea6ff; color: #4ea6ff;
.nselect { .nselect {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
display: flex; display: flex;
.jc { .jc {
margin-left: 20px; margin-left: 20px;
white-space: nowrap; white-space: nowrap;
@@ -385,6 +408,7 @@ export default {
} }
} }
} }
.pa { .pa {
width: 100%; width: 100%;
margin-top: 20px; margin-top: 20px;

View File

@@ -16,9 +16,7 @@
<div class="inpbox1"> <div class="inpbox1">
<a-select <a-select
v-model:value="valueproj" v-model:value="valueproj"
placeholder="请选择内容分类" :options="[{label:'请选择内容分类',value:''},...calssifyList]"
@change="handleChangeproj"
:options="optionsproj"
/> />
</div> </div>
<div class="inpbox1"> <div class="inpbox1">
@@ -115,7 +113,7 @@
<div class="item" style="margin-top: 20px"> <div class="item" style="margin-top: 20px">
<div class="left">审核意见</div> <div class="left">审核意见</div>
<div class="rig"> <div class="rig">
<a-textarea v-model:value="valueSugg" :rows="4" /> <a-textarea v-model:value="valueSugg" :rows="4"/>
</div> </div>
</div> </div>
</div> </div>
@@ -320,7 +318,7 @@
:key="index" :key="index"
> >
<div class="file_img"> <div class="file_img">
<img :src="item.img" /> <img :src="item.img"/>
</div> </div>
<div class="file_detail"> <div class="file_detail">
<div class="file_name"> <div class="file_name">
@@ -402,12 +400,14 @@
</div> </div>
</template> </template>
<script> <script>
import { reactive, toRefs, onMounted } from "vue"; import {reactive, toRefs, onMounted} from "vue";
import { list, courseAuditView } from "../../api/indexAudit"; import {list, courseAuditView} from "../../api/indexAudit";
import { toDate } from "../../api/method"; import {toDate} from "../../api/method";
import { message } from "ant-design-vue"; import {message} from "ant-design-vue";
import { Editor, Toolbar } from "@wangeditor/editor-for-vue"; import {Editor, Toolbar} from "@wangeditor/editor-for-vue";
import { iframeUrl } from "../../api/method"; import {iframeUrl} from "../../api/method";
import * as api1 from "@/api/index1";
export default { export default {
name: "CoursereViewedN", name: "CoursereViewedN",
components: { components: {
@@ -426,6 +426,7 @@ export default {
label: "rose", label: "rose",
}, },
], ],
calssifyList: [], //分类字典
valueproj: "", valueproj: "",
valuecreater: "", valuecreater: "",
valuename: "", valuename: "",
@@ -465,6 +466,7 @@ export default {
dataIndex: "content", dataIndex: "content",
key: "content", key: "content",
align: "center", align: "center",
customRender: ({text}) => state.calssifyList.find(e => e.value == text)?.label,
}, },
{ {
title: "状态", title: "状态",
@@ -526,11 +528,21 @@ export default {
iframeUrl: iframeUrl, iframeUrl: iframeUrl,
}); });
/*
* 获取字典列表
* param faceclassPic | faceclassClass | faceclassScene
* */
const getDictList = (param) => api1.getDict({
pageNo: 1,
pageSize: 20,
setCode: param
}).then((res) => res.data.data.rows)
const getFaceList = () => { const getFaceList = () => {
let objn = { let objn = {
auditStatus: 1, auditStatus: 1,
// beginTime: 0, // beginTime: 0,
// categoryId: 0, categoryId: state.valueproj,
createName: state.valuecreater, createName: state.valuecreater,
// endTime: 0, // endTime: 0,
name: state.valuename, name: state.valuename,
@@ -552,6 +564,10 @@ export default {
}); });
}; };
const setFaceData = (tableData) => { const setFaceData = (tableData) => {
if(!tableData || !tableData.length){
state.tableData1 = []
return
}
let data = tableData; let data = tableData;
let array = []; let array = [];
data.map((item) => { data.map((item) => {
@@ -581,7 +597,7 @@ export default {
state.tableData1 = array; state.tableData1 = array;
}; };
const reset = () => { const reset = () => {
state.valueproj = null; state.valueproj = '';
state.valuecreater = null; state.valuecreater = null;
state.valuename = null; state.valuename = null;
getFaceList(); getFaceList();
@@ -625,8 +641,10 @@ export default {
return message.warning("审核提交失败"); return message.warning("审核提交失败");
}); });
}; };
onMounted(() => { onMounted(async () => {
getFaceList(); getFaceList();
//获取分类列表
state.calssifyList = (await getDictList("faceclassClass")).map(e => ({label: e.dictName, value: e.dictCode}))
}); });
return { return {
...toRefs(state), ...toRefs(state),
@@ -646,13 +664,16 @@ export default {
.ant-modal { .ant-modal {
width: 640px !important; width: 640px !important;
height: 400px !important; height: 400px !important;
.ant-modal-content { .ant-modal-content {
width: 640px !important; width: 640px !important;
height: 400px !important; height: 400px !important;
.ant-modal-body { .ant-modal-body {
width: 640px !important; width: 640px !important;
height: 400px !important; height: 400px !important;
padding: 0 !important; padding: 0 !important;
.delete { .delete {
z-index: 999; z-index: 999;
width: 640px; width: 640px;
@@ -673,15 +694,18 @@ export default {
rgba(78, 166, 255, 0) 100% rgba(78, 166, 255, 0) 100%
); );
} }
.del_main { .del_main {
width: 100%; width: 100%;
position: relative; position: relative;
.header { .header {
display: flex; display: flex;
align-items: center; align-items: center;
padding-top: 20px; padding-top: 20px;
padding-left: 26px; padding-left: 26px;
font-size: 16px; font-size: 16px;
.icon { .icon {
width: 16px; width: 16px;
height: 16px; height: 16px;
@@ -689,6 +713,7 @@ export default {
background-image: url(@/assets/images/taskpage/gan.png); background-image: url(@/assets/images/taskpage/gan.png);
background-size: 100% 100%; background-size: 100% 100%;
} }
.close_exit { .close_exit {
position: absolute; position: absolute;
right: 42px; right: 42px;
@@ -699,6 +724,7 @@ export default {
background-size: 100% 100%; background-size: 100% 100%;
} }
} }
.body { .body {
width: 100%; width: 100%;
margin: 34px auto 56px auto; margin: 34px auto 56px auto;
@@ -708,15 +734,19 @@ export default {
flex-direction: column; flex-direction: column;
// background-color: red; // background-color: red;
position: relative; position: relative;
.item { .item {
display: flex; display: flex;
width: 100%; width: 100%;
.left { .left {
width: 110px; width: 110px;
text-align: right; text-align: right;
} }
.rig { .rig {
width: 450px; width: 450px;
.ant-input { .ant-input {
border-radius: 8px; border-radius: 8px;
resize: none !important; resize: none !important;
@@ -724,10 +754,12 @@ export default {
} }
} }
} }
.del_btnbox { .del_btnbox {
display: flex; display: flex;
margin: 30px auto; margin: 30px auto;
justify-content: center; justify-content: center;
.del_btn { .del_btn {
width: 100px; width: 100px;
height: 40px; height: 40px;
@@ -739,17 +771,20 @@ export default {
flex-shrink: 0; flex-shrink: 0;
cursor: pointer; cursor: pointer;
.btnText { .btnText {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
line-height: 40px; line-height: 40px;
} }
} }
.btn1 { .btn1 {
border: 1px solid rgba(64, 158, 255, 1); border: 1px solid rgba(64, 158, 255, 1);
color: #4ea6ff; color: #4ea6ff;
margin-right: 14px; margin-right: 14px;
} }
.btn2 { .btn2 {
background-color: #4ea6ff; background-color: #4ea6ff;
color: #ffffff; color: #ffffff;
@@ -761,6 +796,7 @@ export default {
} }
} }
} }
.lookCourseModal { .lookCourseModal {
.ant-modal { .ant-modal {
.ant-modal-content { .ant-modal-content {
@@ -770,10 +806,12 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.headerLeft { .headerLeft {
margin-left: 27px; margin-left: 27px;
display: flex; display: flex;
align-items: center; align-items: center;
.headerLeftText { .headerLeftText {
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
@@ -782,26 +820,32 @@ export default {
} }
} }
} }
.modalMain { .modalMain {
.m_title { .m_title {
margin-bottom: 20px; margin-bottom: 20px;
} }
.m_body { .m_body {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
.mb_left { .mb_left {
width: 50%; width: 50%;
.mbl_items { .mbl_items {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
margin-bottom: 10px; margin-bottom: 10px;
.item_nam { .item_nam {
width: 100px; width: 100px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
white-space: nowrap; white-space: nowrap;
.asterisk_icon { .asterisk_icon {
width: 10px; width: 10px;
height: 10px; height: 10px;
@@ -809,9 +853,11 @@ export default {
margin-top: -15px; margin-top: -15px;
} }
} }
.item_inp { .item_inp {
flex: 1; flex: 1;
position: relative; position: relative;
.inp_num { .inp_num {
position: absolute; position: absolute;
left: 398px; left: 398px;
@@ -819,17 +865,20 @@ export default {
} }
} }
} }
.mbl_items2 { .mbl_items2 {
display: flex; display: flex;
align-items: start; align-items: start;
margin-top: 10px; margin-top: 10px;
margin-bottom: 10px; margin-bottom: 10px;
.item_nam { .item_nam {
width: 100px; width: 100px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
white-space: nowrap; white-space: nowrap;
.asterisk_icon { .asterisk_icon {
width: 10px; width: 10px;
height: 10px; height: 10px;
@@ -837,13 +886,16 @@ export default {
margin-top: -15px; margin-top: -15px;
} }
} }
.item_inp { .item_inp {
flex: 1; flex: 1;
.i_upload_img { .i_upload_img {
width: 100px; width: 100px;
height: 100px; height: 100px;
border-radius: 8px; border-radius: 8px;
} }
.i_upload { .i_upload {
width: 100px; width: 100px;
height: 100px; height: 100px;
@@ -852,8 +904,10 @@ export default {
text-align: center; text-align: center;
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
.addimg { .addimg {
position: relative; position: relative;
.heng { .heng {
position: absolute; position: absolute;
top: 50px; top: 50px;
@@ -861,6 +915,7 @@ export default {
width: 50px; width: 50px;
border: 1px solid #4ea6ff; border: 1px solid #4ea6ff;
} }
.shu { .shu {
position: absolute; position: absolute;
top: 25px; top: 25px;
@@ -872,33 +927,40 @@ export default {
} }
} }
} }
.i2_cz { .i2_cz {
width: 440px; width: 440px;
margin-left: 100px; margin-left: 100px;
.i2_top { .i2_top {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
} }
.i8_bottom { .i8_bottom {
display: flex; display: flex;
width: 440px; width: 440px;
margin-left: 100px; margin-left: 100px;
} }
} }
.mb_right { .mb_right {
width: 50%; width: 50%;
.mbl_items { .mbl_items {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
justify-content: flex-end; justify-content: flex-end;
margin-bottom: 10px; margin-bottom: 10px;
.item_nam { .item_nam {
width: 100px; width: 100px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
white-space: nowrap; white-space: nowrap;
.asterisk_icon { .asterisk_icon {
width: 10px; width: 10px;
height: 10px; height: 10px;
@@ -906,12 +968,15 @@ export default {
margin-right: 5px; margin-right: 5px;
} }
} }
.item_inp { .item_inp {
flex: 1; flex: 1;
} }
.accessory { .accessory {
display: flex; display: flex;
align-items: center; align-items: center;
.accessory_icon { .accessory_icon {
width: 16px; width: 16px;
height: 16px; height: 16px;
@@ -920,16 +985,19 @@ export default {
} }
} }
} }
.mbl_items2 { .mbl_items2 {
display: flex; display: flex;
align-items: start; align-items: start;
margin-bottom: 10px; margin-bottom: 10px;
.item_nam { .item_nam {
width: 100px; width: 100px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
white-space: nowrap; white-space: nowrap;
.asterisk_icon { .asterisk_icon {
width: 10px; width: 10px;
height: 10px; height: 10px;
@@ -937,9 +1005,11 @@ export default {
margin-top: -15px; margin-top: -15px;
} }
} }
.item_inp { .item_inp {
flex: 1; flex: 1;
position: relative; position: relative;
.inp_num { .inp_num {
position: absolute; position: absolute;
left: 395px; left: 395px;
@@ -947,9 +1017,11 @@ export default {
} }
} }
} }
.mbl_items12 { .mbl_items12 {
width: 440px; width: 440px;
margin-left: 100px; margin-left: 100px;
.i12_box1 { .i12_box1 {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -957,28 +1029,34 @@ export default {
border: 1px solid #eff4fc; border: 1px solid #eff4fc;
border-radius: 8px; border-radius: 8px;
margin-bottom: 10px; margin-bottom: 10px;
.file_img { .file_img {
width: 27px; width: 27px;
height: 32px; height: 32px;
// background-image: url(@/assets/images/coursewareManage/imgs.png); // background-image: url(@/assets/images/coursewareManage/imgs.png);
margin-right: 22px; margin-right: 22px;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }
.file_detail { .file_detail {
width: 250px; width: 250px;
margin-right: 21px; margin-right: 21px;
.file_updata { .file_updata {
display: flex; display: flex;
align-items: center; align-items: center;
.updatabox { .updatabox {
position: relative; position: relative;
width: 230px; width: 230px;
height: 5px; height: 5px;
background-color: rgba(192, 192, 192, 0.25); background-color: rgba(192, 192, 192, 0.25);
border-radius: 3px; border-radius: 3px;
.updatacolor { .updatacolor {
position: absolute; position: absolute;
left: 0; left: 0;
@@ -987,6 +1065,7 @@ export default {
background-color: #57c887; background-color: #57c887;
border-radius: 3px; border-radius: 3px;
} }
.updatacolor2 { .updatacolor2 {
position: absolute; position: absolute;
left: 0; left: 0;
@@ -995,6 +1074,7 @@ export default {
background-color: #ff7474; background-color: #ff7474;
border-radius: 3px; border-radius: 3px;
} }
.updatacolor3 { .updatacolor3 {
position: absolute; position: absolute;
left: 0; left: 0;
@@ -1003,18 +1083,21 @@ export default {
background-color: #388be1; background-color: #388be1;
border-radius: 3px; border-radius: 3px;
} }
.updataxq { .updataxq {
position: absolute; position: absolute;
right: 2px; right: 2px;
top: -30px; top: -30px;
color: #57c887; color: #57c887;
} }
.updataxq2 { .updataxq2 {
position: absolute; position: absolute;
right: 2px; right: 2px;
top: -30px; top: -30px;
color: #ff7474; color: #ff7474;
} }
.updataxq3 { .updataxq3 {
position: absolute; position: absolute;
right: 2px; right: 2px;
@@ -1024,8 +1107,10 @@ export default {
} }
} }
} }
.file_operation { .file_operation {
display: flex; display: flex;
.fobox { .fobox {
margin-right: 5px; margin-right: 5px;
cursor: pointer; cursor: pointer;
@@ -1035,17 +1120,21 @@ export default {
} }
} }
} }
.m_footer { .m_footer {
display: flex; display: flex;
margin: 20px 0; margin: 20px 0;
.fotnam { .fotnam {
width: 100px; width: 100px;
display: flex; display: flex;
justify-content: end; justify-content: end;
padding-right: 15px; padding-right: 15px;
} }
.fotarea { .fotarea {
position: relative; position: relative;
.fuwenben { .fuwenben {
width: 90%; width: 90%;
height: 20px; height: 20px;
@@ -1058,6 +1147,7 @@ export default {
} }
} }
} }
.m_btn { .m_btn {
width: 100%; width: 100%;
margin-top: 25px; margin-top: 25px;
@@ -1065,6 +1155,7 @@ export default {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-content: center; align-content: center;
.btn { .btn {
width: 100px; width: 100px;
height: 40px; height: 40px;
@@ -1076,16 +1167,19 @@ export default {
margin-right: 14px; margin-right: 14px;
flex-shrink: 0; flex-shrink: 0;
cursor: pointer; cursor: pointer;
.btnText { .btnText {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
line-height: 40px; line-height: 40px;
} }
} }
.btn5 { .btn5 {
border: 1px solid rgba(64, 158, 255, 1); border: 1px solid rgba(64, 158, 255, 1);
color: #4ea6ff; color: #4ea6ff;
} }
.btn6 { .btn6 {
background-color: #4ea6ff; background-color: #4ea6ff;
color: #ffffff; color: #ffffff;
@@ -1096,10 +1190,13 @@ export default {
} }
} }
} }
.coursereviewedn { .coursereviewedn {
width: 100%; width: 100%;
.tmpl { .tmpl {
width: 100%; width: 100%;
.tmpl_header { .tmpl_header {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
@@ -1108,33 +1205,39 @@ export default {
margin-left: 32px; margin-left: 32px;
margin-right: 32px; margin-right: 32px;
.tmplh_inp { .tmplh_inp {
.inpbox { .inpbox {
display: flex; display: flex;
margin-top: 32px; margin-top: 32px;
flex-wrap: wrap; flex-wrap: wrap;
.inpbox1 { .inpbox1 {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-right: 24px; margin-right: 24px;
margin-top: 10px; margin-top: 10px;
.ant-select-selector { .ant-select-selector {
border-radius: 8px; border-radius: 8px;
width: 270px; width: 270px;
height: 40px; height: 40px;
padding-top: 5px; padding-top: 5px;
} }
span { span {
white-space: nowrap; white-space: nowrap;
} }
} }
} }
} }
.tmplh_btn { .tmplh_btn {
display: flex; display: flex;
// margin-left: 38px; // margin-left: 38px;
margin-top: 42px; margin-top: 42px;
.btn { .btn {
padding: 0px 26px 0px 26px; padding: 0px 26px 0px 26px;
height: 38px; height: 38px;
@@ -1145,72 +1248,90 @@ export default {
margin-right: 14px; margin-right: 14px;
cursor: pointer; cursor: pointer;
flex-shrink: 0; flex-shrink: 0;
.search { .search {
background-size: 100%; background-size: 100%;
} }
.btnText { .btnText {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
line-height: 36px; line-height: 36px;
margin-left: 5px; margin-left: 5px;
} }
.btnText1 { .btnText1 {
color: rgb(255, 255, 255); color: rgb(255, 255, 255);
} }
.btnText2 { .btnText2 {
color: rgba(64, 158, 255, 1); color: rgba(64, 158, 255, 1);
} }
} }
.btn1 { .btn1 {
background: #409eff; background: #409eff;
.search { .search {
width: 15px; width: 15px;
height: 17px; height: 17px;
background-image: url("../../assets/images/courseManage/search0.png"); background-image: url("../../assets/images/courseManage/search0.png");
} }
} }
.btn2 { .btn2 {
background: #ffffff; background: #ffffff;
border: 1px solid #388be1; border: 1px solid #388be1;
.search { .search {
width: 16px; width: 16px;
height: 18px; height: 18px;
background-image: url("../../assets/images/courseManage/reset1.png"); background-image: url("../../assets/images/courseManage/reset1.png");
} }
} }
.btn1:hover { .btn1:hover {
background: rgb(255, 255, 255); background: rgb(255, 255, 255);
border: 1px solid #388be1; border: 1px solid #388be1;
.search { .search {
background-image: url("../../assets/images/courseManage/search1.png"); background-image: url("../../assets/images/courseManage/search1.png");
} }
.btnText { .btnText {
color: rgba(64, 158, 255, 1); color: rgba(64, 158, 255, 1);
} }
} }
.btn2:hover { .btn2:hover {
background: rgba(64, 158, 255, 1); background: rgba(64, 158, 255, 1);
.search { .search {
background-image: url("../../assets/images/courseManage/reset0.png"); background-image: url("../../assets/images/courseManage/reset0.png");
} }
.btnText { .btnText {
color: #ffffff; color: #ffffff;
} }
} }
} }
} }
.tmpl_body { .tmpl_body {
padding: 0px 30px; padding: 0px 30px;
.tmpl_tabbox { .tmpl_tabbox {
.operation { .operation {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
color: #4ea6ff; color: #4ea6ff;
.nselect { .nselect {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
display: flex; display: flex;
.jc { .jc {
margin-left: 20px; margin-left: 20px;
white-space: nowrap; white-space: nowrap;
@@ -1219,6 +1340,7 @@ export default {
} }
} }
} }
.pa { .pa {
width: 100%; width: 100%;
margin-top: 20px; margin-top: 20px;

View File

@@ -57,14 +57,14 @@
@change="rankTimeChange" @change="rankTimeChange"
/> />
</div> </div>
<div class="inpbox1"> <!-- <div class="inpbox1">-->
<a-select <!-- <a-select-->
v-model:value="valuestate" <!-- v-model:value="valuestate"-->
placeholder="请选择审核状态" <!-- placeholder="请选择审核状态"-->
@change="handleChangeproj" <!-- @change="handleChangeproj"-->
:options="optionsproj" <!-- :options="optionsproj"-->
/> <!-- />-->
</div> <!-- </div>-->
</div> </div>
</div> </div>
<div class="tmplh_btn"> <div class="tmplh_btn">
@@ -193,8 +193,8 @@ export default {
{ {
title: "所属项目", title: "所属项目",
dataIndex: "belong", dataIndex: "sourceBelongName",
key: "belong", key: "sourceBelongName",
align: "center", align: "center",
width: "10%", width: "10%",
}, },
@@ -317,6 +317,7 @@ export default {
name: item.name, name: item.name,
belong: "", belong: "",
manager: item.manager || "-", manager: item.manager || "-",
sourceBelongName: item.sourceBelongName,
status: status:
item.status == 0 item.status == 0
? "草稿" ? "草稿"
@@ -337,6 +338,7 @@ export default {
number: item.projectId, number: item.projectId,
name: item.name, name: item.name,
belong: "", belong: "",
sourceBelongName: item.sourceBelongName,
manager: item.manager || "-", manager: item.manager || "-",
status: status:
item.status == 0 item.status == 0

View File

@@ -154,8 +154,8 @@ export default {
{ {
title: "所属项目", title: "所属项目",
dataIndex: "belong", dataIndex: "sourceBelongName",
key: "belong", key: "sourceBelongName",
align: "center", align: "center",
width: "11%", width: "11%",
}, },
@@ -250,6 +250,7 @@ export default {
number: item.projectId, number: item.projectId,
name: item.name, name: item.name,
belong: item.parentId, belong: item.parentId,
sourceBelongName: item.sourceBelongName,
manager: item.manager || "-", manager: item.manager || "-",
status: status:
item.status == 0 item.status == 0
@@ -277,6 +278,7 @@ export default {
number: item.projectId, number: item.projectId,
name: item.name, name: item.name,
belong: item.parentId, belong: item.parentId,
sourceBelongName: item.sourceBelongName,
manager: item.manager || "-", manager: item.manager || "-",
status: status:
item.status == 0 item.status == 0

View File

@@ -616,7 +616,7 @@
<div style="width: 5px; display: inline-block"></div> <div style="width: 5px; display: inline-block"></div>
<span class="yi"></span> <span class="yi"></span>
<span class="zon">列表选项总数</span> <span class="zon">列表选项总数</span>
<span class="th">{{ tableData.length }}</span> <span class="th">{{ tableDataTotal }}</span>
<span class="yi"> </span> <span class="yi"> </span>
</div> </div>
</div> </div>
@@ -648,6 +648,7 @@
@change="pageChange" @change="pageChange"
class="pagination" class="pagination"
style="display: block" style="display: block"
v-if="tableDataTotal > 10"
/> />
</div> </div>
</div> </div>
@@ -1333,7 +1334,7 @@ export default {
fileList: [], fileList: [],
docChecked: true, docChecked: true,
currentPage: 1, currentPage: 1,
tableDataTotal: 100, tableDataTotal: -1,
pageSize: 10, pageSize: 10,
visiblene: false, visiblene: false,
sh: false, sh: false,
@@ -1650,6 +1651,7 @@ export default {
.then((res) => { .then((res) => {
console.log("获取学员列表", res); console.log("获取学员列表", res);
let data = res.data.data.rows || null; let data = res.data.data.rows || null;
state.tableDataTotal = res.data.data.total;
state.tableData = []; state.tableData = [];
if (data.length) { if (data.length) {
for (let i in data) { for (let i in data) {
@@ -1657,7 +1659,7 @@ export default {
state.tableData.push({ state.tableData.push({
key: data[i].studentId, key: data[i].studentId,
com: data[i].userInfoBo.deptName, com: data[i].userInfoBo.deptName,
name: data[i].userInfoBo.userName, name: data[i].name,
gang: data[i].userInfoBo.jobName, gang: data[i].userInfoBo.jobName,
cur: data[i].currentChapterName || "0", cur: data[i].currentChapterName || "0",
jin: data[i].completeChapterCnt + "/" + data[i].totalChapterCnt, jin: data[i].completeChapterCnt + "/" + data[i].totalChapterCnt,
@@ -2087,6 +2089,7 @@ export default {
.then((res) => { .then((res) => {
console.log("添加学员成功", res); console.log("添加学员成功", res);
message.success("添加学员成功"); message.success("添加学员成功");
getStudent();
}) })
.catch((err) => { .catch((err) => {
console.log("添加学员失败", err); console.log("添加学员失败", err);

View File

@@ -2054,9 +2054,10 @@ export default {
console.log("点击发布"); console.log("点击发布");
let obj = { let obj = {
projectId: state.releaseProjectId, projectId: state.releaseProjectId,
type: 4,
}; };
api api
.releaseProject(obj) .handleProject(obj)
.then((res) => { .then((res) => {
console.log("发布成功", res); console.log("发布成功", res);
message.destroy(); message.destroy();
@@ -2081,7 +2082,7 @@ export default {
const recallProject = () => { const recallProject = () => {
let obj = { let obj = {
projectId: state.recallProjectId, projectId: state.recallProjectId,
type: 0, type: -4,
}; };
api api
.handleProject(obj) .handleProject(obj)

View File

@@ -3210,6 +3210,8 @@ export default {
// studentData(); // studentData();
} }
} }
}).catch(err=>{
console.log('获取学员列表失败',err)
}); });
}; };
//获取项目信息 //获取项目信息