添加新功能
This commit is contained in:
parent
068e00d0aa
commit
a5f0f6010f
|
@ -36,6 +36,10 @@
|
||||||
required: true,
|
required: true,
|
||||||
message: '请输入新密码',
|
message: '请输入新密码',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
pattern: /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,}$/,
|
||||||
|
message: '密码由8位数字、大小写字母和特殊符号组成!',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -80,6 +80,9 @@
|
||||||
<a-spin :spinning="confirmLoading">
|
<a-spin :spinning="confirmLoading">
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
|
<!-- <div style="text-align: right">
|
||||||
|
<a-button style="margin-right: 10px" type="primary" @click="handleYyzy">引用作业</a-button>
|
||||||
|
</div> -->
|
||||||
<span class="title">编辑测验</span> - <span class="title2">布置测验:设置第{{ zyInfo.sort }}次测验内容及要求</span>
|
<span class="title">编辑测验</span> - <span class="title2">布置测验:设置第{{ zyInfo.sort }}次测验内容及要求</span>
|
||||||
<a-divider />
|
<a-divider />
|
||||||
</a-col>
|
</a-col>
|
||||||
|
@ -158,23 +161,23 @@
|
||||||
<a-col :span="4" style="padding: 10px">
|
<a-col :span="4" style="padding: 10px">
|
||||||
<a-card title="可选题型" style="height: 300px; border: 1px solid #e8e8e8">
|
<a-card title="可选题型" style="height: 300px; border: 1px solid #e8e8e8">
|
||||||
<p
|
<p
|
||||||
><a-button type="primary" preIcon="ant-design:check-circle-outlined" @click="addTigan(3)" :disabled="editDisabled"
|
><a-button type="primary" @click="addTigan(3)" :disabled="editDisabled"
|
||||||
>单选</a-button
|
>单选题</a-button
|
||||||
></p
|
></p
|
||||||
>
|
>
|
||||||
<p
|
<p
|
||||||
><a-button type="primary" preIcon="ant-design:check-square-outlined" @click="addTigan(4)" :disabled="editDisabled"
|
><a-button type="primary" @click="addTigan(4)" :disabled="editDisabled"
|
||||||
>多选</a-button
|
>多选题</a-button
|
||||||
></p
|
></p
|
||||||
>
|
>
|
||||||
<p
|
<p
|
||||||
><a-button type="primary" preIcon="ant-design:check-square-outlined" @click="addTigan(5)" :disabled="editDisabled"
|
><a-button type="primary" @click="addTigan(5)" :disabled="editDisabled"
|
||||||
>填空</a-button
|
>填空题</a-button
|
||||||
></p
|
></p
|
||||||
>
|
>
|
||||||
<p
|
<p
|
||||||
><a-button type="primary" preIcon="ant-design:check-square-outlined" @click="addTigan(8)" :disabled="editDisabled"
|
><a-button type="primary" @click="addTigan(8)" :disabled="editDisabled"
|
||||||
>文件</a-button
|
>文件题</a-button
|
||||||
></p
|
></p
|
||||||
>
|
>
|
||||||
</a-card>
|
</a-card>
|
||||||
|
@ -195,7 +198,7 @@
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[单选]</span></span>
|
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[单选题]</span></span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" style="text-align: right;">
|
<a-col :span="12" style="text-align: right;">
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
@ -235,16 +238,7 @@
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
<!-- <a-textarea
|
<JEditor2 placeholder="请填写文件题题干"
|
||||||
placeholder="请填写单选题题干"
|
|
||||||
v-model:value="item.wjTitle"
|
|
||||||
:bordered="false"
|
|
||||||
:style="{ width: '30rem' }"
|
|
||||||
:auto-size="{ minRows: 1, maxRows: 5 }"
|
|
||||||
:disabled="editDisabled"
|
|
||||||
/> -->
|
|
||||||
|
|
||||||
<JEditor2 placeholder="请填写文件上传题题干"
|
|
||||||
v-model:value="item.wjTitle"
|
v-model:value="item.wjTitle"
|
||||||
:bordered="false"
|
:bordered="false"
|
||||||
:style="{ width: '30rem' }"
|
:style="{ width: '30rem' }"
|
||||||
|
@ -252,44 +246,10 @@
|
||||||
:disabled="editDisabled" v-if="!editDisabled"/>
|
:disabled="editDisabled" v-if="!editDisabled"/>
|
||||||
<div v-else v-html="item.wjTitle"></div>
|
<div v-else v-html="item.wjTitle"></div>
|
||||||
|
|
||||||
|
<div style="text-align: right;color: #c2bfbf">是否加入题库:
|
||||||
|
<j-dict-select-tag type='radio' v-model:value="item.sftjtk" dictCode="yn" placeholder="是否加入题库" :disabled="editDisabled"/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<!-- <template #extra>
|
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
|
||||||
<a-select
|
|
||||||
style="width: 120px"
|
|
||||||
v-model:value="item.wjScore"
|
|
||||||
placeholder="请选择分数"
|
|
||||||
v-if="item.wjSfqh == '0'"
|
|
||||||
:disabled="editDisabled"
|
|
||||||
>
|
|
||||||
<a-select-option value="5">5</a-select-option>
|
|
||||||
<a-select-option value="4">4</a-select-option>
|
|
||||||
<a-select-option value="3">3</a-select-option>
|
|
||||||
<a-select-option value="2">2</a-select-option>
|
|
||||||
<a-select-option value="1">1</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
<span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
|
||||||
>自定义分数</span
|
|
||||||
>
|
|
||||||
<a-input-number
|
|
||||||
v-model:value="item.wjScore"
|
|
||||||
style="width: 120px"
|
|
||||||
v-if="item.wjSfqh == '1'"
|
|
||||||
:disabled="editDisabled"
|
|
||||||
></a-input-number>
|
|
||||||
<span v-if="item.wjSfqh == '1'" @click="handleQiehuan(item, '0')" style="color: #9e9e9e" :disabled="editDisabled"
|
|
||||||
>返回</span
|
|
||||||
>
|
|
||||||
</a-tooltip>
|
|
||||||
<a-tooltip placement="topRight" title="删除此题"
|
|
||||||
><Icon
|
|
||||||
icon="ant-design:delete-outlined"
|
|
||||||
style="cursor: pointer; font-size: 20px; margin: 10px"
|
|
||||||
@click="handleDelTigan(item, index)"
|
|
||||||
v-if="!editDisabled"
|
|
||||||
/></a-tooltip>
|
|
||||||
</template> -->
|
|
||||||
<!-- <j-upload v-model:value="item.picPath" text="上传图片" fileType="image" :maxCount="9" :disabled="!isShow"></j-upload> -->
|
|
||||||
<a-row v-if="isShow">
|
<a-row v-if="isShow">
|
||||||
<a-col :span="24" style="color: darkgrey; font-size: 13px"> 注:选中即为正确答案 </a-col>
|
<a-col :span="24" style="color: darkgrey; font-size: 13px"> 注:选中即为正确答案 </a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -303,7 +263,6 @@
|
||||||
:bordered="false"
|
:bordered="false"
|
||||||
:disabled="editDisabled"
|
:disabled="editDisabled"
|
||||||
/>
|
/>
|
||||||
<!-- :style="{ width: handinpwei(tmxx.itemTitle) }" -->
|
|
||||||
<span style="color: #ecb646" v-if="item.itemSelected == tmxx.itemIndex">(正确答案)</span>
|
<span style="color: #ecb646" v-if="item.itemSelected == tmxx.itemIndex">(正确答案)</span>
|
||||||
<a-tooltip placement="topLeft" title="在下方添加新的选项"
|
<a-tooltip placement="topLeft" title="在下方添加新的选项"
|
||||||
><Icon
|
><Icon
|
||||||
|
@ -332,7 +291,7 @@
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[多选]</span></span>
|
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[多选题]</span></span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" style="text-align: right;">
|
<a-col :span="12" style="text-align: right;">
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
@ -380,54 +339,10 @@
|
||||||
:disabled="editDisabled" v-if="!editDisabled"/>
|
:disabled="editDisabled" v-if="!editDisabled"/>
|
||||||
<div v-else v-html="item.wjTitle"></div>
|
<div v-else v-html="item.wjTitle"></div>
|
||||||
|
|
||||||
<!-- <span>{{ index + 1 }}、</span
|
<div style="text-align: right;color: #c2bfbf">是否加入题库:
|
||||||
><a-textarea
|
<j-dict-select-tag type='radio' v-model:value="item.sftjtk" dictCode="yn" placeholder="是否加入题库" :disabled="editDisabled"/>
|
||||||
placeholder="请填写多选题题干"
|
</div>
|
||||||
v-model:value="item.wjTitle"
|
|
||||||
:bordered="false"
|
|
||||||
:style="{ width: '30rem' }"
|
|
||||||
:auto-size="{ minRows: 1, maxRows: 5 }"
|
|
||||||
:disabled="editDisabled"
|
|
||||||
/>
|
|
||||||
<span style="color: #c2bfbf">[多选]</span> -->
|
|
||||||
</template>
|
</template>
|
||||||
<!-- <template #extra>
|
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
|
||||||
<a-select
|
|
||||||
style="width: 120px"
|
|
||||||
v-model:value="item.wjScore"
|
|
||||||
placeholder="请选择分数"
|
|
||||||
v-if="item.wjSfqh == '0'"
|
|
||||||
:disabled="editDisabled"
|
|
||||||
>
|
|
||||||
<a-select-option value="5">5</a-select-option>
|
|
||||||
<a-select-option value="4">4</a-select-option>
|
|
||||||
<a-select-option value="3">3</a-select-option>
|
|
||||||
<a-select-option value="2">2</a-select-option>
|
|
||||||
<a-select-option value="1">1</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
<span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
|
||||||
>自定义分数</span
|
|
||||||
>
|
|
||||||
<a-input-number
|
|
||||||
v-model:value="item.wjScore"
|
|
||||||
style="width: 120px"
|
|
||||||
v-if="item.wjSfqh == '1'"
|
|
||||||
:disabled="editDisabled"
|
|
||||||
></a-input-number>
|
|
||||||
<span v-if="item.wjSfqh == '1'" @click="handleQiehuan(item, '0')" style="color: #9e9e9e" :disabled="editDisabled"
|
|
||||||
>返回</span
|
|
||||||
>
|
|
||||||
</a-tooltip>
|
|
||||||
<a-tooltip placement="topRight" title="删除此题"
|
|
||||||
><Icon
|
|
||||||
icon="ant-design:delete-outlined"
|
|
||||||
style="cursor: pointer; font-size: 20px; margin: 10px"
|
|
||||||
@click="handleDelTigan(item, index)"
|
|
||||||
v-if="!editDisabled"
|
|
||||||
/></a-tooltip>
|
|
||||||
</template> -->
|
|
||||||
<!-- <j-upload v-model:value="item.picPath" text="上传图片" fileType="image" :maxCount="9" :disabled="!isShow"></j-upload> -->
|
|
||||||
<a-row v-if="isShow">
|
<a-row v-if="isShow">
|
||||||
<a-col :span="24" style="color: darkgrey; font-size: 13px"> 注:选中即为正确答案 </a-col>
|
<a-col :span="24" style="color: darkgrey; font-size: 13px"> 注:选中即为正确答案 </a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -467,20 +382,10 @@
|
||||||
<div style="width: 100%" v-else-if="item.wjType == 5 || item.wjType == '5'">
|
<div style="width: 100%" v-else-if="item.wjType == 5 || item.wjType == '5'">
|
||||||
<a-card>
|
<a-card>
|
||||||
<template #title>
|
<template #title>
|
||||||
<!-- <span>{{ index + 1 }}、</span
|
|
||||||
><a-textarea
|
|
||||||
placeholder="请填写填空题题干"
|
|
||||||
v-model:value="item.wjTitle"
|
|
||||||
:bordered="false"
|
|
||||||
:style="{ width: '30rem' }"
|
|
||||||
:auto-size="{ minRows: 1, maxRows: 5 }"
|
|
||||||
:disabled="editDisabled"
|
|
||||||
/>
|
|
||||||
<span style="color: #c2bfbf">[填空]</span> -->
|
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[填空]</span></span>
|
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[填空题]</span></span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" style="text-align: right;">
|
<a-col :span="12" style="text-align: right;">
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
@ -527,51 +432,12 @@
|
||||||
:auto-size="{ minRows: 1, maxRows: 5 }"
|
:auto-size="{ minRows: 1, maxRows: 5 }"
|
||||||
:disabled="editDisabled" v-if="!editDisabled"/>
|
:disabled="editDisabled" v-if="!editDisabled"/>
|
||||||
<div v-else v-html="item.wjTitle"></div>
|
<div v-else v-html="item.wjTitle"></div>
|
||||||
|
|
||||||
|
<div style="text-align: right;color: #c2bfbf">是否加入题库:
|
||||||
|
<j-dict-select-tag type='radio' v-model:value="item.sftjtk" dictCode="yn" placeholder="是否加入题库" :disabled="editDisabled"/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<!-- <template #extra>
|
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
|
||||||
<a-select
|
|
||||||
style="width: 120px"
|
|
||||||
v-model:value="item.wjScore"
|
|
||||||
placeholder="请选择分数"
|
|
||||||
v-if="item.wjSfqh == '0'"
|
|
||||||
:disabled="editDisabled"
|
|
||||||
>
|
|
||||||
<a-select-option value="5">5</a-select-option>
|
|
||||||
<a-select-option value="4">4</a-select-option>
|
|
||||||
<a-select-option value="3">3</a-select-option>
|
|
||||||
<a-select-option value="2">2</a-select-option>
|
|
||||||
<a-select-option value="1">1</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
<span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
|
||||||
>自定义分数</span
|
|
||||||
>
|
|
||||||
<a-input-number
|
|
||||||
v-model:value="item.wjScore"
|
|
||||||
style="width: 120px"
|
|
||||||
v-if="item.wjSfqh == '1'"
|
|
||||||
:disabled="editDisabled"
|
|
||||||
></a-input-number>
|
|
||||||
<span v-if="item.wjSfqh == '1'" @click="handleQiehuan(item, '0')" style="color: #9e9e9e" :disabled="editDisabled"
|
|
||||||
>返回</span
|
|
||||||
>
|
|
||||||
</a-tooltip>
|
|
||||||
<a-tooltip placement="topRight" title="删除此题"
|
|
||||||
><Icon
|
|
||||||
icon="ant-design:delete-outlined"
|
|
||||||
style="cursor: pointer; font-size: 20px; margin: 10px"
|
|
||||||
@click="handleDelTigan(item, index)"
|
|
||||||
v-if="!editDisabled"
|
|
||||||
/></a-tooltip>
|
|
||||||
</template> -->
|
|
||||||
<a-row v-if="isShow">
|
<a-row v-if="isShow">
|
||||||
<!-- <j-upload
|
|
||||||
v-model:value="item.picPath"
|
|
||||||
text="上传图片"
|
|
||||||
fileType="image"
|
|
||||||
:maxCount="9"
|
|
||||||
:disabled="!isShow"
|
|
||||||
></j-upload> -->
|
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-textarea
|
<a-textarea
|
||||||
placeholder="请填写答案"
|
placeholder="请填写答案"
|
||||||
|
@ -592,7 +458,7 @@
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[文件]</span></span>
|
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[文件题]</span></span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" style="text-align: right;">
|
<a-col :span="12" style="text-align: right;">
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
@ -632,76 +498,18 @@
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
<JEditor2 placeholder="请填写文件上传题题干"
|
<JEditor2 placeholder="请填写文件题题干"
|
||||||
v-model:value="item.wjTitle"
|
v-model:value="item.wjTitle"
|
||||||
:bordered="false"
|
:bordered="false"
|
||||||
:style="{ width: '30rem' }"
|
:style="{ width: '30rem' }"
|
||||||
:auto-size="{ minRows: 1, maxRows: 5 }"
|
:auto-size="{ minRows: 1, maxRows: 5 }"
|
||||||
:disabled="editDisabled" v-if="!editDisabled"/>
|
:disabled="editDisabled" v-if="!editDisabled"/>
|
||||||
<div v-else v-html="item.wjTitle"></div>
|
<div v-else v-html="item.wjTitle"></div>
|
||||||
<!-- <span>{{ index + 1 }}、</span>
|
|
||||||
<a-textarea
|
<div style="text-align: right;color: #c2bfbf">是否加入题库:
|
||||||
placeholder="请填写文件题题干"
|
<j-dict-select-tag type='radio' v-model:value="item.sftjtk" dictCode="yn" placeholder="是否加入题库" :disabled="editDisabled"/>
|
||||||
v-model:value="item.wjTitle"
|
</div>
|
||||||
:bordered="false"
|
|
||||||
:style="{ width: '30rem' }"
|
|
||||||
:auto-size="{ minRows: 1, maxRows: 5 }"
|
|
||||||
:disabled="editDisabled"
|
|
||||||
/>
|
|
||||||
<span style="color: #c2bfbf">[文件]</span> -->
|
|
||||||
<!-- <a-textarea
|
|
||||||
placeholder="请填写文件上传题题干"
|
|
||||||
v-model:value="item.wjTitle"
|
|
||||||
:bordered="false"
|
|
||||||
:style="{ width: '30rem' }"
|
|
||||||
:auto-size="{ minRows: 1, maxRows: 5 }"
|
|
||||||
:disabled="editDisabled"
|
|
||||||
/> -->
|
|
||||||
<!-- <JEditor2 placeholder="请填写文件上传题题干"
|
|
||||||
v-model:value="item.wjTitle"
|
|
||||||
:bordered="false"
|
|
||||||
:style="{ width: '30rem' }"
|
|
||||||
:auto-size="{ minRows: 1, maxRows: 5 }"
|
|
||||||
:disabled="editDisabled" v-if="!editDisabled"/>
|
|
||||||
<div v-else v-html="item.wjTitle"></div> -->
|
|
||||||
</template>
|
</template>
|
||||||
<!-- <template #extra>
|
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
|
||||||
<a-select
|
|
||||||
style="width: 120px"
|
|
||||||
v-model:value="item.wjScore"
|
|
||||||
placeholder="请选择分数"
|
|
||||||
v-if="item.wjSfqh == '0'"
|
|
||||||
:disabled="editDisabled"
|
|
||||||
>
|
|
||||||
<a-select-option value="5">5</a-select-option>
|
|
||||||
<a-select-option value="4">4</a-select-option>
|
|
||||||
<a-select-option value="3">3</a-select-option>
|
|
||||||
<a-select-option value="2">2</a-select-option>
|
|
||||||
<a-select-option value="1">1</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
<span v-if="item.wjSfqh == '0'" @click="handleQiehuan(item, '1')" style="color: #9e9e9e" :disabled="editDisabled"
|
|
||||||
>自定义分数</span
|
|
||||||
>
|
|
||||||
<a-input-number
|
|
||||||
v-model:value="item.wjScore"
|
|
||||||
style="width: 120px"
|
|
||||||
v-if="item.wjSfqh == '1'"
|
|
||||||
:disabled="editDisabled"
|
|
||||||
></a-input-number>
|
|
||||||
<span v-if="item.wjSfqh == '1'" @click="handleQiehuan(item, '0')" style="color: #9e9e9e" :disabled="editDisabled"
|
|
||||||
>返回</span
|
|
||||||
>
|
|
||||||
</a-tooltip>
|
|
||||||
<a-tooltip placement="topRight" title="删除此题"
|
|
||||||
><Icon
|
|
||||||
icon="ant-design:delete-outlined"
|
|
||||||
style="cursor: pointer; font-size: 20px; margin: 10px"
|
|
||||||
@click="handleDelTigan(item, index)"
|
|
||||||
v-if="!editDisabled"
|
|
||||||
/></a-tooltip>
|
|
||||||
</template>
|
|
||||||
<j-upload v-model:value="item.picPath" text="上传图片" fileType="image" :maxCount="9" :disabled="!isShow"></j-upload> -->
|
|
||||||
</a-card>
|
</a-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -763,9 +571,6 @@
|
||||||
><span class="tjfx-colw"> 未完成人数</span></div
|
><span class="tjfx-colw"> 未完成人数</span></div
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="tjfx-col"> 总人数:{{ zyInfo.xkrs }} </div>
|
|
||||||
<div class="tjfx-col"> 已完成人数:{{ zyInfo.ywcrs }} </div>
|
|
||||||
<div class="tjfx-col"> 未完成人数:{{ zyInfo.wwcrs }} </div> -->
|
|
||||||
</div>
|
</div>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="region-title">基本信息</div>
|
<div class="region-title">基本信息</div>
|
||||||
|
@ -774,8 +579,6 @@
|
||||||
<div style="width: 100%">
|
<div style="width: 100%">
|
||||||
<!-- 单选题 -->
|
<!-- 单选题 -->
|
||||||
<div style="width: 98%; margin: 0 auto" v-if="item.wjType == 3">
|
<div style="width: 98%; margin: 0 auto" v-if="item.wjType == 3">
|
||||||
<!-- <span style="text-align: left;width: 50%;font-weight: bold;font-size: 18px;padding: 20px;">单选题</span> -->
|
|
||||||
<!-- <span class="tjfx-zql">正确率:15%</span> -->
|
|
||||||
<a-card>
|
<a-card>
|
||||||
<template #title>
|
<template #title>
|
||||||
<span>{{ index + 1 }}、</span><span v-html="item.wjTitle" style="white-space: pre-wrap; word-wrap: break-word"></span>
|
<span>{{ index + 1 }}、</span><span v-html="item.wjTitle" style="white-space: pre-wrap; word-wrap: break-word"></span>
|
||||||
|
@ -799,8 +602,6 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- 多选题 -->
|
<!-- 多选题 -->
|
||||||
<div style="width: 98%; margin: 0 auto" v-else-if="item.wjType == 4">
|
<div style="width: 98%; margin: 0 auto" v-else-if="item.wjType == 4">
|
||||||
<!-- <span style="text-align: left;width: 50%;font-weight: bold;font-size: 18px;padding: 20px;">多选题</span> -->
|
|
||||||
<!-- <span class="tjfx-zql">正确率:15%</span> -->
|
|
||||||
<a-card>
|
<a-card>
|
||||||
<template #title>
|
<template #title>
|
||||||
<span>{{ index + 1 }}、</span><span v-html="item.wjTitle" style="white-space: pre-wrap; word-wrap: break-word" />
|
<span>{{ index + 1 }}、</span><span v-html="item.wjTitle" style="white-space: pre-wrap; word-wrap: break-word" />
|
||||||
|
@ -826,8 +627,6 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- 填空题 -->
|
<!-- 填空题 -->
|
||||||
<div style="width: 98%; margin: 0 auto" v-else-if="item.wjType == 5">
|
<div style="width: 98%; margin: 0 auto" v-else-if="item.wjType == 5">
|
||||||
<!-- <span style="text-align: left;width: 50%;font-weight: bold;font-size: 18px;padding: 20px;">填空题</span> -->
|
|
||||||
<!-- <span class="tjfx-zql">正确率:15%</span> -->
|
|
||||||
<a-card>
|
<a-card>
|
||||||
<template #title>
|
<template #title>
|
||||||
<span>{{ index + 1 }}、</span><span v-html="item.wjTitle" style="white-space: pre-wrap; word-wrap: break-word" />
|
<span>{{ index + 1 }}、</span><span v-html="item.wjTitle" style="white-space: pre-wrap; word-wrap: break-word" />
|
||||||
|
@ -845,14 +644,9 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- 文件题 -->
|
<!-- 文件题 -->
|
||||||
<div style="width: 98%; margin: 0 auto" v-else-if="item.wjType == 8">
|
<div style="width: 98%; margin: 0 auto" v-else-if="item.wjType == 8">
|
||||||
<!-- <span style="text-align: left;width: 50%;font-weight: bold;font-size: 18px;padding: 20px;">填空题</span> -->
|
|
||||||
<!-- <span class="tjfx-zql">正确率:15%</span> -->
|
|
||||||
<a-card>
|
<a-card>
|
||||||
<template #title>
|
<template #title>
|
||||||
<span>{{ index + 1 }}、</span><span v-html="item.wjTitle" style="white-space: pre-wrap; word-wrap: break-word" />
|
<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.num2 }}人</span> -->
|
|
||||||
</template>
|
</template>
|
||||||
<template #extra v-if="zyInfo.atype == 6">
|
<template #extra v-if="zyInfo.atype == 6">
|
||||||
<span class="question-type" style="margin-left: 40px">文件题</span>
|
<span class="question-type" style="margin-left: 40px">文件题</span>
|
||||||
|
@ -876,82 +670,88 @@
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="24"><span class="title">布置测验</span><a-divider /></a-col>
|
<a-col :span="24"><span class="title">布置测验</span><a-divider /></a-col>
|
||||||
<a-col :span="24" style="text-align: right; margin-top: 5px">
|
<a-col :span="24" style="text-align: right; margin-top: 5px">
|
||||||
<a-button type="primary" @click="handleSzzycs(1)"><Icon icon="ant-design:edit-outlined" />修改课程测验次数</a-button>
|
<a-button type="primary" @click="handleSzzycs(1)" style="margin-top: 10px;"><Icon icon="ant-design:edit-outlined" />修改课程测验次数</a-button>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a-button type="primary" @click="handleAddOne"><Icon icon="ant-design:file-add-outlined" />新增测验</a-button>
|
<a-button type="primary" @click="handleAddOne" style="margin-top: 10px;"><Icon icon="ant-design:file-add-outlined" />新增测验</a-button>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a-button type="primary" @click="handleTiku('6')" style="margin-left: 8px; margin-right: 18px">题库</a-button>
|
<a-button type="primary" @click="handleTiku('6')" style="margin-left: 8px; margin-right: 18px;margin-top: 10px;">题库</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-row style="padding: 10px">
|
<a-row style="padding: 10px">
|
||||||
<a-col :lg="24" v-for="(item, index) in tableData" style="padding: 0 5px 5px 5px" :key="index">
|
<a-col :lg="24" v-for="(item, index) in tableData" style="padding: 0 5px 5px 5px" :key="index">
|
||||||
<!-- :title="'11第' + item.sort + '次测验(占比' + item.score + '%)'" -->
|
|
||||||
<!-- class="cardClass" -->
|
|
||||||
<a-card v-if="!item.endTime" bodyStyle="">
|
<a-card v-if="!item.endTime" bodyStyle="">
|
||||||
<template #title>第{{ item.sort }}次测验:暂未设置测验信息 <span class="card-label3"> 待设置</span> </template>
|
<template #title>第{{ item.sort }}次测验:暂未设置测验信息 <span class="card-label3"> 待设置</span> </template>
|
||||||
<template #extra> </template>
|
|
||||||
<!-- <p class="sznrClass">尚未布置测验题目及具体要求</p> -->
|
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="18">
|
<a-col :lg="18" :xs="24">
|
||||||
<span style="margin-left: 10px">
|
<a-row>
|
||||||
<a-dropdown>
|
<a-col :md="4" :xs="12">
|
||||||
<a class="ant-dropdown-link" @click.prevent> <Icon icon="ant-design:form-outlined" />设计测验 </a>
|
<span style="margin-left: 10px">
|
||||||
<template #overlay>
|
<a-dropdown>
|
||||||
<a-menu>
|
<a class="ant-dropdown-link" @click.prevent> <Icon icon="ant-design:form-outlined" />设计测验 </a>
|
||||||
<a-menu-item>
|
<template #overlay>
|
||||||
<a href="javascript:;" @click="handleEdit(item, false)">设置测验</a>
|
<a-menu>
|
||||||
</a-menu-item>
|
<a-menu-item>
|
||||||
<!-- <a-menu-item>
|
<a href="javascript:;" @click="handleEdit(item, false)">设置测验</a>
|
||||||
<a href="javascript:;" @click="handleEdit(item, false)">修改题目</a>
|
</a-menu-item>
|
||||||
</a-menu-item> -->
|
<a-menu-item>
|
||||||
<a-menu-item>
|
<a href="javascript:;" disabled style="color: #9e9e9e">测验详情</a>
|
||||||
<a href="javascript:;" disabled style="color: #9e9e9e">测验详情</a>
|
</a-menu-item>
|
||||||
</a-menu-item>
|
</a-menu>
|
||||||
</a-menu>
|
</template>
|
||||||
</template>
|
</a-dropdown>
|
||||||
</a-dropdown>
|
</span>
|
||||||
</span>
|
</a-col>
|
||||||
<span style="margin-left: 30px">
|
<a-col :md="4" :xs="12">
|
||||||
<a-dropdown>
|
<span style="margin-left: 10px">
|
||||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:setting-outlined" />发送问卷 </a>
|
<a-dropdown>
|
||||||
<template #overlay>
|
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:setting-outlined" />发送问卷 </a>
|
||||||
<a-menu>
|
<template #overlay>
|
||||||
<a-menu-item>
|
<a-menu>
|
||||||
<a href="javascript:;" disabled style="color: #9e9e9e">链接&二维码</a>
|
<a-menu-item>
|
||||||
</a-menu-item>
|
<a href="javascript:;" disabled style="color: #9e9e9e">链接&二维码</a>
|
||||||
</a-menu>
|
</a-menu-item>
|
||||||
</template>
|
</a-menu>
|
||||||
</a-dropdown>
|
</template>
|
||||||
</span>
|
</a-dropdown>
|
||||||
<span style="margin-left: 30px">
|
</span>
|
||||||
<a-dropdown>
|
</a-col>
|
||||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:setting-outlined" />答题结果 </a>
|
<a-col :md="4" :xs="12">
|
||||||
<template #overlay>
|
<span style="margin-left: 10px">
|
||||||
<a-menu>
|
<a-dropdown>
|
||||||
<a-menu-item>
|
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:setting-outlined" />答题结果 </a>
|
||||||
<a href="javascript:;" disabled style="color: #9e9e9e">答题结果</a>
|
<template #overlay>
|
||||||
</a-menu-item>
|
<a-menu>
|
||||||
</a-menu>
|
<a-menu-item>
|
||||||
</template>
|
<a href="javascript:;" disabled style="color: #9e9e9e">答题结果</a>
|
||||||
</a-dropdown>
|
</a-menu-item>
|
||||||
</span>
|
</a-menu>
|
||||||
<span style="margin-left: 30px">
|
</template>
|
||||||
<a-dropdown>
|
</a-dropdown>
|
||||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:line-chart-outlined" />测验结果 </a>
|
</span>
|
||||||
<template #overlay>
|
</a-col>
|
||||||
<a-menu>
|
<a-col :md="4" :xs="12">
|
||||||
<a-menu-item>
|
<span style="margin-left: 10px">
|
||||||
<a href="javascript:;" disabled style="color: #9e9e9e">测验结果</a>
|
<a-dropdown>
|
||||||
</a-menu-item>
|
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:line-chart-outlined" />测验结果 </a>
|
||||||
<a-menu-item>
|
<template #overlay>
|
||||||
<a href="javascript:;" disabled style="color: #9e9e9e">统计分析</a>
|
<a-menu>
|
||||||
</a-menu-item>
|
<a-menu-item>
|
||||||
</a-menu>
|
<a href="javascript:;" disabled style="color: #9e9e9e">测验结果</a>
|
||||||
</template>
|
</a-menu-item>
|
||||||
</a-dropdown>
|
<a-menu-item>
|
||||||
</span>
|
<a href="javascript:;" disabled style="color: #9e9e9e">统计分析</a>
|
||||||
|
</a-menu-item>
|
||||||
|
</a-menu>
|
||||||
|
</template>
|
||||||
|
</a-dropdown>
|
||||||
|
</span>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="6">
|
<a-col :lg="6" :xs="24">
|
||||||
<div style="text-align: right">
|
<div style="text-align: right">
|
||||||
<a @click="handleEdit(item, false)" class="ant-dropdown-link1">设置测验内容及要求</a>
|
<a @click="handleEdit(item, false)" class="ant-dropdown-link1">设置测验内容及要求</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
@ -967,80 +767,94 @@
|
||||||
<span class="card-label">已发布</span>
|
<span class="card-label">已发布</span>
|
||||||
</template>
|
</template>
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<span>ID:{{ item.id }}</span>
|
<a-row>
|
||||||
|
<a-col :xs="0" :md="24"><span>ID:{{ item.id }}</span><span style="margin-left: 10px">{{ dayjs(item.endTime).format('MM.DD HH:mm') }}</span></a-col>
|
||||||
<span style="margin-left: 10px">{{ dayjs(item.endTime).format('MM.DD HH:mm') }}</span>
|
<a-col :xs="24" :md="0"><span style="margin-left: 10px">{{ dayjs(item.endTime).format('MM.DD HH:mm') }}</span></a-col>
|
||||||
|
</a-row>
|
||||||
|
<!-- <span>ID:{{ item.id }}</span> -->
|
||||||
|
<!-- <span style="margin-left: 10px">{{ dayjs(item.endTime).format('MM.DD HH:mm') }}</span> -->
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="20">
|
<a-col :lg="18" :xs="24">
|
||||||
<span style="margin-left: 10px">
|
<a-row>
|
||||||
<a-dropdown>
|
<a-col :md="4" :xs="12">
|
||||||
<a class="ant-dropdown-link" @click.prevent> <Icon icon="ant-design:form-outlined" /> 设计测验 </a>
|
<span style="margin-left: 10px">
|
||||||
<template #overlay>
|
<a-dropdown>
|
||||||
<a-menu>
|
<a class="ant-dropdown-link" @click.prevent> <Icon icon="ant-design:form-outlined" /> 设计测验 </a>
|
||||||
<a-menu-item>
|
<template #overlay>
|
||||||
<a href="javascript:;" disabled style="color: #9e9e9e">设置测验</a>
|
<a-menu>
|
||||||
</a-menu-item>
|
<a-menu-item>
|
||||||
<!-- <a-menu-item>
|
<a href="javascript:;" disabled style="color: #9e9e9e">设置测验</a>
|
||||||
<a href="javascript:;" disabled style="color: #9e9e9e">修改题目</a>
|
</a-menu-item>
|
||||||
</a-menu-item> -->
|
<!-- <a-menu-item>
|
||||||
<a-menu-item>
|
<a href="javascript:;" disabled style="color: #9e9e9e">修改题目</a>
|
||||||
<a href="javascript:;" @click="handleEdit(item, true)">测验详情</a>
|
</a-menu-item> -->
|
||||||
</a-menu-item>
|
<a-menu-item>
|
||||||
</a-menu>
|
<a href="javascript:;" @click="handleEdit(item, true)">测验详情</a>
|
||||||
</template>
|
</a-menu-item>
|
||||||
</a-dropdown>
|
</a-menu>
|
||||||
</span>
|
</template>
|
||||||
<span style="margin-left: 30px">
|
</a-dropdown>
|
||||||
<a-dropdown>
|
</span>
|
||||||
<a class="ant-dropdown-link" @click.prevent
|
</a-col>
|
||||||
><Icon icon="ant-design:setting-outlined" @click="handleViewEwm(item)" /><span @click="handleViewEwm(item)"> 发送问卷</span>
|
<a-col :md="4" :xs="12">
|
||||||
</a>
|
<span style="margin-left: 10px">
|
||||||
<template #overlay>
|
<a-dropdown>
|
||||||
<a-menu>
|
<a class="ant-dropdown-link" @click.prevent
|
||||||
<a-menu-item>
|
><Icon icon="ant-design:setting-outlined" @click="handleViewEwm(item)" /><span @click="handleViewEwm(item)"> 发送问卷</span>
|
||||||
<a href="javascript:;" @click="handleViewEwm(item)">链接&二维码</a>
|
</a>
|
||||||
<!-- <QrCode :value="qrCodeUrl" class="enter-x flex justify-center xl:justify-start" :width="280" /> -->
|
<template #overlay>
|
||||||
<QrCode :value="goewm(item)" class="enter-x flex justify-center xl:justify-start" :width="280" />
|
<a-menu>
|
||||||
<span
|
<a-menu-item>
|
||||||
>链接:<a-input :value="goewm(item)" disabled style="width: 200px"></a-input>
|
<a href="javascript:;" @click="handleViewEwm(item)">链接&二维码</a>
|
||||||
<a-button @click="copyToClipboard(item)">复制</a-button>
|
<!-- <QrCode :value="qrCodeUrl" class="enter-x flex justify-center xl:justify-start" :width="280" /> -->
|
||||||
</span>
|
<QrCode :value="goewm(item)" class="enter-x flex justify-center xl:justify-start" :width="280" />
|
||||||
<!-- -->
|
<span
|
||||||
</a-menu-item>
|
>链接:<a-input :value="goewm(item)" disabled style="width: 200px"></a-input>
|
||||||
</a-menu>
|
<a-button @click="copyToClipboard(item)">复制</a-button>
|
||||||
</template>
|
</span>
|
||||||
</a-dropdown>
|
<!-- -->
|
||||||
</span>
|
</a-menu-item>
|
||||||
<span style="margin-left: 30px">
|
</a-menu>
|
||||||
<a-dropdown>
|
</template>
|
||||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:audit-outlined" /> 答题结果 </a>
|
</a-dropdown>
|
||||||
<template #overlay>
|
</span>
|
||||||
<a-menu>
|
</a-col>
|
||||||
<a-menu-item>
|
<a-col :md="4" :xs="12">
|
||||||
<a href="javascript:;" @click="handleTeaDtjg(item)"> 答题结果</a>
|
<span style="margin-left: 10px">
|
||||||
</a-menu-item>
|
<a-dropdown>
|
||||||
</a-menu>
|
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:audit-outlined" /> 答题结果 </a>
|
||||||
</template>
|
<template #overlay>
|
||||||
</a-dropdown>
|
<a-menu>
|
||||||
</span>
|
<a-menu-item>
|
||||||
<span style="margin-left: 30px">
|
<a href="javascript:;" @click="handleTeaDtjg(item)"> 答题结果</a>
|
||||||
<a-dropdown>
|
</a-menu-item>
|
||||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:line-chart-outlined" /> 测验结果 </a>
|
</a-menu>
|
||||||
<template #overlay>
|
</template>
|
||||||
<a-menu>
|
</a-dropdown>
|
||||||
<a-menu-item>
|
</span>
|
||||||
<a href="javascript:;" @click="handleDjjgs(item, '')">测验结果</a>
|
</a-col>
|
||||||
</a-menu-item>
|
<a-col :md="4" :xs="12">
|
||||||
<a-menu-item>
|
<span style="margin-left: 10px">
|
||||||
<a href="javascript:;" @click="handleTjfx(item)">统计分析</a>
|
<a-dropdown>
|
||||||
</a-menu-item>
|
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:line-chart-outlined" /> 测验结果 </a>
|
||||||
</a-menu>
|
<template #overlay>
|
||||||
</template>
|
<a-menu>
|
||||||
</a-dropdown>
|
<a-menu-item>
|
||||||
</span>
|
<a href="javascript:;" @click="handleDjjgs(item, '')">测验结果</a>
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item>
|
||||||
|
<a href="javascript:;" @click="handleTjfx(item)">统计分析</a>
|
||||||
|
</a-menu-item>
|
||||||
|
</a-menu>
|
||||||
|
</template>
|
||||||
|
</a-dropdown>
|
||||||
|
</span>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="4">
|
<a-col :lg="6" :xs="24">
|
||||||
<div style="text-align: right">
|
<div style="text-align: right">
|
||||||
<a @click="handleWxtx(item)">微信提醒</a>
|
<a @click="handleWxtx(item)">微信提醒</a>
|
||||||
<!-- <a-divider type="vertical" /> -->
|
<!-- <a-divider type="vertical" /> -->
|
||||||
|
@ -1056,70 +870,82 @@
|
||||||
<span class="card-label2">待发布</span>
|
<span class="card-label2">待发布</span>
|
||||||
</template>
|
</template>
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<span>ID:{{ item.id }}</span>
|
<a-row>
|
||||||
<span style="margin-left: 10px">{{ dayjs(item.endTime).format('MM.DD HH:mm') }}</span>
|
<a-col :xs="0" :md="24"><span>ID:{{ item.id }}</span><span style="margin-left: 10px">{{ dayjs(item.endTime).format('MM.DD HH:mm') }}</span></a-col>
|
||||||
|
<a-col :xs="24" :md="0"><span style="margin-left: 10px">{{ dayjs(item.endTime).format('MM.DD HH:mm') }}</span></a-col>
|
||||||
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="18">
|
<a-col :lg="18" :xs="24">
|
||||||
<span style="margin-left: 10px">
|
<a-row>
|
||||||
<a-dropdown>
|
<a-col :md="4" :xs="12">
|
||||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:form-outlined" /> 设计测验 </a>
|
<span style="margin-left: 10px">
|
||||||
<template #overlay>
|
<a-dropdown>
|
||||||
<a-menu>
|
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:form-outlined" /> 设计测验 </a>
|
||||||
<a-menu-item>
|
<template #overlay>
|
||||||
<a href="javascript:;" @click="handleEdit(item, false)">设置测验</a>
|
<a-menu>
|
||||||
</a-menu-item>
|
<a-menu-item>
|
||||||
<!-- <a-menu-item>
|
<a href="javascript:;" @click="handleEdit(item, false)">设置测验</a>
|
||||||
<a href="javascript:;" @click="handleEdit(item, false)">修改题目</a>
|
</a-menu-item>
|
||||||
</a-menu-item> -->
|
<!-- <a-menu-item>
|
||||||
<a-menu-item>
|
<a href="javascript:;" @click="handleEdit(item, false)">修改题目</a>
|
||||||
<a href="javascript:;" @click="handleEdit(item, true)">测验详情</a>
|
</a-menu-item> -->
|
||||||
</a-menu-item>
|
<a-menu-item>
|
||||||
</a-menu>
|
<a href="javascript:;" @click="handleEdit(item, true)">测验详情</a>
|
||||||
</template>
|
</a-menu-item>
|
||||||
</a-dropdown>
|
</a-menu>
|
||||||
</span>
|
</template>
|
||||||
<span style="margin-left: 30px">
|
</a-dropdown>
|
||||||
<a-dropdown>
|
</span>
|
||||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:setting-outlined" />发送问卷 </a>
|
</a-col>
|
||||||
<template #overlay>
|
<a-col :md="4" :xs="12">
|
||||||
<a-menu>
|
<span style="margin-left: 10px">
|
||||||
<a-menu-item>
|
<a-dropdown>
|
||||||
<a href="javascript:;" disabled style="color: #9e9e9e">链接&二维码</a>
|
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:setting-outlined" />发送问卷 </a>
|
||||||
</a-menu-item>
|
<template #overlay>
|
||||||
</a-menu>
|
<a-menu>
|
||||||
</template>
|
<a-menu-item>
|
||||||
</a-dropdown>
|
<a href="javascript:;" disabled style="color: #9e9e9e">链接&二维码</a>
|
||||||
</span>
|
</a-menu-item>
|
||||||
<span style="margin-left: 30px">
|
</a-menu>
|
||||||
<a-dropdown>
|
</template>
|
||||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:setting-outlined" />答题结果 </a>
|
</a-dropdown>
|
||||||
<template #overlay>
|
</span>
|
||||||
<a-menu>
|
</a-col>
|
||||||
<a-menu-item>
|
<a-col :md="4" :xs="12">
|
||||||
<a href="javascript:;" disabled style="color: #9e9e9e">答题结果</a>
|
<span style="margin-left: 10px">
|
||||||
</a-menu-item>
|
<a-dropdown>
|
||||||
</a-menu>
|
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:setting-outlined" />答题结果 </a>
|
||||||
</template>
|
<template #overlay>
|
||||||
</a-dropdown>
|
<a-menu>
|
||||||
</span>
|
<a-menu-item>
|
||||||
<span style="margin-left: 30px">
|
<a href="javascript:;" disabled style="color: #9e9e9e">答题结果</a>
|
||||||
<a-dropdown>
|
</a-menu-item>
|
||||||
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:line-chart-outlined" />测验结果 </a>
|
</a-menu>
|
||||||
<template #overlay>
|
</template>
|
||||||
<a-menu>
|
</a-dropdown>
|
||||||
<a-menu-item>
|
</span>
|
||||||
<a href="javascript:;" disabled style="color: #9e9e9e">测验结果</a>
|
</a-col>
|
||||||
</a-menu-item>
|
<a-col :md="4" :xs="12">
|
||||||
<a-menu-item>
|
<span style="margin-left: 10px">
|
||||||
<a href="javascript:;" disabled style="color: #9e9e9e">统计分析</a>
|
<a-dropdown>
|
||||||
</a-menu-item>
|
<a class="ant-dropdown-link" @click.prevent><Icon icon="ant-design:line-chart-outlined" />测验结果 </a>
|
||||||
</a-menu>
|
<template #overlay>
|
||||||
</template>
|
<a-menu>
|
||||||
</a-dropdown>
|
<a-menu-item>
|
||||||
</span>
|
<a href="javascript:;" disabled style="color: #9e9e9e">测验结果</a>
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item>
|
||||||
|
<a href="javascript:;" disabled style="color: #9e9e9e">统计分析</a>
|
||||||
|
</a-menu-item>
|
||||||
|
</a-menu>
|
||||||
|
</template>
|
||||||
|
</a-dropdown>
|
||||||
|
</span>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="6">
|
<a-col :lg="6" :xs="24">
|
||||||
<div style="text-align: right">
|
<div style="text-align: right">
|
||||||
<a @click="handleEdit(item, false)" class="ant-dropdown-link1">编辑测验</a>
|
<a @click="handleEdit(item, false)" class="ant-dropdown-link1">编辑测验</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
@ -1180,6 +1006,7 @@
|
||||||
<YinyongTikuListModal ref="YinyongTikuListModalpage" @success="handleYytkSuccess" />
|
<YinyongTikuListModal ref="YinyongTikuListModalpage" @success="handleYytkSuccess" />
|
||||||
<YinyongTikuDcListModal ref="YinyongTikuDcListModalpage" @success="handleYytkSuccess" />
|
<YinyongTikuDcListModal ref="YinyongTikuDcListModalpage" @success="handleYytkSuccess" />
|
||||||
<TikuListModal ref="TikuListModalPage"></TikuListModal>
|
<TikuListModal ref="TikuListModalPage"></TikuListModal>
|
||||||
|
<YycyListModal ref="YycyListModalPage" @success="handleCallYinyong"></YycyListModal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1206,8 +1033,10 @@ import KcTeachingUnitContentOneListModal from '/@/views/zy/zyInfo/zyCheckZcjc/Kc
|
||||||
import YinyongTikuListModal from '/@/views/kc/wjxWjxxTmlb/YinyongTikuListModal.vue';
|
import YinyongTikuListModal from '/@/views/kc/wjxWjxxTmlb/YinyongTikuListModal.vue';
|
||||||
import YinyongTikuDcListModal from '/@/views/kc/wjxWjxxTmlb/YinyongTikuDcListModal.vue';
|
import YinyongTikuDcListModal from '/@/views/kc/wjxWjxxTmlb/YinyongTikuDcListModal.vue';
|
||||||
import TikuListModal from '/@/views/kc/wjxWjxxTmlb/TikuListModal.vue';
|
import TikuListModal from '/@/views/kc/wjxWjxxTmlb/TikuListModal.vue';
|
||||||
|
import YycyListModal from '/@/views/kc/wjxWjxx/YycyListModal.vue';
|
||||||
import { create } from 'sortablejs';
|
import { create } from 'sortablejs';
|
||||||
import { downloadByUrl } from '/@/utils/file/download';
|
import { downloadByUrl } from '/@/utils/file/download';
|
||||||
|
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||||
|
|
||||||
const glob = useGlobSetting();
|
const glob = useGlobSetting();
|
||||||
const globSetting = useGlobSetting();
|
const globSetting = useGlobSetting();
|
||||||
|
@ -1251,6 +1080,7 @@ const confirmLoading = ref<boolean>(false);
|
||||||
const zyyqShow = ref<boolean>(false);
|
const zyyqShow = ref<boolean>(false);
|
||||||
const useForm = Form.useForm;
|
const useForm = Form.useForm;
|
||||||
const formRef = ref();
|
const formRef = ref();
|
||||||
|
const YycyListModalPage = ref();
|
||||||
const tiganData = ref<any>([]);
|
const tiganData = ref<any>([]);
|
||||||
const isShow = ref<boolean>(false);
|
const isShow = ref<boolean>(false);
|
||||||
const mainId = ref<string>('');
|
const mainId = ref<string>('');
|
||||||
|
@ -1302,6 +1132,37 @@ const labelCol4 = reactive({
|
||||||
const wrapperCol4 = reactive({
|
const wrapperCol4 = reactive({
|
||||||
sm: { span: 12 },
|
sm: { span: 12 },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
//引用作业
|
||||||
|
function handleYyzy() {
|
||||||
|
var params = { xqxn, rwbh,atype:'6' };
|
||||||
|
YycyListModalPage.value.disableSubmit = true;
|
||||||
|
YycyListModalPage.value.init(params);
|
||||||
|
}
|
||||||
|
//引用作业回调
|
||||||
|
function handleCallYinyong(record) {
|
||||||
|
console.log('👯♂️', record);
|
||||||
|
var yyzyid = record.id;//引用作业id
|
||||||
|
var zysort = zyInfo.value.sort;//防止顺序错误
|
||||||
|
var zyid = zyInfo.value.id;//替换原来的id,防止新增
|
||||||
|
record.id = zyid;
|
||||||
|
record.sort = zysort;
|
||||||
|
record.atype = "6";//作业类型,课程作业
|
||||||
|
record.qpublish = "0";
|
||||||
|
zyInfo.value = record;
|
||||||
|
console.log('😠', zyInfo);
|
||||||
|
|
||||||
|
|
||||||
|
defHttp.get({ url: '/wjxWjxxTmlb/wjxWjxxTmlb/queryByMainId', params: { id: yyzyid } }).then((res) => {
|
||||||
|
console.log('🥴', res);
|
||||||
|
tiganData.value = res;
|
||||||
|
console.log('🧞♂️1111111111', tiganData.value);
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//弹出二维码页面
|
//弹出二维码页面
|
||||||
function handleViewEwm(record) {
|
function handleViewEwm(record) {
|
||||||
console.log('🙎', record);
|
console.log('🙎', record);
|
||||||
|
@ -1747,6 +1608,7 @@ function addTigan(type) {
|
||||||
wjLeixing,
|
wjLeixing,
|
||||||
itemSelected: chk,
|
itemSelected: chk,
|
||||||
wjSfqh: '0',
|
wjSfqh: '0',
|
||||||
|
sftjtk: '1',
|
||||||
wjxWjxxTmxxList: [
|
wjxWjxxTmxxList: [
|
||||||
{ itemTitle: null, itemIndex: '1' },
|
{ itemTitle: null, itemIndex: '1' },
|
||||||
{ itemTitle: null, itemIndex: '2' },
|
{ itemTitle: null, itemIndex: '2' },
|
||||||
|
@ -1770,6 +1632,7 @@ function addTigan(type) {
|
||||||
wjLeixing,
|
wjLeixing,
|
||||||
itemSelected: chk,
|
itemSelected: chk,
|
||||||
wjSfqh: '0',
|
wjSfqh: '0',
|
||||||
|
sftjtk: '1',
|
||||||
wjxWjxxTmxxList: [
|
wjxWjxxTmxxList: [
|
||||||
{ itemTitle: null, itemIndex: '1' },
|
{ itemTitle: null, itemIndex: '1' },
|
||||||
{ itemTitle: null, itemIndex: '2' },
|
{ itemTitle: null, itemIndex: '2' },
|
||||||
|
@ -1787,6 +1650,7 @@ function addTigan(type) {
|
||||||
wjLeixing,
|
wjLeixing,
|
||||||
wjAnswer: null,
|
wjAnswer: null,
|
||||||
wjSfqh: '0',
|
wjSfqh: '0',
|
||||||
|
sftjtk: '1',
|
||||||
};
|
};
|
||||||
list.push(params);
|
list.push(params);
|
||||||
tiganData.value = [...list];
|
tiganData.value = [...list];
|
||||||
|
@ -1803,6 +1667,7 @@ function addTigan(type) {
|
||||||
wjScore: null,
|
wjScore: null,
|
||||||
wjLeixing,
|
wjLeixing,
|
||||||
wjSfqh: '0',
|
wjSfqh: '0',
|
||||||
|
sftjtk: '1',
|
||||||
};
|
};
|
||||||
list.push(params);
|
list.push(params);
|
||||||
tiganData.value = [...list];
|
tiganData.value = [...list];
|
||||||
|
|
|
@ -46,6 +46,50 @@ export const columns: BasicColumn[] = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
//列表数据
|
||||||
|
export const columns2: BasicColumn[] = [
|
||||||
|
{
|
||||||
|
title: '测验名称',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'title'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '开始时间',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'startTime'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '结束时间',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'endTime'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '是否发布问卷',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'qpublish_dictText'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '学期学年',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'xqxn'
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// title: '选课人数',
|
||||||
|
// align: "center",
|
||||||
|
// dataIndex: 'xkrs'
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// title: '未提交',
|
||||||
|
// align: "center",
|
||||||
|
// dataIndex: 'wwcrs'
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// title: '已提交',
|
||||||
|
// align: "center",
|
||||||
|
// dataIndex: 'ywcrs'
|
||||||
|
// },
|
||||||
|
];
|
||||||
|
|
||||||
//查询数据
|
//查询数据
|
||||||
export const searchFormSchema: FormSchema[] = [
|
export const searchFormSchema: FormSchema[] = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -0,0 +1,225 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<!--引用表格-->
|
||||||
|
<BasicTable @register="registerTable">
|
||||||
|
<!--插槽:table标题-->
|
||||||
|
<template #tableTitle> </template>
|
||||||
|
<!--操作栏-->
|
||||||
|
<template #action="{ record }">
|
||||||
|
<TableAction :actions="getTableAction(record)" />
|
||||||
|
</template>
|
||||||
|
<!--字段回显插槽-->
|
||||||
|
<template #htmlSlot="{ text }">
|
||||||
|
<div v-html="text"></div>
|
||||||
|
</template>
|
||||||
|
<!--省市区字段回显插槽-->
|
||||||
|
<!--<template #pcaSlot="{text}">
|
||||||
|
{{ getAreaTextByCode(text) }}
|
||||||
|
</template>-->
|
||||||
|
<template #fileSlot="{ text }">
|
||||||
|
<span v-if="!text" style="font-size: 12px; font-style: italic">无文件</span>
|
||||||
|
<a-button v-else :ghost="true" type="primary" preIcon="ant-design:download-outlined" size="small" @click="downloadFile(text)">下载</a-button>
|
||||||
|
</template>
|
||||||
|
</BasicTable>
|
||||||
|
<!-- 表单区域 -->
|
||||||
|
<YycyxqModal ref="registerModal" @success="handleSuccess"></YycyxqModal>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" name="kcTeachingUnitContentOne-kcTeachingUnitContentOne" setup>
|
||||||
|
import { ref, reactive } from 'vue';
|
||||||
|
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||||
|
import { useListPage } from '/@/hooks/system/useListPage';
|
||||||
|
import { columns2 } from './WjxWjxx.data';
|
||||||
|
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './WjxWjxx.api';
|
||||||
|
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||||
|
import YycyxqModal from '/@/views/kc/wjxWjxx/components/YycyxqModal.vue';
|
||||||
|
const queryParam = ref<any>({});
|
||||||
|
const toggleSearchStatus = ref<boolean>(false);
|
||||||
|
const registerModal = ref();
|
||||||
|
|
||||||
|
const emit = defineEmits(['register', 'ok', 'yinyong']);
|
||||||
|
//注册table数据
|
||||||
|
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||||
|
tableProps: {
|
||||||
|
title: 'kc_teaching_unit_content_one',
|
||||||
|
api: list,
|
||||||
|
columns: columns2,
|
||||||
|
canResize: false,
|
||||||
|
useSearchForm: false,
|
||||||
|
actionColumn: {
|
||||||
|
width: 120,
|
||||||
|
fixed: 'right',
|
||||||
|
},
|
||||||
|
// showActionColumn: false,
|
||||||
|
beforeFetch: (params) => {
|
||||||
|
(params.column = ''), (params.order = ''); //新生成的默认不带排序
|
||||||
|
return Object.assign(params, queryParam.value);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
exportConfig: {
|
||||||
|
name: 'kc_teaching_unit_content_one',
|
||||||
|
url: getExportUrl,
|
||||||
|
},
|
||||||
|
importConfig: {
|
||||||
|
url: getImportUrl,
|
||||||
|
success: handleSuccess,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] =
|
||||||
|
tableContext;
|
||||||
|
const labelCol = reactive({
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 7 },
|
||||||
|
});
|
||||||
|
const wrapperCol = reactive({
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 16 },
|
||||||
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增事件
|
||||||
|
*/
|
||||||
|
function handleAdd() {
|
||||||
|
var ids = selectedRowKeys.value;
|
||||||
|
console.log('😘', ids);
|
||||||
|
|
||||||
|
emit('ok', ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑事件
|
||||||
|
*/
|
||||||
|
function handleEdit(record: Recordable) {
|
||||||
|
registerModal.value.disableSubmit = false;
|
||||||
|
registerModal.value.edit(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 详情
|
||||||
|
*/
|
||||||
|
function handleDetail(record: Recordable) {
|
||||||
|
registerModal.value.disableSubmit = true;
|
||||||
|
registerModal.value.edit(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除事件
|
||||||
|
*/
|
||||||
|
async function handleDelete(record) {
|
||||||
|
await deleteOne({ id: record.id }, handleSuccess);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除事件
|
||||||
|
*/
|
||||||
|
async function batchHandleDelete() {
|
||||||
|
await batchDelete({ ids: selectedRowKeys.value }, handleSuccess);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 成功回调
|
||||||
|
*/
|
||||||
|
function handleSuccess() {
|
||||||
|
(selectedRowKeys.value = []) && reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleYinyong(record) {
|
||||||
|
console.log('🎅', record);
|
||||||
|
|
||||||
|
emit('yinyong', record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 操作栏
|
||||||
|
*/
|
||||||
|
function getTableAction(record) {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
label: '引用',
|
||||||
|
onClick: handleYinyong.bind(null, record),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '详情',
|
||||||
|
onClick: handleDetail.bind(null, record),
|
||||||
|
},
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 下拉操作栏
|
||||||
|
*/
|
||||||
|
function getDropDownAction(record) {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
label: '详情',
|
||||||
|
onClick: handleDetail.bind(null, record),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '删除',
|
||||||
|
popConfirm: {
|
||||||
|
title: '是否确认删除',
|
||||||
|
confirm: handleDelete.bind(null, record),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询
|
||||||
|
*/
|
||||||
|
function searchQuery() {
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重置
|
||||||
|
*/
|
||||||
|
function searchReset() {
|
||||||
|
queryParam.value = {};
|
||||||
|
selectedRowKeys.value = [];
|
||||||
|
//刷新数据
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
function init(record) {
|
||||||
|
console.log('🥼', record);
|
||||||
|
queryParam.value = record;
|
||||||
|
queryParam.value.titleNull = "1";
|
||||||
|
console.log('🦸♀️', queryParam);
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提交数据
|
||||||
|
*/
|
||||||
|
async function submitForm() {
|
||||||
|
var ids = selectedRowKeys.value;
|
||||||
|
console.log('😘', ids);
|
||||||
|
|
||||||
|
emit('ok', ids);
|
||||||
|
}
|
||||||
|
defineExpose({
|
||||||
|
init,
|
||||||
|
submitForm,
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.jeecg-basic-table-form-container {
|
||||||
|
.table-page-search-submitButtons {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.query-group-cust {
|
||||||
|
width: calc(50% - 15px);
|
||||||
|
min-width: 100px !important;
|
||||||
|
}
|
||||||
|
.query-group-split-cust {
|
||||||
|
width: 30px;
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -0,0 +1,80 @@
|
||||||
|
<template>
|
||||||
|
<a-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
|
||||||
|
<YycyList ref="registerForm" @ok="submitCallback" @yinyong="handleYinyong" :formDisabled="disableSubmit" :formBpm="false"></YycyList>
|
||||||
|
</a-modal>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import { ref, nextTick, defineExpose } from 'vue';
|
||||||
|
import YycyList from './YycyList.vue'
|
||||||
|
|
||||||
|
const title = ref<string>('');
|
||||||
|
const width = ref<number>(1000);
|
||||||
|
const visible = ref<boolean>(false);
|
||||||
|
const disableSubmit = ref<boolean>(false);
|
||||||
|
const registerForm = ref();
|
||||||
|
const emit = defineEmits(['register', 'success']);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增
|
||||||
|
*/
|
||||||
|
function init(record) {
|
||||||
|
title.value = '引用测验';
|
||||||
|
visible.value = true;
|
||||||
|
nextTick(() => {
|
||||||
|
registerForm.value.init(record);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑
|
||||||
|
* @param record
|
||||||
|
*/
|
||||||
|
function edit(record) {
|
||||||
|
title.value = disableSubmit.value ? '详情' : '编辑';
|
||||||
|
visible.value = true;
|
||||||
|
nextTick(() => {
|
||||||
|
registerForm.value.edit(record);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 确定按钮点击事件
|
||||||
|
*/
|
||||||
|
function handleOk() {
|
||||||
|
registerForm.value.submitForm();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* form保存回调事件
|
||||||
|
*/
|
||||||
|
function submitCallback(record) {
|
||||||
|
handleCancel();
|
||||||
|
emit('success',record);
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleYinyong(record){
|
||||||
|
handleCancel();
|
||||||
|
emit('success',record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 取消按钮回调事件
|
||||||
|
*/
|
||||||
|
function handleCancel() {
|
||||||
|
visible.value = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
defineExpose({
|
||||||
|
init,
|
||||||
|
edit,
|
||||||
|
disableSubmit,
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
/**隐藏样式-modal确定按钮 */
|
||||||
|
.jee-hidden {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -96,7 +96,7 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- 填空题 -->
|
<!-- 填空题 -->
|
||||||
<div style="width: 100%" v-else-if="item.wjType == 8">
|
<div style="width: 100%" v-else-if="item.wjType == 8">
|
||||||
<div style="text-align: left; width: 100%; font-weight: bold; line-height: 80px; font-size: 18px">文件上传</div>
|
<div style="text-align: left; width: 100%; font-weight: bold; line-height: 80px; font-size: 18px">文件题</div>
|
||||||
<a-card>
|
<a-card>
|
||||||
<template #title>
|
<template #title>
|
||||||
<span>{{ index + 1 }}、</span
|
<span>{{ index + 1 }}、</span
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
<!-- <j-image-upload v-model:value="item.picPath" :disabled="disabled"></j-image-upload> -->
|
<!-- <j-image-upload v-model:value="item.picPath" :disabled="disabled"></j-image-upload> -->
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<j-upload v-model:value="item.wjAnswer" :max-count="1" :disabled="disabled" accept=".doc,.docx,.pdf,.jpg,.jpeg,.png,.mp3,.mp4,.zip,.ppt,.rar,.excel" ></j-upload>
|
<j-upload v-model:value="item.wjAnswer" :max-count="1" :disabled="disabled" accept=".doc,.docx,.pdf,.jpg,.jpeg,.png,.mp3,.mp4,.zip,.ppt,.pptx,.rar,.excel" ></j-upload>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-card>
|
</a-card>
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
<a-row style="height: calc(80vh);">
|
<a-row style="height: calc(80vh);">
|
||||||
<a-col :span="4" style="padding: 10px">
|
<a-col :span="4" style="padding: 10px">
|
||||||
<a-card title="可选题型" style="height: 300px;border: 1px solid #e8e8e8;">
|
<a-card title="可选题型" style="height: 300px;border: 1px solid #e8e8e8;">
|
||||||
<p><a-button type="primary" preIcon="ant-design:check-circle-outlined" @click="addTigan(3)">单选</a-button></p>
|
<p><a-button type="primary" preIcon="ant-design:check-circle-outlined" @click="addTigan(3)">单选题</a-button></p>
|
||||||
<p><a-button type="primary" preIcon="ant-design:check-square-outlined" @click="addTigan(4)">多选</a-button></p>
|
<p><a-button type="primary" preIcon="ant-design:check-square-outlined" @click="addTigan(4)">多选题</a-button></p>
|
||||||
<p><a-button type="primary" preIcon="ant-design:check-square-outlined" @click="addTigan(5)">填空</a-button></p>
|
<p><a-button type="primary" preIcon="ant-design:check-square-outlined" @click="addTigan(5)">填空题</a-button></p>
|
||||||
</a-card>
|
</a-card>
|
||||||
<a-card title="引用题库">
|
<a-card title="引用题库">
|
||||||
<p><a-button type="primary" preIcon="ant-design:check-circle-outlined" @click="handleYylx('0')">我的题库</a-button></p>
|
<p><a-button type="primary" preIcon="ant-design:check-circle-outlined" @click="handleYylx('0')">我的题库</a-button></p>
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
<template #title>
|
<template #title>
|
||||||
<span>{{index+1}}、</span>
|
<span>{{index+1}}、</span>
|
||||||
<a-textarea placeholder="请填写单选题题干" v-model:value="item.wjTitle" :bordered="false" :style="{width:handinpwei(item.wjTitle)}" :auto-size="{ minRows: 1, maxRows: 5 }"/>
|
<a-textarea placeholder="请填写单选题题干" v-model:value="item.wjTitle" :bordered="false" :style="{width:handinpwei(item.wjTitle)}" :auto-size="{ minRows: 1, maxRows: 5 }"/>
|
||||||
<span style="color: #c2bfbf;">[单选]</span>
|
<span style="color: #c2bfbf;">[单选题]</span>
|
||||||
</template>
|
</template>
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
<a-card >
|
<a-card >
|
||||||
<template #title>
|
<template #title>
|
||||||
<span>{{index+1}}、</span><a-textarea placeholder="请填写多选题题干" v-model:value="item.wjTitle" :bordered="false" :style="{width:handinpwei(item.wjTitle)}" :auto-size="{ minRows: 1, maxRows: 5 }"/>
|
<span>{{index+1}}、</span><a-textarea placeholder="请填写多选题题干" v-model:value="item.wjTitle" :bordered="false" :style="{width:handinpwei(item.wjTitle)}" :auto-size="{ minRows: 1, maxRows: 5 }"/>
|
||||||
<span style="color: #c2bfbf;">[多选]</span>
|
<span style="color: #c2bfbf;">[多选题]</span>
|
||||||
</template>
|
</template>
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
<a-card >
|
<a-card >
|
||||||
<template #title>
|
<template #title>
|
||||||
<span>{{index+1}}、</span><a-textarea placeholder="请填写填空题题干" v-model:value="item.wjTitle" :bordered="false" :style="{width:handinpwei(item.wjTitle)}" :auto-size="{ minRows: 1, maxRows: 5 }"/>
|
<span>{{index+1}}、</span><a-textarea placeholder="请填写填空题题干" v-model:value="item.wjTitle" :bordered="false" :style="{width:handinpwei(item.wjTitle)}" :auto-size="{ minRows: 1, maxRows: 5 }"/>
|
||||||
<span style="color: #c2bfbf;">[填空]</span>
|
<span style="color: #c2bfbf;">[填空题]</span>
|
||||||
</template>
|
</template>
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
|
|
@ -0,0 +1,739 @@
|
||||||
|
<template>
|
||||||
|
<a-spin :spinning="confirmLoading">
|
||||||
|
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="region">
|
||||||
|
<div class="region-title">基本信息</div>
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item label="测验名称">
|
||||||
|
<a-input v-model:value="zyInfo.title" placeholder="请输入测验题目" :disabled="editDisabled"></a-input>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item label="测验开始时间">
|
||||||
|
<a-date-picker
|
||||||
|
placeholder="请选择测验开始时间"
|
||||||
|
v-model:value="zyInfo.startTime"
|
||||||
|
:disabled-date="disabledDate"
|
||||||
|
:show-time="{ format: 'YYYY-MM-DD HH:mm' }"
|
||||||
|
valueFormat="YYYY-MM-DD HH:mm"
|
||||||
|
format="YYYY-MM-DD HH:mm"
|
||||||
|
style="width: 90%"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
/>
|
||||||
|
<span>
|
||||||
|
<a-popover title="温馨提示">
|
||||||
|
<template #content>
|
||||||
|
<p
|
||||||
|
>填写测验开始时间,则测验在指定时间进行发布;如未填写测验开始时间,则布置完成测验后,可手动点击“发布测验”进行测验发布。</p
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
<Icon
|
||||||
|
icon="ant-design:question-circle-outlined"
|
||||||
|
:size="20"
|
||||||
|
style="float: right; margin-top: 5px; color: #029c88; margin-right: 19px"
|
||||||
|
/>
|
||||||
|
</a-popover>
|
||||||
|
</span>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item label="测验结束时间" >
|
||||||
|
<a-date-picker
|
||||||
|
placeholder="请选择测验结束时间"
|
||||||
|
v-model:value="zyInfo.endTime"
|
||||||
|
:disabled-date="disabledDate"
|
||||||
|
:show-time="{ format: 'YYYY-MM-DD HH:mm' }"
|
||||||
|
valueFormat="YYYY-MM-DD HH:mm"
|
||||||
|
format="YYYY-MM-DD HH:mm"
|
||||||
|
style="width: 100%"
|
||||||
|
/>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item label="描述" >
|
||||||
|
<div style="color: #777777" v-html="zyInfo.content"></div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col>
|
||||||
|
<div class="region-title">题目信息</div>
|
||||||
|
</a-col>
|
||||||
|
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-row style="min-height: 100px">
|
||||||
|
<a-col :span="24" style="overflow-y: scroll; min-height: 100px">
|
||||||
|
<draggable @end="end" v-model="tiganData" item-key="id">
|
||||||
|
<template #item="{ index, element: item }">
|
||||||
|
<div>
|
||||||
|
<!-- 单选题 -->
|
||||||
|
<div style="width: 100%" v-if="item.wjType == 3 || item.wjType == '3'">
|
||||||
|
<a-card>
|
||||||
|
<template #title>
|
||||||
|
<div>
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="12">
|
||||||
|
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[单选题]</span></span>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12" style="text-align: right">
|
||||||
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
<a-select
|
||||||
|
style="width: 120px"
|
||||||
|
v-model:value="item.wjScore"
|
||||||
|
placeholder="请选择分数"
|
||||||
|
v-if="item.wjSfqh == '0'"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
>
|
||||||
|
<a-select-option value="5">5</a-select-option>
|
||||||
|
<a-select-option value="4">4</a-select-option>
|
||||||
|
<a-select-option value="3">3</a-select-option>
|
||||||
|
<a-select-option value="2">2</a-select-option>
|
||||||
|
<a-select-option value="1">1</a-select-option>
|
||||||
|
</a-select>
|
||||||
|
<span
|
||||||
|
v-if="item.wjSfqh == '0'"
|
||||||
|
@click="handleQiehuan(item, '1')"
|
||||||
|
style="color: #9e9e9e"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
>自定义分数</span
|
||||||
|
>
|
||||||
|
<a-input-number
|
||||||
|
v-model:value="item.wjScore"
|
||||||
|
style="width: 120px"
|
||||||
|
v-if="item.wjSfqh == '1'"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
></a-input-number>
|
||||||
|
<span
|
||||||
|
v-if="item.wjSfqh == '1'"
|
||||||
|
@click="handleQiehuan(item, '0')"
|
||||||
|
style="color: #9e9e9e"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
>返回</span
|
||||||
|
>
|
||||||
|
</a-tooltip>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<JEditor2
|
||||||
|
placeholder="请填写文件题题干"
|
||||||
|
v-model:value="item.wjTitle"
|
||||||
|
:bordered="false"
|
||||||
|
:style="{ width: '30rem' }"
|
||||||
|
:auto-size="{ minRows: 1, maxRows: 5 }"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
v-if="!editDisabled"
|
||||||
|
/>
|
||||||
|
<div v-else v-html="item.wjTitle"></div>
|
||||||
|
</template>
|
||||||
|
<a-row v-if="isShow">
|
||||||
|
<a-col :span="24" style="color: darkgrey; font-size: 13px"> 注:选中即为正确答案 </a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-radio-group v-model:value="item.itemSelected" style="width: 100%" size="default" :disabled="!isShow">
|
||||||
|
<div style="width: 100%" v-for="(tmxx, index) in item.wjxWjxxTmxxList" :key="index">
|
||||||
|
<a-radio :value="tmxx.itemIndex + ``" style="width: 100%">
|
||||||
|
<a-input
|
||||||
|
placeholder="请填写选项"
|
||||||
|
v-model:value="tmxx.itemTitle"
|
||||||
|
:style="{ width: '30rem' }"
|
||||||
|
:bordered="false"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
/>
|
||||||
|
<span style="color: #ecb646" v-if="item.itemSelected == tmxx.itemIndex">(正确答案)</span>
|
||||||
|
<a-tooltip placement="topLeft" title="在下方添加新的选项"
|
||||||
|
><Icon
|
||||||
|
icon="ant-design:plus-circle-outlined"
|
||||||
|
style="cursor: pointer; margin: 5px; font-size: 20px; color: #1890ff"
|
||||||
|
@click="handleAddTmxx(tmxx, index, item.wjxWjxxTmxxList)"
|
||||||
|
v-if="!editDisabled"
|
||||||
|
/></a-tooltip>
|
||||||
|
<a-tooltip placement="topLeft" title="删除选项"
|
||||||
|
><Icon
|
||||||
|
icon="ant-design:minus-circle-outlined"
|
||||||
|
style="cursor: pointer; margin: 5px; font-size: 20px; color: #1890ff"
|
||||||
|
@click="handleRemTmxx(tmxx, index, item.wjxWjxxTmxxList)"
|
||||||
|
v-if="!editDisabled"
|
||||||
|
/></a-tooltip>
|
||||||
|
</a-radio>
|
||||||
|
</div>
|
||||||
|
</a-radio-group>
|
||||||
|
</a-card>
|
||||||
|
</div>
|
||||||
|
<!-- 多选题 -->
|
||||||
|
<div style="width: 100%" v-else-if="item.wjType == 4 || item.wjType == '4'">
|
||||||
|
<a-card>
|
||||||
|
<template #title>
|
||||||
|
<div>
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="12">
|
||||||
|
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[多选题]</span></span>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12" style="text-align: right">
|
||||||
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
<a-select
|
||||||
|
style="width: 120px"
|
||||||
|
v-model:value="item.wjScore"
|
||||||
|
placeholder="请选择分数"
|
||||||
|
v-if="item.wjSfqh == '0'"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
>
|
||||||
|
<a-select-option value="5">5</a-select-option>
|
||||||
|
<a-select-option value="4">4</a-select-option>
|
||||||
|
<a-select-option value="3">3</a-select-option>
|
||||||
|
<a-select-option value="2">2</a-select-option>
|
||||||
|
<a-select-option value="1">1</a-select-option>
|
||||||
|
</a-select>
|
||||||
|
<span
|
||||||
|
v-if="item.wjSfqh == '0'"
|
||||||
|
@click="handleQiehuan(item, '1')"
|
||||||
|
style="color: #9e9e9e"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
>自定义分数</span
|
||||||
|
>
|
||||||
|
<a-input-number
|
||||||
|
v-model:value="item.wjScore"
|
||||||
|
style="width: 120px"
|
||||||
|
v-if="item.wjSfqh == '1'"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
></a-input-number>
|
||||||
|
<span
|
||||||
|
v-if="item.wjSfqh == '1'"
|
||||||
|
@click="handleQiehuan(item, '0')"
|
||||||
|
style="color: #9e9e9e"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
>返回</span
|
||||||
|
>
|
||||||
|
</a-tooltip>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</div>
|
||||||
|
<JEditor2
|
||||||
|
placeholder="请填写多选题题干"
|
||||||
|
v-model:value="item.wjTitle"
|
||||||
|
:bordered="false"
|
||||||
|
:style="{ width: '30rem' }"
|
||||||
|
:auto-size="{ minRows: 1, maxRows: 5 }"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
v-if="!editDisabled"
|
||||||
|
/>
|
||||||
|
<div v-else v-html="item.wjTitle"></div>
|
||||||
|
</template>
|
||||||
|
<a-row v-if="isShow">
|
||||||
|
<a-col :span="24" style="color: darkgrey; font-size: 13px"> 注:选中即为正确答案 </a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-checkbox-group v-model:value="item.itemSelected" style="width: 100%" :disabled="!isShow">
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="24" v-for="(tmxx, index) in item.wjxWjxxTmxxList" :key="index">
|
||||||
|
<!-- -{{item.itemSelected}}-{{tmxx.itemIndex}} -->
|
||||||
|
<a-checkbox :value="tmxx.itemIndex"
|
||||||
|
><a-input
|
||||||
|
placeholder="请填写选项"
|
||||||
|
v-model:value="tmxx.itemTitle"
|
||||||
|
:bordered="false"
|
||||||
|
:style="{ width: '30rem' }"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
/></a-checkbox>
|
||||||
|
<span style="color: #ecb646" v-if="cheGrp(item.itemSelected, tmxx.itemIndex)">(正确答案)</span>
|
||||||
|
<a-tooltip placement="topLeft" title="在下方添加新的选项"
|
||||||
|
><Icon
|
||||||
|
icon="ant-design:plus-circle-outlined"
|
||||||
|
style="cursor: pointer; margin: 5px; font-size: 20px; color: #1890ff"
|
||||||
|
@click="handleAddTmxx(tmxx, index, item.wjxWjxxTmxxList)"
|
||||||
|
v-if="!editDisabled"
|
||||||
|
/></a-tooltip>
|
||||||
|
<a-tooltip placement="topLeft" title="删除选项"
|
||||||
|
><Icon
|
||||||
|
icon="ant-design:minus-circle-outlined"
|
||||||
|
style="cursor: pointer; margin: 5px; font-size: 20px; color: #1890ff"
|
||||||
|
@click="handleRemTmxx(tmxx, index, item.wjxWjxxTmxxList)"
|
||||||
|
v-if="!editDisabled"
|
||||||
|
/></a-tooltip>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-checkbox-group>
|
||||||
|
</a-card>
|
||||||
|
</div>
|
||||||
|
<!-- 填空题 -->
|
||||||
|
<div style="width: 100%" v-else-if="item.wjType == 5 || item.wjType == '5'">
|
||||||
|
<a-card>
|
||||||
|
<template #title>
|
||||||
|
<div>
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="12">
|
||||||
|
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[填空题]</span></span>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12" style="text-align: right">
|
||||||
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
<a-select
|
||||||
|
style="width: 120px"
|
||||||
|
v-model:value="item.wjScore"
|
||||||
|
placeholder="请选择分数"
|
||||||
|
v-if="item.wjSfqh == '0'"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
>
|
||||||
|
<a-select-option value="5">5</a-select-option>
|
||||||
|
<a-select-option value="4">4</a-select-option>
|
||||||
|
<a-select-option value="3">3</a-select-option>
|
||||||
|
<a-select-option value="2">2</a-select-option>
|
||||||
|
<a-select-option value="1">1</a-select-option>
|
||||||
|
</a-select>
|
||||||
|
<span
|
||||||
|
v-if="item.wjSfqh == '0'"
|
||||||
|
@click="handleQiehuan(item, '1')"
|
||||||
|
style="color: #9e9e9e"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
>自定义分数</span
|
||||||
|
>
|
||||||
|
<a-input-number
|
||||||
|
v-model:value="item.wjScore"
|
||||||
|
style="width: 120px"
|
||||||
|
v-if="item.wjSfqh == '1'"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
></a-input-number>
|
||||||
|
<span
|
||||||
|
v-if="item.wjSfqh == '1'"
|
||||||
|
@click="handleQiehuan(item, '0')"
|
||||||
|
style="color: #9e9e9e"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
>返回</span
|
||||||
|
>
|
||||||
|
</a-tooltip>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</div>
|
||||||
|
<JEditor2
|
||||||
|
placeholder="请填写填空题题干"
|
||||||
|
v-model:value="item.wjTitle"
|
||||||
|
:bordered="false"
|
||||||
|
:style="{ width: '30rem' }"
|
||||||
|
:auto-size="{ minRows: 1, maxRows: 5 }"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
v-if="!editDisabled"
|
||||||
|
/>
|
||||||
|
<div v-else v-html="item.wjTitle"></div>
|
||||||
|
</template>
|
||||||
|
<a-row v-if="isShow">
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-textarea
|
||||||
|
placeholder="请填写答案"
|
||||||
|
v-model:value="item.wjAnswer"
|
||||||
|
:bordered="false"
|
||||||
|
style="width: 100%"
|
||||||
|
:auto-size="{ minRows: 1, maxRows: 5 }"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
/>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-card>
|
||||||
|
</div>
|
||||||
|
<!-- 文件上传 -->
|
||||||
|
<div style="width: 100%" v-else-if="item.wjType == 8 || item.wjType == '8'">
|
||||||
|
<a-card>
|
||||||
|
<template #title>
|
||||||
|
<div>
|
||||||
|
<a-row>
|
||||||
|
<a-col :span="12">
|
||||||
|
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[文件题]</span></span>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12" style="text-align: right">
|
||||||
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
<a-select
|
||||||
|
style="width: 120px"
|
||||||
|
v-model:value="item.wjScore"
|
||||||
|
placeholder="请选择分数"
|
||||||
|
v-if="item.wjSfqh == '0'"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
>
|
||||||
|
<a-select-option value="5">5</a-select-option>
|
||||||
|
<a-select-option value="4">4</a-select-option>
|
||||||
|
<a-select-option value="3">3</a-select-option>
|
||||||
|
<a-select-option value="2">2</a-select-option>
|
||||||
|
<a-select-option value="1">1</a-select-option>
|
||||||
|
</a-select>
|
||||||
|
<span
|
||||||
|
v-if="item.wjSfqh == '0'"
|
||||||
|
@click="handleQiehuan(item, '1')"
|
||||||
|
style="color: #9e9e9e"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
>自定义分数</span
|
||||||
|
>
|
||||||
|
<a-input-number
|
||||||
|
v-model:value="item.wjScore"
|
||||||
|
style="width: 120px"
|
||||||
|
v-if="item.wjSfqh == '1'"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
></a-input-number>
|
||||||
|
<span
|
||||||
|
v-if="item.wjSfqh == '1'"
|
||||||
|
@click="handleQiehuan(item, '0')"
|
||||||
|
style="color: #9e9e9e"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
>返回</span
|
||||||
|
>
|
||||||
|
</a-tooltip>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</div>
|
||||||
|
<JEditor2
|
||||||
|
placeholder="请填写文件题题干"
|
||||||
|
v-model:value="item.wjTitle"
|
||||||
|
:bordered="false"
|
||||||
|
:style="{ width: '30rem' }"
|
||||||
|
:auto-size="{ minRows: 1, maxRows: 5 }"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
v-if="!editDisabled"
|
||||||
|
/>
|
||||||
|
<div v-else v-html="item.wjTitle"></div>
|
||||||
|
</template>
|
||||||
|
</a-card>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-else></div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</draggable>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-form>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-form>
|
||||||
|
</a-spin>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted, unref } from 'vue';
|
||||||
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
|
import { useMessage } from '/@/hooks/web/useMessage';
|
||||||
|
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||||
|
import { getValueType } from '/@/utils';
|
||||||
|
import { saveOrUpdate } from '../WjxWjxx.api';
|
||||||
|
import { Form } from 'ant-design-vue';
|
||||||
|
import { useRouter } from 'vue-router';
|
||||||
|
import dayjs, { Dayjs } from 'dayjs';
|
||||||
|
import draggable from 'vuedraggable';
|
||||||
|
import JEditor2 from '/@/components/Form/src/jeecg/components/JEditor2.vue';
|
||||||
|
|
||||||
|
//当前路由信息
|
||||||
|
const { currentRoute } = useRouter();
|
||||||
|
const { query } = unref(currentRoute);
|
||||||
|
const { rwbh, xqxn } = query; //获取传递参数
|
||||||
|
|
||||||
|
const tiganData = ref<any>([]);
|
||||||
|
|
||||||
|
const zyInfo = ref<any>({});
|
||||||
|
const editDisabled = ref<boolean>(true);
|
||||||
|
const isShow = ref<boolean>(false);
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
formDisabled: { type: Boolean, default: false },
|
||||||
|
formData: { type: Object, default: () => {} },
|
||||||
|
formBpm: { type: Boolean, default: true },
|
||||||
|
});
|
||||||
|
const atype = ref(<string>'');
|
||||||
|
const formRef = ref();
|
||||||
|
const useForm = Form.useForm;
|
||||||
|
const emit = defineEmits(['register', 'ok']);
|
||||||
|
const formData = reactive<Record<string, any>>({
|
||||||
|
id: '',
|
||||||
|
title: '',
|
||||||
|
atype: '',
|
||||||
|
content: '',
|
||||||
|
startTime: '',
|
||||||
|
endTime: '',
|
||||||
|
// qpublish: '',
|
||||||
|
});
|
||||||
|
const { createMessage } = useMessage();
|
||||||
|
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
|
||||||
|
const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 16 } });
|
||||||
|
const confirmLoading = ref<boolean>(false);
|
||||||
|
//表单验证
|
||||||
|
const validatorRules = {
|
||||||
|
title: [{ required: true, message: '请输入测验名称!' }],
|
||||||
|
startTime: [{ required: true, message: '请选择开始时间!' }],
|
||||||
|
endTime: [{ required: true, message: '请选择结束时间!' }],
|
||||||
|
};
|
||||||
|
const disabledDate = (current: Dayjs) => {
|
||||||
|
return current && current < dayjs().subtract(1, 'days').endOf('day');
|
||||||
|
};
|
||||||
|
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: true });
|
||||||
|
|
||||||
|
// 表单禁用
|
||||||
|
const disabled = computed(() => {
|
||||||
|
if (props.formBpm === true) {
|
||||||
|
if (props.formData.disabled === false) {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return props.formDisabled;
|
||||||
|
});
|
||||||
|
|
||||||
|
function end(evt) {
|
||||||
|
for (var i = 0; i < tiganData.value.length; i++) {
|
||||||
|
tiganData.value[i].wjIndex = i + 1;
|
||||||
|
}
|
||||||
|
console.log(`🚀 ~ end ~ tiganData:`, tiganData);
|
||||||
|
}
|
||||||
|
//添加选项
|
||||||
|
function handleAddTmxx(record, index, list) {
|
||||||
|
var itemIndex = 0;
|
||||||
|
for (var i = 0; i < list.length; i++) {
|
||||||
|
var lssx = list[i].itemIndex;
|
||||||
|
if (itemIndex < parseInt(lssx)) {
|
||||||
|
itemIndex = lssx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
list.push({ itemTitle: null, itemIndex: parseInt(itemIndex) + 1 });
|
||||||
|
}
|
||||||
|
|
||||||
|
//删除选项
|
||||||
|
function handleRemTmxx(record, index, list) {
|
||||||
|
if (list.length <= 2) {
|
||||||
|
createMessage.error('至少保留两个选项');
|
||||||
|
} else {
|
||||||
|
list.splice(index, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function cheGrp(a, b) {
|
||||||
|
var retChe = false;
|
||||||
|
if (a) {
|
||||||
|
for (var i = 0; i < a.length; i++) {
|
||||||
|
if (a[i] == b) {
|
||||||
|
retChe = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return retChe;
|
||||||
|
}
|
||||||
|
//切换题目分数类型
|
||||||
|
function handleQiehuan(record, type) {
|
||||||
|
console.log(`🚀 ~ handleQiehuan ~ type:`, type);
|
||||||
|
console.log(`🚀 ~ handleQiehuan ~ record:`, record);
|
||||||
|
record.wjSfqh = type;
|
||||||
|
}
|
||||||
|
function init(record) {
|
||||||
|
defHttp.get({ url: '/wjxWjxx/wjxWjxx/queryById', params: { id: record.id } }).then((res) => {
|
||||||
|
zyInfo.value = res;
|
||||||
|
});
|
||||||
|
|
||||||
|
defHttp.get({ url: '/wjxWjxxTmlb/wjxWjxxTmlb/queryByMainId', params: { id: record.id } }).then((res) => {
|
||||||
|
tiganData.value = res;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增
|
||||||
|
*/
|
||||||
|
function add(value) {
|
||||||
|
atype.value = value;
|
||||||
|
edit({});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑
|
||||||
|
*/
|
||||||
|
function edit(record) {
|
||||||
|
nextTick(() => {
|
||||||
|
zyInfo.value = record;
|
||||||
|
|
||||||
|
defHttp.get({ url: '/wjxWjxxTmlb/wjxWjxxTmlb/queryByMainId', params: { id: record.id } }).then((res) => {
|
||||||
|
console.log('🥴', res);
|
||||||
|
tiganData.value = res;
|
||||||
|
console.log('🧞♂️1111111111', tiganData.value);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提交数据
|
||||||
|
*/
|
||||||
|
async function submitForm() {
|
||||||
|
// 触发表单验证
|
||||||
|
await validate();
|
||||||
|
confirmLoading.value = true;
|
||||||
|
const isUpdate = ref<boolean>(false);
|
||||||
|
//时间格式化
|
||||||
|
let model = formData;
|
||||||
|
if (model.id) {
|
||||||
|
isUpdate.value = true;
|
||||||
|
}
|
||||||
|
//循环数据
|
||||||
|
for (let data in model) {
|
||||||
|
//如果该数据是数组并且是字符串类型
|
||||||
|
if (model[data] instanceof Array) {
|
||||||
|
let valueType = getValueType(formRef.value.getProps, data);
|
||||||
|
//如果是字符串类型的需要变成以逗号分割的字符串
|
||||||
|
if (valueType === 'string') {
|
||||||
|
model[data] = model[data].join(',');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
model.public = '0';
|
||||||
|
|
||||||
|
var endTime = model.endTime;
|
||||||
|
var startTime = model.startTime;
|
||||||
|
if (endTime && startTime) {
|
||||||
|
var endTimestamp = Date.parse(endTime);
|
||||||
|
var startTimestamp = Date.parse(startTime);
|
||||||
|
if (endTimestamp < startTimestamp) {
|
||||||
|
createMessage.warning('开始时间不能小于结束时间!');
|
||||||
|
confirmLoading.value = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
await saveOrUpdate(model, isUpdate.value)
|
||||||
|
.then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
createMessage.success(res.message);
|
||||||
|
emit('ok');
|
||||||
|
} else {
|
||||||
|
createMessage.warning(res.message);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
confirmLoading.value = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
defineExpose({
|
||||||
|
edit,
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.antd-modal-form {
|
||||||
|
min-height: 500px !important;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding: 24px 24px 24px 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.region {
|
||||||
|
margin: 5px 10px;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
.region-title {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #029c88;
|
||||||
|
padding: 8px 20px;
|
||||||
|
border-left: 5px solid #029c88;
|
||||||
|
margin: 10px;
|
||||||
|
border-radius: 5px;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
.tjfx-col {
|
||||||
|
font-size: 12px;
|
||||||
|
padding: 8px 20px;
|
||||||
|
line-height: 25px;
|
||||||
|
}
|
||||||
|
.tjfx-col-title {
|
||||||
|
font-size: 16px;
|
||||||
|
padding: 8px 20px;
|
||||||
|
line-height: 25px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.tjfx-line {
|
||||||
|
width: 30%;
|
||||||
|
text-align: center;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
background: #f7f7f7;
|
||||||
|
border-radius: 5px;
|
||||||
|
margin: 0 15px;
|
||||||
|
padding: 8px 0;
|
||||||
|
}
|
||||||
|
.tjfx-colt {
|
||||||
|
font-size: 22px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #1ab394;
|
||||||
|
}
|
||||||
|
.tjfx-colw {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
.tjfx-title {
|
||||||
|
width: 90%;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.tjfx-type {
|
||||||
|
width: 10%;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.tjfx-xzrs {
|
||||||
|
margin-left: 30px;
|
||||||
|
font-size: 12px;
|
||||||
|
position: absolute;
|
||||||
|
right: 15px;
|
||||||
|
}
|
||||||
|
.tjfx-xzrs1 {
|
||||||
|
margin-left: 30px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.tjfx-zql {
|
||||||
|
text-align: right;
|
||||||
|
width: 50%;
|
||||||
|
font-size: 16px;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
.question-type {
|
||||||
|
background: #eaf9f6;
|
||||||
|
color: #1ab394;
|
||||||
|
padding: 0 5px;
|
||||||
|
border-radius: 3px;
|
||||||
|
border: 1px solid #1ab394;
|
||||||
|
}
|
||||||
|
.answer-word {
|
||||||
|
color: #ff8710;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.ant-dropdown-link {
|
||||||
|
color: #029c88;
|
||||||
|
}
|
||||||
|
.ant-dropdown-link:hover {
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
.ant-dropdown-link1 {
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
.ant-dropdown-link1:hover {
|
||||||
|
color: #029c88;
|
||||||
|
}
|
||||||
|
.card-label {
|
||||||
|
background: #81cbbc;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #fff;
|
||||||
|
padding: 3px 6px;
|
||||||
|
margin-left: 10px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.card-label2 {
|
||||||
|
background: #84c4fa;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #fff;
|
||||||
|
padding: 3px 6px;
|
||||||
|
margin-left: 10px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.card-label3 {
|
||||||
|
background: #fabe84;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #fff;
|
||||||
|
padding: 3px 6px;
|
||||||
|
margin-left: 10px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -0,0 +1,75 @@
|
||||||
|
<template>
|
||||||
|
<a-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
|
||||||
|
<YycyxqForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></YycyxqForm>
|
||||||
|
</a-modal>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import { ref, nextTick, defineExpose } from 'vue';
|
||||||
|
import YycyxqForm from './YycyxqForm.vue'
|
||||||
|
|
||||||
|
const title = ref<string>('');
|
||||||
|
const width = ref<number>(800);
|
||||||
|
const visible = ref<boolean>(false);
|
||||||
|
const disableSubmit = ref<boolean>(false);
|
||||||
|
const registerForm = ref();
|
||||||
|
const emit = defineEmits(['register', 'success']);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增
|
||||||
|
*/
|
||||||
|
function add(value) {
|
||||||
|
title.value = '新增';
|
||||||
|
visible.value = true;
|
||||||
|
nextTick(() => {
|
||||||
|
registerForm.value.edit(value);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑
|
||||||
|
* @param record
|
||||||
|
*/
|
||||||
|
function edit(record) {
|
||||||
|
title.value = disableSubmit.value ? '详情' : '编辑';
|
||||||
|
visible.value = true;
|
||||||
|
nextTick(() => {
|
||||||
|
registerForm.value.edit(record);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 确定按钮点击事件
|
||||||
|
*/
|
||||||
|
function handleOk() {
|
||||||
|
registerForm.value.submitForm();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* form保存回调事件
|
||||||
|
*/
|
||||||
|
function submitCallback() {
|
||||||
|
handleCancel();
|
||||||
|
emit('success');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 取消按钮回调事件
|
||||||
|
*/
|
||||||
|
function handleCancel() {
|
||||||
|
visible.value = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
defineExpose({
|
||||||
|
add,
|
||||||
|
edit,
|
||||||
|
disableSubmit,
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
/**隐藏样式-modal确定按钮 */
|
||||||
|
.jee-hidden {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -13,10 +13,10 @@
|
||||||
<a-form-item label="题目类型">
|
<a-form-item label="题目类型">
|
||||||
<a-select placeholder="请选择题目类型" ref="select" v-model:value="queryParam.wjType">
|
<a-select placeholder="请选择题目类型" ref="select" v-model:value="queryParam.wjType">
|
||||||
<a-select-option value="">全部</a-select-option>
|
<a-select-option value="">全部</a-select-option>
|
||||||
<a-select-option value="3">单选</a-select-option>
|
<a-select-option value="3">单选题</a-select-option>
|
||||||
<a-select-option value="4">多选</a-select-option>
|
<a-select-option value="4">多选题</a-select-option>
|
||||||
<a-select-option value="5">填空</a-select-option>
|
<a-select-option value="5">填空题</a-select-option>
|
||||||
<a-select-option value="8">文件</a-select-option>
|
<a-select-option value="8">文件题</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
|
@ -29,10 +29,10 @@
|
||||||
<a-form-item label="题目类型">
|
<a-form-item label="题目类型">
|
||||||
<a-select placeholder="请选择题目类型" ref="select" v-model:value="queryParam.wjType">
|
<a-select placeholder="请选择题目类型" ref="select" v-model:value="queryParam.wjType">
|
||||||
<a-select-option value="">全部</a-select-option>
|
<a-select-option value="">全部</a-select-option>
|
||||||
<a-select-option value="3">单选</a-select-option>
|
<a-select-option value="3">单选题</a-select-option>
|
||||||
<a-select-option value="4">多选</a-select-option>
|
<a-select-option value="4">多选题</a-select-option>
|
||||||
<a-select-option value="5">填空</a-select-option>
|
<a-select-option value="5">填空题</a-select-option>
|
||||||
<a-select-option value="8">文件</a-select-option>
|
<a-select-option value="8">文件题</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
@ -107,10 +107,10 @@
|
||||||
<a-row style="min-height: 100px">
|
<a-row style="min-height: 100px">
|
||||||
<a-col :span="4" style="padding: 10px">
|
<a-col :span="4" style="padding: 10px">
|
||||||
<a-card title="可选题型" style="height: 300px; border: 1px solid #e8e8e8">
|
<a-card title="可选题型" style="height: 300px; border: 1px solid #e8e8e8">
|
||||||
<p><a-button type="primary" preIcon="ant-design:check-circle-outlined" @click="addTigan(3)">单选</a-button></p>
|
<p><a-button type="primary" preIcon="ant-design:check-circle-outlined" @click="addTigan(3)">单选题</a-button></p>
|
||||||
<p><a-button type="primary" preIcon="ant-design:check-square-outlined" @click="addTigan(4)">多选</a-button></p>
|
<p><a-button type="primary" preIcon="ant-design:check-square-outlined" @click="addTigan(4)">多选题</a-button></p>
|
||||||
<p><a-button type="primary" preIcon="ant-design:check-square-outlined" @click="addTigan(5)">填空</a-button></p>
|
<p><a-button type="primary" preIcon="ant-design:check-square-outlined" @click="addTigan(5)">填空题</a-button></p>
|
||||||
<p><a-button type="primary" preIcon="ant-design:check-square-outlined" @click="addTigan(8)">文件</a-button></p>
|
<p><a-button type="primary" preIcon="ant-design:check-square-outlined" @click="addTigan(8)">文件题</a-button></p>
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="20" style="overflow-y: scroll; min-height: 100px">
|
<a-col :span="20" style="overflow-y: scroll; min-height: 100px">
|
||||||
|
@ -124,7 +124,7 @@
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[单选]</span></span>
|
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[单选题]</span></span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" style="text-align: right;">
|
<a-col :span="12" style="text-align: right;">
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
@ -172,6 +172,9 @@
|
||||||
:auto-size="{ minRows: 1, maxRows: 5 }"
|
:auto-size="{ minRows: 1, maxRows: 5 }"
|
||||||
:disabled="editDisabled" v-if="!editDisabled"/>
|
:disabled="editDisabled" v-if="!editDisabled"/>
|
||||||
<div v-else v-html="item.wjTitle"></div>
|
<div v-else v-html="item.wjTitle"></div>
|
||||||
|
<div style="text-align: right;color: #c2bfbf">是否加入题库:
|
||||||
|
<j-dict-select-tag type='radio' v-model:value="item.sftjtk" dictCode="yn" placeholder="是否加入题库" :disabled="editDisabled"/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<a-row v-if="isShow">
|
<a-row v-if="isShow">
|
||||||
<a-col :span="24" style="color: darkgrey; font-size: 13px"> 注:选中即为正确答案 </a-col>
|
<a-col :span="24" style="color: darkgrey; font-size: 13px"> 注:选中即为正确答案 </a-col>
|
||||||
|
@ -210,7 +213,7 @@
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[多选]</span></span>
|
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[多选题]</span></span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" style="text-align: right;">
|
<a-col :span="12" style="text-align: right;">
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
@ -257,6 +260,9 @@
|
||||||
:auto-size="{ minRows: 1, maxRows: 5 }"
|
:auto-size="{ minRows: 1, maxRows: 5 }"
|
||||||
:disabled="editDisabled" v-if="!editDisabled"/>
|
:disabled="editDisabled" v-if="!editDisabled"/>
|
||||||
<div v-else v-html="item.wjTitle"></div>
|
<div v-else v-html="item.wjTitle"></div>
|
||||||
|
<div style="text-align: right;color: #c2bfbf">是否加入题库:
|
||||||
|
<j-dict-select-tag type='radio' v-model:value="item.sftjtk" dictCode="yn" placeholder="是否加入题库" :disabled="editDisabled"/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<a-row v-if="isShow">
|
<a-row v-if="isShow">
|
||||||
<a-col :span="24" style="color: darkgrey; font-size: 13px"> 注:选中即为正确答案 </a-col>
|
<a-col :span="24" style="color: darkgrey; font-size: 13px"> 注:选中即为正确答案 </a-col>
|
||||||
|
@ -297,7 +303,7 @@
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[填空]</span></span>
|
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[填空题]</span></span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" style="text-align: right;">
|
<a-col :span="12" style="text-align: right;">
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
@ -344,6 +350,9 @@
|
||||||
:auto-size="{ minRows: 1, maxRows: 5 }"
|
:auto-size="{ minRows: 1, maxRows: 5 }"
|
||||||
:disabled="editDisabled" v-if="!editDisabled"/>
|
:disabled="editDisabled" v-if="!editDisabled"/>
|
||||||
<div v-else v-html="item.wjTitle"></div>
|
<div v-else v-html="item.wjTitle"></div>
|
||||||
|
<div style="text-align: right;color: #c2bfbf">是否加入题库:
|
||||||
|
<j-dict-select-tag type='radio' v-model:value="item.sftjtk" dictCode="yn" placeholder="是否加入题库" :disabled="editDisabled"/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<a-row v-if="isShow">
|
<a-row v-if="isShow">
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
|
@ -365,7 +374,7 @@
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[文件]</span></span>
|
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[文件题]</span></span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" style="text-align: right;">
|
<a-col :span="12" style="text-align: right;">
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
@ -412,6 +421,9 @@
|
||||||
:auto-size="{ minRows: 1, maxRows: 5 }"
|
:auto-size="{ minRows: 1, maxRows: 5 }"
|
||||||
:disabled="editDisabled" v-if="!editDisabled"/>
|
:disabled="editDisabled" v-if="!editDisabled"/>
|
||||||
<div v-else v-html="item.wjTitle"></div>
|
<div v-else v-html="item.wjTitle"></div>
|
||||||
|
<div style="text-align: right;color: #c2bfbf">是否加入题库:
|
||||||
|
<j-dict-select-tag type='radio' v-model:value="item.sftjtk" dictCode="yn" placeholder="是否加入题库" :disabled="editDisabled"/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</a-card>
|
</a-card>
|
||||||
</div>
|
</div>
|
||||||
|
@ -618,6 +630,7 @@ function addTigan(type) {
|
||||||
wjLeixing,
|
wjLeixing,
|
||||||
itemSelected: chk,
|
itemSelected: chk,
|
||||||
wjSfqh: '0',
|
wjSfqh: '0',
|
||||||
|
sftjtk: '1',
|
||||||
wjxWjxxTmxxList: [
|
wjxWjxxTmxxList: [
|
||||||
{ itemTitle: null, itemIndex: '1' },
|
{ itemTitle: null, itemIndex: '1' },
|
||||||
{ itemTitle: null, itemIndex: '2' },
|
{ itemTitle: null, itemIndex: '2' },
|
||||||
|
@ -641,6 +654,7 @@ function addTigan(type) {
|
||||||
wjLeixing,
|
wjLeixing,
|
||||||
itemSelected: chk,
|
itemSelected: chk,
|
||||||
wjSfqh: '0',
|
wjSfqh: '0',
|
||||||
|
sftjtk: '1',
|
||||||
wjxWjxxTmxxList: [
|
wjxWjxxTmxxList: [
|
||||||
{ itemTitle: null, itemIndex: '1' },
|
{ itemTitle: null, itemIndex: '1' },
|
||||||
{ itemTitle: null, itemIndex: '2' },
|
{ itemTitle: null, itemIndex: '2' },
|
||||||
|
@ -658,6 +672,7 @@ function addTigan(type) {
|
||||||
wjLeixing,
|
wjLeixing,
|
||||||
wjAnswer: null,
|
wjAnswer: null,
|
||||||
wjSfqh: '0',
|
wjSfqh: '0',
|
||||||
|
sftjtk: '1',
|
||||||
};
|
};
|
||||||
list.push(params);
|
list.push(params);
|
||||||
tiganData.value = [...list];
|
tiganData.value = [...list];
|
||||||
|
@ -674,6 +689,7 @@ function addTigan(type) {
|
||||||
wjScore: null,
|
wjScore: null,
|
||||||
wjLeixing,
|
wjLeixing,
|
||||||
wjSfqh: '0',
|
wjSfqh: '0',
|
||||||
|
sftjtk: '1',
|
||||||
};
|
};
|
||||||
list.push(params);
|
list.push(params);
|
||||||
tiganData.value = [...list];
|
tiganData.value = [...list];
|
||||||
|
@ -863,6 +879,7 @@ onMounted(() => {
|
||||||
// console.log(`🚀 ~ onMounted ~ wjLeixing:`, wjLeixing)
|
// console.log(`🚀 ~ onMounted ~ wjLeixing:`, wjLeixing)
|
||||||
// queryParam.value.wjLeixing = wjLeixing;
|
// queryParam.value.wjLeixing = wjLeixing;
|
||||||
queryParam.value.createBy = userStore.getUserInfo.username;
|
queryParam.value.createBy = userStore.getUserInfo.username;
|
||||||
|
queryParam.value.sftjtk = "1";
|
||||||
reload();
|
reload();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -13,9 +13,10 @@
|
||||||
<a-form-item label="题目类型">
|
<a-form-item label="题目类型">
|
||||||
<a-select placeholder="请选择题目类型" ref="select" v-model:value="queryParam.wjType">
|
<a-select placeholder="请选择题目类型" ref="select" v-model:value="queryParam.wjType">
|
||||||
<a-select-option value="">全部</a-select-option>
|
<a-select-option value="">全部</a-select-option>
|
||||||
<a-select-option value="3">单选</a-select-option>
|
<a-select-option value="3">单选题</a-select-option>
|
||||||
<a-select-option value="4">多选</a-select-option>
|
<a-select-option value="4">多选题</a-select-option>
|
||||||
<a-select-option value="5">填空</a-select-option>
|
<a-select-option value="5">填空题</a-select-option>
|
||||||
|
<a-select-option value="8">文件题</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
|
@ -13,9 +13,10 @@
|
||||||
<a-form-item label="题目类型">
|
<a-form-item label="题目类型">
|
||||||
<a-select placeholder="请选择题目类型" ref="select" v-model:value="queryParam.wjType">
|
<a-select placeholder="请选择题目类型" ref="select" v-model:value="queryParam.wjType">
|
||||||
<a-select-option value="">全部</a-select-option>
|
<a-select-option value="">全部</a-select-option>
|
||||||
<a-select-option value="3">单选</a-select-option>
|
<a-select-option value="3">单选题</a-select-option>
|
||||||
<a-select-option value="4">多选</a-select-option>
|
<a-select-option value="4">多选题</a-select-option>
|
||||||
<a-select-option value="5">填空</a-select-option>
|
<a-select-option value="5">填空题</a-select-option>
|
||||||
|
<a-select-option value="5">文件题</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
|
@ -12,13 +12,13 @@ export const columns: BasicColumn[] = [
|
||||||
customRender:({text}) =>{
|
customRender:({text}) =>{
|
||||||
var rt = "";
|
var rt = "";
|
||||||
if(text == '3'){
|
if(text == '3'){
|
||||||
rt = "单选";
|
rt = "单选题";
|
||||||
}else if(text == '4'){
|
}else if(text == '4'){
|
||||||
rt = "多选";
|
rt = "多选题";
|
||||||
}else if(text == '5'){
|
}else if(text == '5'){
|
||||||
rt = "填空";
|
rt = "填空题";
|
||||||
}else if(text == '8'){
|
}else if(text == '8'){
|
||||||
rt = "文件";
|
rt = "文件题";
|
||||||
}
|
}
|
||||||
return rt;
|
return rt;
|
||||||
},
|
},
|
||||||
|
@ -48,13 +48,13 @@ export const wjdccolumns: BasicColumn[] = [
|
||||||
customRender:({text}) =>{
|
customRender:({text}) =>{
|
||||||
var rt = "";
|
var rt = "";
|
||||||
if(text == '3'){
|
if(text == '3'){
|
||||||
rt = "单选";
|
rt = "单选题";
|
||||||
}else if(text == '4'){
|
}else if(text == '4'){
|
||||||
rt = "多选";
|
rt = "多选题";
|
||||||
}else if(text == '5'){
|
}else if(text == '5'){
|
||||||
rt = "填空";
|
rt = "填空题";
|
||||||
}else if(text == '8'){
|
}else if(text == '8'){
|
||||||
rt = "文件";
|
rt = "文件题";
|
||||||
}
|
}
|
||||||
return rt;
|
return rt;
|
||||||
},
|
},
|
||||||
|
@ -79,13 +79,13 @@ export const columnsYytk: BasicColumn[] = [
|
||||||
customRender:({text}) =>{
|
customRender:({text}) =>{
|
||||||
var rt = "";
|
var rt = "";
|
||||||
if(text == '3'){
|
if(text == '3'){
|
||||||
rt = "单选";
|
rt = "单选题";
|
||||||
}else if(text == '4'){
|
}else if(text == '4'){
|
||||||
rt = "多选";
|
rt = "多选题";
|
||||||
}else if(text == '5'){
|
}else if(text == '5'){
|
||||||
rt = "填空";
|
rt = "填空题";
|
||||||
}else if(text == '8'){
|
}else if(text == '8'){
|
||||||
rt = "文件";
|
rt = "文件题";
|
||||||
}
|
}
|
||||||
return rt;
|
return rt;
|
||||||
},
|
},
|
||||||
|
@ -115,13 +115,13 @@ export const columnsYytkdc: BasicColumn[] = [
|
||||||
customRender:({text}) =>{
|
customRender:({text}) =>{
|
||||||
var rt = "";
|
var rt = "";
|
||||||
if(text == '3'){
|
if(text == '3'){
|
||||||
rt = "单选";
|
rt = "单选题";
|
||||||
}else if(text == '4'){
|
}else if(text == '4'){
|
||||||
rt = "多选";
|
rt = "多选题";
|
||||||
}else if(text == '5'){
|
}else if(text == '5'){
|
||||||
rt = "填空";
|
rt = "填空题";
|
||||||
}else if(text == '8'){
|
}else if(text == '8'){
|
||||||
rt = "文件";
|
rt = "文件题";
|
||||||
}
|
}
|
||||||
return rt;
|
return rt;
|
||||||
},
|
},
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
<!-- <JDictSelectTag placeholder="请选择" v-model:value="queryParam.wjSytype" dictCode="yn" /> -->
|
<!-- <JDictSelectTag placeholder="请选择" v-model:value="queryParam.wjSytype" dictCode="yn" /> -->
|
||||||
<a-select placeholder="请选择题目类型" ref="select" v-model:value="queryParam.wjType">
|
<a-select placeholder="请选择题目类型" ref="select" v-model:value="queryParam.wjType">
|
||||||
<a-select-option value="">全部</a-select-option>
|
<a-select-option value="">全部</a-select-option>
|
||||||
<a-select-option value="3">单选</a-select-option>
|
<a-select-option value="3">单选题</a-select-option>
|
||||||
<a-select-option value="4">多选</a-select-option>
|
<a-select-option value="4">多选题</a-select-option>
|
||||||
<a-select-option value="5">填空</a-select-option>
|
<a-select-option value="5">填空题</a-select-option>
|
||||||
<a-select-option value="8">文件</a-select-option>
|
<a-select-option value="8">文件题</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
<!-- <JDictSelectTag placeholder="请选择" v-model:value="queryParam.wjSytype" dictCode="yn" /> -->
|
<!-- <JDictSelectTag placeholder="请选择" v-model:value="queryParam.wjSytype" dictCode="yn" /> -->
|
||||||
<a-select placeholder="请选择题目类型" ref="select" v-model:value="queryParam.wjType">
|
<a-select placeholder="请选择题目类型" ref="select" v-model:value="queryParam.wjType">
|
||||||
<a-select-option value="">全部</a-select-option>
|
<a-select-option value="">全部</a-select-option>
|
||||||
<a-select-option value="3">单选</a-select-option>
|
<a-select-option value="3">单选题</a-select-option>
|
||||||
<a-select-option value="4">多选</a-select-option>
|
<a-select-option value="4">多选题</a-select-option>
|
||||||
<a-select-option value="5">填空</a-select-option>
|
<a-select-option value="5">填空题</a-select-option>
|
||||||
<a-select-option value="8">文件</a-select-option>
|
<a-select-option value="8">文件题</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
@ -184,6 +184,7 @@
|
||||||
queryParam.value = {
|
queryParam.value = {
|
||||||
...record
|
...record
|
||||||
}
|
}
|
||||||
|
queryParam.value.sftjtk = "1";
|
||||||
reload();
|
reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[单选]</span></span>
|
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[单选题]</span></span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" style="text-align: right;">
|
<a-col :span="12" style="text-align: right;">
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
@ -51,6 +51,9 @@
|
||||||
:auto-size="{ minRows: 1, maxRows: 5 }"
|
:auto-size="{ minRows: 1, maxRows: 5 }"
|
||||||
:disabled="editDisabled" v-if="!editDisabled"/>
|
:disabled="editDisabled" v-if="!editDisabled"/>
|
||||||
<div v-else v-html="item.wjTitle"></div>
|
<div v-else v-html="item.wjTitle"></div>
|
||||||
|
<div style="text-align: right;color: #c2bfbf">是否加入题库:
|
||||||
|
<j-dict-select-tag type='radio' v-model:value="item.sftjtk" dictCode="yn" placeholder="是否加入题库" :disabled="editDisabled"/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<a-row v-if="isShow">
|
<a-row v-if="isShow">
|
||||||
<a-col :span="24" style="color: darkgrey; font-size: 13px"> 注:选中即为正确答案 </a-col>
|
<a-col :span="24" style="color: darkgrey; font-size: 13px"> 注:选中即为正确答案 </a-col>
|
||||||
|
@ -89,7 +92,7 @@
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[多选]</span></span>
|
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[多选题]</span></span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" style="text-align: right;">
|
<a-col :span="12" style="text-align: right;">
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
@ -129,6 +132,9 @@
|
||||||
:auto-size="{ minRows: 1, maxRows: 5 }"
|
:auto-size="{ minRows: 1, maxRows: 5 }"
|
||||||
:disabled="editDisabled" v-if="!editDisabled"/>
|
:disabled="editDisabled" v-if="!editDisabled"/>
|
||||||
<div v-else v-html="item.wjTitle"></div>
|
<div v-else v-html="item.wjTitle"></div>
|
||||||
|
<div style="text-align: right;color: #c2bfbf">是否加入题库:
|
||||||
|
<j-dict-select-tag type='radio' v-model:value="item.sftjtk" dictCode="yn" placeholder="是否加入题库" :disabled="editDisabled"/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<a-row v-if="isShow">
|
<a-row v-if="isShow">
|
||||||
<a-col :span="24" style="color: darkgrey; font-size: 13px"> 注:选中即为正确答案 </a-col>
|
<a-col :span="24" style="color: darkgrey; font-size: 13px"> 注:选中即为正确答案 </a-col>
|
||||||
|
@ -169,7 +175,7 @@
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[填空]</span></span>
|
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[填空题]</span></span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" style="text-align: right;">
|
<a-col :span="12" style="text-align: right;">
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
@ -209,6 +215,9 @@
|
||||||
:auto-size="{ minRows: 1, maxRows: 5 }"
|
:auto-size="{ minRows: 1, maxRows: 5 }"
|
||||||
:disabled="editDisabled" v-if="!editDisabled"/>
|
:disabled="editDisabled" v-if="!editDisabled"/>
|
||||||
<div v-else v-html="item.wjTitle"></div>
|
<div v-else v-html="item.wjTitle"></div>
|
||||||
|
<div style="text-align: right;color: #c2bfbf">是否加入题库:
|
||||||
|
<j-dict-select-tag type='radio' v-model:value="item.sftjtk" dictCode="yn" placeholder="是否加入题库" :disabled="editDisabled"/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<a-row v-if="isShow">
|
<a-row v-if="isShow">
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
|
@ -229,7 +238,7 @@
|
||||||
<div>
|
<div>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[文件]</span></span>
|
<span>{{ index + 1 }}、<span style="color: #c2bfbf">[文件题]</span></span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" style="text-align: right;">
|
<a-col :span="12" style="text-align: right;">
|
||||||
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
<a-tooltip placement="topLeft" title="题目分数" v-if="isShow">
|
||||||
|
@ -269,6 +278,9 @@
|
||||||
:auto-size="{ minRows: 5, maxRows: 5 }"
|
:auto-size="{ minRows: 5, maxRows: 5 }"
|
||||||
:disabled="editDisabled" v-if="!editDisabled"/>
|
:disabled="editDisabled" v-if="!editDisabled"/>
|
||||||
<div v-else v-html="item.wjTitle"></div>
|
<div v-else v-html="item.wjTitle"></div>
|
||||||
|
<div style="text-align: right;color: #c2bfbf">是否加入题库:
|
||||||
|
<j-dict-select-tag type='radio' v-model:value="item.sftjtk" dictCode="yn" placeholder="是否加入题库" :disabled="editDisabled"/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</a-card>
|
</a-card>
|
||||||
</div>
|
</div>
|
||||||
|
@ -293,6 +305,7 @@ import { useMessage } from '/@/hooks/web/useMessage';
|
||||||
import { Form } from 'ant-design-vue';
|
import { Form } from 'ant-design-vue';
|
||||||
import JEditor2 from '/@/components/Form/src/jeecg/components/JEditor2.vue';
|
import JEditor2 from '/@/components/Form/src/jeecg/components/JEditor2.vue';
|
||||||
import draggable from 'vuedraggable';
|
import draggable from 'vuedraggable';
|
||||||
|
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||||
const useForm = Form.useForm;
|
const useForm = Form.useForm;
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
@ -301,6 +314,7 @@ export default defineComponent({
|
||||||
JVxeTable,
|
JVxeTable,
|
||||||
draggable,
|
draggable,
|
||||||
JEditor2,
|
JEditor2,
|
||||||
|
JDictSelectTag,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
formDisabled: {
|
formDisabled: {
|
||||||
|
|
|
@ -8,12 +8,24 @@
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :lg="24" :xs="18">
|
<a-col :lg="24" :xs="18">
|
||||||
<div style="width:100%;background: #fff;font-size: 18px;font-weight: bold;margin-top:10px;padding: 10px;">
|
<div style="width:100%;background: #fff;font-size: 18px;font-weight: bold;margin-top:10px;padding: 10px;">
|
||||||
|
<a-row>
|
||||||
<a-button type="primary" @click="toggleCollapsed">
|
<a-col :xs="0" :lg="24">
|
||||||
<MenuUnfoldOutlined v-if="collapsed" />
|
<a-button type="primary" @click="toggleCollapsed">
|
||||||
<MenuUnfoldOutlined v-else />
|
<MenuUnfoldOutlined v-if="collapsed" />
|
||||||
</a-button>
|
<MenuUnfoldOutlined v-else />
|
||||||
课程名称:{{kcxxInfo.kcmc}}</div>
|
</a-button>
|
||||||
|
<span class="ellipsis">
|
||||||
|
课程名称1:{{kcxxInfo.kcmc}}
|
||||||
|
</span>
|
||||||
|
</a-col>
|
||||||
|
<a-col :xs="24" :lg="0">
|
||||||
|
<span class="ellipsis">
|
||||||
|
课程名称1:{{kcxxInfo.kcmc}}
|
||||||
|
</span>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
|
||||||
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="0" :xs="6">
|
<a-col :lg="0" :xs="6">
|
||||||
<dqxqkcMenu/>
|
<dqxqkcMenu/>
|
||||||
|
@ -119,4 +131,9 @@ function toggleCollapsed() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.ellipsis {
|
||||||
|
white-space: nowrap; /* 确保文本在一行内显示 */
|
||||||
|
overflow: hidden; /* 隐藏溢出的内容 */
|
||||||
|
text-overflow: ellipsis; /* 使用省略号表示溢出的文本 */
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -152,6 +152,10 @@ export const formSchema: FormSchema[] = [
|
||||||
required: true,
|
required: true,
|
||||||
message: '请输入登录密码',
|
message: '请输入登录密码',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@#$%&*]).{8,}$|^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).{8,}$|^(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%&*]).{8,}$|^(?=.*[a-z])(?=.*\\d)(?=.*[@#$%&*]).{8,}$|^(?=.*[A-Z])(?=.*\\d)(?=.*[@#$%&*]).{8,}$/,
|
||||||
|
message: '密码长度要求8位及以上,须由大写字母、小写字母、数字及特殊符号中的三种或三种以上',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -335,6 +339,10 @@ export const formPasswordSchema: FormSchema[] = [
|
||||||
required: true,
|
required: true,
|
||||||
message: '请输入登录密码',
|
message: '请输入登录密码',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
pattern: /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,}$/,
|
||||||
|
message: '密码由8位数字、大小写字母和特殊符号组成!',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -819,14 +819,14 @@ async function viewThreePage(three) {
|
||||||
// console.log('🤬', file);
|
// console.log('🤬', file);
|
||||||
// let url = getFileAccessHttpUrl(encodeURIComponent(file));
|
// let url = getFileAccessHttpUrl(encodeURIComponent(file));
|
||||||
// var t2 = encryptByBase64(url);
|
// var t2 = encryptByBase64(url);
|
||||||
// window.open('https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(t2));
|
// window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(t2));
|
||||||
|
|
||||||
// var file = 'https://kczxcs.nenu.edu.cn/jeecg-boot/temp/ylhpsf.pdf';
|
// var file = 'https://kczxcs.nenu.edu.cn/jeecg-boot/temp/ylhpsf.pdf';
|
||||||
var file = baseApiUrl + "/"+three.filePath;
|
var file = baseApiUrl + "/"+three.filePath;
|
||||||
console.log('🤬', file);
|
console.log('🤬', file);
|
||||||
// let url = getFileAccessHttpUrl(encodeURIComponent(file));
|
// let url = getFileAccessHttpUrl(encodeURIComponent(file));
|
||||||
// var t2 = encryptByBase64(url);
|
// var t2 = encryptByBase64(url);
|
||||||
window.open('https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||||
|
|
||||||
|
|
||||||
} else if (three.type == 'richText') {
|
} else if (three.type == 'richText') {
|
||||||
|
|
|
@ -555,7 +555,7 @@ function handleVideo(three){
|
||||||
handleVideo(three);
|
handleVideo(three);
|
||||||
} else if (three.type == 'document') {
|
} else if (three.type == 'document') {
|
||||||
var file = baseApiUrl + "/"+three.filePath;
|
var file = baseApiUrl + "/"+three.filePath;
|
||||||
window.open('https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
window.open('https://kczxcs.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||||
} else if (three.type == 'richText') {
|
} else if (three.type == 'richText') {
|
||||||
threePageOpen.value = true;
|
threePageOpen.value = true;
|
||||||
threePageDisableSubmit.value = true;
|
threePageDisableSubmit.value = true;
|
||||||
|
|
|
@ -340,7 +340,7 @@ function handlePreview(record) {
|
||||||
if(filetype=='jpg' || filetype=='png' || filetype=='jpeg' || filetype=='xls' || filetype=='xlsx' || filetype=='text' ){
|
if(filetype=='jpg' || filetype=='png' || filetype=='jpeg' || filetype=='xls' || filetype=='xlsx' || filetype=='text' ){
|
||||||
var file = baseApiUrl + "/"+record.stuFilePath;
|
var file = baseApiUrl + "/"+record.stuFilePath;
|
||||||
console.log('🤬', file);
|
console.log('🤬', file);
|
||||||
window.open('https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||||
}else if(filetype=='doc' || filetype=='docx' || filetype=='pdf'){
|
}else if(filetype=='doc' || filetype=='docx' || filetype=='pdf'){
|
||||||
var url2 = getFileAccessHttpUrl(record.stuPdfPath);
|
var url2 = getFileAccessHttpUrl(record.stuPdfPath);
|
||||||
let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
|
let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
|
||||||
|
|
|
@ -4,20 +4,20 @@
|
||||||
<a-col :span="24" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 5px 5px; border-radius: 10px; overflow: hidden;">
|
<a-col :span="24" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 5px 5px; border-radius: 10px; overflow: hidden;">
|
||||||
<div style="width: 100%; height:40px;border-radius: 10px 10px 0 0; background-color: #f7f7f7">
|
<div style="width: 100%; height:40px;border-radius: 10px 10px 0 0; background-color: #f7f7f7">
|
||||||
<!-- <a-col :span="24" style="height:40px; line-height:40px; padding-left:15px; color:#333; overflow: hidden;" > -->
|
<!-- <a-col :span="24" style="height:40px; line-height:40px; padding-left:15px; color:#333; overflow: hidden;" > -->
|
||||||
<div style="font-size: 18px; font-weight: bold">第{{ item.sort }}次考试(本次考试在总成绩中的占比:{{item.zyzb}}%)</div>
|
<div style="font-size: 18px; font-weight: bold" class="ellipsis">第{{ item.sort }}次作业(本次作业在总成绩中的占比:{{item.zyzb}}%)</div>
|
||||||
<!-- </a-col> -->
|
<!-- </a-col> -->
|
||||||
</div>
|
</div>
|
||||||
<a-card style="height: 240px; border: 1px solid #eeeeee">
|
<a-card style="min-height: 240px; border: 1px solid #eeeeee">
|
||||||
<div class="rotate" :style="classFun(item)">{{ callText(item) }}</div>
|
<div class="rotate" :style="classFun(item)">{{ callText(item) }}</div>
|
||||||
<a-row style="top: -60px; position: relative">
|
<a-row style="top: -60px; position: relative">
|
||||||
<a-col :span="24" class="zytitle" :title="item.title" @click="handleDetail(item)"
|
<a-col :span="24" class="zytitle" :title="item.title" @click="handleDetail(item)"
|
||||||
><span class="zytitle-back">{{ item.title }}</span></a-col
|
><span class="zytitle-back ellipsis">{{ item.title }}</span></a-col
|
||||||
>
|
>
|
||||||
<a-col :span="12" class="zyCon"
|
<a-col :lg="12" class="zyCon ellipsis"
|
||||||
><span class="zyCon-word">考试时间:</span>{{ dayjs(item.startTime).format('YYYY.MM.DD HH:mm') }} ~
|
><span class="zyCon-word">作业时间:</span>{{ dayjs(item.startTime).format('YYYY.MM.DD HH:mm') }} ~
|
||||||
{{ dayjs(item.endTime).format('YYYY.MM.DD HH:mm') }}</a-col
|
{{ dayjs(item.endTime).format('YYYY.MM.DD HH:mm') }}</a-col
|
||||||
>
|
>
|
||||||
<a-col :span="12" class="zyCon"
|
<a-col :lg="12" class="zyCon ellipsis"
|
||||||
><span class="zyCon-word">互评时间:</span
|
><span class="zyCon-word">互评时间:</span
|
||||||
><span v-if="item.xshpkg == '1'"
|
><span v-if="item.xshpkg == '1'"
|
||||||
>{{ dayjs(item.xshpkssj).format('YYYY.MM.DD HH:mm') }} ~ {{ dayjs(item.xshpjssj).format('YYYY.MM.DD HH:mm') }}</span
|
>{{ dayjs(item.xshpkssj).format('YYYY.MM.DD HH:mm') }} ~ {{ dayjs(item.xshpjssj).format('YYYY.MM.DD HH:mm') }}</span
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
<a-col :span="12" class="zyCon Score-List">
|
<a-col :span="12" class="zyCon Score-List">
|
||||||
<a-popover title="得分情况">
|
<a-popover title="得分情况">
|
||||||
<template #content>
|
<template #content>
|
||||||
<p>考试得分:{{ item.stuscore && item.scoreFabu == '1' ? item.stuscore : '未评' }}分</p>
|
<p>作业得分:{{ item.stuscore && item.scoreFabu == '1' ? item.stuscore : '未评' }}分</p>
|
||||||
<p v-if="item.jxfs">互评奖励:{{ item.jxfs && item.scoreFabu == '1' ? item.jxfs : '未评' }}分</p>
|
<p v-if="item.jxfs">互评奖励:{{ item.jxfs && item.scoreFabu == '1' ? item.jxfs : '未评' }}分</p>
|
||||||
</template>
|
</template>
|
||||||
<div class="Score-List-row">
|
<div class="Score-List-row">
|
||||||
|
@ -42,11 +42,11 @@
|
||||||
>{{ getCctype(item, '1') }}<span @click="handleOpenCcjg(item, '0')" style="color:#1ab394;cursor: pointer;" v-if="item.wwxsl">报告</span>
|
>{{ getCctype(item, '1') }}<span @click="handleOpenCcjg(item, '0')" style="color:#1ab394;cursor: pointer;" v-if="item.wwxsl">报告</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<span class="zyCon-word">本次考试查重:</span
|
<span class="zyCon-word">本次作业查重:</span
|
||||||
>{{ getCctype(item, '2') }}<span @click="handleOpenCcjg(item, '1')" style="color:#1ab394;cursor: pointer;" v-if="item.nwxsl">报告</span>
|
>{{ getCctype(item, '2') }}<span @click="handleOpenCcjg(item, '1')" style="color:#1ab394;cursor: pointer;" v-if="item.nwxsl">报告</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<span class="zyCon-word">学校考试库查重:</span
|
<span class="zyCon-word">学校作业库查重:</span
|
||||||
>{{ getCctype(item, '4') }}<span @click="handleOpenCcjg(item, '3')" style="color:#1ab394;cursor: pointer;" v-if="item.xnxsl">报告</span>
|
>{{ getCctype(item, '4') }}<span @click="handleOpenCcjg(item, '3')" style="color:#1ab394;cursor: pointer;" v-if="item.xnxsl">报告</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
|
@ -121,6 +121,7 @@ import ZyInfoStudentListModal from '/@/views/zy/zyInfoStudent/ZyInfoStudentListM
|
||||||
import ZyInfoStudentModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentModal.vue';
|
import ZyInfoStudentModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentModal.vue';
|
||||||
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
||||||
import { def } from '@vue/shared';
|
import { def } from '@vue/shared';
|
||||||
|
import { encryptByBase64 } from '/@/utils/cipher';
|
||||||
|
|
||||||
//当前路由信息
|
//当前路由信息
|
||||||
const { currentRoute } = useRouter();
|
const { currentRoute } = useRouter();
|
||||||
|
@ -296,6 +297,7 @@ function classFun(record) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function callText(record) {
|
function callText(record) {
|
||||||
|
console.log('record--->',record);
|
||||||
if (record.stuscore) {
|
if (record.stuscore) {
|
||||||
return '已完成';
|
return '已完成';
|
||||||
} else if (record.stuFilePath) {
|
} else if (record.stuFilePath) {
|
||||||
|
@ -312,30 +314,42 @@ function handleDetail(record: Recordable) {
|
||||||
registerModal.value.edit(record);
|
registerModal.value.edit(record);
|
||||||
}
|
}
|
||||||
|
|
||||||
//上传考试附件
|
//上传作业附件
|
||||||
function handleShangchuan(record) {
|
function handleShangchuan(record) {
|
||||||
let timestamp = new Date().getTime();
|
let timestamp = new Date().getTime();
|
||||||
let startTimestamp = Date.parse(record.startTime);
|
let startTimestamp = Date.parse(record.startTime);
|
||||||
if (timestamp < startTimestamp) {
|
if (timestamp < startTimestamp) {
|
||||||
createMessage.error('还未到提交考试时间!');
|
createMessage.error('还未到提交作业时间!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let endTimestamp = Date.parse(record.endTime);
|
let endTimestamp = Date.parse(record.endTime);
|
||||||
if (timestamp > endTimestamp) {
|
if (timestamp > endTimestamp) {
|
||||||
createMessage.error('提交考试时间已过!');
|
createMessage.error('提交作业时间已过!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ZyInfoStudentModalPage.value.disableSubmit = false;
|
ZyInfoStudentModalPage.value.disableSubmit = false;
|
||||||
var param = { id: record.stuId, zyfj: record.filePath };
|
var param = { id: record.id,stuId:record.stuId, zyfj: record.filePath };
|
||||||
|
console.log('------->',param);
|
||||||
ZyInfoStudentModalPage.value.edit(param);
|
ZyInfoStudentModalPage.value.edit(param);
|
||||||
}
|
}
|
||||||
|
|
||||||
//预览
|
//预览
|
||||||
function handlePreview(record) {
|
function handlePreview(record) {
|
||||||
var url2 = getFileAccessHttpUrl(record.stuPdfPath);
|
const parts = record.stuFilePath.split('.');
|
||||||
let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
|
const filetype = parts[parts.length - 1];
|
||||||
window.open(url, '_blank');
|
if(filetype=='jpg' || filetype=='png' || filetype=='jpeg' || filetype=='xls' || filetype=='xlsx' || filetype=='text' ){
|
||||||
|
var file = baseApiUrl + "/"+record.stuFilePath;
|
||||||
|
console.log('🤬', file);
|
||||||
|
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||||
|
}else if(filetype=='doc' || filetype=='docx' || filetype=='pdf'){
|
||||||
|
var url2 = getFileAccessHttpUrl(record.stuPdfPath);
|
||||||
|
let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
|
||||||
|
window.open(url, '_blank');
|
||||||
|
}else{
|
||||||
|
createMessage.error('暂不支持该文件预览!');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleDownload(record) {
|
function handleDownload(record) {
|
||||||
|
|
|
@ -0,0 +1,226 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<!--引用表格-->
|
||||||
|
<BasicTable @register="registerTable">
|
||||||
|
<!--插槽:table标题-->
|
||||||
|
<template #tableTitle> </template>
|
||||||
|
<!--操作栏-->
|
||||||
|
<template #action="{ record }">
|
||||||
|
<TableAction :actions="getTableAction(record)" />
|
||||||
|
</template>
|
||||||
|
<!--字段回显插槽-->
|
||||||
|
<template #htmlSlot="{ text }">
|
||||||
|
<div v-html="text"></div>
|
||||||
|
</template>
|
||||||
|
<!--省市区字段回显插槽-->
|
||||||
|
<!--<template #pcaSlot="{text}">
|
||||||
|
{{ getAreaTextByCode(text) }}
|
||||||
|
</template>-->
|
||||||
|
<template #fileSlot="{ text }">
|
||||||
|
<span v-if="!text" style="font-size: 12px; font-style: italic">无文件</span>
|
||||||
|
<a-button v-else :ghost="true" type="primary" preIcon="ant-design:download-outlined" size="small" @click="downloadFile(text)">下载</a-button>
|
||||||
|
</template>
|
||||||
|
</BasicTable>
|
||||||
|
<!-- 表单区域 -->
|
||||||
|
<ZyInfoDetailModal ref="registerModal" @success="handleSuccess"></ZyInfoDetailModal>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" name="kcTeachingUnitContentOne-kcTeachingUnitContentOne" setup>
|
||||||
|
import { ref, reactive } from 'vue';
|
||||||
|
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||||
|
import { useListPage } from '/@/hooks/system/useListPage';
|
||||||
|
import { columns2 } from './ZyInfo.data';
|
||||||
|
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './ZyInfo.api';
|
||||||
|
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||||
|
import ZyInfoDetailModal from '/@/views/zy/zyInfo/components/ZyInfoDetailModal.vue';
|
||||||
|
|
||||||
|
const queryParam = ref<any>({});
|
||||||
|
const toggleSearchStatus = ref<boolean>(false);
|
||||||
|
const registerModal = ref();
|
||||||
|
|
||||||
|
const emit = defineEmits(['register', 'ok', 'yinyong']);
|
||||||
|
//注册table数据
|
||||||
|
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||||
|
tableProps: {
|
||||||
|
title: 'kc_teaching_unit_content_one',
|
||||||
|
api: list,
|
||||||
|
columns: columns2,
|
||||||
|
canResize: false,
|
||||||
|
useSearchForm: false,
|
||||||
|
actionColumn: {
|
||||||
|
width: 120,
|
||||||
|
fixed: 'right',
|
||||||
|
},
|
||||||
|
// showActionColumn: false,
|
||||||
|
beforeFetch: (params) => {
|
||||||
|
(params.column = ''), (params.order = ''); //新生成的默认不带排序
|
||||||
|
return Object.assign(params, queryParam.value);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
exportConfig: {
|
||||||
|
name: 'kc_teaching_unit_content_one',
|
||||||
|
url: getExportUrl,
|
||||||
|
},
|
||||||
|
importConfig: {
|
||||||
|
url: getImportUrl,
|
||||||
|
success: handleSuccess,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] =
|
||||||
|
tableContext;
|
||||||
|
const labelCol = reactive({
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 7 },
|
||||||
|
});
|
||||||
|
const wrapperCol = reactive({
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 16 },
|
||||||
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增事件
|
||||||
|
*/
|
||||||
|
function handleAdd() {
|
||||||
|
var ids = selectedRowKeys.value;
|
||||||
|
console.log('😘', ids);
|
||||||
|
|
||||||
|
emit('ok', ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑事件
|
||||||
|
*/
|
||||||
|
function handleEdit(record: Recordable) {
|
||||||
|
registerModal.value.disableSubmit = false;
|
||||||
|
registerModal.value.edit(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 详情
|
||||||
|
*/
|
||||||
|
function handleDetail(record: Recordable) {
|
||||||
|
registerModal.value.disableSubmit = true;
|
||||||
|
registerModal.value.edit(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除事件
|
||||||
|
*/
|
||||||
|
async function handleDelete(record) {
|
||||||
|
await deleteOne({ id: record.id }, handleSuccess);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除事件
|
||||||
|
*/
|
||||||
|
async function batchHandleDelete() {
|
||||||
|
await batchDelete({ ids: selectedRowKeys.value }, handleSuccess);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 成功回调
|
||||||
|
*/
|
||||||
|
function handleSuccess() {
|
||||||
|
(selectedRowKeys.value = []) && reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleYinyong(record) {
|
||||||
|
console.log('🎅', record);
|
||||||
|
|
||||||
|
emit('yinyong', record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 操作栏
|
||||||
|
*/
|
||||||
|
function getTableAction(record) {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
label: '引用',
|
||||||
|
onClick: handleYinyong.bind(null, record),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '详情',
|
||||||
|
onClick: handleDetail.bind(null, record),
|
||||||
|
},
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 下拉操作栏
|
||||||
|
*/
|
||||||
|
function getDropDownAction(record) {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
label: '详情',
|
||||||
|
onClick: handleDetail.bind(null, record),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '删除',
|
||||||
|
popConfirm: {
|
||||||
|
title: '是否确认删除',
|
||||||
|
confirm: handleDelete.bind(null, record),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询
|
||||||
|
*/
|
||||||
|
function searchQuery() {
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重置
|
||||||
|
*/
|
||||||
|
function searchReset() {
|
||||||
|
queryParam.value = {};
|
||||||
|
selectedRowKeys.value = [];
|
||||||
|
//刷新数据
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
function init(record) {
|
||||||
|
console.log('🥼', record);
|
||||||
|
queryParam.value = record;
|
||||||
|
queryParam.value.title = "! null";
|
||||||
|
console.log('🦸♀️', queryParam);
|
||||||
|
reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提交数据
|
||||||
|
*/
|
||||||
|
async function submitForm() {
|
||||||
|
var ids = selectedRowKeys.value;
|
||||||
|
console.log('😘', ids);
|
||||||
|
|
||||||
|
emit('ok', ids);
|
||||||
|
}
|
||||||
|
defineExpose({
|
||||||
|
init,
|
||||||
|
submitForm,
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.jeecg-basic-table-form-container {
|
||||||
|
.table-page-search-submitButtons {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.query-group-cust {
|
||||||
|
width: calc(50% - 15px);
|
||||||
|
min-width: 100px !important;
|
||||||
|
}
|
||||||
|
.query-group-split-cust {
|
||||||
|
width: 30px;
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -0,0 +1,80 @@
|
||||||
|
<template>
|
||||||
|
<a-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
|
||||||
|
<YyzyList ref="registerForm" @ok="submitCallback" @yinyong="handleYinyong" :formDisabled="disableSubmit" :formBpm="false"></YyzyList>
|
||||||
|
</a-modal>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import { ref, nextTick, defineExpose } from 'vue';
|
||||||
|
import YyzyList from './YyzyList.vue'
|
||||||
|
|
||||||
|
const title = ref<string>('');
|
||||||
|
const width = ref<number>(1000);
|
||||||
|
const visible = ref<boolean>(false);
|
||||||
|
const disableSubmit = ref<boolean>(false);
|
||||||
|
const registerForm = ref();
|
||||||
|
const emit = defineEmits(['register', 'success']);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增
|
||||||
|
*/
|
||||||
|
function init(record) {
|
||||||
|
title.value = '引用作业';
|
||||||
|
visible.value = true;
|
||||||
|
nextTick(() => {
|
||||||
|
registerForm.value.init(record);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑
|
||||||
|
* @param record
|
||||||
|
*/
|
||||||
|
function edit(record) {
|
||||||
|
title.value = disableSubmit.value ? '详情' : '编辑';
|
||||||
|
visible.value = true;
|
||||||
|
nextTick(() => {
|
||||||
|
registerForm.value.edit(record);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 确定按钮点击事件
|
||||||
|
*/
|
||||||
|
function handleOk() {
|
||||||
|
registerForm.value.submitForm();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* form保存回调事件
|
||||||
|
*/
|
||||||
|
function submitCallback(record) {
|
||||||
|
handleCancel();
|
||||||
|
emit('success',record);
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleYinyong(record){
|
||||||
|
handleCancel();
|
||||||
|
emit('success',record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 取消按钮回调事件
|
||||||
|
*/
|
||||||
|
function handleCancel() {
|
||||||
|
visible.value = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
defineExpose({
|
||||||
|
init,
|
||||||
|
edit,
|
||||||
|
disableSubmit,
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
/**隐藏样式-modal确定按钮 */
|
||||||
|
.jee-hidden {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -63,6 +63,40 @@ export const columns: BasicColumn[] = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
//列表数据
|
||||||
|
export const columns2: BasicColumn[] = [
|
||||||
|
{
|
||||||
|
title: '作业名称',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'title'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '开始时间',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'startTime',
|
||||||
|
customRender:({text}) =>{
|
||||||
|
return !text?"":(text.length>10?text.substr(0,10):text);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '结束时间',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'endTime',
|
||||||
|
customRender:({text}) =>{
|
||||||
|
return !text?"":(text.length>10?text.substr(0,10):text);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '状态',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'zyStatus_dictText'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '学年学期',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'xnxq'
|
||||||
|
},
|
||||||
|
];
|
||||||
//查询数据
|
//查询数据
|
||||||
export const searchFormSchema: FormSchema[] = [
|
export const searchFormSchema: FormSchema[] = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -35,7 +35,9 @@
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="18" style="margin-top: 5px">
|
<a-col :span="18" style="margin-top: 5px">
|
||||||
<span style="color: #777777">学生修完本课程需要完成的考试次数:</span>
|
<span style="color: #777777">学生修完本课程需要完成的考试次数:</span>
|
||||||
<a-input-number style="width: 30%" v-model:value="zycs" @change="handleZycs" :max="100" disabled/><span style="margin-left: 5px">次</span>
|
<a-input-number style="width: 30%" v-model:value="zycs" @change="handleZycs" :max="100" disabled /><span style="margin-left: 5px"
|
||||||
|
>次</span
|
||||||
|
>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!-- <a-col :span="6" style="text-align: right; padding: 5px 0 0 0">
|
<!-- <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>
|
<a @click="handleAddZycs" class="ant-btn buttonClass mar-right20"><Icon icon="ant-design:file-add-outlined" />新增考试</a>
|
||||||
|
@ -47,7 +49,9 @@
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
<template v-if="column.key === 'score'">
|
<template v-if="column.key === 'score'">
|
||||||
<span>
|
<span>
|
||||||
<a-input-number v-model:value="record.score" :min="0" :max="100" @blur="handleJscjbfb"> <template #addonAfter> % </template></a-input-number>
|
<a-input-number v-model:value="record.score" :min="0" :max="100" @blur="handleJscjbfb">
|
||||||
|
<template #addonAfter> % </template></a-input-number
|
||||||
|
>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="column.key === 'lstitle'">
|
<template v-else-if="column.key === 'lstitle'">
|
||||||
|
@ -74,10 +78,9 @@
|
||||||
<a-spin :spinning="confirmLoading">
|
<a-spin :spinning="confirmLoading">
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<!-- <a-breadcrumb>
|
<!-- <div style="text-align: right">
|
||||||
<a-breadcrumb-item>编辑考试</a-breadcrumb-item>
|
<a-button style="margin-right: 10px" type="primary" @click="handleYyzy">引用作业</a-button>
|
||||||
<a-breadcrumb-item>布置考试:设置第{{ zyInfo.sort }}次考试内容及要求</a-breadcrumb-item>
|
</div> -->
|
||||||
</a-breadcrumb> -->
|
|
||||||
<span class="title">编辑考试</span> - <span class="title2">布置考试:设置第{{ zyInfo.sort }}次考试内容及要求</span>
|
<span class="title">编辑考试</span> - <span class="title2">布置考试:设置第{{ zyInfo.sort }}次考试内容及要求</span>
|
||||||
<a-divider />
|
<a-divider />
|
||||||
</a-col>
|
</a-col>
|
||||||
|
@ -86,7 +89,7 @@
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="region">
|
<div class="region">
|
||||||
<div class="region-title">基本信息</div>
|
<div class="region-title"><span class="region-title-headline"></span>基本信息</div>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-item label="考试题目" v-bind="validateInfos.title">
|
<a-form-item label="考试题目" v-bind="validateInfos.title">
|
||||||
<a-input v-model:value="zyInfo.title" placeholder="请输入考试题目" :disabled="editDisabled"></a-input>
|
<a-input v-model:value="zyInfo.title" placeholder="请输入考试题目" :disabled="editDisabled"></a-input>
|
||||||
|
@ -147,7 +150,7 @@
|
||||||
<a-form-item label="考试要求" v-bind="validateInfos.content">
|
<a-form-item label="考试要求" v-bind="validateInfos.content">
|
||||||
<j-editor v-model:value="zyInfo.content" v-if="zyyqShow" @blur="handleZyyqShow(0)" />
|
<j-editor v-model:value="zyInfo.content" v-if="zyyqShow" @blur="handleZyyqShow(0)" />
|
||||||
<div style="color: #777777" v-html="zyInfo.content" v-if="!zyyqShow"></div>
|
<div style="color: #777777" v-html="zyInfo.content" v-if="!zyyqShow"></div>
|
||||||
<div @click="handleZyyqShow(1)" class="tishi" v-if="!editDisabled">温馨提示:点击可编辑考试要求</div>
|
<div @click="handleZyyqShow(1)" class="tishi" v-if="!editDisabled">温馨提示:点击可编辑考试要求</div>
|
||||||
<!-- <div @click="handleZyyqShow(1)"><span style="cursor: pointer; color: #18a689">温馨提示:点击可编辑考试要求</span></div> -->
|
<!-- <div @click="handleZyyqShow(1)"><span style="cursor: pointer; color: #18a689">温馨提示:点击可编辑考试要求</span></div> -->
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
@ -183,7 +186,7 @@
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="region">
|
<div class="region">
|
||||||
<div class="region-title">学生互评</div>
|
<div class="region-title"><span class="region-title-headline"></span>学生互评</div>
|
||||||
<a-form-item label="学生互评">
|
<a-form-item label="学生互评">
|
||||||
<div class="tishi" v-if="zyInfo.xshpkg == '1'"
|
<div class="tishi" v-if="zyInfo.xshpkg == '1'"
|
||||||
>每份考试至少互评三次,每个学生互评五份考试。按时完成互评任务的学生,可额外获得最终分数的2%作为互评奖励;互评考试质量高的学生,可额外获得最终分数的5%作为互评奖励。</div
|
>每份考试至少互评三次,每个学生互评五份考试。按时完成互评任务的学生,可额外获得最终分数的2%作为互评奖励;互评考试质量高的学生,可额外获得最终分数的5%作为互评奖励。</div
|
||||||
|
@ -203,7 +206,12 @@
|
||||||
<template #addonAfter>人</template>
|
<template #addonAfter>人</template>
|
||||||
</a-input-number>
|
</a-input-number>
|
||||||
</a-form-item> -->
|
</a-form-item> -->
|
||||||
<a-form-item label="互评结果使用" :labelCol="labelCol3" :wrapperCol="wrapperCol3" style="margin-top: 20px; margin-left: -30px">
|
<a-form-item
|
||||||
|
label="互评结果使用"
|
||||||
|
:labelCol="labelCol3"
|
||||||
|
:wrapperCol="wrapperCol3"
|
||||||
|
style="margin-top: 20px; margin-left: -30px"
|
||||||
|
>
|
||||||
<a-radio-group v-model:value="zyInfo.sfzzcj" style="width: 100%" size="default" :disabled="editDisabled">
|
<a-radio-group v-model:value="zyInfo.sfzzcj" style="width: 100%" size="default" :disabled="editDisabled">
|
||||||
<a-radio :value="'1'" style="width: 100%; margin-bottom: 5px">互评成绩为最终成绩</a-radio>
|
<a-radio :value="'1'" style="width: 100%; margin-bottom: 5px">互评成绩为最终成绩</a-radio>
|
||||||
<a-radio :value="'0'" style="width: 100%; margin-bottom: 5px">互评成绩作为教师评分的参考成绩</a-radio>
|
<a-radio :value="'0'" style="width: 100%; margin-bottom: 5px">互评成绩作为教师评分的参考成绩</a-radio>
|
||||||
|
@ -255,8 +263,23 @@
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="region">
|
<div class="region">
|
||||||
<div class="region-title">查重设置</div>
|
<div class="region-title"><span class="region-title-headline"></span>查重设置</div>
|
||||||
<a-form-item label="检测通过率" :labelCol="labelCol3" :wrapperCol="wrapperCol3" style="margin: -1px; margin-left: -10px">
|
<a-form-item label="是否进行查重" :labelCol="labelCol3" :wrapperCol="wrapperCol3">
|
||||||
|
<j-dict-select-tag
|
||||||
|
type="radio"
|
||||||
|
v-model:value="zyInfo.sfcc"
|
||||||
|
dictCode="yn"
|
||||||
|
placeholder="请选择是否查重"
|
||||||
|
:disabled="editDisabled"
|
||||||
|
/>
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item
|
||||||
|
label="检测通过率"
|
||||||
|
:labelCol="labelCol3"
|
||||||
|
:wrapperCol="wrapperCol3"
|
||||||
|
style="margin: -1px; margin-left: -10px"
|
||||||
|
v-if="zyInfo.sfcc == '1'"
|
||||||
|
>
|
||||||
<a-input-number
|
<a-input-number
|
||||||
v-model:value="zyInfo.wwtgl"
|
v-model:value="zyInfo.wwtgl"
|
||||||
placeholder="请输入检测通过率"
|
placeholder="请输入检测通过率"
|
||||||
|
@ -268,7 +291,13 @@
|
||||||
<template #addonAfter> % </template>
|
<template #addonAfter> % </template>
|
||||||
</a-input-number>
|
</a-input-number>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label="比对库设置" :labelCol="labelCol3" :wrapperCol="wrapperCol3" style="margin-left: -10px">
|
<a-form-item
|
||||||
|
label="比对库设置"
|
||||||
|
:labelCol="labelCol3"
|
||||||
|
:wrapperCol="wrapperCol3"
|
||||||
|
style="margin-left: -10px"
|
||||||
|
v-if="zyInfo.sfcc == '1'"
|
||||||
|
>
|
||||||
<div style="padding: 5px 0">维普</div>
|
<div style="padding: 5px 0">维普</div>
|
||||||
<div style="display: flex; flex-direction: column">
|
<div style="display: flex; flex-direction: column">
|
||||||
<a-checkbox v-model:checked="zyInfo.wwcc" :disabled="editDisabled" style="margin-left: 8px">
|
<a-checkbox v-model:checked="zyInfo.wwcc" :disabled="editDisabled" style="margin-left: 8px">
|
||||||
|
@ -276,17 +305,17 @@
|
||||||
<span class="bled-countenance2">中文科技期刊数据库、硕博学位论文库、高校特色论文库、互联网数据资源/互联网文档资源</span>
|
<span class="bled-countenance2">中文科技期刊数据库、硕博学位论文库、高校特色论文库、互联网数据资源/互联网文档资源</span>
|
||||||
</a-checkbox>
|
</a-checkbox>
|
||||||
<a-checkbox v-model:checked="zyInfo.xncc" :disabled="editDisabled">
|
<a-checkbox v-model:checked="zyInfo.xncc" :disabled="editDisabled">
|
||||||
<span class="bled-countenance">学校考试库查重</span><br /><span class="bled-countenance2">历届学生提供的考试库内查重</span>
|
<span class="bled-countenance">学校作业库查重</span><br /><span class="bled-countenance2">历届学生提供的作业库内查重</span>
|
||||||
</a-checkbox>
|
</a-checkbox>
|
||||||
<a-checkbox v-model:checked="zyInfo.nwcc" :disabled="editDisabled">
|
<a-checkbox v-model:checked="zyInfo.nwcc" :disabled="editDisabled">
|
||||||
<span class="bled-countenance">本次考试查重</span><br /><span class="bled-countenance2">本次学生提交的考试间查重</span>
|
<span class="bled-countenance">本次作业查重</span><br /><span class="bled-countenance2">本次学生提交的作业间查重</span>
|
||||||
</a-checkbox>
|
</a-checkbox>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 5px 0">AIGC</div>
|
<div style="padding: 5px 0">AIGC</div>
|
||||||
<div>
|
<div>
|
||||||
<a-checkbox v-model:checked="zyInfo.aigccc" style="margin-left: 8px" :disabled="editDisabled">
|
<a-checkbox v-model:checked="zyInfo.aigccc" style="margin-left: 8px" :disabled="editDisabled">
|
||||||
<span class="bled-countenance">AIGC查重</span><br /><span class="bled-countenance2"
|
<span class="bled-countenance">AIGC查重</span><br /><span class="bled-countenance2"
|
||||||
>检测考试是否部分或全部由AI模型生成</span
|
>检测作业是否部分或全部由AI模型生成</span
|
||||||
>
|
>
|
||||||
</a-checkbox>
|
</a-checkbox>
|
||||||
</div>
|
</div>
|
||||||
|
@ -350,10 +379,11 @@
|
||||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQueryZyxq">查询</a-button>
|
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQueryZyxq">查询</a-button>
|
||||||
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
||||||
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls" style="margin-left: 8px"> 导出</a-button>
|
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls" style="margin-left: 8px"> 导出</a-button>
|
||||||
<a-button type="primary" preIcon="ant-design:export-outlined" @click="batchHandleFabu" style="margin-left: 8px"
|
<a-button type="primary" preIcon="ant-design:export-outlined" @click="batchHandleFabu" style="margin-left: 8px">发布成绩</a-button>
|
||||||
>一键发布评分</a-button
|
<a-button type="primary" preIcon="ant-design:export-outlined" @click="batchHandleKhcl" style="margin-left: 8px"
|
||||||
|
>上传考核材料</a-button
|
||||||
>
|
>
|
||||||
<span class="tishi" style="margin-left: 20px;padding:10px;">温馨提示:考试完成后,请及时发布评分</span>
|
<span class="tishi" style="margin-left: 20px; padding: 10px">温馨提示:考试完成后,请及时发布评分</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
|
@ -448,37 +478,27 @@
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-row style="padding: 10px">
|
<a-row style="padding: 10px">
|
||||||
<a-col :lg="24" v-for="(item, index) in tableData" style="padding: 0 5px 5px 5px" :key="index">
|
<a-col :lg="24" v-for="(item, index) in tableData" style="padding: 0 5px 12px 5px; border-radius: 5px" :key="index">
|
||||||
<a-card
|
<a-card :title="'第' + item.sort + '次作业(占比' + item.score + '%)'" v-if="!item.endTime" class="cardClass module-bg">
|
||||||
:title="'第' + item.sort + '次考试(占比' + item.score + '%)'"
|
<template #extra><span class="card-label3"> 待设置</span> </template>
|
||||||
v-if="!item.endTime"
|
<p class="sznrClass">尚未布置作业题目及具体要求</p>
|
||||||
class="cardClass"
|
|
||||||
bodyStyle="background: #fff;"
|
|
||||||
>
|
|
||||||
<template #extra
|
|
||||||
><span style="color: #ff8710; font-weight: bold"><Icon icon="ant-design:setting-outlined" /> 待设置</span>
|
|
||||||
</template>
|
|
||||||
<p class="sznrClass">尚未布置考试题目及具体要求</p>
|
|
||||||
<div style="text-align: right">
|
<div style="text-align: right">
|
||||||
<a @click="handleEdit(item, false)">设置考试内容及要求</a>
|
<a @click="handleEdit(item, false)" class="home-status"><Icon icon="ant-design:file-text-outlined" />设置作业内容及要求</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="handleDelete(item)">删除</a>
|
<a @click="handleDelete(item)" class="home-status"><Icon icon="ant-design:delete-outlined" />删除</a>
|
||||||
</div>
|
</div>
|
||||||
</a-card>
|
</a-card>
|
||||||
<a-card
|
<a-card
|
||||||
:title="'第' + item.sort + '次考试(占比' + item.score + '%)'"
|
:title="'第' + item.sort + '次作业(占比' + item.score + '%)'"
|
||||||
v-if="item.endTime && item.zyStatus == '1'"
|
v-if="item.endTime && (item.zyStatus == '1' || item.zyStatus == '2')"
|
||||||
class="cardClass"
|
class="cardClass module-bg"
|
||||||
bodyStyle="background: #fff;"
|
|
||||||
>
|
>
|
||||||
<template #extra
|
<template #extra><span class="card-label">已发布</span> </template>
|
||||||
><span style="color: #02aa56; font-weight: bold"><Icon icon="ant-design:check-outlined" />已发布</span>
|
|
||||||
</template>
|
|
||||||
<div class="ellip-title">
|
<div class="ellip-title">
|
||||||
<span class="ellipsis elli-title" :title="item.title">{{ item.title }}</span>
|
<span class="ellipsis elli-title" :title="item.title">{{ item.title }}</span>
|
||||||
<a class="button-zhta" @click="openXkrs(item)">{{ item.xkxs }}人选课</a>
|
<a class="button-zhta" @click="openXkrs(item)">{{ item.xkxs }}人选课</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="width: 100%; display: flex">
|
<div style="width: 100%; display: flex">
|
||||||
<div class="data-suggest zuanqu" @click="handleZyxx(item, '1')"
|
<div class="data-suggest zuanqu" @click="handleZyxx(item, '1')"
|
||||||
><span>{{ item.wtjnum }}人</span><span>待提交</span></div
|
><span>{{ item.wtjnum }}人</span><span>待提交</span></div
|
||||||
|
@ -494,44 +514,54 @@
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<div style="width:100%;display:flex;margin-top:20px">
|
<div style="width: 100%; display: flex; margin-top: 20px">
|
||||||
<div class="ellip-word"><span class="ellip-word2">考试发布时间:</span>{{ item.startTime ? dayjs(item.startTime).format('YYYY.MM.DD HH:mm') : '未设置' }}</div>
|
<div class="ellip-word"
|
||||||
<div class="ellip-word"><span class="ellip-word2">考试截止时间:</span>{{ dayjs(item.endTime).format('YYYY.MM.DD HH:mm') }}</div>
|
><span class="ellip-word2">作业发布时间:</span
|
||||||
</div>
|
>{{ item.startTime ? dayjs(item.startTime).format('YYYY.MM.DD HH:mm') : '未设置' }}</div
|
||||||
<div style="text-align: right; margin-top: 20px; margin-bottom: -10px; width: 100%">
|
>
|
||||||
<a @click="handleEdit(item, true)" v-if="item.ytjnum > 0">编辑考试</a>
|
<div class="ellip-word"><span class="ellip-word2">作业截止时间:</span>{{ dayjs(item.endTime).format('YYYY.MM.DD HH:mm') }}</div>
|
||||||
<a @click="handleChehui(item)" v-if="item.ytjnum == 0">撤回考试</a>
|
</div>
|
||||||
<a-divider type="vertical" />
|
<div style="text-align: right; margin-top: 20px; margin-bottom: -10px; width: 100%">
|
||||||
<a @click="handleZyxx(item, '')">批阅考试</a>
|
<!-- <a @click="handleWxtx(item)" class="home-status"><Icon icon="ant-design:wechat-outlined" />微信提醒</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" /> -->
|
||||||
<a @click="handleDelete(item)" v-if="item.ytjnum == '0'">删除</a>
|
<a @click="handleEdit(item, true)" v-if="item.ytjnum > 0" class="home-status"><Icon icon="ant-design:form-outlined" />编辑作业</a>
|
||||||
</div>
|
<a @click="handleChehui(item)" v-if="item.dpynum == 0 && item.ypynum == 0" class="home-status"
|
||||||
|
><Icon icon="ant-design:import-outlined" />撤回作业</a
|
||||||
|
>
|
||||||
|
<a-divider type="vertical" v-if="item.dpynum == 0 && item.ypynum == 0" />
|
||||||
|
<a @click="handleZyxx(item, '')" class="home-status"><Icon icon="ant-design:file-done-outlined" />批阅作业</a>
|
||||||
|
<a-divider type="vertical" v-if="item.dpynum == 0 && item.ypynum == 0" />
|
||||||
|
<a @click="handleDelete(item)" v-if="item.dpynum == 0 && item.ypynum == 0" class="home-status"
|
||||||
|
><Icon icon="ant-design:delete-outlined" />删除</a
|
||||||
|
>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-card>
|
</a-card>
|
||||||
<a-card
|
<a-card
|
||||||
:title="'第' + item.sort + '次考试(占比' + item.score + '%)'"
|
:title="'第' + item.sort + '次作业(占比' + item.score + '%)'"
|
||||||
v-if="item.endTime && item.zyStatus == '0'"
|
v-if="item.endTime && item.zyStatus == '0'"
|
||||||
class="cardClass"
|
class="cardClass"
|
||||||
bodyStyle="background: #fff;"
|
bodyStyle="background: #fff;"
|
||||||
>
|
>
|
||||||
<template #extra
|
<template #extra><span class="card-label2">待发布</span> </template>
|
||||||
><span style="color: #ff8710; font-weight: bold"><Icon icon="ant-design:send-outlined" />待发布</span>
|
|
||||||
</template>
|
|
||||||
<div class="ellip-title">
|
<div class="ellip-title">
|
||||||
<span class="ellipsis elli-title" :title="item.title">{{ item.title }}</span>
|
<span class="ellipsis elli-title" :title="item.title">{{ item.title }}</span>
|
||||||
<a class="button-zhta" @click="openXkrs(item)">{{ item.xkxs }}人选课</a>
|
<a class="button-zhta" @click="openXkrs(item)">{{ item.xkxs }}人选课</a>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%;">
|
<div style="width: 100%">
|
||||||
<div class="ellip-word"><span class="ellip-word2">考试发布时间:</span>{{ item.startTime ? dayjs(item.startTime).format('YYYY.MM.DD HH:mm') : '未设置' }}</div>
|
<div class="ellip-word"
|
||||||
<div class="ellip-word"><span class="ellip-word2">考试截止时间:</span>{{ dayjs(item.endTime).format('YYYY.MM.DD HH:mm') }}</div>
|
><span class="ellip-word2">作业发布时间:</span
|
||||||
|
>{{ item.startTime ? dayjs(item.startTime).format('YYYY.MM.DD HH:mm') : '未设置' }}</div
|
||||||
|
>
|
||||||
|
<div class="ellip-word"><span class="ellip-word2">作业截止时间:</span>{{ dayjs(item.endTime).format('YYYY.MM.DD HH:mm') }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="height: 45px"> </div>
|
<div style="height: 45px"> </div>
|
||||||
<div style="text-align: right; margin-top: 30px">
|
<div style="text-align: right; margin-top: 30px">
|
||||||
<a @click="handleEdit(item, false)">编辑考试</a>
|
<a @click="handleEdit(item, false)" class="home-status"><Icon icon="ant-design:form-outlined" />编辑作业</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="handleFabu(item)">发布考试</a>
|
<a @click="handleFabu(item)" class="home-status"><Icon icon="ant-design:upload-outlined" />发布作业</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="handleDelete(item)">删除</a>
|
<a @click="handleDelete(item)" class="home-status"><Icon icon="ant-design:delete-outlined" />删除</a>
|
||||||
</div>
|
</div>
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
@ -550,6 +580,7 @@
|
||||||
<ZyInfoStudentListModal ref="ZyInfoStudentListModalPage" @success="handleSuccess"></ZyInfoStudentListModal>
|
<ZyInfoStudentListModal ref="ZyInfoStudentListModalPage" @success="handleSuccess"></ZyInfoStudentListModal>
|
||||||
<ZyInfoStudentModal ref="ZyInfoStudentModalPage"></ZyInfoStudentModal>
|
<ZyInfoStudentModal ref="ZyInfoStudentModalPage"></ZyInfoStudentModal>
|
||||||
<XxhbbksListModal ref="XxhbbksListModalPage"></XxhbbksListModal>
|
<XxhbbksListModal ref="XxhbbksListModalPage"></XxhbbksListModal>
|
||||||
|
<YyzyListModal ref="YyzyListModalPage" @success="handleCallYinyong"></YyzyListModal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -571,7 +602,7 @@ import JEditor from '/@/components/Form/src/jeecg/components/JEditor.vue';
|
||||||
import dayjs, { Dayjs } from 'dayjs';
|
import dayjs, { Dayjs } from 'dayjs';
|
||||||
import { useListPage } from '/@/hooks/system/useListPage';
|
import { useListPage } from '/@/hooks/system/useListPage';
|
||||||
import { newcolumns } from '/@/views/zy/zyInfoStudent/ZyInfoStudent.data';
|
import { newcolumns } from '/@/views/zy/zyInfoStudent/ZyInfoStudent.data';
|
||||||
import { newlist, getExportUrl, batchFabu } from '/@/views/zy/zyInfoStudent/ZyInfoStudent.api';
|
import { newlist, getExportUrl, batchFabu, batchFabu2, batchKhcl } from '/@/views/zy/zyInfoStudent/ZyInfoStudent.api';
|
||||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||||
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
||||||
import { useGlobSetting } from '/@/hooks/setting';
|
import { useGlobSetting } from '/@/hooks/setting';
|
||||||
|
@ -587,6 +618,7 @@ import ZyInfoStudentListModal from '/@/views/zy/zyInfoStudent/ZyInfoStudentListM
|
||||||
import ZyInfoStudentModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentModal.vue';
|
import ZyInfoStudentModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentModal.vue';
|
||||||
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
||||||
import ZyInfoEditModal from './components/ZyInfoEditModal.vue';
|
import ZyInfoEditModal from './components/ZyInfoEditModal.vue';
|
||||||
|
import YyzyListModal from '/@/views/zy/zyInfo/YyzyListModal.vue';
|
||||||
|
|
||||||
const globSetting = useGlobSetting();
|
const globSetting = useGlobSetting();
|
||||||
const baseApiUrl = globSetting.domainUrl;
|
const baseApiUrl = globSetting.domainUrl;
|
||||||
|
@ -633,6 +665,7 @@ const ZyInfoStudentModalPage = ref();
|
||||||
const XxhbbksListModalPage = ref();
|
const XxhbbksListModalPage = ref();
|
||||||
const registerEditModal = ref();
|
const registerEditModal = ref();
|
||||||
const registerDetialModal = ref();
|
const registerDetialModal = ref();
|
||||||
|
const YyzyListModalPage = ref();
|
||||||
const pdfUrl = ref('/downPath/ylhpsf.pdf');
|
const pdfUrl = ref('/downPath/ylhpsf.pdf');
|
||||||
//注册table数据
|
//注册table数据
|
||||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||||
|
@ -675,6 +708,23 @@ const disabledDate = (current: Dayjs) => {
|
||||||
};
|
};
|
||||||
const useForm = Form.useForm;
|
const useForm = Form.useForm;
|
||||||
|
|
||||||
|
//引用作业
|
||||||
|
function handleYyzy() {
|
||||||
|
var params = { xqxn, rwbh };
|
||||||
|
YyzyListModalPage.value.disableSubmit = true;
|
||||||
|
YyzyListModalPage.value.init(params);
|
||||||
|
}
|
||||||
|
//引用作业回调
|
||||||
|
function handleCallYinyong(record) {
|
||||||
|
console.log('👯♂️', record);
|
||||||
|
var zysort = zyInfo.value.sort; //防止顺序错误
|
||||||
|
var zyid = zyInfo.value.id; //替换原来的id,防止新增
|
||||||
|
record.id = zyid;
|
||||||
|
record.sort = zysort;
|
||||||
|
record.zyLeixing = '1'; //作业类型,期末考试
|
||||||
|
zyInfo.value = record;
|
||||||
|
console.log('😠', zyInfo);
|
||||||
|
}
|
||||||
function handleXshpkg(record) {
|
function handleXshpkg(record) {
|
||||||
console.log('👨👧👦', record);
|
console.log('👨👧👦', record);
|
||||||
}
|
}
|
||||||
|
@ -890,31 +940,60 @@ function getTableAction(record) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//发布考试评分
|
//发布作业评分
|
||||||
async function batchHandleFabu() {
|
async function batchHandleFabu() {
|
||||||
if (selectedRowKeys.value.length == 0) {
|
console.log('🧐', { id: zyInfo.value.id });
|
||||||
createMessage.warn('请勾选要发布的数据!');
|
defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/getNoScore', params: { id: zyInfo.value.id } }).then((res) => {
|
||||||
return;
|
console.log('🦴', res);
|
||||||
}
|
var list = res;
|
||||||
|
console.log('🧚♀️', list.length);
|
||||||
var datapar2 = rowSelection.selectedRows;
|
if (list.length > 0) {
|
||||||
console.log('👌', datapar2);
|
var studentName = '';
|
||||||
var sfjx = '0';
|
for (var i = 0; i < list.length; i++) {
|
||||||
for (var i = 0; i < datapar2.length; i++) {
|
studentName = studentName + list[i].studentName + '、';
|
||||||
var score = datapar2[i].score;
|
}
|
||||||
if (!score) {
|
createConfirm({
|
||||||
sfjx = '1';
|
iconType: 'warning',
|
||||||
break;
|
title: '确认发布',
|
||||||
|
content:
|
||||||
|
'当前学生:' +
|
||||||
|
studentName +
|
||||||
|
'没有给与评分,<span style="color:red;font-size:14px;font-weight:700;">若继续发布成绩,学生成绩为0</span>,是否发布成绩数据',
|
||||||
|
okText: '确认',
|
||||||
|
cancelText: '取消',
|
||||||
|
onOk: () => {
|
||||||
|
batchFabu2({ id: zyInfo.value.id }, handleBatchSuccess);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
createConfirm({
|
||||||
|
iconType: 'warning',
|
||||||
|
title: '确认发布',
|
||||||
|
content: '是否发布成绩数据',
|
||||||
|
okText: '确认',
|
||||||
|
cancelText: '取消',
|
||||||
|
onOk: () => {
|
||||||
|
batchFabu2({ id: zyInfo.value.id }, handleBatchSuccess);
|
||||||
|
},
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
if (sfjx == '1') {
|
|
||||||
createMessage.warning('您有未填写的评分信息,不可一键发布,请检查您的评分数据!');
|
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
await batchFabu({ ids: selectedRowKeys.value }, reload);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleBatchSuccess() {
|
||||||
|
//正常刷新列表
|
||||||
|
reload();
|
||||||
|
//提交校内查重记录
|
||||||
|
defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/xnccBatchWeipu', params: { id: zyInfo.value.id } }).then((res) => {});
|
||||||
|
}
|
||||||
|
|
||||||
|
function batchHandleKhcl() {
|
||||||
|
if (selectedRowKeys.value.length == 0) {
|
||||||
|
createMessage.warn('请勾选要上传的数据!');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
batchKhcl({ ids: selectedRowKeys.value }, reload);
|
||||||
|
}
|
||||||
//
|
//
|
||||||
//表单验证
|
//表单验证
|
||||||
const validatorRules = {
|
const validatorRules = {
|
||||||
|
@ -979,38 +1058,38 @@ function handleBatchAdd() {
|
||||||
var cjbfb2 = ktcyzb.value; //成绩百分比
|
var cjbfb2 = ktcyzb.value; //成绩百分比
|
||||||
var zcj = 0;
|
var zcj = 0;
|
||||||
|
|
||||||
var score22 = 0;
|
var score22 = 0;
|
||||||
if (list.length == 0) {
|
if (list.length == 0) {
|
||||||
createMessage.error('作业次数不能为空!');
|
createMessage.error('作业次数不能为空!');
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
for (var i = 0; i < list.length; i++) {
|
|
||||||
console.log('🥵', list);
|
|
||||||
var score = list[i].score;
|
|
||||||
if (score == null || score + '' == '') {
|
|
||||||
createMessage.error('第' + (i + 1) + '次作业占总成绩的百分比不能为空!');
|
|
||||||
sfjx = 1;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
if (score < 0 || score > 100) {
|
for (var i = 0; i < list.length; i++) {
|
||||||
createMessage.error('作业成绩百分比必须在0-100之间!');
|
console.log('🥵', list);
|
||||||
sfjx = 1;
|
var score = list[i].score;
|
||||||
break;
|
if (score == null || score + '' == '') {
|
||||||
|
createMessage.error('第' + (i + 1) + '次作业占总成绩的百分比不能为空!');
|
||||||
|
sfjx = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (score < 0 || score > 100) {
|
||||||
|
createMessage.error('作业成绩百分比必须在0-100之间!');
|
||||||
|
sfjx = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
score22 = parseInt(score22) + parseInt(score);
|
||||||
|
if (score22 > 100) {
|
||||||
|
createMessage.error('作业总的百分比(课程作业占比+期末考试占比+课堂测验占比)已经超过100%,请重新输入');
|
||||||
|
sfjx = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
score22 = parseInt(score22) + parseInt(score);
|
|
||||||
if (score22 > 100) {
|
zcj = parseInt(score22) + parseInt(cjbfb) + parseInt(cjbfb2);
|
||||||
|
|
||||||
|
if (zcj > 100) {
|
||||||
createMessage.error('作业总的百分比(课程作业占比+期末考试占比+课堂测验占比)已经超过100%,请重新输入');
|
createMessage.error('作业总的百分比(课程作业占比+期末考试占比+课堂测验占比)已经超过100%,请重新输入');
|
||||||
sfjx = 1;
|
sfjx = 1;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
zcj = parseInt(score22)+ parseInt(cjbfb)+ parseInt(cjbfb2);
|
|
||||||
|
|
||||||
if (zcj > 100) {
|
|
||||||
createMessage.error('作业总的百分比(课程作业占比+期末考试占比+课堂测验占比)已经超过100%,请重新输入');
|
|
||||||
sfjx = 1;
|
|
||||||
}
|
|
||||||
if (sfjx == 1) {
|
if (sfjx == 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1029,9 +1108,9 @@ if (zcj > 100) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleJscjbfb(){
|
function handleJscjbfb() {
|
||||||
var list = tableData.value;
|
var list = tableData.value;
|
||||||
|
|
||||||
var cjbfb = qmkszb.value; //成绩百分比
|
var cjbfb = qmkszb.value; //成绩百分比
|
||||||
var cjbfb2 = kczyzb.value; //成绩百分比
|
var cjbfb2 = kczyzb.value; //成绩百分比
|
||||||
var zcj = 0;
|
var zcj = 0;
|
||||||
|
@ -1043,7 +1122,7 @@ function handleJscjbfb(){
|
||||||
createMessage.error('第' + (i + 1) + '次作业占总成绩的百分比不能为空!');
|
createMessage.error('第' + (i + 1) + '次作业占总成绩的百分比不能为空!');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
score22 = parseInt(score22)+parseInt(score);
|
score22 = parseInt(score22) + parseInt(score);
|
||||||
if (score < 0 || score > 100) {
|
if (score < 0 || score > 100) {
|
||||||
createMessage.error('作业成绩百分比必须在0-100之间!');
|
createMessage.error('作业成绩百分比必须在0-100之间!');
|
||||||
break;
|
break;
|
||||||
|
@ -1053,25 +1132,24 @@ function handleJscjbfb(){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
zcj = parseInt(score22)+ parseInt(cjbfb)+ parseInt(cjbfb2);
|
zcj = parseInt(score22) + parseInt(cjbfb) + parseInt(cjbfb2);
|
||||||
if (zcj > 100) {
|
if (zcj > 100) {
|
||||||
createMessage.error('作业总的百分比(课程作业占比+期末考试占比+课堂测验占比)已经超过100%,请重新输入');
|
createMessage.error('作业总的百分比(课程作业占比+期末考试占比+课堂测验占比)已经超过100%,请重新输入');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleSzzycs(val){
|
function handleSzzycs(val) {
|
||||||
|
|
||||||
defHttp.get({ url: '/zyInfo/zyInfo/zyzb', params: { rwbh, xqxn, teano, zyLeixing: '1' } }).then((res) => {
|
defHttp.get({ url: '/zyInfo/zyInfo/zyzb', params: { rwbh, xqxn, teano, zyLeixing: '1' } }).then((res) => {
|
||||||
console.log('😥', res);
|
console.log('😥', res);
|
||||||
var list = res;
|
var list = res;
|
||||||
for(var i = 0; i < list.length; i++){
|
for (var i = 0; i < list.length; i++) {
|
||||||
if(list[i].zyLeixing == '0'){
|
if (list[i].zyLeixing == '0') {
|
||||||
kczyzb.value = list[i].score
|
kczyzb.value = list[i].score;
|
||||||
}else if(list[i].zyLeixing == '1'){
|
} else if (list[i].zyLeixing == '1') {
|
||||||
qmkszb.value = list[i].score
|
qmkszb.value = list[i].score;
|
||||||
}else if(list[i].zyLeixing == '2'){
|
} else if (list[i].zyLeixing == '2') {
|
||||||
}else if(list[i].zyLeixing == '3'){
|
} else if (list[i].zyLeixing == '3') {
|
||||||
ktcyzb.value = list[i].score
|
ktcyzb.value = list[i].score;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1079,19 +1157,18 @@ function handleSzzycs(val){
|
||||||
zycs.value = 1;
|
zycs.value = 1;
|
||||||
handleZycs();
|
handleZycs();
|
||||||
}
|
}
|
||||||
handleShowType(1)
|
handleShowType(1);
|
||||||
}
|
}
|
||||||
//显示第几个类型模块
|
//显示第几个类型模块
|
||||||
function handleShowType(val) {
|
function handleShowType(val) {
|
||||||
if(tableData.value.length>0){
|
if (tableData.value.length > 0) {
|
||||||
zycsDisabled.value = true;
|
zycsDisabled.value = true;
|
||||||
}else{
|
} else {
|
||||||
zycsDisabled.value = false;
|
zycsDisabled.value = false;
|
||||||
}
|
}
|
||||||
console.log('👩👩👧👧', zycsDisabled)
|
console.log('👩👩👧👧', zycsDisabled);
|
||||||
|
|
||||||
showType.value = val;
|
|
||||||
|
|
||||||
|
showType.value = val;
|
||||||
}
|
}
|
||||||
//新增一次考试,再最后面添加
|
//新增一次考试,再最后面添加
|
||||||
function handleAddZycs() {
|
function handleAddZycs() {
|
||||||
|
@ -1120,7 +1197,7 @@ function handleZycs() {
|
||||||
rwbh: rwbh,
|
rwbh: rwbh,
|
||||||
xqxn: xqxn,
|
xqxn: xqxn,
|
||||||
createBy: teano,
|
createBy: teano,
|
||||||
zyLeixing:'1',
|
zyLeixing: '1',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else if (changeZycs < dataList.length) {
|
} else if (changeZycs < dataList.length) {
|
||||||
|
@ -1192,25 +1269,44 @@ async function submitForm() {
|
||||||
}
|
}
|
||||||
|
|
||||||
var wwtgl = model.wwtgl;
|
var wwtgl = model.wwtgl;
|
||||||
|
console.log('💂♂️', wwtgl);
|
||||||
var wwcc = model.wwcc;
|
var wwcc = model.wwcc;
|
||||||
var xncc = model.xncc;
|
var xncc = model.xncc;
|
||||||
var nwcc = model.nwcc;
|
var nwcc = model.nwcc;
|
||||||
var aigccc = model.aigccc;
|
var aigccc = model.aigccc;
|
||||||
console.log('🚶♂️', model);
|
console.log('🚶♂️', model);
|
||||||
if (wwtgl) {
|
var sfcc = model.sfcc;
|
||||||
if ((wwcc == false && xncc == false && nwcc == false && aigccc == false) || (!wwcc && !xncc && !nwcc && !aigccc)) {
|
console.log('🚶♂️', model);
|
||||||
createMessage.warning('您设置了检测通过率,但您没有设置查重比对库,请先设置查重比对库!');
|
if (sfcc == '1') {
|
||||||
confirmLoading.value = false;
|
//开启查重再进行验证,否则不进行验证
|
||||||
return;
|
if (wwtgl) {
|
||||||
|
if ((wwcc == false && xncc == false && nwcc == false && aigccc == false) || (!wwcc && !xncc && !nwcc && !aigccc)) {
|
||||||
|
createMessage.warning('您设置了检测通过率,但您没有设置查重比对库,请先设置查重比对库!');
|
||||||
|
confirmLoading.value = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
console.log('1111111111', wwtgl, wwcc, xncc, aigccc);
|
||||||
|
} else {
|
||||||
|
console.log('22222222222', wwtgl, wwcc, xncc, aigccc);
|
||||||
|
if(!wwtgl){
|
||||||
|
createMessage.warning('您设置了查重,但您没设置检测通过率,请先设置检测通过率');
|
||||||
|
confirmLoading.value = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (wwcc == true || xncc == true || nwcc == true || aigccc == true || wwcc == 'true' || xncc == 'true' || nwcc == 'true' || aigccc == 'true') {
|
||||||
|
createMessage.warning('您设置了查重比对库,但您没设置检测通过率,请先设置检测通过率');
|
||||||
|
confirmLoading.value = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
console.log('1111111111', wwtgl, wwcc, xncc, aigccc);
|
|
||||||
} else {
|
} else {
|
||||||
console.log('22222222222', wwtgl, wwcc, xncc, aigccc);
|
//如果不进行查重,则强制清空查重配置数据
|
||||||
if (wwcc == true || xncc == true || nwcc == true || aigccc == true || wwcc == 'true' || xncc == 'true' || nwcc == 'true' || aigccc == 'true') {
|
model.wwtgl = null;
|
||||||
createMessage.warning('您设置了查重比对库,但您没设置检测通过率,请先设置检测通过率');
|
model.wwcc = null;
|
||||||
confirmLoading.value = false;
|
model.xncc = null;
|
||||||
return;
|
model.nwcc = null;
|
||||||
}
|
model.aigccc = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
var xshpkssj = model.xshpkssj;
|
var xshpkssj = model.xshpkssj;
|
||||||
|
@ -1437,6 +1533,9 @@ function handleEdit(record, type) {
|
||||||
if (!record.xssfck) {
|
if (!record.xssfck) {
|
||||||
record.xssfck = '1';
|
record.xssfck = '1';
|
||||||
}
|
}
|
||||||
|
if (!record.sfcc) {
|
||||||
|
record.sfcc = '1';
|
||||||
|
}
|
||||||
editDisabled.value = type;
|
editDisabled.value = type;
|
||||||
zyInfo.value = record;
|
zyInfo.value = record;
|
||||||
dataKhnr.value = [];
|
dataKhnr.value = [];
|
||||||
|
@ -1570,7 +1669,7 @@ function handleZySuccess(zyid) {
|
||||||
var url = '/zyInfo/zyInfo/editStudent';
|
var url = '/zyInfo/zyInfo/editStudent';
|
||||||
defHttp.get({ url: url, params: { id: zyid } }).then((res) => {});
|
defHttp.get({ url: url, params: { id: zyid } }).then((res) => {});
|
||||||
|
|
||||||
defHttp.get({ url: '/zyInfo/zyInfo/sendZyWechat', params: { id: zyid } }).then((res) => {});
|
defHttp.get({ url: '/zyInfo/zyInfo/sendZyWechat', params: { id: zyid } }).then((res) => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1633,7 +1732,7 @@ onMounted(() => {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.title2 {
|
.title2 {
|
||||||
font-size:16px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.ant-divider-horizontal {
|
.ant-divider-horizontal {
|
||||||
|
@ -1671,9 +1770,13 @@ onMounted(() => {
|
||||||
font-feature-settings: tnum;
|
font-feature-settings: tnum;
|
||||||
position: relative;
|
position: relative;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
border: 1px solid #dadada;
|
border: 1px solid #f0f0f0;
|
||||||
background: #f7f7f7;
|
background: #f7f7f7;
|
||||||
}
|
}
|
||||||
|
.ant-card:hover {
|
||||||
|
box-sizing: border-box;
|
||||||
|
box-shadow: 2px 2px 10px 1px #d4d4d4;
|
||||||
|
}
|
||||||
.ant-card-head {
|
.ant-card-head {
|
||||||
min-height: 48px;
|
min-height: 48px;
|
||||||
margin-bottom: -1px;
|
margin-bottom: -1px;
|
||||||
|
@ -1701,25 +1804,26 @@ onMounted(() => {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.ellip-word {
|
.ellip-word {
|
||||||
font-size:12px;
|
font-size: 12px;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
.ellip-word2{
|
.ellip-word2 {
|
||||||
font-size:12px;
|
font-size: 12px;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.zuanqu:hover {
|
.zuanqu:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: #18a689;
|
color: #18a689;
|
||||||
|
background: #eff6f4;
|
||||||
}
|
}
|
||||||
.data-suggest {
|
.data-suggest {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 25%;
|
width: 25%;
|
||||||
margin-right: 3px;
|
margin-right: 5px;
|
||||||
padding: 8px 3px;
|
padding: 8px 3px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background: #f7f7f7;
|
background: #f7f7f7;
|
||||||
|
@ -1778,23 +1882,91 @@ onMounted(() => {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
.bled-countenance {
|
.bled-countenance {
|
||||||
color: #333333;
|
color: #666;
|
||||||
}
|
}
|
||||||
.bled-countenance2 {
|
.bled-countenance2 {
|
||||||
color: #999999;
|
color: #999999;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.region {
|
.region {
|
||||||
margin: 5px 10px;
|
margin: 6px 12px;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
border: 1px solid #e6e6e6;
|
||||||
|
}
|
||||||
|
.region:hover {
|
||||||
|
margin: 6px 12px;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 5px;
|
||||||
|
border: 1px solid #e6e6e6;
|
||||||
|
box-shadow: 2px 2px 10px 1px #d4d4d4;
|
||||||
}
|
}
|
||||||
.region-title {
|
.region-title {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #029c88;
|
color: #333;
|
||||||
padding: 8px 20px;
|
height: 50px;
|
||||||
border-left: 5px solid #029c88;
|
line-height: 50px;
|
||||||
|
border-bottom: 1px solid #e1e4eb;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
.region-title-headline {
|
||||||
|
display: block;
|
||||||
|
width: 5px;
|
||||||
|
height: 16px;
|
||||||
|
background: #18a689;
|
||||||
|
border-radius: 6px;
|
||||||
|
margin-top: 18px;
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
.module-bg {
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 6px;
|
||||||
|
border: 1px solid #e6e6e6;
|
||||||
|
}
|
||||||
|
.home-status {
|
||||||
|
color: #1ab394;
|
||||||
|
}
|
||||||
|
.home-status:hover {
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
.card-label {
|
||||||
|
background: #81cbbc;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #fff;
|
||||||
|
padding: 2px 6px;
|
||||||
|
}
|
||||||
|
.card-label2 {
|
||||||
|
background: #84c4fa;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #fff;
|
||||||
|
padding: 2px 6px;
|
||||||
|
}
|
||||||
|
.card-label3 {
|
||||||
|
background: #fabe84;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #fff;
|
||||||
|
padding: 2px 6px;
|
||||||
|
}
|
||||||
|
.zbClass {
|
||||||
|
margin-left: 15px;
|
||||||
|
}
|
||||||
|
.image-container {
|
||||||
|
padding: 10px;
|
||||||
|
width: 100%; /* 设置容器宽度 */
|
||||||
|
height: auto; /* 设置容器高度 */
|
||||||
|
overflow: hidden; /* 隐藏溢出的部分 */
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rotated-image {
|
||||||
|
max-width: 100%; /* 最大宽度为容器宽度 */
|
||||||
|
max-height: 100%; /* 最大高度为容器高度 */
|
||||||
|
object-fit: contain; /* 保持图片内容不失真 */
|
||||||
|
transform: rotate(90deg); /* 假设图片已经旋转90度 */
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -50,9 +50,7 @@
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
<template v-if="column.key === 'score'">
|
<template v-if="column.key === 'score'">
|
||||||
<span>
|
<span>
|
||||||
<a-input-number v-model:value="record.score" :min="0" :max="100" @blur="handleJscjbfb">
|
<a-input-number v-model:value="record.score" :min="0" :max="100"> <template #addonAfter> % </template></a-input-number>
|
||||||
<template #addonAfter> % </template></a-input-number
|
|
||||||
>
|
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="column.key === 'lstitle'">
|
<template v-else-if="column.key === 'lstitle'">
|
||||||
|
@ -79,10 +77,9 @@
|
||||||
<a-spin :spinning="confirmLoading">
|
<a-spin :spinning="confirmLoading">
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<!-- <a-breadcrumb>
|
<!-- <div style="text-align: right">
|
||||||
<a-breadcrumb-item>编辑作业</a-breadcrumb-item>
|
<a-button style="margin-right: 10px" type="primary" @click="handleYyzy">引用作业</a-button>
|
||||||
<a-breadcrumb-item>布置作业:设置第{{ zyInfo.sort }}次作业内容及要求</a-breadcrumb-item>
|
</div> -->
|
||||||
</a-breadcrumb> -->
|
|
||||||
<span class="title">编辑作业</span> - <span class="title2">布置作业:设置第{{ zyInfo.sort }}次作业内容及要求</span>
|
<span class="title">编辑作业</span> - <span class="title2">布置作业:设置第{{ zyInfo.sort }}次作业内容及要求</span>
|
||||||
<a-divider />
|
<a-divider />
|
||||||
</a-col>
|
</a-col>
|
||||||
|
@ -382,12 +379,8 @@
|
||||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQueryZyxq">查询</a-button>
|
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQueryZyxq">查询</a-button>
|
||||||
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
||||||
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls" style="margin-left: 8px"> 导出</a-button>
|
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls" style="margin-left: 8px"> 导出</a-button>
|
||||||
<a-button type="primary" preIcon="ant-design:export-outlined" @click="batchHandleFabu" style="margin-left: 8px"
|
<a-button type="primary" preIcon="ant-design:export-outlined" @click="batchHandleFabu" style="margin-left: 8px">发布成绩</a-button>
|
||||||
>一键发布评分</a-button
|
<a-button type="primary" preIcon="ant-design:export-outlined" @click="batchHandleKhcl" style="margin-left: 8px">上传考核材料</a-button>
|
||||||
>
|
|
||||||
<a-button type="primary" preIcon="ant-design:export-outlined" @click="batchHandleKhcl" style="margin-left: 8px"
|
|
||||||
>上传考核材料</a-button
|
|
||||||
>
|
|
||||||
<span class="tishi" style="margin-left: 20px; padding: 10px">温馨提示:作业完成后,请及时发布评分</span>
|
<span class="tishi" style="margin-left: 20px; padding: 10px">温馨提示:作业完成后,请及时发布评分</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -530,11 +523,12 @@
|
||||||
<!-- <a @click="handleWxtx(item)" class="home-status"><Icon icon="ant-design:wechat-outlined" />微信提醒</a>
|
<!-- <a @click="handleWxtx(item)" class="home-status"><Icon icon="ant-design:wechat-outlined" />微信提醒</a>
|
||||||
<a-divider type="vertical" /> -->
|
<a-divider type="vertical" /> -->
|
||||||
<a @click="handleEdit(item, true)" v-if="item.ytjnum > 0" class="home-status"><Icon icon="ant-design:form-outlined" />编辑作业</a>
|
<a @click="handleEdit(item, true)" v-if="item.ytjnum > 0" class="home-status"><Icon icon="ant-design:form-outlined" />编辑作业</a>
|
||||||
<a @click="handleChehui(item)" v-if="item.ytjnum == 0" class="home-status"><Icon icon="ant-design:import-outlined" />撤回作业</a>
|
<a-divider type="vertical" v-if="item.ytjnum > 0"/>
|
||||||
<a-divider type="vertical" />
|
<a @click="handleChehui(item)" v-if="item.dpynum == 0 && item.ypynum == 0" class="home-status"><Icon icon="ant-design:import-outlined" />撤回作业</a>
|
||||||
|
<a-divider type="vertical" v-if="item.dpynum == 0 && item.ypynum == 0"/>
|
||||||
<a @click="handleZyxx(item, '')" class="home-status"><Icon icon="ant-design:file-done-outlined" />批阅作业</a>
|
<a @click="handleZyxx(item, '')" class="home-status"><Icon icon="ant-design:file-done-outlined" />批阅作业</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" v-if="item.dpynum == 0 && item.ypynum == 0"/>
|
||||||
<a @click="handleDelete(item)" v-if="item.ytjnum == '0'" class="home-status"><Icon icon="ant-design:delete-outlined" />删除</a>
|
<a @click="handleDelete(item)" v-if="item.dpynum == 0 && item.ypynum == 0" class="home-status"><Icon icon="ant-design:delete-outlined" />删除</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-card>
|
</a-card>
|
||||||
|
@ -582,14 +576,15 @@
|
||||||
<ZyInfoStudentListModal ref="ZyInfoStudentListModalPage" @success="handleSuccess"></ZyInfoStudentListModal>
|
<ZyInfoStudentListModal ref="ZyInfoStudentListModalPage" @success="handleSuccess"></ZyInfoStudentListModal>
|
||||||
<ZyInfoStudentModal ref="ZyInfoStudentModalPage"></ZyInfoStudentModal>
|
<ZyInfoStudentModal ref="ZyInfoStudentModalPage"></ZyInfoStudentModal>
|
||||||
<XxhbbksListModal ref="XxhbbksListModalPage"></XxhbbksListModal>
|
<XxhbbksListModal ref="XxhbbksListModalPage"></XxhbbksListModal>
|
||||||
|
<YyzyListModal ref="YyzyListModalPage" @success="handleCallYinyong"></YyzyListModal>
|
||||||
|
|
||||||
<a-modal v-model:visible="imgvisible" title="图片预览" width="800px" :cancelText="`关闭`" :okButtonProps="{ class: { 'jee-hidden': true } }">
|
<a-modal v-model:visible="imgvisible" title="图片预览" width="800px" :cancelText="`关闭`" :okButtonProps="{ class: { 'jee-hidden': true } }">
|
||||||
<div style="padding: 10px 20px;">
|
<div style="padding: 10px 20px">
|
||||||
<a-button type="primary" @click="rotateImage">顺时针旋转</a-button>
|
<a-button type="primary" @click="rotateImage">顺时针旋转</a-button>
|
||||||
<a-button type="primary" @click="rotateImage2" style="margin-left: 20px;">逆时针旋转</a-button>
|
<a-button type="primary" @click="rotateImage2" style="margin-left: 20px">逆时针旋转</a-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img :src="ylimgurl" :style="{ transform: 'rotate(' + rotationAngle + 'deg)' }" class="rotated-image"/>
|
<img :src="ylimgurl" :style="{ transform: 'rotate(' + rotationAngle + 'deg)' }" class="rotated-image" />
|
||||||
</div>
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</div>
|
</div>
|
||||||
|
@ -613,7 +608,7 @@ import JEditor from '/@/components/Form/src/jeecg/components/JEditor.vue';
|
||||||
import dayjs, { Dayjs } from 'dayjs';
|
import dayjs, { Dayjs } from 'dayjs';
|
||||||
import { useListPage } from '/@/hooks/system/useListPage';
|
import { useListPage } from '/@/hooks/system/useListPage';
|
||||||
import { newcolumns } from '/@/views/zy/zyInfoStudent/ZyInfoStudent.data';
|
import { newcolumns } from '/@/views/zy/zyInfoStudent/ZyInfoStudent.data';
|
||||||
import { getList2, getExportUrl, batchFabu, batchKhcl } from '/@/views/zy/zyInfoStudent/ZyInfoStudent.api';
|
import { getList2, getExportUrl, batchFabu,batchFabu2, batchKhcl } from '/@/views/zy/zyInfoStudent/ZyInfoStudent.api';
|
||||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||||
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
||||||
import { useGlobSetting } from '/@/hooks/setting';
|
import { useGlobSetting } from '/@/hooks/setting';
|
||||||
|
@ -630,6 +625,7 @@ import ZyInfoStudentListModal from '/@/views/zy/zyInfoStudent/ZyInfoStudentListM
|
||||||
import ZyInfoStudentModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentModal.vue';
|
import ZyInfoStudentModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentModal.vue';
|
||||||
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
|
||||||
import ZyInfoEditModal from './components/ZyInfoEditModal.vue';
|
import ZyInfoEditModal from './components/ZyInfoEditModal.vue';
|
||||||
|
import YyzyListModal from '/@/views/zy/zyInfo/YyzyListModal.vue';
|
||||||
import { encryptByBase64 } from '/@/utils/cipher';
|
import { encryptByBase64 } from '/@/utils/cipher';
|
||||||
|
|
||||||
const globSetting = useGlobSetting();
|
const globSetting = useGlobSetting();
|
||||||
|
@ -683,6 +679,7 @@ const XxhbbksListModalPage = ref();
|
||||||
const registerEditModal = ref();
|
const registerEditModal = ref();
|
||||||
const registerDetialModal = ref();
|
const registerDetialModal = ref();
|
||||||
const registerPiyueModal = ref();
|
const registerPiyueModal = ref();
|
||||||
|
const YyzyListModalPage = ref();
|
||||||
const pdfUrl = ref('/downPath/ylhpsf.pdf');
|
const pdfUrl = ref('/downPath/ylhpsf.pdf');
|
||||||
//注册table数据
|
//注册table数据
|
||||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||||
|
@ -725,29 +722,49 @@ const disabledDate = (current: Dayjs) => {
|
||||||
};
|
};
|
||||||
const useForm = Form.useForm;
|
const useForm = Form.useForm;
|
||||||
|
|
||||||
|
//引用作业
|
||||||
|
function handleYyzy() {
|
||||||
|
var params = { xqxn, rwbh };
|
||||||
|
YyzyListModalPage.value.disableSubmit = true;
|
||||||
|
YyzyListModalPage.value.init(params);
|
||||||
|
}
|
||||||
|
//引用作业回调
|
||||||
|
function handleCallYinyong(record) {
|
||||||
|
console.log('👯♂️', record);
|
||||||
|
var zysort = zyInfo.value.sort; //防止顺序错误
|
||||||
|
var zyid = zyInfo.value.id; //替换原来的id,防止新增
|
||||||
|
record.id = zyid;
|
||||||
|
record.sort = zysort;
|
||||||
|
record.zyLeixing = '0'; //作业类型,课程作业
|
||||||
|
zyInfo.value = record;
|
||||||
|
console.log('😠', zyInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
//选择是否允许学生查看
|
||||||
function handleXshpkg(record) {
|
function handleXshpkg(record) {
|
||||||
console.log('👨👧👦', record);
|
console.log('👨👧👦', record);
|
||||||
}
|
}
|
||||||
|
//选择作业截止时间
|
||||||
function handleEndTime(record) {
|
function handleEndTime(record) {
|
||||||
console.log('👽', record);
|
console.log('👽', record);
|
||||||
zyInfo.value.xshpkssj = record;
|
zyInfo.value.xshpkssj = record;
|
||||||
}
|
}
|
||||||
|
//微信提醒
|
||||||
function handleWxtx(record) {
|
function handleWxtx(record) {
|
||||||
defHttp.post({ url: '/zyInfo/zyInfo/sendWxtx', params: { id: record.id } }).then((res) => {
|
defHttp.post({ url: '/zyInfo/zyInfo/sendWxtx', params: { id: record.id } }).then((res) => {
|
||||||
console.log('👣', res);
|
console.log('👣', res);
|
||||||
});
|
});
|
||||||
createMessage.success('发送成功');
|
createMessage.success('发送成功');
|
||||||
}
|
}
|
||||||
|
//图片旋转 顺时针旋转
|
||||||
function rotateImage() {
|
function rotateImage() {
|
||||||
rotationAngle.value += 90; // 每次点击旋转90度
|
rotationAngle.value += 90; // 每次点击旋转90度
|
||||||
}
|
}
|
||||||
|
//图片旋转 逆时针旋转
|
||||||
function rotateImage2() {
|
function rotateImage2() {
|
||||||
rotationAngle.value -= 90; // 每次点击旋转90度
|
rotationAngle.value -= 90; // 每次点击旋转90度
|
||||||
}
|
}
|
||||||
|
//成绩百分比
|
||||||
function handleJscjbfb() {
|
function handleJscjbfb() {
|
||||||
var list = tableData.value;
|
var list = tableData.value;
|
||||||
|
|
||||||
|
@ -887,9 +904,8 @@ function handleNoScoreFabu(record: Recordable) {
|
||||||
defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/editFabu', params: { id: record.id, scoreFabu: '0' } }).then((res) => {
|
defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/editFabu', params: { id: record.id, scoreFabu: '0' } }).then((res) => {
|
||||||
handleSuccess();
|
handleSuccess();
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//设置样本
|
//设置样本
|
||||||
|
@ -918,7 +934,7 @@ function yulanFile(record) {
|
||||||
ylimgurl.value = url2;
|
ylimgurl.value = url2;
|
||||||
// var file = baseApiUrl + "/"+record.filePath;
|
// var file = baseApiUrl + "/"+record.filePath;
|
||||||
// console.log('🤬', file);
|
// console.log('🤬', file);
|
||||||
// window.open('https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
// window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||||
|
|
||||||
// var url2 = getFileAccessHttpUrl(record.filePath);
|
// var url2 = getFileAccessHttpUrl(record.filePath);
|
||||||
// let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
|
// let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
|
||||||
|
@ -1031,27 +1047,69 @@ function getTableAction(record) {
|
||||||
|
|
||||||
//发布作业评分
|
//发布作业评分
|
||||||
async function batchHandleFabu() {
|
async function batchHandleFabu() {
|
||||||
if (selectedRowKeys.value.length == 0) {
|
console.log('🧐', { id: zyInfo.value.id });
|
||||||
createMessage.warn('请勾选要发布的数据!');
|
defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/getNoScore', params: { id: zyInfo.value.id } }).then((res) => {
|
||||||
return;
|
console.log('🦴', res);
|
||||||
}
|
var list = res;
|
||||||
|
console.log('🧚♀️', list.length);
|
||||||
var datapar2 = rowSelection.selectedRows;
|
if (list.length > 0) {
|
||||||
console.log('👌', datapar2);
|
var studentName = '';
|
||||||
var sfjx = '0';
|
for (var i = 0; i < list.length; i++) {
|
||||||
for (var i = 0; i < datapar2.length; i++) {
|
studentName = studentName + list[i].studentName + '、';
|
||||||
var score = datapar2[i].score;
|
}
|
||||||
if (!score) {
|
createConfirm({
|
||||||
sfjx = '1';
|
iconType: 'warning',
|
||||||
break;
|
title: '确认发布',
|
||||||
|
content: '当前学生:' + studentName + '没有给与评分,<span style="color:red;font-size:14px;font-weight:700;">若继续发布成绩,学生成绩为0</span>,是否发布成绩数据',
|
||||||
|
okText: '确认',
|
||||||
|
cancelText: '取消',
|
||||||
|
onOk: () => {
|
||||||
|
batchFabu2({ id: zyInfo.value.id }, handleBatchSuccess);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
createConfirm({
|
||||||
|
iconType: 'warning',
|
||||||
|
title: '确认发布',
|
||||||
|
content: '是否发布成绩数据',
|
||||||
|
okText: '确认',
|
||||||
|
cancelText: '取消',
|
||||||
|
onOk: () => {
|
||||||
|
batchFabu2({ id: zyInfo.value.id }, handleBatchSuccess);
|
||||||
|
},
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
// handleSuccess();
|
||||||
if (sfjx == '1') {
|
});
|
||||||
createMessage.warning('您有未填写的评分信息,不可一键发布,请检查您的评分数据!');
|
|
||||||
return;
|
// if (selectedRowKeys.value.length == 0) {
|
||||||
} else {
|
// createMessage.warn('请勾选要发布的数据!');
|
||||||
await batchFabu({ ids: selectedRowKeys.value }, reload);
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
// var datapar2 = rowSelection.selectedRows;
|
||||||
|
// console.log('👌', datapar2);
|
||||||
|
// var sfjx = '0';
|
||||||
|
// for (var i = 0; i < datapar2.length; i++) {
|
||||||
|
// var score = datapar2[i].score;
|
||||||
|
// if (!score) {
|
||||||
|
// sfjx = '1';
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// if (sfjx == '1') {
|
||||||
|
// createMessage.warning('您有未填写的评分信息,不可一键发布,请检查您的评分数据!');
|
||||||
|
// return;
|
||||||
|
// } else {
|
||||||
|
// await batchFabu({ ids: selectedRowKeys.value }, reload);
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleBatchSuccess() {
|
||||||
|
//正常刷新列表
|
||||||
|
reload();
|
||||||
|
//提交校内查重记录
|
||||||
|
defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/xnccBatchWeipu', params: { id: zyInfo.value.id } }).then((res) => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
function batchHandleKhcl() {
|
function batchHandleKhcl() {
|
||||||
|
@ -1999,14 +2057,14 @@ onMounted(() => {
|
||||||
}
|
}
|
||||||
.image-container {
|
.image-container {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
width:100%; /* 设置容器宽度 */
|
width: 100%; /* 设置容器宽度 */
|
||||||
height: auto; /* 设置容器高度 */
|
height: auto; /* 设置容器高度 */
|
||||||
overflow: hidden; /* 隐藏溢出的部分 */
|
overflow: hidden; /* 隐藏溢出的部分 */
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rotated-image {
|
.rotated-image {
|
||||||
max-width: 100%; /* 最大宽度为容器宽度 */
|
max-width: 100%; /* 最大宽度为容器宽度 */
|
||||||
max-height: 100%; /* 最大高度为容器高度 */
|
max-height: 100%; /* 最大高度为容器高度 */
|
||||||
|
|
|
@ -17,6 +17,7 @@ enum Api {
|
||||||
deleteOne = '/zyInfoStudent/zyInfoStudent/delete',
|
deleteOne = '/zyInfoStudent/zyInfoStudent/delete',
|
||||||
deleteBatch = '/zyInfoStudent/zyInfoStudent/deleteBatch',
|
deleteBatch = '/zyInfoStudent/zyInfoStudent/deleteBatch',
|
||||||
fabuBatch = '/zyInfoStudent/zyInfoStudent/fabuBatch',
|
fabuBatch = '/zyInfoStudent/zyInfoStudent/fabuBatch',
|
||||||
|
fabuBatch2 = '/zyInfoStudent/zyInfoStudent/fabuBatch2',
|
||||||
batchKhcl = '/zyInfoStudent/zyInfoStudent/batchKhcl',
|
batchKhcl = '/zyInfoStudent/zyInfoStudent/batchKhcl',
|
||||||
importExcel = '/zyInfoStudent/zyInfoStudent/importExcel',
|
importExcel = '/zyInfoStudent/zyInfoStudent/importExcel',
|
||||||
exportXls = '/zyInfoStudent/zyInfoStudent/exportXls',
|
exportXls = '/zyInfoStudent/zyInfoStudent/exportXls',
|
||||||
|
@ -94,6 +95,12 @@ export const batchFabu = (params, handleSuccess) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const batchFabu2 = (params, handleSuccess) => {
|
||||||
|
defHttp.post({url: Api.fabuBatch2, data: params}, {joinParamsToUrl: true}).then(() => {
|
||||||
|
handleSuccess();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
export const batchKhcl = (params, handleSuccess) => {
|
export const batchKhcl = (params, handleSuccess) => {
|
||||||
createConfirm({
|
createConfirm({
|
||||||
iconType: 'warning',
|
iconType: 'warning',
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
<j-upload v-model:value="formData.filePath" :disabled="disabled" maxCount="1" accept=".doc,.docx,.pdf" :text="`上传作业`" style="background: #ededed; " :forceAcceptVerify="true" ></j-upload>
|
<j-upload v-model:value="formData.filePath" :disabled="disabled" maxCount="1" accept=".doc,.docx,.pdf" :text="`上传作业`" style="background: #ededed; " :forceAcceptVerify="true" ></j-upload>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="zyInfo.sfcc == '0'">
|
<div v-if="zyInfo.sfcc == '0'">
|
||||||
<j-upload v-model:value="formData.filePath" :disabled="disabled" maxCount="1" accept=".doc,.docx,.pdf,.jpg,.jpeg,.png,.mp3,.mp4,.zip,.ppt,.rar,.excel" :text="`上传作业`" style="background: #ededed; " :forceAcceptVerify="true" ></j-upload>
|
<j-upload v-model:value="formData.filePath" :disabled="disabled" maxCount="1" accept=".doc,.docx,.pdf,.jpg,.jpeg,.png,.mp3,.mp4,.zip,.ppt,.pptx,.rar,.excel" :text="`上传作业`" style="background: #ededed; " :forceAcceptVerify="true" ></j-upload>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24" v-if="isYl">
|
<a-col :span="24" v-if="isYl">
|
||||||
|
|
|
@ -238,7 +238,7 @@ function handlePreview(record) {
|
||||||
if(filetype=='jpg' || filetype=='png' || filetype=='jpeg' || filetype=='xls' || filetype=='xlsx' || filetype=='text' ){
|
if(filetype=='jpg' || filetype=='png' || filetype=='jpeg' || filetype=='xls' || filetype=='xlsx' || filetype=='text' ){
|
||||||
var file = baseApiUrl + "/"+record;
|
var file = baseApiUrl + "/"+record;
|
||||||
console.log('🤬', file);
|
console.log('🤬', file);
|
||||||
window.open('https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||||
}else if(filetype=='doc' || filetype=='docx' || filetype=='pdf'){
|
}else if(filetype=='doc' || filetype=='docx' || filetype=='pdf'){
|
||||||
var url2 = getFileAccessHttpUrl(record);
|
var url2 = getFileAccessHttpUrl(record);
|
||||||
let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
|
let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
|
||||||
|
|
|
@ -229,7 +229,7 @@ function handlePreview(record) {
|
||||||
if(filetype=='jpg' || filetype=='png' || filetype=='jpeg' || filetype=='xls' || filetype=='xlsx' || filetype=='text' ){
|
if(filetype=='jpg' || filetype=='png' || filetype=='jpeg' || filetype=='xls' || filetype=='xlsx' || filetype=='text' ){
|
||||||
var file = baseApiUrl + "/"+record;
|
var file = baseApiUrl + "/"+record;
|
||||||
console.log('🤬', file);
|
console.log('🤬', file);
|
||||||
window.open('https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||||
}else if(filetype=='doc' || filetype=='docx' || filetype=='pdf'){
|
}else if(filetype=='doc' || filetype=='docx' || filetype=='pdf'){
|
||||||
var url2 = getFileAccessHttpUrl(record);
|
var url2 = getFileAccessHttpUrl(record);
|
||||||
let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
|
let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
|
||||||
|
|
Loading…
Reference in New Issue