2024年7月24日 修复问题
This commit is contained in:
parent
0399cdf7be
commit
27faf2a65f
|
@ -235,7 +235,7 @@ const $message = useMessage();
|
||||||
{
|
{
|
||||||
ifShow: reloadCreateBtn.value,
|
ifShow: reloadCreateBtn.value,
|
||||||
label: '重新生成',
|
label: '重新生成',
|
||||||
onClick: reloadCreateFn.bind(null, { id: record.id }),
|
onClick: reloadCreateFn.bind(null, { id: record.id, isDelChildren: false }),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '删除',
|
label: '删除',
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
<div v-if="current == 1" style="padding: 20px;">
|
<div v-if="current == 1" style="padding: 20px;">
|
||||||
|
|
||||||
<a-col :span="24" class="shuoming">
|
<a-col :span="24" class="shuoming">
|
||||||
<span>温馨提示:点击导入后选择数据模板进行导入!</span>
|
<span>温馨提示:点击导入后选择数据模板进行导入!<a-switch hidden v-model:checked="isDelChildren" checked-children="删除" un-checked-children="不删除"/></span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<span style="text-align: center;">
|
<span style="text-align: center;">
|
||||||
<a-spin :spinning="uploadButtonSpinning">
|
<a-spin :spinning="uploadButtonSpinning">
|
||||||
|
@ -129,6 +129,7 @@ const formData = reactive<Record<string, any>>({
|
||||||
|
|
||||||
const current = ref<number>(0);
|
const current = ref<number>(0);
|
||||||
const uploadButtonSpinning = ref<boolean>(false);
|
const uploadButtonSpinning = ref<boolean>(false);
|
||||||
|
const isDelChildren = ref<boolean>(true);
|
||||||
|
|
||||||
function log(...d){
|
function log(...d){
|
||||||
console.log('shangc',...d);
|
console.log('shangc',...d);
|
||||||
|
@ -160,8 +161,8 @@ function handleSuccess(xlsRes){
|
||||||
uploadButtonSpinning.value = false;
|
uploadButtonSpinning.value = false;
|
||||||
if(xlsRes.success){
|
if(xlsRes.success){
|
||||||
current.value++;
|
current.value++;
|
||||||
console.log("参数--------》",{id:formData.id}, ...d)
|
console.log("参数--------》",{id:formData.id}, xlsRes)
|
||||||
defHttp.get({url:'/blStuAnswer/blStuAnswer/createWord',params:{id:formData.id}}).then(res=>{
|
defHttp.get({url:'/blStuAnswer/blStuAnswer/createWord',params:{ id:formData.id, isDelChildren: isDelChildren.value }}).then(res=>{
|
||||||
console.log('---生成报告--->',res);
|
console.log('---生成报告--->',res);
|
||||||
if(res.code==200||res=='生成成功'){
|
if(res.code==200||res=='生成成功'){
|
||||||
handleWancheng();
|
handleWancheng();
|
||||||
|
|
Loading…
Reference in New Issue