修改bug

This commit is contained in:
yangjun 2025-03-06 10:04:04 +08:00
parent 742f5bbdc3
commit b42d0ebb3c
9 changed files with 103 additions and 70 deletions

View File

@ -103,7 +103,7 @@
fixed: 'right', fixed: 'right',
}, },
beforeFetch: (params) => { beforeFetch: (params) => {
params.column = '',params.order = '';// params.column = 'createTime',params.order = 'desc';//
return Object.assign(params, queryParam.value); return Object.assign(params, queryParam.value);
}, },
}, },

View File

@ -3,6 +3,12 @@
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-row> <a-row>
<a-col :span="24"> <a-col :span="24">
<a-form-item label="姓名" v-bind="validateInfos.openid">
<JSelectMultiple v-model:value="formData.openid" placeholder="请选择下拉多选" :dictCode="`xxhbuser,xm,gh,zzzt=11`"></JSelectMultiple>
</a-form-item>
</a-col>
<!-- <a-col :span="24">
<a-form-item label="工号" v-bind="validateInfos.openid"> <a-form-item label="工号" v-bind="validateInfos.openid">
<a-input v-model:value="formData.openid" placeholder="请输入工号" :disabled="disabled" @change="handleTeacherNameChange"></a-input> <a-input v-model:value="formData.openid" placeholder="请输入工号" :disabled="disabled" @change="handleTeacherNameChange"></a-input>
</a-form-item> </a-form-item>
@ -11,7 +17,7 @@
<a-form-item label="姓名" v-bind="validateInfos.teacherName"> <a-form-item label="姓名" v-bind="validateInfos.teacherName">
<a-input v-model:value="formData.teacherName" placeholder="请输入姓名" :disabled="disabled"></a-input> <a-input v-model:value="formData.teacherName" placeholder="请输入姓名" :disabled="disabled"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col> -->
<!-- <a-col :span="24"> <!-- <a-col :span="24">
<a-form-item label="学期学年" v-bind="validateInfos.xqxn"> <a-form-item label="学期学年" v-bind="validateInfos.xqxn">
<j-dict-select-tag ref="xqDictTag" placeholder="请选择学年学期" v-model:value="formData.xqxn" :disabled="disabled" dictCode="kc_xqxn_history,title,title,true order by start_time desc"/> <j-dict-select-tag ref="xqDictTag" placeholder="请选择学年学期" v-model:value="formData.xqxn" :disabled="disabled" dictCode="kc_xqxn_history,title,title,true order by start_time desc"/>
@ -19,7 +25,7 @@
</a-col> --> </a-col> -->
<a-col :span="24"> <a-col :span="24">
<a-form-item label="推送内容" v-bind="validateInfos.ytkcs"> <a-form-item label="推送内容" v-bind="validateInfos.ytkcs">
<a-textarea v-model:value="formData.ytkcs" placeholder="请输入推送内容最大20个字" :disabled="disabled"></a-textarea> <a-textarea v-model:value="formData.ytkcs" placeholder="请输入推送内容" :disabled="disabled"></a-textarea>
</a-form-item> </a-form-item>
</a-col> </a-col>
<!-- <a-col :span="24"> <!-- <a-col :span="24">
@ -45,6 +51,7 @@
import { saveOrUpdate } from '../KcWechatSendLog.api'; import { saveOrUpdate } from '../KcWechatSendLog.api';
import { Form } from 'ant-design-vue'; import { Form } from 'ant-design-vue';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import JSelectMultiple from '/@/components/Form/src/jeecg/components/JSelectMultiple.vue';
const props = defineProps({ const props = defineProps({
formDisabled: { type: Boolean, default: false }, formDisabled: { type: Boolean, default: false },

View File

@ -5,26 +5,26 @@ import { render } from '/@/utils/common/renderUtils';
import { log } from 'console'; import { log } from 'console';
//列表数据 //列表数据
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
{ // {
title: '学年学期', // title: '学年学期',
align: "center", // align: "center",
dataIndex: 'xqxn' // dataIndex: 'xqxn'
}, // },
{ {
title: '姓名', title: '姓名',
align: "center", align: "center",
dataIndex: 'xm' dataIndex: 'xm'
}, },
{ {
title: '创建人', title: '工号',
align: "center", align: "center",
dataIndex: 'cjr' dataIndex: 'cjr'
}, },
{ // {
title: '手机号', // title: '手机号',
align: "center", // align: "center",
dataIndex: 'sjh' // dataIndex: 'sjh'
}, // },
{ {
title: '调课事由', title: '调课事由',
align: "center", align: "center",
@ -40,11 +40,11 @@ export const columns: BasicColumn[] = [
// align: "center", // align: "center",
// dataIndex: 'yjxq' // dataIndex: 'yjxq'
// }, // },
{ // {
title: '申请人单位', // title: '申请人单位',
align: "center", // align: "center",
dataIndex: 'sqrdw' // dataIndex: 'sqrdw'
}, // },
// { // {
// title: 'bizbh', // title: 'bizbh',
// align: "center", // align: "center",
@ -75,11 +75,11 @@ export const columns: BasicColumn[] = [
align: "center", align: "center",
dataIndex: 'bkjh' dataIndex: 'bkjh'
}, },
{ // {
title: '时间戳', // title: '时间戳',
align: "center", // align: "center",
dataIndex: 'timestamps' // dataIndex: 'timestamps'
}, // },
{ {
title: '课程名称', title: '课程名称',
align: "center", align: "center",
@ -91,7 +91,7 @@ export const columns: BasicColumn[] = [
// dataIndex: 'pbh' // dataIndex: 'pbh'
// }, // },
{ {
title: '教材', title: '节次',
align: "center", align: "center",
dataIndex: 'jc' dataIndex: 'jc'
}, },
@ -100,21 +100,21 @@ export const columns: BasicColumn[] = [
align: "center", align: "center",
dataIndex: 'skrq' dataIndex: 'skrq'
}, },
{ // {
title: '课程信息编号', // title: '课程信息编号',
align: "center", // align: "center",
dataIndex: 'kcxxbh' // dataIndex: 'kcxxbh'
}, // },
{ // {
title: '校区', // title: '校区',
align: "center", // align: "center",
dataIndex: 'xq' // dataIndex: 'xq'
}, // },
{ // {
title: '教师工号', // title: '教师工号',
align: "center", // align: "center",
dataIndex: 'jsgh' // dataIndex: 'jsgh'
}, // },
{ {
title: '编号', title: '编号',
align: "center", align: "center",
@ -131,7 +131,7 @@ export const columns: BasicColumn[] = [
// dataIndex: 'lcbh' // dataIndex: 'lcbh'
// }, // },
{ {
title: '调整事由', title: '调整类型',
align: "center", align: "center",
dataIndex: 'tklx', dataIndex: 'tklx',
customRender: ({ text }) => { customRender: ({ text }) => {
@ -144,7 +144,7 @@ export const columns: BasicColumn[] = [
}else if(text == '4'){ }else if(text == '4'){
return '其他'; return '其他';
}else{ }else{
return ''; return text;
} }
} }
}, },

View File

@ -4,11 +4,11 @@
<div class="jeecg-basic-table-form-container"> <div class="jeecg-basic-table-form-container">
<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="学年学期">
<j-dict-select-tag placeholder="请选择学年学期" v-model:value="queryParam.xqxn" dictCode="kc_xqxn_history,title,title,true order by start_time desc"/> <j-dict-select-tag placeholder="请选择学年学期" v-model:value="queryParam.xqxn" dictCode="kc_xqxn_history,title,title,true order by start_time desc"/>
</a-form-item> </a-form-item>
</a-col> </a-col> -->
<a-col :lg="8"> <a-col :lg="8">
<a-form-item label="姓名"> <a-form-item label="姓名">
<j-input placeholder="请输入姓名" v-model:value="queryParam.xm"></j-input> <j-input placeholder="请输入姓名" v-model:value="queryParam.xm"></j-input>
@ -41,12 +41,11 @@
<j-input placeholder="请输入yjxq" v-model:value="queryParam.yjxq"></j-input> <j-input placeholder="请输入yjxq" v-model:value="queryParam.yjxq"></j-input>
</a-form-item> </a-form-item>
</a-col> --> </a-col> -->
<a-col :lg="8"> <!-- <a-col :lg="8">
<a-form-item label="申请人单位"> <a-form-item label="申请人单位">
<!-- <j-input placeholder="请输入申请人单位" v-model:value="queryParam.sqrdw"></j-input> -->
<j-dict-select-tag placeholder="请选择申请人单位" v-model:value="queryParam.sqrdw" dictCode="kc_kkdw21_view,kkdw,kkdw,true order by id asc"/> <j-dict-select-tag placeholder="请选择申请人单位" v-model:value="queryParam.sqrdw" dictCode="kc_kkdw21_view,kkdw,kkdw,true order by id asc"/>
</a-form-item> </a-form-item>
</a-col> </a-col> -->
<!-- <a-col :lg="8"> <!-- <a-col :lg="8">
<a-form-item label="bizbh"> <a-form-item label="bizbh">
<j-input placeholder="请输入bizbh" v-model:value="queryParam.bizbh"></j-input> <j-input placeholder="请输入bizbh" v-model:value="queryParam.bizbh"></j-input>
@ -77,11 +76,11 @@
<j-input placeholder="请输入补课计划" v-model:value="queryParam.bkjh"></j-input> <j-input placeholder="请输入补课计划" v-model:value="queryParam.bkjh"></j-input>
</a-form-item> </a-form-item>
</a-col> --> </a-col> -->
<a-col :lg="8"> <!-- <a-col :lg="8">
<a-form-item label="时间戳"> <a-form-item label="时间戳">
<j-input placeholder="请输入时间戳" v-model:value="queryParam.timestamps"></j-input> <j-input placeholder="请输入时间戳" v-model:value="queryParam.timestamps"></j-input>
</a-form-item> </a-form-item>
</a-col> </a-col> -->
<a-col :lg="8"> <a-col :lg="8">
<a-form-item label="课程名称"> <a-form-item label="课程名称">
<j-input placeholder="请输入课程名称" v-model:value="queryParam.kcmc"></j-input> <j-input placeholder="请输入课程名称" v-model:value="queryParam.kcmc"></j-input>
@ -132,15 +131,14 @@
<j-input placeholder="请输入lcbh" v-model:value="queryParam.lcbh"></j-input> <j-input placeholder="请输入lcbh" v-model:value="queryParam.lcbh"></j-input>
</a-form-item> </a-form-item>
</a-col> --> </a-col> -->
<a-col :lg="8"> <!-- <a-col :lg="8">
<a-form-item label="调整事由"> <a-form-item label="调整事由">
<!-- <j-input placeholder="请输入1-调整时间2-调整地点3-更换教师4-其他" v-model:value="queryParam.tklx"></j-input> -->
<j-dict-select-tag <j-dict-select-tag
placeholder="请选择调整事由" v-model:value="queryParam.tklx" placeholder="请选择调整事由" v-model:value="queryParam.tklx"
:options="[{ value: 1, label: '调整时间'},{ value: 2, label: '调整地点'},{ value: 3, label: '更换教师'},{ value: 4, label: '其他'}]" :options="[{ value: 1, label: '调整时间'},{ value: 2, label: '调整地点'},{ value: 3, label: '更换教师'},{ value: 4, label: '其他'}]"
/> />
</a-form-item> </a-form-item>
</a-col> </a-col> -->
<!--</template>--> <!--</template>-->
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="6" :lg="7" :md="8" :sm="24">
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons"> <span style="float: left; overflow: hidden" class="table-page-search-submitButtons">

View File

@ -1,7 +1,7 @@
<template> <template>
<a-card class="rowGutter"> <a-card class="rowGutter">
<a-row :gutter="[16,16]"> <a-row :gutter="[16,16]">
<a-col :lg="12" v-for="(item,index) in list" :key="index"> <a-col :lg="24" v-for="(item,index) in list" :key="index">
<a :href="item.nlink" target="_blank" class="itemLink"> <a :href="item.nlink" target="_blank" class="itemLink">
<span class=""> <span class="">
<WifiOutlined :rotate="45" class="greenTxt"/> <WifiOutlined :rotate="45" class="greenTxt"/>

View File

@ -924,14 +924,32 @@ function handleDown(text) {
// //
function yulanFile(record) { function yulanFile(record) {
console.log('🙇‍♀️', record); console.log('🙇‍♀️', record);
const parts = record.filePath.split('.'); if (record.pdfPath) {
const filetype = parts[parts.length - 1]; var url2 = getFileAccessHttpUrl(record.pdfPath);
if(filetype=='jpg' || filetype=='png' || filetype=='jpeg' || filetype=='xls' || filetype=='xlsx' || filetype=='text' || filetype=='doc' || filetype=='docx' || filetype=='pdf'){ let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
var file = baseApiUrl + "/"+record.filePath; window.open(url, '_blank');
console.log('🤬', file);
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
} else { } else {
createMessage.error('当前作业不支持预览,请下载后查阅!'); const parts = record.filePath.split('.');
const filetype = parts[parts.length - 1];
if (filetype == 'jpg' || filetype == 'png' || filetype == 'jpeg' || filetype == 'xls' || filetype == 'xlsx' || filetype == 'text') {
imgvisible.value = true;
var url2 = getFileAccessHttpUrl(record.filePath);
console.log('👀', url2);
ylimgurl.value = url2;
// var file = baseApiUrl + "/"+record.filePath;
// console.log('🤬', file);
// window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
// var url2 = getFileAccessHttpUrl(record.filePath);
// let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
// window.open(url, '_blank');
} else if (filetype == 'doc' || filetype == 'docx' || filetype == 'pdf') {
var url2 = getFileAccessHttpUrl(record.pdfPath);
let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
window.open(url, '_blank');
} else {
createMessage.error('当前作业不支持预览,请下载后查阅!');
}
} }
} }
// //

View File

@ -34,8 +34,10 @@
</a-col> </a-col>
<a-col :span="24" v-if="formData.filePath"> <a-col :span="24" v-if="formData.filePath">
<a-form-item label="参考资料"> <a-form-item label="参考资料">
<span>{{ lastString(formData.filePath) }}</span> <div v-for="(fjItem,fjindex) in formData.filePath.split(',')" :key="fjindex" style="line-height:50px;">
<a-button type="primary" style="margin-left: 10px" @click="downLoad(formData.filePath)">下载</a-button> <span>{{ lastString(fjItem) }}</span>
<a-button type="primary" style="margin-left: 10px" @click="downLoad(fjItem)">下载</a-button>
</div>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@ -34,8 +34,10 @@
</a-col> </a-col>
<a-col :span="24" v-if="zyInfo.filePath"> <a-col :span="24" v-if="zyInfo.filePath">
<a-form-item label="参考资料" > <a-form-item label="参考资料" >
<span>{{ lastString(zyInfo.filePath) }}</span> <div v-for="(fjItem,fjindex) in zyInfo.filePath.split(',')" :key="fjindex" style="line-height:50px;">
<a-button type="primary" style="margin-left: 10px" @click="downLoad(zyInfo.filePath)">下载</a-button> <span>{{ lastString(fjItem) }}</span>
<a-button type="primary" style="margin-left: 10px" @click="downLoad(fjItem)">下载</a-button>
</div>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@ -199,13 +199,19 @@ function rotateImage2() {
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' ){
showType.value = '2'; showType.value = '2';
}else if(filetype=='doc' || filetype=='docx' || filetype=='pdf'){ }else if(filetype=='doc' || filetype=='docx' || filetype=='pdf'){
showType.value = '1'; // showType.value = '1';
// var file2 = getFileAccessHttpUrl(record.pdfPath); // // var file2 = getFileAccessHttpUrl(record.pdfPath);
// let url2 = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(file2); // // let url2 = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(file2);
var file3 = baseApiUrl + "/"+record.filePath; // var file3 = baseApiUrl + "/"+record.filePath;
let url3 = 'https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file3)); // let url3 = 'https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file3));
// ylurl.value = url3;
showType.value = '1';
var file2 = getFileAccessHttpUrl(record.pdfPath);
let url2 = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(file2);
ylurl.value = url2;
ylurl.value = url3;
}else if(filetype=='mp4'|| filetype=='avi'|| filetype=='mp3'|| filetype=='wav'){ }else if(filetype=='mp4'|| filetype=='avi'|| filetype=='mp3'|| filetype=='wav'){
showType.value = '3'; showType.value = '3';