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

31944 优秀毕业生申请--页面字段优化

上级 4eab6c50
...@@ -23,7 +23,7 @@ import { ...@@ -23,7 +23,7 @@ import {
import { getTransformApi } from '@/webPublic/one_stop_public/2022beidianke/localstorageTransform'; import { getTransformApi } from '@/webPublic/one_stop_public/2022beidianke/localstorageTransform';
export function giveSmartFormGlobalProps({ export function giveSmartFormGlobalProps({
fromStart = false, fromStart = false, // 是否是 发起申请
hasSingle = false, hasSingle = false,
isHandle = false, isHandle = false,
onlyRead = false, // 是否此表单所有组件只读 onlyRead = false, // 是否此表单所有组件只读
......
...@@ -7,15 +7,17 @@ import moment from 'moment'; ...@@ -7,15 +7,17 @@ import moment from 'moment';
import { giveSmartFormGlobalProps } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps'; import { giveSmartFormGlobalProps } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps';
import { getToken, getUserInfo } from '@/webPublic/one_stop_public/utils/token'; import { getToken, getUserInfo } from '@/webPublic/one_stop_public/utils/token';
import { getUrlInfo } from '@/webPublic/one_stop_public/DetailForAudit/utils'; import { getUrlInfo } from '@/webPublic/one_stop_public/DetailForAudit/utils';
const test = getUrlInfo().test; const test = getUrlInfo().test;
export default function prepareShow(postData = {}, content = '') { export default function prepareShow(postData = {}, content = '', otherParams = { fromStart: false }) {
// 模板挂载前执行的公式 // 模板挂载前执行的公式
giveSmartFormGlobalProps({ giveSmartFormGlobalProps({
data: postData || content, data: postData || content,
...otherParams,
}); });
if(process.env.NODE_ENV === 'development'){ if (process.env.NODE_ENV === 'development') {
// console.log(window.smartFormGlobalProps.data); // console.log(window.smartFormGlobalProps.data);
} }
let agg = deepCopy(postData); let agg = deepCopy(postData);
......
...@@ -107,7 +107,9 @@ const myCollect = { ...@@ -107,7 +107,9 @@ const myCollect = {
yield put({ type: 'nom' }); yield put({ type: 'nom' });
return; return;
} }
yield call(prepareShow, response); // prepareShow( // 执行templateWillMount公式 yield call(prepareShow, response, {}, {
fromStart: true,
}); // prepareShow( // 执行templateWillMount公式
if (callback) { if (callback) {
callback(response); callback(response);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论