提交 4ad74078 authored 作者: fanlingtong's avatar fanlingtong

遂宁能源学院打印报告单不要登记表

上级 9a313e7a
...@@ -4,10 +4,18 @@ import styles from './index.less'; ...@@ -4,10 +4,18 @@ import styles from './index.less';
import { Button } from 'antd'; import { Button } from 'antd';
import IframeForRenderForm from './IframeForRenderForm'; import IframeForRenderForm from './IframeForRenderForm';
import { setToken } from '@/utils/authority'; import { setToken } from '@/utils/authority';
import { getIsSnny } from '@/utils/utils';
const idsConfig = [ const idsConfig = getIsSnny() ? [
{ {
id: '1427570690688548864',
name: '新生入学报到单',
key: 'xsrxbdd',
},
] : [
{
id: '1427569429700411392', id: '1427569429700411392',
name: '新生入学登记表', name: '新生入学登记表',
key: 'xsrxdjb', key: 'xsrxdjb',
...@@ -28,7 +36,7 @@ export default function PrintQnmz(props) { ...@@ -28,7 +36,7 @@ export default function PrintQnmz(props) {
setShowPrint(true); setShowPrint(true);
}, 2000); }, 2000);
}, []); }, []);
// function printDom() { // function printDom() {
// document.getElementById('showButtonDiv').style.display = 'none'; // document.getElementById('showButtonDiv').style.display = 'none';
// window.print(); // window.print();
......
...@@ -10,7 +10,7 @@ export function checkAuth(authority) { ...@@ -10,7 +10,7 @@ export function checkAuth(authority) {
} }
const path = localStorage.getItem('parentRoutePath'); const path = localStorage.getItem('parentRoutePath');
const checkPath = path + authority; const checkPath = path + authority;
console.log('auth', checkPath); console.log(checkPath,'checkPath');
let findX = allAuth.find((g) => g === checkPath); let findX = allAuth.find((g) => g === checkPath);
return !!findX; return !!findX;
} }
......
...@@ -42,6 +42,7 @@ if (!globalThis.CONFIG) { ...@@ -42,6 +42,7 @@ if (!globalThis.CONFIG) {
const queryConfig = (key) => { const queryConfig = (key) => {
const dynamicConfig = typeof globalThis !== 'undefined' ? globalThis.CONFIG : window.CONFIG; const dynamicConfig = typeof globalThis !== 'undefined' ? globalThis.CONFIG : window.CONFIG;
console.log(dynamicConfig,'dynamicConfig');
if (typeof key === 'undefined') return dynamicConfig; if (typeof key === 'undefined') return dynamicConfig;
return dynamicConfig[key]; return dynamicConfig[key];
}; };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论