mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 20:36:45 +08:00
Merge branch 'master' of ssh://gitlab.dongwu-inc.com:10022/BOE/fe-manage
This commit is contained in:
@@ -199,20 +199,39 @@ export default {
|
||||
const getTableDate = (tableData) => {
|
||||
let data = tableData;
|
||||
let array = [];
|
||||
data.map((value, index) => {
|
||||
let obj = {
|
||||
key: index,
|
||||
authorId:value.authorId,
|
||||
authorName:value.authorName,
|
||||
companyId:value.companyId,
|
||||
coverUrl:value.coverUrl,
|
||||
caseid:value.id,
|
||||
title:value.title,
|
||||
};
|
||||
array.push(obj);
|
||||
});
|
||||
state.tableData = array;
|
||||
console.log('get下来的数据',state.tableData);
|
||||
if(state.inputV1 == ""){
|
||||
data.map((value, index) => {
|
||||
let obj = {
|
||||
key: index,
|
||||
authorId:value.authorId,
|
||||
authorName:value.authorName,
|
||||
companyId:value.companyId,
|
||||
coverUrl:value.coverUrl,
|
||||
id:value.id,
|
||||
title:value.title,
|
||||
};
|
||||
array.push(obj);
|
||||
});
|
||||
state.tableData = array;
|
||||
console.log('get下来获取全部的的数据',state.tableData);
|
||||
} else {
|
||||
data.map((value, index) => {
|
||||
let obj = {
|
||||
key: index,
|
||||
authorId:value.authorId,
|
||||
authorName:value.authorName,
|
||||
companyId:value.companyId,
|
||||
coverUrl:value.coverUrl,
|
||||
id:value.id,
|
||||
title:value.title,
|
||||
};
|
||||
if(obj.title == state.inputV1){
|
||||
array.push(obj);
|
||||
}
|
||||
});
|
||||
state.tableData = array;
|
||||
console.log('get下来搜索的的数据',state.tableData);
|
||||
}
|
||||
};
|
||||
//获取全部案例信息接口
|
||||
const getAllCaseText = () => {
|
||||
@@ -227,7 +246,7 @@ export default {
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.status === 200) {
|
||||
getTableDate(res.data.data);
|
||||
getTableDate(res.data.data);
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
@@ -238,7 +257,7 @@ export default {
|
||||
for(let i = 0;i < state.apiTaskList.length;i++){
|
||||
RouterEditTask({
|
||||
chapterId: props.isactive,
|
||||
courseId: state.apiTaskList[i].caseid,
|
||||
courseId: state.apiTaskList[i].id,
|
||||
name: state.apiTaskList[i].caseName,
|
||||
routerId: props.routerId,
|
||||
routerTaskId: props.routerTaskId || 0,
|
||||
|
||||
Reference in New Issue
Block a user