2023年7月30日 修复问题
This commit is contained in:
parent
689ba3d3f3
commit
14367e8026
|
@ -253,18 +253,18 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
async function onExportWord(){
|
async function onExportWord(){
|
||||||
// let fileName = '教学听课情况表.pdf';
|
let fileName = '教学听课情况表.pdf';
|
||||||
let fileName = '教学听课情况表.docx';
|
// let fileName = '教学听课情况表.docx';
|
||||||
let paramsForm = queryParam.value;
|
let paramsForm = queryParam.value;
|
||||||
|
|
||||||
// const data = await defHttp.get({ url: '/config/kcExportConfigTpkwcqkjzglx/exportPdf', params: paramsForm, responseType: 'blob' }, { isTransformResponse: false });
|
const data = await defHttp.get({ url: '/config/kcExportConfigTpkwcqkjzglx/exportPdf', params: paramsForm, responseType: 'blob' }, { isTransformResponse: false });
|
||||||
const data = await defHttp.get({ url: '/config/kcExportConfigTpkwcqkjzglx/exportWord', params: paramsForm, responseType: 'blob' }, { isTransformResponse: false });
|
// const data = await defHttp.get({ url: '/config/kcExportConfigTpkwcqkjzglx/exportWord', params: paramsForm, responseType: 'blob' }, { isTransformResponse: false });
|
||||||
if (!data) {
|
if (!data) {
|
||||||
createMessage.warning('文件下载失败');
|
createMessage.warning('文件下载失败');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// let blobOptions = { type: 'application/pdf' };
|
let blobOptions = { type: 'application/pdf' };
|
||||||
let blobOptions = { type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' };
|
// let blobOptions = { type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' };
|
||||||
|
|
||||||
let navigator:any = window.navigator;
|
let navigator:any = window.navigator;
|
||||||
let msSaveBlob = navigator.msSaveBlob;
|
let msSaveBlob = navigator.msSaveBlob;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<a-form-item label="听课身份" v-bind="validateInfos.tklx">
|
<a-form-item label="听课身份" v-bind="validateInfos.tklx">
|
||||||
<!-- <a-input v-model:value="formData.zwmc" placeholder="请输入职务名称" :disabled="disabled"></a-input> -->
|
<!-- <a-input v-model:value="formData.zwmc" placeholder="请输入职务名称" :disabled="disabled"></a-input> -->
|
||||||
<!-- <j-dict-select-tag mode="multiple" v-model:value="formData.zwmc" style="width: 100%;" dictCode="kc_export_config_tpkwcqkjzglx,dwmc,dwmc,true group by dwmc" placeholder="请选择听课身份"/> -->
|
<!-- <j-dict-select-tag mode="multiple" v-model:value="formData.zwmc" style="width: 100%;" dictCode="kc_export_config_tpkwcqkjzglx,dwmc,dwmc,true group by dwmc" placeholder="请选择听课身份"/> -->
|
||||||
<j-dict-select-tag placeholder="请选择听课类型" style="width: 100%;" v-model:value="formData.tklx" dictCode="tpkwcqkjzglx"/>
|
<j-dict-select-tag mode="multiple" placeholder="请选择听课类型" style="width: 100%;" v-model:value="formData.tklx" dictCode="tpkwcqkjzglx"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
|
@ -53,6 +53,8 @@ const addTksfyq = (params) => {
|
||||||
zwmc: '',
|
zwmc: '',
|
||||||
flag: '',
|
flag: '',
|
||||||
tkyq: '',
|
tkyq: '',
|
||||||
|
tklx: '',
|
||||||
|
ytkcs: '',
|
||||||
});
|
});
|
||||||
const { createMessage } = useMessage();
|
const { createMessage } = useMessage();
|
||||||
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
|
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, nextTick, defineExpose } from 'vue';
|
import { ref, nextTick, defineExpose } from 'vue';
|
||||||
import KcTksfrzbForm from './KcTksfrzbForm.vue'
|
import KcTksfrzbForm from './KcTksfrzbForm.vue'
|
||||||
|
|
||||||
const title = ref<string>('');
|
const title = ref<string>('');
|
||||||
const width = ref<number>(800);
|
const width = ref<number>(800);
|
||||||
const visible = ref<boolean>(false);
|
const visible = ref<boolean>(false);
|
||||||
|
@ -19,13 +19,13 @@
|
||||||
* 新增
|
* 新增
|
||||||
*/
|
*/
|
||||||
function add() {
|
function add() {
|
||||||
title.value = '新增';
|
title.value = '批量更改听课要求';
|
||||||
visible.value = true;
|
visible.value = true;
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
registerForm.value.add();
|
registerForm.value.add();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
* @param record
|
* @param record
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
registerForm.value.edit(record);
|
registerForm.value.edit(record);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 确定按钮点击事件
|
* 确定按钮点击事件
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue