fix:添加测评搜索bug

This commit is contained in:
Ggysh-7
2022-11-25 23:02:21 +08:00
parent 33f5f9cb4f
commit 65b5dfbd1d
3 changed files with 14 additions and 7 deletions

View File

@@ -33,8 +33,8 @@ http.interceptors.request.use(
console.log("当前请求页面无token,请执行操作!!!");
// 此处测试默认配置token
config.headers.token = "123456";
// config.headers.token = "eyJ0eXBlIjoidG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC91LmJvZS5jb20iLCJpYXQiOjE2NjkzODQ5MTgsImV4cCI6MTY2OTM5MjExOCwiR2l2ZW5OYW1lIjoiYm9ldSIsInVzZXJJZCI6IjZCMDQ5RkFGLUMzMTQtN0NDRi0wRDI4LTBEMjNGNEM0MjUzMSIsInVJZCI6Ijk2NTM0MjAyNzQ5NzYwNzE2OCIsInBlcm1pc3Npb24iOiIifQ==.7c3af587cbacf68180e86681442e06ffd33c65a78fc835aaac34d0c773752d99";
// config.headers.token = "123456";
config.headers.token = "eyJ0eXBlIjoidG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC91LmJvZS5jb20iLCJpYXQiOjE2NjkzODQ5MTgsImV4cCI6MTY2OTM5MjExOCwiR2l2ZW5OYW1lIjoiYm9ldSIsInVzZXJJZCI6IjZCMDQ5RkFGLUMzMTQtN0NDRi0wRDI4LTBEMjNGNEM0MjUzMSIsInVJZCI6Ijk2NTM0MjAyNzQ5NzYwNzE2OCIsInBlcm1pc3Npb24iOiIifQ==.7c3af587cbacf68180e86681442e06ffd33c65a78fc835aaac34d0c773752d99";
}
return config;
},

View File

@@ -173,10 +173,8 @@ export default {
// addLoading:false,
});
const checkFinish = (value)=> {
console.log('父亲');
state.evaluationTypeId = value.quiz_kid ? value.quiz_kid : null
state.evaluationTypeName = value.title ? value.title : ""
console.log(value,state.evaluationTypeName ,'state.evaluationTypeName state.evaluationTypeName ');
}
const closeDrawer = () => {
ctx.emit("update:addevalVisible", false);

View File

@@ -124,6 +124,10 @@ import { reactive, toRefs } from "vue";
dataIndex: "theme_desc",
key: "content",
align: "center",
maxWidth: "13%",
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
},
{
title: "状态",
@@ -160,6 +164,7 @@ import { reactive, toRefs } from "vue";
state.selectedRowKeys = []
state.evListData = {}
state.inputV1 = ""
state.searching = false
};
const afterVisibleChange = (bol) => {
if ( bol == true ) {
@@ -168,7 +173,6 @@ import { reactive, toRefs } from "vue";
};
const checkFinish =() =>{
ctx.emit("getEvListData", state.evListData);
console.log('儿子',state.evListData);
closeDrawer();
}
const changePagination = (page) => {
@@ -251,8 +255,13 @@ import { reactive, toRefs } from "vue";
}
//搜索测评列表
const searchList = ()=> {
state.searching = true
getAllEvalText()
if(state.inputV1 !== ''){
state.searching = true
getAllEvalText()
}else {
state.searching = false
resetData()
}
}
//重置测评列表
const resetData = ()=> {