This commit is contained in:
kbing1981 2024-08-12 17:01:31 +08:00
commit d11075e051
4 changed files with 36 additions and 18 deletions

View File

@ -22,7 +22,7 @@
<a-row>
<a-col :span="18" style="margin-top: 5px">
<span style="color: #777777">学生修完本课程需要完成的测验次数</span>
<a-input-number style="width: 30%" v-model:value="zycs" @change="handleZycs" :max="100" /><span style="margin-left: 5px"></span>
<a-input-number style="width: 30%" v-model:value="zycs" @change="handleZycs" :max="100" :disabled="zycsDisabled"/><span style="margin-left: 5px"></span>
</a-col>
<a-col :span="6" style="text-align: right; padding: 5px 0 0 0">
<a @click="handleAddZycs" class="ant-btn buttonClass mar-right20"><Icon icon="ant-design:file-add-outlined" />新增测验</a>
@ -511,7 +511,8 @@
<template #title>
<span>{{ index + 1 }}</span><span v-html="item.wjTitle" style="white-space: pre-wrap; word-wrap: break-word" />
<span v-if="item.wjAnswer" style="color: #9e9e9e; margin-left: 30px; font-size: 12px">(正确答案:{{ item.wjAnswer }})</span>
<span class="tjfx-xzrs1" style="color: #9e9e9e">选择人数{{ item.num }}</span>
<span class="tjfx-xzrs1" style="color: #9e9e9e">正确人数{{ item.num }}</span>
<span class="tjfx-xzrs1" style="color: #9e9e9e">错误人数{{ item.num2 }}</span>
</template>
<template #extra v-if="zyInfo.atype == 6">
<span class="question-type" style="margin-left: 40px">填空题</span>
@ -560,7 +561,7 @@
<a href="javascript:;" @click="handleEdit(item, false)">修改题目</a>
</a-menu-item> -->
<a-menu-item>
<a href="javascript:;" @click="handleEdit(item, true)">测验详情</a>
<a href="javascript:;" disabled style="color: #9e9e9e" >测验详情</a>
</a-menu-item>
</a-menu>
</template>
@ -800,6 +801,7 @@ const YinyongTikuDcListModalpage = ref();
const showType = ref<number>(0);
const zycs = ref<number>(0);
const zycsDisabled = ref<boolean>(false);
const tableData = ref<any>([]);
const queryParamZy = ref<any>({});
const current = ref<number>(0);
@ -1136,6 +1138,13 @@ function cheGrp(a, b) {
//
function handleShowType(val) {
zycs.value = tableData.value.length
if(tableData.value.length>0){
zycsDisabled.value = true;
}else{
zycsDisabled.value = false;
}
console.log('👩‍👩‍👧‍👧', zycsDisabled)
showType.value = val;
}

View File

@ -13,10 +13,10 @@
<a-row>
<a-col :span="24" style="padding: 0 10px;margin-bottom: 10px;" v-for="(item,index2) in dataSource" :key="index2">
<a-row style="margin-top: 15px;">
<a-col :span="22" style="text-align:left;padding-left:15px;">
<a-col :lg="22" :xs="20" style="text-align:left;padding-left:15px;">
<div style="margin-top: 5px;">{{index2+1}}{{item.content}}</div>
</a-col>
<a-col :span="2" style="text-align:right">
<a-col :lg="2" :xs="3" style="text-align:right">
<a-button type="primary" @click="openKecheng(item)" style="margin-left:10px;">查看</a-button>
</a-col>
</a-row>
@ -40,10 +40,10 @@
<a-row>
<a-col :span="24" style="padding: 0 10px;margin-bottom: 10px;" v-for="(item,index2) in dataYySource" :key="index2">
<a-row style="margin-top: 15px;">
<a-col :span="22" style="text-align:left;padding-left:15px;">
<a-col :lg="22" :xs="20" style="text-align:left;padding-left:15px;">
<div style="margin-top: 5px;">{{index2+1}}{{item.content}}</div>
</a-col>
<a-col :span="2" style="text-align:right">
<a-col :lg="2" :xs="3" style="text-align:right">
<a-button type="primary" @click="openKecheng(item)" style="margin-left:10px;">已办</a-button>
</a-col>
</a-row>

View File

@ -36,21 +36,22 @@
</a-popover>
<a-popover title="查重情况">
<template #content>
<a-row style="width: 350px">
<a-row style="width: 400px">
<a-col :span="12">
<span class="zyCon-word" style="cursor: pointer" @click="handleOpenCcjg(item, '0')">维普资源库查重</span
>{{ getCctype(item, '1') }}
<span class="zyCon-word">维普资源库查重</span
>{{ getCctype(item, '1') }}<span @click="handleOpenCcjg(item, '0')" style="color:#1ab394;cursor: pointer;" v-if="item.wwxsl">报告</span>
</a-col>
<a-col :span="12">
<span class="zyCon-word" style="cursor: pointer" @click="handleOpenCcjg(item, '1')">本次作业查重</span
>{{ getCctype(item, '2') }}
<span class="zyCon-word">本次作业查重</span
>{{ getCctype(item, '2') }}<span @click="handleOpenCcjg(item, '1')" style="color:#1ab394;cursor: pointer;" v-if="item.nwxsl">报告</span>
</a-col>
<a-col :span="12">
<span class="zyCon-word" style="cursor: pointer" @click="handleOpenCcjg(item, '3')">学校作业库查重</span
>{{ getCctype(item, '4') }}
<span class="zyCon-word">学校作业库查重</span
>{{ getCctype(item, '4') }}<span @click="handleOpenCcjg(item, '3')" style="color:#1ab394;cursor: pointer;" v-if="item.xnxsl">报告</span>
</a-col>
<a-col :span="12">
<span class="zyCon-word" style="cursor: pointer" @click="handleOpenCcjg(item, '2')">Aigc查重</span>{{ getCctype(item, '3') }}
<span class="zyCon-word">Aigc查重</span>{{ getCctype(item, '3') }}
<span @click="handleOpenCcjg(item, '2')" style="color:#1ab394;cursor: pointer;" v-if="item.aigcxsl">报告</span>
</a-col>
</a-row>
</template>
@ -197,10 +198,8 @@ function handleOpenCcjg(record, type) {
} else {
createMessage.error('当前暂无结果');
}
}else{
createMessage.error('当前暂无结果');
}
});
}

View File

@ -22,7 +22,7 @@
<a-row>
<a-col :span="18" style="margin-top: 5px">
<span style="color: #777777">学生修完本课程需要完成的作业次数</span>
<a-input-number style="width: 30%" v-model:value="zycs" @change="handleZycs" :max="100" /><span style="margin-left: 5px"></span>
<a-input-number style="width: 30%" v-model:value="zycs" @change="handleZycs" :max="100" :disabled="zycsDisabled"/><span style="margin-left: 5px"></span>
</a-col>
<a-col :span="6" style="text-align: right; padding: 5px 0 0 0">
<a @click="handleAddZycs" class="ant-btn buttonClass mar-right20"><Icon icon="ant-design:file-add-outlined" />新增作业</a>
@ -593,6 +593,7 @@ const pageSize = ref<number>(100);
const tableData = ref<any>([]);
const showType = ref<number>(0);
const zycs = ref<number>(0);
const zycsDisabled = ref<boolean>(false);
const zyInfo = ref<any>({});
const formRef = ref();
const confirmLoading = ref<boolean>(false);
@ -1003,7 +1004,16 @@ function handleBatchAdd() {
}
//
function handleShowType(val) {
if(tableData.value.length>0){
zycsDisabled.value = true;
}else{
zycsDisabled.value = false;
}
console.log('👩‍👩‍👧‍👧', zycsDisabled)
showType.value = val;
}
//
function handleAddZycs() {