更新
This commit is contained in:
@ -100,6 +100,8 @@ const init = (type, row) => {
|
|||||||
title.value = type == "add" ? "新增" : type == "edit" ? "编辑" : "详情";
|
title.value = type == "add" ? "新增" : type == "edit" ? "编辑" : "详情";
|
||||||
if(row){
|
if(row){
|
||||||
qcckPost({},`/mosty-base/baxx/tkgl/getInfo/${row.id}`).then(res=>{
|
qcckPost({},`/mosty-base/baxx/tkgl/getInfo/${row.id}`).then(res=>{
|
||||||
|
res.correctAnswer = res.type == '02'? res.correctAnswer.split(','):res.correctAnswer;
|
||||||
|
multiple.value = res.type == '02' ? true:false;
|
||||||
listQuery.value = res
|
listQuery.value = res
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -139,6 +141,7 @@ const save = () => {
|
|||||||
const close = () => {
|
const close = () => {
|
||||||
dialogForm.value = false;
|
dialogForm.value = false;
|
||||||
listQuery.value = { }
|
listQuery.value = { }
|
||||||
|
multiple.value = false;
|
||||||
FormRef.value.reset()
|
FormRef.value.reset()
|
||||||
};;
|
};;
|
||||||
|
|
||||||
|
|||||||
@ -125,8 +125,6 @@ const getList = () => {
|
|||||||
let arr = res.records || []
|
let arr = res.records || []
|
||||||
arr.forEach(item => {
|
arr.forEach(item => {
|
||||||
item.correctAnswer = item.correctAnswer.split(',')
|
item.correctAnswer = item.correctAnswer.split(',')
|
||||||
console.log(item.correctAnswer);
|
|
||||||
|
|
||||||
});
|
});
|
||||||
pageData.tableData = arr;
|
pageData.tableData = arr;
|
||||||
pageData.total = res.total;
|
pageData.total = res.total;
|
||||||
|
|||||||
Reference in New Issue
Block a user