修改bug
This commit is contained in:
parent
1187cc13bb
commit
a7f0b33494
|
@ -52,6 +52,7 @@
|
||||||
<a-col :span="24" style="text-align:center;margin-top:20px;">
|
<a-col :span="24" style="text-align:center;margin-top:20px;">
|
||||||
<a-button type="primary" @click="handleDetail(item)" style="margin-left:5px;background:rgb(28, 132, 198);">详情</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="handleShangchuan(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="!item.stuFilePath">上传</a-button>
|
<a-button type="primary" @click="handleShangchuan(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="!item.stuFilePath">上传</a-button>
|
||||||
|
<a-button type="primary" @click="handleDownload(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.stuFilePath">下载</a-button>
|
||||||
<a-button type="primary" @click="handlePreview(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.stuFilePath">预览</a-button>
|
<a-button type="primary" @click="handlePreview(item)" style="margin-left:5px;background:rgb(28, 132, 198);" v-if="item.stuFilePath">预览</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -82,6 +83,9 @@
|
||||||
import { defHttp } from '/@/utils/http/axios';
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
import { useMessage } from "/@/hooks/web/useMessage";
|
import { useMessage } from "/@/hooks/web/useMessage";
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
|
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||||
|
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
||||||
|
import { useGlobSetting } from '/@/hooks/setting';
|
||||||
import JInput from '/@/components/Form/src/jeecg/components/JInput.vue';
|
import JInput from '/@/components/Form/src/jeecg/components/JInput.vue';
|
||||||
import ZyInfoModal from './components/ZyInfoModal.vue';
|
import ZyInfoModal from './components/ZyInfoModal.vue';
|
||||||
import ZyInfoStudentListModal from '/@/views/zy/zyInfoStudent/ZyInfoStudentListModal.vue';
|
import ZyInfoStudentListModal from '/@/views/zy/zyInfoStudent/ZyInfoStudentListModal.vue';
|
||||||
|
@ -105,6 +109,8 @@
|
||||||
const pageNo = ref<number>(0);
|
const pageNo = ref<number>(0);
|
||||||
const pageSize = ref<number>(6);
|
const pageSize = ref<number>(6);
|
||||||
const tableData = ref<any>([]);
|
const tableData = ref<any>([]);
|
||||||
|
const globSetting = useGlobSetting();
|
||||||
|
const baseApiUrl = globSetting.domainUrl;
|
||||||
|
|
||||||
|
|
||||||
const labelCol = reactive({
|
const labelCol = reactive({
|
||||||
|
@ -173,9 +179,17 @@
|
||||||
|
|
||||||
//预览
|
//预览
|
||||||
function handlePreview(record){
|
function handlePreview(record){
|
||||||
record.isYl = true;
|
// record.isYl = true;
|
||||||
ZyInfoStudentModalPage.value.disableSubmit = true;
|
// ZyInfoStudentModalPage.value.disableSubmit = true;
|
||||||
ZyInfoStudentModalPage.value.edit(record);
|
// ZyInfoStudentModalPage.value.edit(record);
|
||||||
|
|
||||||
|
var url2 = getFileAccessHttpUrl(record.stuPdfPath)
|
||||||
|
let url = baseApiUrl+"/generic/web/viewer.html?file="+encodeURIComponent(url2);
|
||||||
|
window.open(url,"_blank")
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleDownload(record){
|
||||||
|
downloadFile(record.stuFilePath)
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取选课人数
|
//获取选课人数
|
||||||
|
|
Loading…
Reference in New Issue