修改bug
This commit is contained in:
parent
70d97857c1
commit
05aef03ad1
|
@ -14,7 +14,7 @@
|
|||
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.flag">
|
||||
<a-select-option value="">全部</a-select-option>
|
||||
<a-select-option value="-1">待提交</a-select-option>
|
||||
<a-select-option value="0">待评分</a-select-option>
|
||||
<!-- <a-select-option value="0">待评分</a-select-option> -->
|
||||
<a-select-option value="1">已完成</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<a-row :gutter="24">
|
||||
<a-col :lg="7">
|
||||
<a-form-item label="问卷名称">
|
||||
<j-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></j-input>
|
||||
<a-input placeholder="请输入问卷名称" v-model:value="queryParam.title"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="7">
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<a-select placeholder="请选择问卷状态" ref="select" v-model:value="queryParam.flag">
|
||||
<a-select-option value="">全部</a-select-option>
|
||||
<a-select-option value="-1">待提交</a-select-option>
|
||||
<a-select-option value="0">待评分</a-select-option>
|
||||
<!-- <a-select-option value="0">待评分</a-select-option> -->
|
||||
<a-select-option value="1">已完成</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
|
|
|
@ -9,6 +9,16 @@
|
|||
<j-input placeholder="请输入问题标题" v-model:value="queryParam.wjTitle"></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item label="题目类型">
|
||||
<a-select placeholder="请选择题目类型" ref="select" v-model:value="queryParam.wjType">
|
||||
<a-select-option value="">全部</a-select-option>
|
||||
<a-select-option value="3">单选</a-select-option>
|
||||
<a-select-option value="4">多选</a-select-option>
|
||||
<a-select-option value="5">填空</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!-- <a-col :lg="7">
|
||||
<a-form-item label="是否公有">
|
||||
<JDictSelectTag placeholder="请选择" v-model:value="queryParam.wjSytype" dictCode="yn" />
|
||||
|
@ -59,7 +69,7 @@
|
|||
import { defHttp } from '/@/utils/http/axios';
|
||||
import WjxWjxxTmlbModal from './components/WjxWjxxTmlbModal.vue'
|
||||
import {columns, searchFormSchema} from './WjxWjxxTmlb.data';
|
||||
import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './WjxWjxxTmlb.api';
|
||||
import {list, deleteOne, batchDelete, getImportUrl,getExportUrl,distinctList} from './WjxWjxxTmlb.api';
|
||||
import {downloadFile} from '/@/utils/common/renderUtils';
|
||||
import { JInput,JDictSelectTag } from '/@/components/Form';
|
||||
|
||||
|
@ -71,7 +81,7 @@
|
|||
const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({
|
||||
tableProps:{
|
||||
// title: '题目信息',
|
||||
api: list,
|
||||
api: distinctList,
|
||||
columns,
|
||||
canResize:false,
|
||||
useSearchForm: false,
|
||||
|
|
|
@ -4,17 +4,27 @@
|
|||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form @keyup.enter.native="reload" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||
<a-row :gutter="24">
|
||||
<a-col :lg="7">
|
||||
<a-col :lg="6">
|
||||
<a-form-item label="问题标题">
|
||||
<j-input placeholder="请输入问题标题" v-model:value="queryParam.wjTitle"></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="7">
|
||||
<a-col :lg="6">
|
||||
<a-form-item label="题目类型">
|
||||
<a-select placeholder="请选择题目类型" ref="select" v-model:value="queryParam.wjType">
|
||||
<a-select-option value="">全部</a-select-option>
|
||||
<a-select-option value="3">单选</a-select-option>
|
||||
<a-select-option value="4">多选</a-select-option>
|
||||
<a-select-option value="5">填空</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item label="是否公有">
|
||||
<JDictSelectTag placeholder="请选择" v-model:value="queryParam.wjSytype" dictCode="yn" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||
<a-col :xl="6" :lg="6" :md="8" :sm="24">
|
||||
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
||||
<a-col :lg="6">
|
||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
||||
|
@ -59,7 +69,7 @@
|
|||
import { defHttp } from '/@/utils/http/axios';
|
||||
import WjxWjxxTmlbModal from './components/WjxWjxxTmlbModal.vue'
|
||||
import {columns, searchFormSchema} from './WjxWjxxTmlb.data';
|
||||
import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './WjxWjxxTmlb.api';
|
||||
import {list, deleteOne, batchDelete, getImportUrl,getExportUrl,distinctList} from './WjxWjxxTmlb.api';
|
||||
import {downloadFile} from '/@/utils/common/renderUtils';
|
||||
import { JInput,JDictSelectTag } from '/@/components/Form';
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
|
@ -74,7 +84,7 @@
|
|||
const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({
|
||||
tableProps:{
|
||||
// title: '题目信息',
|
||||
api: list,
|
||||
api: distinctList,
|
||||
columns,
|
||||
canResize:false,
|
||||
useSearchForm: false,
|
||||
|
|
|
@ -5,6 +5,7 @@ const { createConfirm } = useMessage();
|
|||
|
||||
enum Api {
|
||||
list = '/wjxWjxxTmlb/wjxWjxxTmlb/list',
|
||||
distinctList = '/wjxWjxxTmlb/wjxWjxxTmlb/distinctList',
|
||||
save='/wjxWjxxTmlb/wjxWjxxTmlb/add',
|
||||
edit='/wjxWjxxTmlb/wjxWjxxTmlb/edit',
|
||||
deleteOne = '/wjxWjxxTmlb/wjxWjxxTmlb/delete',
|
||||
|
@ -36,8 +37,8 @@ export const queryWjxWjxxTmxxListByMainId = (id) => defHttp.get({url: Api.wjxWjx
|
|||
* 列表接口
|
||||
* @param params
|
||||
*/
|
||||
export const list = (params) =>
|
||||
defHttp.get({url: Api.list, params});
|
||||
export const list = (params) => defHttp.get({url: Api.list, params});
|
||||
export const distinctList = (params) => defHttp.get({url: Api.distinctList, params});
|
||||
|
||||
/**
|
||||
* 删除单个
|
||||
|
|
|
@ -5,6 +5,22 @@ import { render } from '/@/utils/common/renderUtils';
|
|||
import {JVxeTypes,JVxeColumn} from '/@/components/jeecg/JVxeTable/types'
|
||||
//列表数据
|
||||
export const columns: BasicColumn[] = [
|
||||
{
|
||||
title: '题目类型',
|
||||
align:"center",
|
||||
dataIndex: 'wjType',
|
||||
customRender:({text}) =>{
|
||||
var rt = "";
|
||||
if(text == '3'){
|
||||
rt = "单选";
|
||||
}else if(text == '4'){
|
||||
rt = "多选";
|
||||
}else if(text == '5'){
|
||||
rt = "填空";
|
||||
}
|
||||
return rt;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '问题标题',
|
||||
align:"center",
|
||||
|
@ -48,6 +64,11 @@ export const columnsYytk: BasicColumn[] = [
|
|||
align:"center",
|
||||
dataIndex: 'wjScore'
|
||||
},
|
||||
{
|
||||
title: '是否公有',
|
||||
align:"center",
|
||||
dataIndex: 'wjSytype_dictText'
|
||||
},
|
||||
];
|
||||
|
||||
//查询数据
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
import { defHttp } from '/@/utils/http/axios';
|
||||
import WjxWjxxTmlbModal from './components/WjxWjxxTmlbModal.vue'
|
||||
import {columnsYytk} from './WjxWjxxTmlb.data';
|
||||
import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './WjxWjxxTmlb.api';
|
||||
import {list, deleteOne, batchDelete, getImportUrl,getExportUrl,distinctList} from './WjxWjxxTmlb.api';
|
||||
import {downloadFile} from '/@/utils/common/renderUtils';
|
||||
import { JInput,JDictSelectTag } from '/@/components/Form';
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
|
@ -80,7 +80,7 @@
|
|||
const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({
|
||||
tableProps:{
|
||||
// title: '题目信息',
|
||||
api: list,
|
||||
api: distinctList,
|
||||
columns: columnsYytk,
|
||||
canResize:false,
|
||||
useSearchForm: false,
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<a-sub-menu key="sub3">
|
||||
<template #title>教学工具</template>
|
||||
<a-menu-item key="6" @click="getGzt('dcwj')">问卷调查</a-menu-item>
|
||||
<a-menu-item key="7" @click="getGzt('gongju')">到课率识别</a-menu-item>
|
||||
<a-menu-item key="7" @click="getGzt('gongju')">到课识别率</a-menu-item>
|
||||
<a-menu-item key="8" @click="getGzt('zycd')">作业存档</a-menu-item>
|
||||
</a-sub-menu>
|
||||
<a-menu-item key="sub4">
|
||||
|
|
Loading…
Reference in New Issue