修改bug
This commit is contained in:
parent
2e6b19cab7
commit
5b211dbe23
|
@ -204,14 +204,14 @@ const site: AppRouteModule = {
|
||||||
// title: '直播rtsp',
|
// title: '直播rtsp',
|
||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
// {
|
{
|
||||||
// path: 'liveFlvView',
|
path: 'liveFlvView',
|
||||||
// name: 'LiveFlvBroadcastRoom',
|
name: 'LiveFlvBroadcastRoom',
|
||||||
// component: () => import('/@/views/site/common/video/flvjs/index.vue'),
|
component: () => import('/@/views/site/common/video/flvjs/index.vue'),
|
||||||
// meta: {
|
meta: {
|
||||||
// title: '直播flv.js',
|
title: '直播flv.js',
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
path: 'livem3u8View',
|
path: 'livem3u8View',
|
||||||
name: 'Live3u8BroadcastRoom',
|
name: 'Live3u8BroadcastRoom',
|
||||||
|
|
|
@ -12,6 +12,11 @@ export const columns: BasicColumn[] = [
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'xnxq'
|
dataIndex: 'xnxq'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '开课单位',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: ['ketangbiaoInfo', 'kkdw']
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '课程名称',
|
title: '课程名称',
|
||||||
align: "center",
|
align: "center",
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
<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: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-button type="primary" preIcon="ant-design:plus-outlined" @click="handleAdd" 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-col>
|
</a-col>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
@ -92,8 +92,9 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
exportConfig: {
|
exportConfig: {
|
||||||
name: "教室人数检测-主表",
|
name: "教室人数检测",
|
||||||
url: getExportUrl,
|
url: getExportUrl,
|
||||||
|
params: queryParam.value,
|
||||||
},
|
},
|
||||||
importConfig: {
|
importConfig: {
|
||||||
url: getImportUrl,
|
url: getImportUrl,
|
||||||
|
|
|
@ -28,6 +28,11 @@
|
||||||
<a-select-option :value="`0106`">逸夫教学楼</a-select-option>
|
<a-select-option :value="`0106`">逸夫教学楼</a-select-option>
|
||||||
<a-select-option :value="`0295`">净月综合教学楼</a-select-option>
|
<a-select-option :value="`0295`">净月综合教学楼</a-select-option>
|
||||||
<a-select-option :value="`0108`">惟真楼</a-select-option>
|
<a-select-option :value="`0108`">惟真楼</a-select-option>
|
||||||
|
<a-select-option :value="`0124`">文学院</a-select-option>
|
||||||
|
<a-select-option :value="`0119`">地理科学学院</a-select-option>
|
||||||
|
<a-select-option :value="`0118`">生命科学学院</a-select-option>
|
||||||
|
<a-select-option :value="`0123`">体育学院</a-select-option>
|
||||||
|
<a-select-option :value="`0122`">历史文化学院</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
|
@ -13,6 +13,11 @@
|
||||||
<a-select-option :value="`0106`">逸夫教学楼</a-select-option>
|
<a-select-option :value="`0106`">逸夫教学楼</a-select-option>
|
||||||
<a-select-option :value="`0295`">净月综合教学楼</a-select-option>
|
<a-select-option :value="`0295`">净月综合教学楼</a-select-option>
|
||||||
<a-select-option :value="`0108`">惟真楼</a-select-option>
|
<a-select-option :value="`0108`">惟真楼</a-select-option>
|
||||||
|
<a-select-option :value="`0124`">文学院</a-select-option>
|
||||||
|
<a-select-option :value="`0119`">地理科学学院</a-select-option>
|
||||||
|
<a-select-option :value="`0118`">生命科学学院</a-select-option>
|
||||||
|
<a-select-option :value="`0123`">体育学院</a-select-option>
|
||||||
|
<a-select-option :value="`0122`">历史文化学院</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
|
@ -15,6 +15,11 @@
|
||||||
<a-select-option :value="`0106`">逸夫教学楼</a-select-option>
|
<a-select-option :value="`0106`">逸夫教学楼</a-select-option>
|
||||||
<a-select-option :value="`0295`">净月综合教学楼</a-select-option>
|
<a-select-option :value="`0295`">净月综合教学楼</a-select-option>
|
||||||
<a-select-option :value="`0108`">惟真楼</a-select-option>
|
<a-select-option :value="`0108`">惟真楼</a-select-option>
|
||||||
|
<a-select-option :value="`0124`">文学院</a-select-option>
|
||||||
|
<a-select-option :value="`0119`">地理科学学院</a-select-option>
|
||||||
|
<a-select-option :value="`0118`">生命科学学院</a-select-option>
|
||||||
|
<a-select-option :value="`0123`">体育学院</a-select-option>
|
||||||
|
<a-select-option :value="`0122`">历史文化学院</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
|
@ -280,30 +280,30 @@ async function handleDelete(record) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function openPdf(record) {
|
function openPdf(record) {
|
||||||
var file = baseApiUrl + "/"+record.filePath;
|
// var file = baseApiUrl + "/"+record.filePath;
|
||||||
console.log('🤬', file);
|
// console.log('🤬', file);
|
||||||
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
// window.open('https://zjdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||||
|
|
||||||
// if (record.pdfPath) {
|
if (record.pdfPath) {
|
||||||
// var url2 = getFileAccessHttpUrl(record.pdfPath);
|
var url2 = getFileAccessHttpUrl(record.pdfPath);
|
||||||
// let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
|
let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
|
||||||
// window.open(url, '_blank');
|
window.open(url, '_blank');
|
||||||
// } else {
|
} else {
|
||||||
// createMessage.warning('暂无文件或文件上传中');
|
createMessage.warning('暂无文件或文件上传中');
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function openJxrlPdf(record) {
|
function openJxrlPdf(record) {
|
||||||
var file = baseApiUrl + "/"+record.filePath;
|
// var file = baseApiUrl + "/"+record.filePath;
|
||||||
console.log('🤬', file);
|
// console.log('🤬', file);
|
||||||
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
// window.open('https://zjdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||||
// if (record.jxrlPdfPath) {
|
if (record.jxrlPdfPath) {
|
||||||
// var url2 = getFileAccessHttpUrl(record.jxrlPdfPath);
|
var url2 = getFileAccessHttpUrl(record.jxrlPdfPath);
|
||||||
// let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
|
let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2);
|
||||||
// window.open(url, '_blank');
|
window.open(url, '_blank');
|
||||||
// } else {
|
} else {
|
||||||
// createMessage.warning('暂无文件或文件上传中');
|
createMessage.warning('暂无文件或文件上传中');
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//常见问题回调刷新
|
//常见问题回调刷新
|
||||||
|
|
|
@ -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://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(t2));
|
// window.open('https://zjdd.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://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
window.open('https://zjdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||||
|
|
||||||
|
|
||||||
} else if (three.type == 'richText') {
|
} else if (three.type == 'richText') {
|
||||||
|
|
|
@ -368,7 +368,7 @@ function handlePreview(record) {
|
||||||
if(filetype=='jpg' || filetype=='png' || filetype=='jpeg' || filetype=='xls' || filetype=='xlsx' || filetype=='text' || filetype=='doc' || filetype=='docx' || filetype=='pdf'){
|
if(filetype=='jpg' || filetype=='png' || filetype=='jpeg' || filetype=='xls' || filetype=='xlsx' || filetype=='text' || filetype=='doc' || filetype=='docx' || filetype=='pdf'){
|
||||||
var file = baseApiUrl + "/"+record.stuFilePath;
|
var file = baseApiUrl + "/"+record.stuFilePath;
|
||||||
console.log('🤬', file);
|
console.log('🤬', file);
|
||||||
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
window.open('https://zjdd.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);
|
||||||
|
|
|
@ -355,7 +355,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://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
window.open('https://zjdd.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);
|
||||||
|
|
|
@ -331,6 +331,7 @@
|
||||||
@click="onExportXls" style="margin-left: 8px">导出</a-button>
|
@click="onExportXls" style="margin-left: 8px">导出</a-button>
|
||||||
<a-button type="primary" :preIcon="isSmallScreen ? '' : 'ant-design:export-outlined'"
|
<a-button type="primary" :preIcon="isSmallScreen ? '' : 'ant-design:export-outlined'"
|
||||||
@click="batchHandleFabu" style="margin-left: 8px">发布成绩</a-button>
|
@click="batchHandleFabu" style="margin-left: 8px">发布成绩</a-button>
|
||||||
|
<!-- <a-button type="primary" preIcon="ant-design:export-outlined" @click="handleZip" style="margin-left: 8px"> 一键下载</a-button> -->
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24" :lg="{ span: 8 }">
|
<a-col :span="24" :lg="{ span: 8 }">
|
||||||
<span class="tishi" style="padding: 10px">温馨提示:作业完成后,请及时发布评分</span>
|
<span class="tishi" style="padding: 10px">温馨提示:作业完成后,请及时发布评分</span>
|
||||||
|
@ -712,6 +713,17 @@ const xzxstjzyOptions = ref([
|
||||||
{ label: '关闭', value: 'N' },
|
{ label: '关闭', value: 'N' },
|
||||||
{ label: '开启', value: 'Y' },
|
{ label: '开启', value: 'Y' },
|
||||||
])
|
])
|
||||||
|
|
||||||
|
//一键下载
|
||||||
|
function handleZip(){
|
||||||
|
defHttp.get({url:'/zyInfoStudent/zyInfoStudent/downStudentZip',params:{mainId:zyInfo.value.id}}).then(res=>{
|
||||||
|
console.log(res);
|
||||||
|
if(res.status=="1"){
|
||||||
|
downloadFile(res.downPath);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
//引用作业
|
//引用作业
|
||||||
function handleYyzy() {
|
function handleYyzy() {
|
||||||
var params = { xqxn, rwbh };
|
var params = { xqxn, rwbh };
|
||||||
|
@ -941,7 +953,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://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
// window.open('https://zjdd.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);
|
||||||
|
|
|
@ -392,6 +392,7 @@
|
||||||
<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="handleZip" style="margin-left: 8px"> 一键下载</a-button> -->
|
||||||
<!-- <a-button type="primary" preIcon="ant-design:export-outlined" @click="batchHandleFabu" style="margin-left: 8px">发布成绩</a-button> -->
|
<!-- <a-button type="primary" preIcon="ant-design:export-outlined" @click="batchHandleFabu" style="margin-left: 8px">发布成绩</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> -->
|
||||||
|
@ -753,6 +754,16 @@ const disabledDate = (current: Dayjs) => {
|
||||||
};
|
};
|
||||||
const useForm = Form.useForm;
|
const useForm = Form.useForm;
|
||||||
|
|
||||||
|
//一键下载
|
||||||
|
function handleZip(){
|
||||||
|
defHttp.get({url:'/zyInfoStudent/zyInfoStudent/downStudentZip',params:{mainId:zyInfo.value.id}}).then(res=>{
|
||||||
|
console.log(res);
|
||||||
|
if(res.status=="1"){
|
||||||
|
downloadFile(res.downPath);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
//引用作业
|
//引用作业
|
||||||
function handleYyzy() {
|
function handleYyzy() {
|
||||||
var params = { xqxn, rwbh };
|
var params = { xqxn, rwbh };
|
||||||
|
@ -981,7 +992,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://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
// window.open('https://zjdd.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);
|
||||||
|
|
|
@ -203,7 +203,7 @@ function rotateImage2() {
|
||||||
// // 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://zjdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file3));
|
||||||
|
|
||||||
// ylurl.value = url3;
|
// ylurl.value = url3;
|
||||||
|
|
||||||
|
|
|
@ -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://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
window.open('https://zjdd.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);
|
||||||
|
|
|
@ -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://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
window.open('https://zjdd.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://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
window.open('https://zjdd.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