提交 cd317164 authored 作者: 钟是志's avatar 钟是志

获取系统code 搞错了

上级 ef09a9af
...@@ -28,7 +28,7 @@ import baseConfig from '@/config/config'; ...@@ -28,7 +28,7 @@ import baseConfig from '@/config/config';
import 'react-quill/dist/quill.snow.css'; import 'react-quill/dist/quill.snow.css';
import ButtonUpload from './ButtonUpload'; import ButtonUpload from './ButtonUpload';
import { getToken } from '@/webPublic/one_stop_public/utils/token'; import { getToken } from '@/webPublic/one_stop_public/utils/token';
import { getSysCode } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps'; import { getSysCode } from '@/webPublic/one_stop_public/2023yunshangguizhou/utils';
const RadioGroup = Radio.Group; const RadioGroup = Radio.Group;
const Option = Select.Option; const Option = Select.Option;
......
...@@ -7,7 +7,7 @@ import config from '@/config/config'; ...@@ -7,7 +7,7 @@ import config from '@/config/config';
import { connect } from 'dva'; import { connect } from 'dva';
// import { exportExcel } from 'xlsx-oc'; // import { exportExcel } from 'xlsx-oc';
import { getToken } from '@/utils/authority'; import { getToken } from '@/utils/authority';
import { getSysCode } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps'; import { getSysCode } from '@/webPublic/one_stop_public/2023yunshangguizhou/utils';
const Step = Steps.Step; const Step = Steps.Step;
const TabPane = Tabs.TabPane; const TabPane = Tabs.TabPane;
......
...@@ -29,7 +29,7 @@ import { ...@@ -29,7 +29,7 @@ import {
} from 'draft-js'; } from 'draft-js';
import { getToken } from '@/webPublic/one_stop_public/utils/token'; import { getToken } from '@/webPublic/one_stop_public/utils/token';
import { queryFileUrl } from '@/webPublic/one_stop_public/utils/queryConfig'; import { queryFileUrl } from '@/webPublic/one_stop_public/utils/queryConfig';
import { getSysCode } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps'; import { getSysCode } from '@/webPublic/one_stop_public/2023yunshangguizhou/utils';
const FormItem = Form.Item; const FormItem = Form.Item;
function getBlockStyle(block) { function getBlockStyle(block) {
......
...@@ -28,7 +28,7 @@ import { ...@@ -28,7 +28,7 @@ import {
RichUtils, RichUtils,
} from 'draft-js'; } from 'draft-js';
import { queryFileUrl } from '@/webPublic/one_stop_public/utils/queryConfig'; import { queryFileUrl } from '@/webPublic/one_stop_public/utils/queryConfig';
import { getSysCode } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps'; import { getSysCode } from '@/webPublic/one_stop_public/2023yunshangguizhou/utils';
const FormItem = Form.Item; const FormItem = Form.Item;
function getBlockStyle(block) { function getBlockStyle(block) {
......
...@@ -10,7 +10,7 @@ import { getMessage, getModal } from '@/webPublic/one_stop_public/utils/utils'; ...@@ -10,7 +10,7 @@ import { getMessage, getModal } from '@/webPublic/one_stop_public/utils/utils';
import { giveFilePostDataInfoForTrue } from '@/webPublic/one_stop_public/Base16'; import { giveFilePostDataInfoForTrue } from '@/webPublic/one_stop_public/Base16';
import { getTransformApi } from '@/webPublic/one_stop_public/2022beidianke/localstorageTransform'; import { getTransformApi } from '@/webPublic/one_stop_public/2022beidianke/localstorageTransform';
import ProgressDiy from './ProgressDiy'; import ProgressDiy from './ProgressDiy';
import { getSysCode } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps'; import { getSysCode } from '@/webPublic/one_stop_public/2023yunshangguizhou/utils';
const Modal = getModal(); const Modal = getModal();
const message = getMessage(); const message = getMessage();
......
...@@ -6,7 +6,7 @@ import { getToken } from '@/webPublic/one_stop_public/utils/token'; ...@@ -6,7 +6,7 @@ import { getToken } from '@/webPublic/one_stop_public/utils/token';
import { deepCopy } from '@/webPublic/zyd_public/utils/utils'; import { deepCopy } from '@/webPublic/zyd_public/utils/utils';
import { getTransformApi } from '@/webPublic/one_stop_public/2022beidianke/localstorageTransform'; import { getTransformApi } from '@/webPublic/one_stop_public/2022beidianke/localstorageTransform';
import moment from 'moment'; import moment from 'moment';
import { getSysCode } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps'; import { getSysCode } from '@/webPublic/one_stop_public/2023yunshangguizhou/utils';
const apiUrl = queryOauthActionPath(); const apiUrl = queryOauthActionPath();
const exportStyles = { const exportStyles = {
......
...@@ -4,7 +4,7 @@ import config from '@/webPublic/one_stop_public/config'; ...@@ -4,7 +4,7 @@ import config from '@/webPublic/one_stop_public/config';
import { zipImage } from '@/webPublic/zyd_public/utils/handlePhoto'; import { zipImage } from '@/webPublic/zyd_public/utils/handlePhoto';
import { getToken } from '@/webPublic/one_stop_public/utils/token'; import { getToken } from '@/webPublic/one_stop_public/utils/token';
import { queryFileUrl } from '@/webPublic/one_stop_public/utils/queryConfig'; import { queryFileUrl } from '@/webPublic/one_stop_public/utils/queryConfig';
import { getSysCode } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps'; import { getSysCode } from '@/webPublic/one_stop_public/2023yunshangguizhou/utils';
export default class ImgUploadCom extends React.Component { export default class ImgUploadCom extends React.Component {
constructor(props) { constructor(props) {
......
...@@ -3,7 +3,7 @@ import { queryApiActionPath, queryFileUrl } from '@/webPublic/one_stop_public/ut ...@@ -3,7 +3,7 @@ import { queryApiActionPath, queryFileUrl } from '@/webPublic/one_stop_public/ut
import { getToken } from '@/webPublic/one_stop_public/utils/token'; import { getToken } from '@/webPublic/one_stop_public/utils/token';
import { isFromIframe } from '@/webPublic/one_stop_public/utils/utils'; import { isFromIframe } from '@/webPublic/one_stop_public/utils/utils';
import getOneStopUploadUrl from '@/webPublic/one_stop_public/Base16/getOneStopUploadUrl'; import getOneStopUploadUrl from '@/webPublic/one_stop_public/Base16/getOneStopUploadUrl';
import { getSysCode } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps'; import { getSysCode } from '@/webPublic/one_stop_public/2023yunshangguizhou/utils';
const oneSetItemP = { const oneSetItemP = {
......
...@@ -7,7 +7,7 @@ import styles from './style.less'; ...@@ -7,7 +7,7 @@ import styles from './style.less';
import UploadComDiyForQnZy from '@/webPublic/one_stop_public/libs/UploadComDiyForQnZy'; import UploadComDiyForQnZy from '@/webPublic/one_stop_public/libs/UploadComDiyForQnZy';
import Viewer from 'react-viewer'; import Viewer from 'react-viewer';
import { getToken } from '@/webPublic/one_stop_public/utils/token'; import { getToken } from '@/webPublic/one_stop_public/utils/token';
import { getSysCode } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps'; import { getSysCode } from '@/webPublic/one_stop_public/2023yunshangguizhou/utils';
message.config({ message.config({
top: 300, top: 300,
......
...@@ -7,7 +7,7 @@ import { checkIsImage } from "./UploadCom"; ...@@ -7,7 +7,7 @@ import { checkIsImage } from "./UploadCom";
import Viewer from "react-viewer"; import Viewer from "react-viewer";
import { getToken } from '@/webPublic/one_stop_public/utils/token'; import { getToken } from '@/webPublic/one_stop_public/utils/token';
import { getHeaders } from '@/webPublic/zyd_public/utils/utils'; import { getHeaders } from '@/webPublic/zyd_public/utils/utils';
import { getSysCode } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps'; import { getSysCode } from '@/webPublic/one_stop_public/2023yunshangguizhou/utils';
// 为黔南职院单独写的 上传组件 用于 bug 20576 个人就业信息/求职创业补贴申报,201801010006 119242 上传图片加限制,跟签约派遣上传图片加限制一样 // 为黔南职院单独写的 上传组件 用于 bug 20576 个人就业信息/求职创业补贴申报,201801010006 119242 上传图片加限制,跟签约派遣上传图片加限制一样
......
...@@ -4,7 +4,7 @@ import queryConfig from './queryConfig'; ...@@ -4,7 +4,7 @@ import queryConfig from './queryConfig';
import { Upload, message } from 'antd'; import { Upload, message } from 'antd';
import { isJSON } from '@/webPublic/one_stop_public/copy'; import { isJSON } from '@/webPublic/one_stop_public/copy';
import { getSysCode } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps'; import { getSysCode } from '@/webPublic/one_stop_public/2023yunshangguizhou/utils';
const getToken = () => { const getToken = () => {
const x = localStorage.getItem('uploadVideoServiceToken'); const x = localStorage.getItem('uploadVideoServiceToken');
......
...@@ -15,7 +15,7 @@ import styles from './Ability.css'; ...@@ -15,7 +15,7 @@ import styles from './Ability.css';
import FormdataWrapper from '@/utils/object-to-formdata-custom'; import FormdataWrapper from '@/utils/object-to-formdata-custom';
import moment from 'moment'; import moment from 'moment';
import { controlNotification } from '@/baseComponent/utils'; import { controlNotification } from '@/baseComponent/utils';
import { getSysCode } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps'; import { getSysCode } from '@/webPublic/one_stop_public/2023yunshangguizhou/utils';
const Option = Select.Option; const Option = Select.Option;
const nameSpan = { const nameSpan = {
......
import request from '@/utils/request'; import request from '@/utils/request';
import config, { getUploadUrl } from '@/config/config'; import config, { getUploadUrl } from '@/config/config';
import { getToken } from '@/utils/authority'; import { getToken } from '@/utils/authority';
import { getSysCode } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps'; import { getSysCode } from '@/webPublic/one_stop_public/2023yunshangguizhou/utils';
const uploadUrl = getUploadUrl(); const uploadUrl = getUploadUrl();
......
...@@ -7,7 +7,7 @@ import ButtonDiy from '@/baseComponent/ButtonDiy'; ...@@ -7,7 +7,7 @@ import ButtonDiy from '@/baseComponent/ButtonDiy';
import { getUploadUrl } from '@/config/config'; import { getUploadUrl } from '@/config/config';
import { Row, Col } from 'antd'; import { Row, Col } from 'antd';
import { getToken } from '@/webPublic/one_stop_public/utils/token'; import { getToken } from '@/webPublic/one_stop_public/utils/token';
import { getSysCode } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps'; import { getSysCode } from '@/webPublic/one_stop_public/2023yunshangguizhou/utils';
const Step = Steps.Step; const Step = Steps.Step;
...@@ -46,16 +46,16 @@ const calcColumns = (columns) => { ...@@ -46,16 +46,16 @@ const calcColumns = (columns) => {
export default class ImportUtil extends React.PureComponent { export default class ImportUtil extends React.PureComponent {
constructor(props) { constructor(props) {
super(props); super(props);
const { api, serviceBean, serviceKey, diyExportTemplateUrl } = props; const { api, serviceBean, serviceKey, diyExportTemplateUrl, serviceApi = 'importApi' } = props;
var importFileUrl, analyseFileUrl, queryFileUrl, exportTemplateUrl; var importFileUrl, analyseFileUrl, queryFileUrl, exportTemplateUrl;
if (api != null) { if (api != null) {
const x = api; // 学工的 接口地址 const x = api; // 学工的 接口地址
importFileUrl = x + `/importApi/execute?token=${getToken()}&cacheKey=`; importFileUrl = x + `/${serviceApi}/execute?token=${getToken()}&cacheKey=`;
queryFileUrl = x + `/importApi/findData?token=${getToken()}&cacheKey=`; queryFileUrl = x + `/${serviceApi}/findData?token=${getToken()}&cacheKey=`;
analyseFileUrl = x + `/importApi/analyse?token=${getToken()}&filePath=`; analyseFileUrl = x + `/${serviceApi}/analyse?token=${getToken()}&filePath=`;
exportTemplateUrl = diyExportTemplateUrl exportTemplateUrl = diyExportTemplateUrl
? x + diyExportTemplateUrl + `?serviceBean=${serviceBean}&serviceKey=${serviceKey}` ? x + diyExportTemplateUrl + `?serviceBean=${serviceBean}&serviceKey=${serviceKey}`
: x + `/importApi/downLoadTemplate?serviceBean=${serviceBean}&serviceKey=${serviceKey}`; : x + `/${serviceApi}/downLoadTemplate?serviceBean=${serviceBean}&serviceKey=${serviceKey}`;
} else { } else {
importFileUrl = props.importFileUrl; importFileUrl = props.importFileUrl;
queryFileUrl = props.queryFileUrl; queryFileUrl = props.queryFileUrl;
...@@ -82,14 +82,14 @@ export default class ImportUtil extends React.PureComponent { ...@@ -82,14 +82,14 @@ export default class ImportUtil extends React.PureComponent {
static getDerivedStateFromProps(props, state) { static getDerivedStateFromProps(props, state) {
if (props.api != null) { if (props.api != null) {
const { api, serviceBean, serviceKey, diyExportTemplateUrl } = props; const { api, serviceBean, serviceKey, diyExportTemplateUrl, serviceApi = 'importApi' } = props;
const x = api; // // 学工的 接口地址 const x = api; // // 学工的 接口地址
state.importFileUrl = x + `/importApi/execute?token=${getToken()}&cacheKey=`; state.importFileUrl = x + `/${serviceApi}/execute?token=${getToken()}&cacheKey=`;
state.queryFileUrl = x + `/importApi/findData?token=${getToken()}&cacheKey=`; state.queryFileUrl = x + `/${serviceApi}/findData?token=${getToken()}&cacheKey=`;
state.analyseFileUrl = x + `/importApi/analyse?token=${getToken()}&filePath=`; state.analyseFileUrl = x + `/${serviceApi}/analyse?token=${getToken()}&filePath=`;
state.exportTemplateUrl = diyExportTemplateUrl state.exportTemplateUrl = diyExportTemplateUrl
? x + diyExportTemplateUrl + `?serviceBean=${serviceBean}&serviceKey=${serviceKey}` ? x + diyExportTemplateUrl + `?serviceBean=${serviceBean}&serviceKey=${serviceKey}`
: x + `/importApi/downLoadTemplate?serviceBean=${serviceBean}&serviceKey=${serviceKey}`; : x + `/${serviceApi}/downLoadTemplate?serviceBean=${serviceBean}&serviceKey=${serviceKey}`;
} else { } else {
state.importFileUrl = props.importFileUrl; state.importFileUrl = props.importFileUrl;
state.queryFileUrl = props.queryFileUrl; state.queryFileUrl = props.queryFileUrl;
...@@ -347,12 +347,12 @@ export default class ImportUtil extends React.PureComponent { ...@@ -347,12 +347,12 @@ export default class ImportUtil extends React.PureComponent {
// key='pass', 导出通过数据; key='notPass',导出未通过数据 // key='pass', 导出通过数据; key='notPass',导出未通过数据
exportData = (isPass) => { exportData = (isPass) => {
const type = isPass ? 'passList' : 'noPassList'; const type = isPass ? 'passList' : 'noPassList';
const { api, serviceBean, serviceKey, exportTemplateUrl } = this.props; const { api, serviceBean, serviceKey, exportTemplateUrl, serviceApi = 'importApi' } = this.props;
const { filekey } = this.state; const { filekey } = this.state;
let downLoadUrl; let downLoadUrl;
if (api !== null) { if (api !== null) {
downLoadUrl = downLoadUrl =
api + `/importApi/downLoadTemplate?serviceBean=${serviceBean}&serviceKey=${serviceKey}`; api + `/${serviceApi}/downLoadTemplate?serviceBean=${serviceBean}&serviceKey=${serviceKey}`;
} else { } else {
downLoadUrl = exportTemplateUrl; downLoadUrl = exportTemplateUrl;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论