mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
fit:添加案例 选择测评、试卷 、四个管理的获取列表接口请求条件 添加案例最多选择两条 选择试卷、测评最多选择一条可反选创建测评信息接口请求参数修改
This commit is contained in:
@@ -150,8 +150,10 @@ export default {
|
||||
localStorage.setItem("stageId", props.chooseStageId);
|
||||
localStorage.setItem("chapterId", props.isactive);
|
||||
};
|
||||
const afterVisibleChange = () => {
|
||||
getAllCaseText()
|
||||
const afterVisibleChange = (bol) => {
|
||||
if ( bol == true ) {
|
||||
getAllCaseText()
|
||||
}
|
||||
};
|
||||
const tableDataFunc = () => {
|
||||
const columns = [
|
||||
@@ -182,6 +184,9 @@ export default {
|
||||
return columns;
|
||||
};
|
||||
const onSelectChange = (selectedRowKeys,selectedRows)=> {
|
||||
if(selectedRowKeys.length>2){
|
||||
return
|
||||
}
|
||||
state.selectedRowKeys = selectedRowKeys;
|
||||
state.apiTaskList = selectedRows;
|
||||
};
|
||||
@@ -251,18 +256,6 @@ export default {
|
||||
});
|
||||
} else if (props.isLevel == 2) {
|
||||
if(state.apiTaskList.length > 1){
|
||||
// for((item,index) in state.apiTaskList){
|
||||
// apiTask
|
||||
// .addTask({
|
||||
// "courseId": item.caseId,
|
||||
// "duration": 0,
|
||||
// "flag": true,
|
||||
// "name": item.caseName,
|
||||
// "projectId": props.projectId,
|
||||
// "projectTaskId": props.projectTaskId,
|
||||
// "stageId": props.chooseStageId,
|
||||
// "type": 3,
|
||||
// })
|
||||
for(let i = 0;i <= state.apiTaskList.length;i++){
|
||||
apiTask
|
||||
.addTask({
|
||||
@@ -455,6 +448,9 @@ export default {
|
||||
.ant-table-selection-column {
|
||||
padding: 0px !important;
|
||||
padding-left: 15px !important;
|
||||
.ant-table-selection{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.ant-table-thead > tr > th {
|
||||
background-color: rgba(239, 244, 252, 1);
|
||||
|
||||
Reference in New Issue
Block a user