mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
fix:添加在线、添加考试、添加案例、添加测评功能完善
This commit is contained in:
@@ -97,7 +97,6 @@ import { reactive, toRefs } from "vue";
|
||||
tableDataTotal: 0,
|
||||
pageSize: 10,
|
||||
inputV1:"",
|
||||
searching:false,
|
||||
evaluationTypeId:null,
|
||||
evaluationTypeName:"",
|
||||
tableData: [],
|
||||
@@ -160,11 +159,10 @@ import { reactive, toRefs } from "vue";
|
||||
state.evListData = selectedRows[0] ? selectedRows[0] : {}
|
||||
}
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:EvalListVisible", false);
|
||||
state.selectedRowKeys = []
|
||||
state.evListData = {}
|
||||
state.inputV1 = ""
|
||||
state.searching = false
|
||||
ctx.emit("update:EvalListVisible", false);
|
||||
};
|
||||
const afterVisibleChange = (bol) => {
|
||||
if ( bol == true ) {
|
||||
@@ -177,6 +175,7 @@ import { reactive, toRefs } from "vue";
|
||||
}
|
||||
const changePagination = (page) => {
|
||||
state.currentPage = page;
|
||||
getAllEvalText();
|
||||
};
|
||||
//如果编辑情况会通过父亲传回来evaluationTypeId遍历出相同的那个选项 再将那个选项的key值赋给state.selectRowKeys
|
||||
const getTableDataList = (tableData) => {
|
||||
@@ -202,24 +201,6 @@ import { reactive, toRefs } from "vue";
|
||||
});
|
||||
state.tableData = array;
|
||||
state.selectedRowKeys = arrayKey;
|
||||
}else if (state.searching){
|
||||
data.map((value,index) => {
|
||||
let obj = {
|
||||
key:index+1,
|
||||
status:value.status,
|
||||
quiz_code:value.quiz_code,
|
||||
quiz_kid:value.quiz_kid,
|
||||
title:value.title,
|
||||
theme_desc:value.theme_desc,
|
||||
quiz_price:value.quiz_price,
|
||||
quiz_range:value.quiz_range,
|
||||
};
|
||||
if(state.inputV1 == obj.title)
|
||||
{
|
||||
array.push(obj);
|
||||
}
|
||||
});
|
||||
state.tableData = array;
|
||||
}
|
||||
else{
|
||||
data.map((value,index) => {
|
||||
@@ -242,7 +223,7 @@ import { reactive, toRefs } from "vue";
|
||||
//获取测评列表
|
||||
const getAllEvalText = ()=> {
|
||||
let objael = {
|
||||
"keyword": "",
|
||||
"keyword": state.inputV1,
|
||||
"user_id": "965341999643234304",
|
||||
}
|
||||
api
|
||||
@@ -256,10 +237,8 @@ import { reactive, toRefs } from "vue";
|
||||
//搜索测评列表
|
||||
const searchList = ()=> {
|
||||
if(state.inputV1 !== ''){
|
||||
state.searching = true
|
||||
getAllEvalText()
|
||||
}else {
|
||||
state.searching = false
|
||||
resetData()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user