mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
fix:补齐合并丢失代码
This commit is contained in:
@@ -34,7 +34,7 @@ http.interceptors.request.use(
|
||||
|
||||
// 此处测试默认配置token
|
||||
config.headers.token = "123456";
|
||||
// config.headers.token = "eyJ0eXBlIjoidG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC91LmJvZS5jb20iLCJpYXQiOjE2NjkzMDA4MDksImV4cCI6MTY2OTMwODAwOSwiR2l2ZW5OYW1lIjoiYm9ldSIsInVzZXJJZCI6IjZCMDQ5RkFGLUMzMTQtN0NDRi0wRDI4LTBEMjNGNEM0MjUzMSIsInVJZCI6Ijk2NTM0MjAyNzQ5NzYwNzE2OCIsInBlcm1pc3Npb24iOiIifQ==.bb3e0e031513761003d5c3bfeaf16e364bdf8fe7bc4cf691a05a74dc454afbfb";
|
||||
// config.headers.token = "eyJ0eXBlIjoidG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC91LmJvZS5jb20iLCJpYXQiOjE2NjkzODQ5MTgsImV4cCI6MTY2OTM5MjExOCwiR2l2ZW5OYW1lIjoiYm9ldSIsInVzZXJJZCI6IjZCMDQ5RkFGLUMzMTQtN0NDRi0wRDI4LTBEMjNGNEM0MjUzMSIsInVJZCI6Ijk2NTM0MjAyNzQ5NzYwNzE2OCIsInBlcm1pc3Npb24iOiIifQ==.7c3af587cbacf68180e86681442e06ffd33c65a78fc835aaac34d0c773752d99";
|
||||
}
|
||||
return config;
|
||||
},
|
||||
|
||||
@@ -173,8 +173,10 @@ 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);
|
||||
@@ -182,8 +184,8 @@ export default {
|
||||
state.inputV1 = "";
|
||||
state.time = undefined;
|
||||
state.description = "";
|
||||
(state.evaluationTypeId = 0),
|
||||
(state.evaluationTypeName = ""),
|
||||
state.evaluationTypeId = 0,
|
||||
state.evaluationTypeName = "",
|
||||
localStorage.setItem("stageId", props.chooseStageId);
|
||||
localStorage.setItem("chapterId", props.isactive);
|
||||
};
|
||||
@@ -232,9 +234,11 @@ export default {
|
||||
type: 10,
|
||||
})
|
||||
.then(() => {
|
||||
message.destroy()
|
||||
message.success(`${props.edit ? "编辑" : "新增"}阶段任务成功`);
|
||||
})
|
||||
.catch(() => {
|
||||
message.destroy()
|
||||
message.error(`${props.edit ? "编辑" : "新增"}阶段任务失败`);
|
||||
});
|
||||
} else if (props.isLevel == 3) {
|
||||
@@ -347,12 +351,10 @@ export default {
|
||||
.createEvaluation(obj)
|
||||
.then((res) => {
|
||||
updateTask(res.data.data);
|
||||
message.success("创建成功");
|
||||
closeDrawer();
|
||||
ctx.emit("changeData", false);
|
||||
})
|
||||
.catch(() => {
|
||||
message.error("创建失败");
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -148,16 +148,12 @@ import { reactive, toRefs } from "vue";
|
||||
},
|
||||
]
|
||||
});
|
||||
// const onSelect = (record)=> {
|
||||
// state.evaluationTypeName = record.title
|
||||
// state.evaluationTypeId = record.quiz_code
|
||||
// };
|
||||
const onSelectChange = (selectedRowKeys,selectedRows)=> {
|
||||
if(state.selectedRowKeys.length>1){
|
||||
if(selectedRowKeys.length>1){
|
||||
return
|
||||
}
|
||||
state.selectedRowKeys = selectedRowKeys
|
||||
state.evListData = selectedRows[0] ? selectedRows[0] : []
|
||||
state.evListData = selectedRows[0] ? selectedRows[0] : {}
|
||||
}
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:EvalListVisible", false);
|
||||
@@ -171,11 +167,8 @@ import { reactive, toRefs } from "vue";
|
||||
}
|
||||
};
|
||||
const checkFinish =() =>{
|
||||
let EvListDate = {
|
||||
Id : state.evaluationTypeId,
|
||||
Name : state.evaluationTypeName,
|
||||
}
|
||||
ctx.emit("getEvListDate", EvListDate);
|
||||
ctx.emit("getEvListData", state.evListData);
|
||||
console.log('儿子',state.evListData);
|
||||
closeDrawer();
|
||||
}
|
||||
const changePagination = (page) => {
|
||||
@@ -230,6 +223,7 @@ import { reactive, toRefs } from "vue";
|
||||
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,
|
||||
@@ -245,7 +239,7 @@ import { reactive, toRefs } from "vue";
|
||||
const getAllEvalText = ()=> {
|
||||
let objael = {
|
||||
"keyword": "",
|
||||
"user_id": 965341999643234304,
|
||||
"user_id": "965341999643234304",
|
||||
}
|
||||
api
|
||||
.choiceEvaluation(objael)
|
||||
@@ -255,7 +249,7 @@ import { reactive, toRefs } from "vue";
|
||||
.catch(()=>{
|
||||
})
|
||||
}
|
||||
//
|
||||
//搜索测评列表
|
||||
const searchList = ()=> {
|
||||
state.searching = true
|
||||
getAllEvalText()
|
||||
|
||||
Reference in New Issue
Block a user