吸怪bug
This commit is contained in:
parent
8b485b6a22
commit
c8fe2b86ef
|
@ -26,10 +26,10 @@
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<vxe-toolbar>
|
<!-- <vxe-toolbar>
|
||||||
<template #buttons>
|
<template #buttons>
|
||||||
</template>
|
</template>
|
||||||
</vxe-toolbar>
|
</vxe-toolbar> -->
|
||||||
<JVxeTable
|
<JVxeTable
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-number
|
row-number
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :lg="8">
|
<a-col :lg="8">
|
||||||
<a-form-item label="课程名称或教师名">
|
<a-form-item label="课程名称">
|
||||||
<a-input placeholder="请输入课程名称或教师名" v-model:value="queryParam.searchInput"></a-input>
|
<a-input placeholder="请输入课程名称" v-model:value="queryParam.searchInput"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||||
|
@ -21,10 +21,6 @@
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<vxe-toolbar>
|
|
||||||
<template #buttons>
|
|
||||||
</template>
|
|
||||||
</vxe-toolbar>
|
|
||||||
<JVxeTable
|
<JVxeTable
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-number
|
row-number
|
||||||
|
|
|
@ -51,7 +51,7 @@ import { defHttp } from '/@/utils/http/axios';
|
||||||
import { dateUtil, formatToDate } from '/@/utils/dateUtil';
|
import { dateUtil, formatToDate } from '/@/utils/dateUtil';
|
||||||
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||||
import addModalPage from '/@/views/site/tingKeZuJi/components/addModal.vue';
|
import addModalPage from '/@/views/site/tingKeZuJi/components/addModal.vue';
|
||||||
import { getUserId } from '/@/views/site/utils/index';
|
import { getUserId, getSysConfig } from '/@/views/site/utils/index';
|
||||||
|
|
||||||
import { Modal } from 'ant-design-vue';
|
import { Modal } from 'ant-design-vue';
|
||||||
import { CloseOutlined } from '@ant-design/icons-vue';
|
import { CloseOutlined } from '@ant-design/icons-vue';
|
||||||
|
@ -150,33 +150,49 @@ const listTkjlApi = (params) => defHttp.get({ url: Api.listTkjl, params });
|
||||||
|
|
||||||
|
|
||||||
function txpjFun(item){
|
function txpjFun(item){
|
||||||
console.log(`🚀 ~ file: ykktzs.vue:147 ~ txpjFun ~ item:`, item)
|
var bxqkssj = new Date(getSysConfig().bxqkssj);
|
||||||
item.ketangbiaoid = item.id;
|
var bxqjssj = new Date(getSysConfig().bxqjssj);
|
||||||
let ketangbiaoid = item.id;
|
var nowDate = new Date();
|
||||||
let userid = getUserId();
|
if(bxqkssj.getTime()>nowDate.getTime()||bxqjssj.getTime()<nowDate.getTime()){
|
||||||
listTkjlApi({ userid: userid, ketangbiaoid:ketangbiaoid}).then(res => {
|
|
||||||
var list = res
|
Modal.error({
|
||||||
console.log(`🚀 ~ file: list.vue:106 ~ listTkjlApi ~ list:`, list)
|
|
||||||
if(list.length>0){
|
|
||||||
var score = list[0].score
|
|
||||||
if(score){
|
|
||||||
Modal.error({
|
|
||||||
icon: createVNode({}),
|
icon: createVNode({}),
|
||||||
content: h('div', {style:'height:200px;text-align:center;'}, [
|
content: h('div', {style:'height:200px;text-align:center;'}, [
|
||||||
h('icon', {style:'font-size:80px;font-weight:600;color:red;'}, createVNode(CloseOutlined)),
|
h('icon', {style:'font-size:80px;font-weight:600;color:red;'}, createVNode(CloseOutlined)),
|
||||||
h('p',{style:'font-size:22px;font-weight:600;color:black;'}, '已经对此课程进行评价,不可重复评价,请点击刷新按钮!'),
|
h('p',{style:'font-size:22px;font-weight:600;color:black;'}, '已过当前学期,不能进行评价!'),
|
||||||
]),
|
]),
|
||||||
okText: 'OK',
|
okText: 'OK',
|
||||||
width:'500px',
|
width:'500px',
|
||||||
});
|
});
|
||||||
}else{
|
|
||||||
tingKeZuJiAddModal.value.view(item)
|
|
||||||
}
|
|
||||||
}else{
|
}else{
|
||||||
tingKeZuJiAddModal.value.view(item)
|
item.ketangbiaoid = item.id;
|
||||||
|
let ketangbiaoid = item.id;
|
||||||
|
let userid = getUserId();
|
||||||
|
listTkjlApi({ userid: userid, ketangbiaoid:ketangbiaoid}).then(res => {
|
||||||
|
var list = res
|
||||||
|
console.log(`🚀 ~ file: list.vue:106 ~ listTkjlApi ~ list:`, list)
|
||||||
|
if(list.length>0){
|
||||||
|
var score = list[0].score
|
||||||
|
if(score){
|
||||||
|
Modal.error({
|
||||||
|
icon: createVNode({}),
|
||||||
|
content: h('div', {style:'height:200px;text-align:center;'}, [
|
||||||
|
h('icon', {style:'font-size:80px;font-weight:600;color:red;'}, createVNode(CloseOutlined)),
|
||||||
|
h('p',{style:'font-size:22px;font-weight:600;color:black;'}, '已经对此课程进行评价,不可重复评价,请点击刷新按钮!'),
|
||||||
|
]),
|
||||||
|
okText: 'OK',
|
||||||
|
width:'500px',
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
tingKeZuJiAddModal.value.view(item)
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
tingKeZuJiAddModal.value.view(item)
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue