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

获取系统code 搞错了

上级 ef09a9af
......@@ -28,7 +28,7 @@ import baseConfig from '@/config/config';
import 'react-quill/dist/quill.snow.css';
import ButtonUpload from './ButtonUpload';
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 Option = Select.Option;
......
......@@ -7,7 +7,7 @@ import config from '@/config/config';
import { connect } from 'dva';
// import { exportExcel } from 'xlsx-oc';
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 TabPane = Tabs.TabPane;
......
......@@ -29,7 +29,7 @@ import {
} from 'draft-js';
import { getToken } from '@/webPublic/one_stop_public/utils/token';
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;
function getBlockStyle(block) {
......
......@@ -28,7 +28,7 @@ import {
RichUtils,
} from 'draft-js';
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;
function getBlockStyle(block) {
......
......@@ -10,7 +10,7 @@ import { getMessage, getModal } from '@/webPublic/one_stop_public/utils/utils';
import { giveFilePostDataInfoForTrue } from '@/webPublic/one_stop_public/Base16';
import { getTransformApi } from '@/webPublic/one_stop_public/2022beidianke/localstorageTransform';
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 message = getMessage();
......
......@@ -6,7 +6,7 @@ import { getToken } from '@/webPublic/one_stop_public/utils/token';
import { deepCopy } from '@/webPublic/zyd_public/utils/utils';
import { getTransformApi } from '@/webPublic/one_stop_public/2022beidianke/localstorageTransform';
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 exportStyles = {
......
......@@ -4,7 +4,7 @@ import config from '@/webPublic/one_stop_public/config';
import { zipImage } from '@/webPublic/zyd_public/utils/handlePhoto';
import { getToken } from '@/webPublic/one_stop_public/utils/token';
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 {
constructor(props) {
......
......@@ -3,7 +3,7 @@ import { queryApiActionPath, queryFileUrl } from '@/webPublic/one_stop_public/ut
import { getToken } from '@/webPublic/one_stop_public/utils/token';
import { isFromIframe } from '@/webPublic/one_stop_public/utils/utils';
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 = {
......
......@@ -7,7 +7,7 @@ import styles from './style.less';
import UploadComDiyForQnZy from '@/webPublic/one_stop_public/libs/UploadComDiyForQnZy';
import Viewer from 'react-viewer';
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({
top: 300,
......
......@@ -7,7 +7,7 @@ import { checkIsImage } from "./UploadCom";
import Viewer from "react-viewer";
import { getToken } from '@/webPublic/one_stop_public/utils/token';
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 上传图片加限制,跟签约派遣上传图片加限制一样
......
......@@ -4,7 +4,7 @@ import queryConfig from './queryConfig';
import { Upload, message } from 'antd';
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 x = localStorage.getItem('uploadVideoServiceToken');
......
......@@ -15,7 +15,7 @@ import styles from './Ability.css';
import FormdataWrapper from '@/utils/object-to-formdata-custom';
import moment from 'moment';
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 nameSpan = {
......
import request from '@/utils/request';
import config, { getUploadUrl } from '@/config/config';
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();
......
......@@ -7,7 +7,7 @@ import ButtonDiy from '@/baseComponent/ButtonDiy';
import { getUploadUrl } from '@/config/config';
import { Row, Col } from 'antd';
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;
......@@ -46,16 +46,16 @@ const calcColumns = (columns) => {
export default class ImportUtil extends React.PureComponent {
constructor(props) {
super(props);
const { api, serviceBean, serviceKey, diyExportTemplateUrl } = props;
const { api, serviceBean, serviceKey, diyExportTemplateUrl, serviceApi = 'importApi' } = props;
var importFileUrl, analyseFileUrl, queryFileUrl, exportTemplateUrl;
if (api != null) {
const x = api; // 学工的 接口地址
importFileUrl = x + `/importApi/execute?token=${getToken()}&cacheKey=`;
queryFileUrl = x + `/importApi/findData?token=${getToken()}&cacheKey=`;
analyseFileUrl = x + `/importApi/analyse?token=${getToken()}&filePath=`;
importFileUrl = x + `/${serviceApi}/execute?token=${getToken()}&cacheKey=`;
queryFileUrl = x + `/${serviceApi}/findData?token=${getToken()}&cacheKey=`;
analyseFileUrl = x + `/${serviceApi}/analyse?token=${getToken()}&filePath=`;
exportTemplateUrl = diyExportTemplateUrl
? x + diyExportTemplateUrl + `?serviceBean=${serviceBean}&serviceKey=${serviceKey}`
: x + `/importApi/downLoadTemplate?serviceBean=${serviceBean}&serviceKey=${serviceKey}`;
: x + `/${serviceApi}/downLoadTemplate?serviceBean=${serviceBean}&serviceKey=${serviceKey}`;
} else {
importFileUrl = props.importFileUrl;
queryFileUrl = props.queryFileUrl;
......@@ -82,14 +82,14 @@ export default class ImportUtil extends React.PureComponent {
static getDerivedStateFromProps(props, state) {
if (props.api != null) {
const { api, serviceBean, serviceKey, diyExportTemplateUrl } = props;
const { api, serviceBean, serviceKey, diyExportTemplateUrl, serviceApi = 'importApi' } = props;
const x = api; // // 学工的 接口地址
state.importFileUrl = x + `/importApi/execute?token=${getToken()}&cacheKey=`;
state.queryFileUrl = x + `/importApi/findData?token=${getToken()}&cacheKey=`;
state.analyseFileUrl = x + `/importApi/analyse?token=${getToken()}&filePath=`;
state.importFileUrl = x + `/${serviceApi}/execute?token=${getToken()}&cacheKey=`;
state.queryFileUrl = x + `/${serviceApi}/findData?token=${getToken()}&cacheKey=`;
state.analyseFileUrl = x + `/${serviceApi}/analyse?token=${getToken()}&filePath=`;
state.exportTemplateUrl = diyExportTemplateUrl
? x + diyExportTemplateUrl + `?serviceBean=${serviceBean}&serviceKey=${serviceKey}`
: x + `/importApi/downLoadTemplate?serviceBean=${serviceBean}&serviceKey=${serviceKey}`;
: x + `/${serviceApi}/downLoadTemplate?serviceBean=${serviceBean}&serviceKey=${serviceKey}`;
} else {
state.importFileUrl = props.importFileUrl;
state.queryFileUrl = props.queryFileUrl;
......@@ -347,12 +347,12 @@ export default class ImportUtil extends React.PureComponent {
// key='pass', 导出通过数据; key='notPass',导出未通过数据
exportData = (isPass) => {
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;
let downLoadUrl;
if (api !== null) {
downLoadUrl =
api + `/importApi/downLoadTemplate?serviceBean=${serviceBean}&serviceKey=${serviceKey}`;
api + `/${serviceApi}/downLoadTemplate?serviceBean=${serviceBean}&serviceKey=${serviceKey}`;
} else {
downLoadUrl = exportTemplateUrl;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论