修改学生端的页面展示

This commit is contained in:
yangjun 2024-05-09 22:23:51 +08:00
parent 9304426bb0
commit 8038477f54
5 changed files with 8 additions and 7 deletions

View File

@ -14,6 +14,7 @@
<a-col :lg="6">
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</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:plus-outlined" @click="handleAdd" style="margin-left: 8px"> 新增</a-button>
</a-col>
</span>
</a-col>
@ -21,11 +22,10 @@
</a-form>
</div>
<!--引用表格-->
<BasicTable @register="registerTable" :rowSelection="rowSelection">
<BasicTable @register="registerTable" >
<!--插槽:table标题-->
<template #tableTitle>
<a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
<a-button type="primary" @click="init" preIcon="ant-design:plus-outlined"> 登录</a-button>
<!-- <a-button type="primary" @click="init" preIcon="ant-design:plus-outlined"> 登录</a-button> -->
</template>
<!--操作栏-->
<template #action="{ record }">

View File

@ -8,7 +8,7 @@
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="问卷类型" v-bind="validateInfos.title">
<a-form-item label="问卷类型" v-bind="validateInfos.atype">
<a-select
ref="select"
v-model:value="formData.atype"
@ -65,6 +65,7 @@
//
const validatorRules = {
title: [{ required: true, message: '请输入问卷名称!'},],
atype: [{ required: true, message: '请选择问卷类型!'},],
};
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: true });

View File

@ -61,7 +61,7 @@
var href = "/zy/dqkcDqzy";
if(zytype=='dqzy'){
href = "/zy/dqkcDqzy";
}else if(type=='dqwj'){
}else if(zytype=='dqwj'){
href = "/zy/dqkcWenjuan";
}else if(zytype=='lszy'){
href = "/zy/dqkcLszy";

View File

@ -53,7 +53,7 @@
<a-button type="primary" @click="handleFabu(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.zyStatus==0">发布</a-button>
<a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;background:rgb(28, 132, 198);">详情</a-button>
<a-button type="primary" @click="handleZyxx(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.zyStatus==1||item.zyStatus==2||item.zyStatus==3">作业</a-button>
<!-- <a-button type="primary" @click="handleShangchuan(item)" style="margin-left:5px;" v-if="item.zyStatus==1||item.zyStatus==2||item.zyStatus==3">上传</a-button> -->
<a-button type="primary" @click="handleShangchuan(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.zyStatus==1||item.zyStatus==2||item.zyStatus==3">上传</a-button>
</a-col>
</a-row>
</a-card>

View File

@ -3,7 +3,7 @@
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-row>
<a-col :span="24">
<a-form-item label="作业附件" v-bind="validateInfos.filePath">
<a-form-item label="上传作业" v-bind="validateInfos.filePath">
<j-upload v-model:value="formData.filePath" :disabled="disabled" ></j-upload>
</a-form-item>
</a-col>