mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-21 00:36:46 +08:00
--demand 项目管理
This commit is contained in:
@@ -203,8 +203,8 @@
|
|||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: "工号",
|
title: "工号",
|
||||||
dataIndex: "studentCode",
|
dataIndex: "studentUserNo",
|
||||||
key: "studentCode",
|
key: "studentUserNo",
|
||||||
width: "20%",
|
width: "20%",
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
@@ -212,7 +212,7 @@
|
|||||||
customRender: (text) => {
|
customRender: (text) => {
|
||||||
return (
|
return (
|
||||||
<div class="racona">
|
<div class="racona">
|
||||||
<span> {text.record.studentCode?text.record.studentCode:"-"}</span>
|
<span> {text.record.studentUserNo?text.record.studentUserNo:"-"}</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -316,8 +316,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "进度",
|
title: "进度",
|
||||||
dataIndex: "process",
|
dataIndex: "taskProcess",
|
||||||
key: "process",
|
key: "taskProcess",
|
||||||
width: "10%",
|
width: "10%",
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
@@ -325,15 +325,15 @@
|
|||||||
customRender: (text) => {
|
customRender: (text) => {
|
||||||
return (
|
return (
|
||||||
<div class="racona">
|
<div class="racona">
|
||||||
<span> {text.record.process?text.record.process:"-"}</span>
|
<span> {text.record.taskProcess?text.record.taskProcess:"-"}</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "完成时间",
|
title: "完成时间",
|
||||||
dataIndex: "finishEdTime",
|
dataIndex: "lastStudyTime",
|
||||||
key: "finishEdTime",
|
key: "lastStudyTime",
|
||||||
width: "15%",
|
width: "15%",
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
@@ -341,7 +341,7 @@
|
|||||||
customRender: (text) => {
|
customRender: (text) => {
|
||||||
return (
|
return (
|
||||||
<div class="racona">
|
<div class="racona">
|
||||||
<span> {text.record.finishEdTime?text.record.finishEdTime:"-"}</span>
|
<span> {text.record.lastStudyTime?text.record.lastStudyTime:"-"}</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -357,7 +357,7 @@
|
|||||||
customRender: (text) => {
|
customRender: (text) => {
|
||||||
return (
|
return (
|
||||||
<div class="racona">
|
<div class="racona">
|
||||||
<span> {text.record.finishStatus == 1 || text.record.finishStatus == 0 || text.record.finishStatus==null ? "未开始" :text.record.finishStatus == 2 ?"进行中":text.record.finishStatus == 3 ? "已完成" :"未完成"}</span>
|
<span> {!text.record.finishStatus? "未开始" :text.record.finishStatus == 2 ?"进行中":text.record.finishStatus == 1 ? "已完成" :"未完成"}</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -420,34 +420,29 @@
|
|||||||
|
|
||||||
// 获取数据
|
// 获取数据
|
||||||
function getData() {
|
function getData() {
|
||||||
if(props.datasource.type == 13){
|
if(props.datasource.type === 13){
|
||||||
console.log("我是传递的查询参数", {
|
api
|
||||||
"courseId": props.datasource.courseId,
|
.AssessmentManagementMessage({
|
||||||
"pageNo": state.currentPage,
|
pageNo: state.currentPage,
|
||||||
"pageSize": state.pageSize,
|
pageSize: state.pageSize,
|
||||||
"chapterId": props.datasource.chapterId,
|
currentStageId: props.datasource.chapterId,
|
||||||
"status": state.projectName,
|
type: 2,
|
||||||
"studentName": state.name
|
pid: props.datasource.routerId,
|
||||||
});
|
taskId: props.datasource.routerTaskId,
|
||||||
api.QueryProjectManageDetail({
|
taskType: props.datasource.type,
|
||||||
"courseId": props.datasource.courseId,
|
status: state.projectName,
|
||||||
"pageNo": state.currentPage,
|
studentName: state.name,
|
||||||
"pageSize": state.pageSize,
|
})
|
||||||
"chapterId": props.datasource.chapterId,
|
.then((res) => {
|
||||||
"status": state.projectName,
|
|
||||||
"studentName": state.name
|
|
||||||
}).then(res=>{
|
|
||||||
console.log('投票数据获取', res)
|
|
||||||
if(res.data.code==200){
|
|
||||||
state.tableDataTotalLoading = false;
|
state.tableDataTotalLoading = false;
|
||||||
state.tabledata = res.data.data.rows;
|
let newData = [];
|
||||||
state.courseID = props.datasource.courseId;
|
for (let i = 0; i < res.data.data.records.length; i++) {
|
||||||
state.tableDataTotal = res.data.data.total;
|
res.data.data.records[i].key = res.data.data.records[i].id;
|
||||||
|
newData.push(res.data.data.records[i]);
|
||||||
}
|
}
|
||||||
}).catch(err=>{
|
state.tabledata = newData;
|
||||||
console.log(err)
|
state.tableDataTotal = res.data.data.total;
|
||||||
state.tableDataTotalLoading = false;
|
state.courseID = props.datasource.courseId;
|
||||||
state.tabledata = [];
|
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
state.tableDataTotalLoading = false;
|
state.tableDataTotalLoading = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user