mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16: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 = () => {
|
||||
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);
|
||||
|
||||
@@ -215,6 +215,8 @@ export default {
|
||||
projectId: props.projectId,
|
||||
projectTaskId: props.projectTaskId || 0,
|
||||
stageId: props.chooseStageId,
|
||||
evaluationTypeId: state.evaluationTypeId,
|
||||
evaluationTypeName: state.evaluationTypeName,
|
||||
type: 10,
|
||||
})
|
||||
.then(( ) => {
|
||||
@@ -230,6 +232,8 @@ export default {
|
||||
name: res.data.data.evaluationName,
|
||||
routerId: props.routerId,
|
||||
routerTaskId: props.routerTaskId || 0,
|
||||
evaluationTypeId: state.evaluationTypeId,
|
||||
evaluationTypeName: state.evaluationTypeName,
|
||||
type: 10,
|
||||
})
|
||||
.then(( ) => {
|
||||
|
||||
@@ -78,15 +78,16 @@
|
||||
<div class="main_item">
|
||||
<div class="btnbox">
|
||||
<a-form-item has-feedback label="选择试卷" name="choosedTest">
|
||||
<!-- <a-select
|
||||
dropdownClassName="dropdown-style"
|
||||
placeholder="请输入考试名称"
|
||||
:options="options1"
|
||||
v-model:value="formState.choosedTest"
|
||||
allowClear
|
||||
showSearch
|
||||
/> -->
|
||||
<a-dropdown>
|
||||
<a-button
|
||||
type="primary"
|
||||
style="width: 100px; margin-left: 35px"
|
||||
class="outer"
|
||||
@click.prevent
|
||||
@click="selectTest()"
|
||||
>
|
||||
选择试卷
|
||||
</a-button>
|
||||
<!-- <a-dropdown>
|
||||
<a-button
|
||||
type="primary"
|
||||
style="width: 100px; margin-left: 35px"
|
||||
@@ -109,16 +110,22 @@
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
</a-dropdown>
|
||||
</a-dropdown> -->
|
||||
<span style="margin-left: 10px">
|
||||
<a-tag
|
||||
class="tag-style"
|
||||
v-if="paperName != ''"
|
||||
:closable="true"
|
||||
>{{ paperName }}</a-tag
|
||||
>
|
||||
<!-- <a-tag
|
||||
class="tag-style"
|
||||
v-for="item in choosedTestList"
|
||||
:closable="true"
|
||||
@close="closeTag(item.key)"
|
||||
:key="item.key"
|
||||
>{{ item.value }}</a-tag
|
||||
>
|
||||
> -->
|
||||
</span>
|
||||
</a-form-item>
|
||||
</div>
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<div class="search"></div>
|
||||
<div class="btnText">搜索</div>
|
||||
</div>
|
||||
<div class="btn btn2">
|
||||
<div class="btn btn2" @click="resetData">
|
||||
<div class="search"></div>
|
||||
<div class="btnText">重置</div>
|
||||
</div>
|
||||
@@ -50,7 +50,7 @@
|
||||
:data-source="tableData"
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
:pagination="false"
|
||||
:row-selection="{ selectedRowKeys:selectedRowKeys,onSelect:onSelect,onChange:onSelectChange}"
|
||||
:row-selection="{ selectedRowKeys:selectedRowKeys,onChange:onSelectChange}"
|
||||
/>
|
||||
<div class="pa">
|
||||
<a-pagination
|
||||
@@ -148,18 +148,25 @@
|
||||
},
|
||||
]
|
||||
});
|
||||
const onSelect = (record)=> {
|
||||
state.evaluationTypeName = record.title
|
||||
state.evaluationTypeId = record.quiz_code
|
||||
};
|
||||
const onSelectChange = (selectedRowKeys)=> {
|
||||
// const onSelect = (record)=> {
|
||||
// state.evaluationTypeName = record.title
|
||||
// state.evaluationTypeId = record.quiz_code
|
||||
// };
|
||||
const onSelectChange = (selectedRowKeys,selectedRows)=> {
|
||||
if(state.selectedRowKeys.length>1){
|
||||
return
|
||||
}
|
||||
state.selectedRowKeys = selectedRowKeys
|
||||
state.evaluationTypeName = selectedRows[0].record.title
|
||||
state.evaluationTypeId = selectedRows[0].quiz_code
|
||||
}
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:EvalListVisible", false);
|
||||
};
|
||||
const afterVisibleChange = () => {
|
||||
const afterVisibleChange = (bol) => {
|
||||
if ( bol == true ) {
|
||||
getAllEvalText();
|
||||
}
|
||||
};
|
||||
const checkFinish =() =>{
|
||||
let EvListDate = {
|
||||
@@ -204,15 +211,24 @@
|
||||
.catch(()=>{
|
||||
})
|
||||
}
|
||||
//重置测评列表
|
||||
const resetData = ()=> {
|
||||
state.currentPage = 1;
|
||||
state.tableData = [];
|
||||
state.selectedRowKeys = [];
|
||||
state.evaluationTypeId = null;
|
||||
state.evaluationTypeName = "";
|
||||
getAllEvalText();
|
||||
}
|
||||
return {
|
||||
...toRefs(state),
|
||||
afterVisibleChange,
|
||||
closeDrawer,
|
||||
onSelectChange,
|
||||
onSelect,
|
||||
getTableDataList,
|
||||
checkFinish,
|
||||
changePagination,
|
||||
resetData,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
@@ -98,7 +98,6 @@
|
||||
:row-selection="{
|
||||
selectedRowKeys: selectedRowKeys,
|
||||
onChange: onSelectChange,
|
||||
onSelect: onSelect,
|
||||
}"
|
||||
/>
|
||||
<div class="pa">
|
||||
@@ -194,12 +193,20 @@ export default {
|
||||
selectedRowKeys: [],
|
||||
tabledata: [
|
||||
{
|
||||
key:1,
|
||||
workNum:1,
|
||||
status:"已完成",
|
||||
operation:"",
|
||||
},
|
||||
{
|
||||
workNum:1,
|
||||
key:2,
|
||||
workNum:2,
|
||||
status:"未完成",
|
||||
operation:"",
|
||||
},
|
||||
{
|
||||
key:3,
|
||||
workNum:2,
|
||||
status:"未完成",
|
||||
operation:"",
|
||||
}
|
||||
@@ -341,18 +348,21 @@ export default {
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:Fvisible", false);
|
||||
};
|
||||
const afterVisibleChange = () => {
|
||||
const afterVisibleChange = (bol) => {
|
||||
if ( bol == true ) {
|
||||
getManageList()
|
||||
}
|
||||
|
||||
};
|
||||
const selectProjectName = (value) => {
|
||||
state.projectName = value;
|
||||
};
|
||||
const onSelectChange = (selectedRowKeys) => {
|
||||
if(selectedRowKeys.length > 2){
|
||||
return
|
||||
}
|
||||
state.selectedRowKeys = selectedRowKeys;
|
||||
};
|
||||
const onSelect = (record) => {
|
||||
console.log(record);
|
||||
}
|
||||
|
||||
const allStuOver = ()=> {
|
||||
state.ASOvervisible = true
|
||||
@@ -457,7 +467,6 @@ export default {
|
||||
closeDrawer,
|
||||
afterVisibleChange,
|
||||
onSelectChange,
|
||||
onSelect,
|
||||
allStuOver,
|
||||
showEntryScore,
|
||||
godie,
|
||||
@@ -672,7 +681,6 @@ export default {
|
||||
.tableBox {
|
||||
.ant-table-selection-column {
|
||||
padding: 0px !important;
|
||||
// padding-left: 45px !important;
|
||||
}
|
||||
.ant-pagination-item,
|
||||
.ant-pagination-prev,
|
||||
|
||||
@@ -126,8 +126,10 @@
|
||||
ctx.emit("update:STvisible", false);
|
||||
};
|
||||
|
||||
const afterVisibleChange = () => {
|
||||
const afterVisibleChange = (bol) => {
|
||||
if (bol == true) {
|
||||
getManageList()
|
||||
}
|
||||
};
|
||||
|
||||
const tableDataFunc = ()=> {
|
||||
@@ -186,6 +188,9 @@
|
||||
state.SelectTestData = record
|
||||
};
|
||||
const onSelectChange = (selectedRowKeys) => {
|
||||
if(selectedRowKeys.length>1){
|
||||
return
|
||||
}
|
||||
state.selectedRowKeys = selectedRowKeys;
|
||||
}
|
||||
|
||||
@@ -232,7 +237,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
//搜索任务列表
|
||||
//搜索任务列表 没接口
|
||||
const searchTaskList = () => {
|
||||
let objser = {
|
||||
name: "",
|
||||
@@ -264,9 +269,12 @@
|
||||
|
||||
//重置任务列表
|
||||
const resetTaskList = () => {
|
||||
state.name = "";
|
||||
state.projectName = "";
|
||||
state.tabledata = [];
|
||||
state.inputPname = "";
|
||||
state.inputCname = "";
|
||||
state.tableData = [];
|
||||
state.selectedRowKeys = [];
|
||||
state.SelectTestData = [];
|
||||
state.currentPage = 1;
|
||||
getManageList();
|
||||
};
|
||||
return {
|
||||
@@ -398,6 +406,12 @@
|
||||
}
|
||||
}
|
||||
.tab {
|
||||
|
||||
.ant-table-selection-column {
|
||||
.ant-table-selection{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
th.h {
|
||||
background-color: #eff4fc !important;
|
||||
}
|
||||
|
||||
@@ -394,8 +394,11 @@ export default {
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:TMvisible", false);
|
||||
};
|
||||
const afterVisibleChange = () => {
|
||||
const afterVisibleChange = (bol) => {
|
||||
if ( bol == true ) {
|
||||
getManageList();
|
||||
}
|
||||
|
||||
};
|
||||
const selectProjectName = (value, index) => {
|
||||
console.log("value", value, index);
|
||||
|
||||
@@ -345,8 +345,10 @@ export default {
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:Tvisible", false);
|
||||
};
|
||||
const afterVisibleChange = () => {
|
||||
const afterVisibleChange = (bol) => {
|
||||
if ( bol == true ) {
|
||||
getManageList();
|
||||
}
|
||||
};
|
||||
const selectProjectName = (value) => {
|
||||
state.projectName = value;
|
||||
|
||||
@@ -299,8 +299,10 @@ export default {
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:Wvisible", false);
|
||||
};
|
||||
const afterVisibleChange = () => {
|
||||
const afterVisibleChange = (bol) => {
|
||||
if ( bol == true ) {
|
||||
getManageList();
|
||||
}
|
||||
};
|
||||
const selectProjectName = (value) => {
|
||||
state.projectName = value;
|
||||
|
||||
Reference in New Issue
Block a user