考试列表改为试卷列表,课程分类搜索

This commit is contained in:
zhangyc
2022-12-13 14:14:19 +08:00
parent 405b1b1c02
commit 171ad0af18
8 changed files with 77 additions and 36 deletions

View File

@@ -162,43 +162,47 @@ export default {
const tableDataFunc = () => { const tableDataFunc = () => {
{ {
const columns = [ const columns = [
{ // {
title: "序号", // title: "序号",
dataIndex: "paperId", // dataIndex: "paperId",
key: "paperId", // key: "paperId",
width: 90, // width: 90,
align: "center", // align: "center",
className: "h head", // className: "h head",
}, // },
{ {
title: "试卷名称", title: "试卷名称",
dataIndex: "testName", dataIndex: "testName",
key: "testName", key: "testName",
width: 110, width: "40%",
align: "center", align: "center",
className: "h head", className: "h head",
ellipsis: true,
}, },
{ {
title: "随机模式", title: "随机模式",
dataIndex: "paperMode", dataIndex: "paperMode",
key: "paperMode", key: "paperMode",
width: 110, width: "20%",
align: "center", align: "center",
className: "h", className: "h",
ellipsis: true,
}, },
{ {
title: "创建人", title: "创建人",
dataIndex: "sysCreateBy", dataIndex: "sysCreateBy",
key: "sysCreateBy", key: "sysCreateBy",
width: 90, width: "20%",
align: "center", align: "center",
className: "h", className: "h",
ellipsis: true,
}, },
{ {
title: "最近更新时间", title: "最近更新时间",
dataIndex: "sysUpdateTime", dataIndex: "sysUpdateTime",
key: "sysUpdateTime", key: "sysUpdateTime",
width: 150, ellipsis: true,
width: "20%",
align: "center", align: "center",
className: "h", className: "h",
}, },
@@ -248,7 +252,7 @@ export default {
published: true, published: true,
}; };
api api
.queryExaminationList(obj) .queryExaminationPaperList(obj)
.then((data) => { .then((data) => {
// getTableDate(res.data.data); // getTableDate(res.data.data);
//** 表格repaint */ //** 表格repaint */
@@ -257,10 +261,10 @@ export default {
let obj = { let obj = {
key: index + 1, key: index + 1,
sysCreateBy: value.sysCreateBy, sysCreateBy: value.sysCreateBy,
paperId: index + 1, paperId:value.id,
testName: value.testName, testName: value.testName,
paperMode: value.randomMode ? "" : "", paperMode: value.paperMode==1?"固定试卷":"随机",
sysUpdateTime: value.sysUpdateTime, sysUpdateTime:value.sysUpdateTime,
id:value.id, id:value.id,
}; };
array.push(obj); array.push(obj);

View File

@@ -73,7 +73,7 @@ function validateProName() {
display: inline-block; display: inline-block;
width: 99%; width: 99%;
min-width: 0; min-width: 0;
padding: 0px 17px; padding: 0px 8px;
color: rgba(0, 0, 0, 0.85); color: rgba(0, 0, 0, 0.85);
font-size: 14px; font-size: 14px;
line-height: 1.5715; line-height: 1.5715;

View File

@@ -1967,6 +1967,7 @@
</a-checkbox> </a-checkbox>
</div> </div>
</div> </div>
<div class="cstm_items"> <div class="cstm_items">
<div class="signbox"> <div class="signbox">
<span style="margin-right: 3px">签到设置</span> <span style="margin-right: 3px">签到设置</span>
@@ -1978,12 +1979,15 @@
是否允许未报名的学员签到 是否允许未报名的学员签到
</span> </span>
</a-radio> </a-radio>
<!--
<a-radio :value="1" @click="clear_xjkkradioV1"> <a-radio :value="1" @click="clear_xjkkradioV1">
<span style="color: #6d7584">签到是否需要口令</span> <span style="color: #6d7584">签到是否需要口令</span>
</a-radio> </a-radio>-->
</a-radio-group> </a-radio-group>
</div> </div>
</div> </div>
<div class="cstm_items"> <div class="cstm_items">
<div class="signbox"> <div class="signbox">
<span style="margin-right: 3px">评估设置</span> <span style="margin-right: 3px">评估设置</span>

View File

@@ -14,6 +14,7 @@
<div class="tmplh_inp"> <div class="tmplh_inp">
<div class="inpbox"> <div class="inpbox">
<div class="inpbox1"> <div class="inpbox1">
<!--
<a-select <a-select
v-model:value="valueproj" v-model:value="valueproj"
value-key="value" value-key="value"
@@ -21,7 +22,27 @@
{ label: '请选择内容分类', value: '' }, { label: '请选择内容分类', value: '' },
...calssifyList, ...calssifyList,
]" ]"
/> />-->
<a-tree-select
:getPopupContainer="
(triggerNode) => {
return triggerNode.parentNode || document.body;
}
"
v-model:value="valueproj"
show-search
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
placeholder="请选择内容分类"
allow-clear
tree-default-expand-all
:tree-data="options2222"
>
<template #title="{ value: val, title }">
<b v-if="val === '11111'" style="color: #08c">sss</b>
<template v-else>{{ title }}</template>
</template>
</a-tree-select>
</div> </div>
<div class="inpbox1"> <div class="inpbox1">
<a-input <a-input
@@ -140,7 +161,7 @@ export default {
setup() { setup() {
const state = reactive({ const state = reactive({
calssifyList: [], //分类字典 calssifyList: [], //分类字典
valueproj: "", valueproj:null,
valuecreater: "", valuecreater: "",
valuename: "", valuename: "",
currentPage: 1, currentPage: 1,

View File

@@ -16,7 +16,7 @@
<div class="inpbox1"> <div class="inpbox1">
<!-- <!--
<a-select <a-select
v-model:value="categoryId" v-model:value="valueproj"
:options="[ :options="[
{ label: '请选择内容分类', value: '' }, { label: '请选择内容分类', value: '' },
...calssifyList, ...calssifyList,
@@ -28,11 +28,12 @@
return triggerNode.parentNode || document.body; return triggerNode.parentNode || document.body;
} }
" "
v-model:value="categoryId" v-model:value="valueproj"
show-search show-search
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
placeholder="请选择内容分类" placeholder="请选择内容分类"
allow-clear
tree-default-expand-all tree-default-expand-all
:tree-data="options2222" :tree-data="options2222"
> >
@@ -213,7 +214,7 @@ export default {
}, },
], ],
calssifyList: [], //分类字典 calssifyList: [], //分类字典
categoryId: "", valueproj:null,
valuecreater: "", valuecreater: "",
valuename: "", valuename: "",
// currentFacePage: 1, // currentFacePage: 1,
@@ -488,7 +489,7 @@ export default {
state.loading=true state.loading=true
let objn = { let objn = {
auditStatus: 1, auditStatus: 1,
categoryId: state.categoryId, categoryId: state.valueproj,
createName: state.valuecreater, createName: state.valuecreater,
name: state.valuename, name: state.valuename,
pageNo: state.currentPage, pageNo: state.currentPage,
@@ -557,7 +558,7 @@ export default {
const searchList = () => { const searchList = () => {
let objn = { let objn = {
auditStatus: 1, auditStatus: 1,
categoryId: state.categoryId, categoryId: state.valueproj,
createName: state.valuecreater, createName: state.valuecreater,
name: state.valuename, name: state.valuename,
pageNo: state.currentPage, pageNo: state.currentPage,
@@ -622,7 +623,7 @@ export default {
state.tableData1 = array; state.tableData1 = array;
}; };
const reset = () => { const reset = () => {
state.categoryId = ""; state.valueproj = "";
state.valuecreater = null; state.valuecreater = null;
state.valuename = null; state.valuename = null;
getFaceList(); getFaceList();

View File

@@ -203,6 +203,7 @@
<!-- <img class="im" src="../../assets/px.jpg" /> <!-- <img class="im" src="../../assets/px.jpg" />
<img class="im" src="../../assets/px.jpg" /> <img class="im" src="../../assets/px.jpg" />
<img class="im" src="../../assets/px.jpg" /> --> <img class="im" src="../../assets/px.jpg" /> -->
<div <div
@click="chooseImg(item)" @click="chooseImg(item)"
v-for="(item, index) in imgData" v-for="(item, index) in imgData"
@@ -331,6 +332,7 @@
<!-- <img class="im" src="../../assets/px.jpg" /> <!-- <img class="im" src="../../assets/px.jpg" />
<img class="im" src="../../assets/px.jpg" /> <img class="im" src="../../assets/px.jpg" />
<img class="im" src="../../assets/px.jpg" /> --> <img class="im" src="../../assets/px.jpg" /> -->
<div <div
@click="chooseImg2(item)" @click="chooseImg2(item)"
v-for="(item, index) in imgData" v-for="(item, index) in imgData"
@@ -865,7 +867,7 @@ export default {
const handleOut1 = () => { const handleOut1 = () => {
state.pathName = ""; state.pathName = "";
state.pathBg = ""; state.pathBg = "";
state.pathBgId = ""; state.pathBgId =1;
state.organizationSelectName = null; state.organizationSelectName = null;
state.organizationSelectId = null; state.organizationSelectId = null;
state.pathIntro = ""; state.pathIntro = "";
@@ -1620,14 +1622,21 @@ export default {
state.organizationSelectId = detail.organizationId; state.organizationSelectId = detail.organizationId;
state.pathIntro = detail.remark; state.pathIntro = detail.remark;
state.editPathId = id; state.editPathId = id;
// console.log("state.imgData", state.imgData); let arr = imgData.value;
let arr = imgData; arr.forEach((item) => {
for (let i = 0; i < arr.length; i++) { if (item.dictValue === state.pathBg) {
state.pathBgId = item.dictCode;
}
});
//for (let i = 0; i < arr.length; i++) {
// console.log("arr[i].dictValue", arr[i].dictValue, state.pathBg); // console.log("arr[i].dictValue", arr[i].dictValue, state.pathBg);
if (arr[i].dictValue === state.pathBg) { // if (arr[i].dictValue === state.pathBg) {
state.pathBgId = arr[i].dictCode; // state.pathBgId = arr[i].dictCode;
}
} // }
// }
} }
}) })
.catch((err) => { .catch((err) => {

View File

@@ -44,7 +44,7 @@
></a-select> ></a-select>
</div> </div>
<div class="select addTimeBox"> <div class="select addTimeBox">
<div class="addTime">创建时间</div> <div class="addTime">项目起止时间</div>
<a-range-picker <a-range-picker
v-model:value="searchParam.valueDate" v-model:value="searchParam.valueDate"
:show-time="{ :show-time="{

View File

@@ -426,6 +426,7 @@ export default {
<div class="operation"> <div class="operation">
{value.state === "2" ? ( {value.state === "2" ? (
<div class="fb"> <div class="fb">
{ /**
<div class="jc" <div class="jc"
onClick={() => { onClick={() => {
handleToManagepage(value, "/managepage"); handleToManagepage(value, "/managepage");
@@ -433,6 +434,7 @@ export default {
> >
管理 管理
</div> </div>
*/ }
<div <div
class="jc" class="jc"
onClick={() => { onClick={() => {