mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
feat:案例和测评接口(测试)新增内部考试选则考卷抽屉
This commit is contained in:
@@ -82,11 +82,11 @@
|
||||
</template>
|
||||
<script>
|
||||
import { reactive, toRefs, onMounted } from "vue";
|
||||
import * as api from "../../api/indexInvist.js";
|
||||
import * as api from "../../api/indexCase.js";
|
||||
import * as apiTask from "../../api/indexTaskadd";
|
||||
import { message } from "ant-design-vue";
|
||||
import { RouterEditTask } from "@/api/indexTask";
|
||||
import dayjs from "dayjs";
|
||||
// import dayjs from "dayjs";
|
||||
|
||||
export default {
|
||||
name: "AddCase",
|
||||
@@ -137,15 +137,7 @@ export default {
|
||||
},
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
tableData: [
|
||||
{
|
||||
key: "1",
|
||||
title:
|
||||
"基于BOE显示PNL工厂的工序平1111112222222221111111111111122222333335555",
|
||||
name: "李玉冰",
|
||||
time: "2022-10-31 23:12:00",
|
||||
},
|
||||
],
|
||||
tableData: [],
|
||||
currentPage: 1,
|
||||
tableDataTotal: 0,
|
||||
pageSize: 10,
|
||||
@@ -166,17 +158,16 @@ export default {
|
||||
const columns = [
|
||||
{
|
||||
title: "案例标题",
|
||||
dataIndex: "tit",
|
||||
key: "tit",
|
||||
dataIndex: "title",
|
||||
key: "title",
|
||||
width: "400px",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "作者",
|
||||
dataIndex: "name",
|
||||
// width: "30%",
|
||||
key: "name",
|
||||
width: "100px",
|
||||
title: "作者名称",
|
||||
dataIndex: "authorName",
|
||||
key: "authorName",
|
||||
width: "200px",
|
||||
align: "center",
|
||||
className: "classify",
|
||||
},
|
||||
@@ -184,8 +175,9 @@ export default {
|
||||
title: "导入时间",
|
||||
dataIndex: "time",
|
||||
key: "time",
|
||||
width: "200px",
|
||||
width: "400px",
|
||||
align: "center",
|
||||
className: "classify",
|
||||
},
|
||||
];
|
||||
return columns;
|
||||
@@ -207,11 +199,12 @@ export default {
|
||||
data.map((value, index) => {
|
||||
let obj = {
|
||||
key: index,
|
||||
assessmentId: value.assessmentId,
|
||||
num: value.essayQuestionVoList.length,
|
||||
name: value.assessmentName ? value.assessmentName : "-",
|
||||
creator: value.createUser ? value.createUser : "-",
|
||||
time: dayjs(value.createTime).format("YYYY-MM-DD"),
|
||||
authorId:value.authorId,
|
||||
authorName:value.authorName,
|
||||
companyId:value.companyId,
|
||||
coverUrl:value.coverUrl,
|
||||
caseid:value.caseid,
|
||||
title:value.title,
|
||||
};
|
||||
array.push(obj);
|
||||
});
|
||||
@@ -220,19 +213,22 @@ export default {
|
||||
//获取全部案例信息接口
|
||||
const getAllCaseText = () => {
|
||||
api
|
||||
.queryAssessmentDetailList({
|
||||
assessmentName: "",
|
||||
pageNo: state.currentPage,
|
||||
pageSize: state.pageSize,
|
||||
.queryCasesDetailList({
|
||||
"keyWord": "",
|
||||
"orderAsc": true,
|
||||
"orderField": "",
|
||||
"pageIndex": 0,
|
||||
"pageSize": 0,
|
||||
"top": true
|
||||
})
|
||||
.then((res) => {
|
||||
let arr = res.data.data.rows;
|
||||
let arr = res.data.data;
|
||||
if (res.status === 200) {
|
||||
getTableDate(arr);
|
||||
state.tableDataTotal = Number(res.data.data.total);
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
console.log('---------------------获取全部案例信息接口失败-----------------------');
|
||||
});
|
||||
};
|
||||
const updateTask = () => {
|
||||
|
||||
Reference in New Issue
Block a user