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

黔南新需求开发

上级 d634962e
import React from 'react';
import { Modal, message } from 'antd';
import { Modal, message } from 'antd';
import { isJSON } from '@/webPublic/one_stop_public/copy';
import { uaaRequest } from '@/webPublic/one_stop_public/utils/request';
import { deepCopy } from '@/webPublic/one_stop_public/utils/myutils';
import moment from 'moment';
import { giveSmartFormGlobalProps } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps';
import { getToken } from '@/webPublic/one_stop_public/utils/token';
import { getUrlInfo } from '@/webPublic/one_stop_public/DetailForAudit/utils';
export default function prepareShow(postData = {}, content = '') {
// 模板挂载前执行的公式
......@@ -21,9 +22,9 @@ export default function prepareShow(postData = {}, content = '') {
window.Modal = Modal;
window.moment = moment;
return new Promise((resolve, reject) => {
if(agg?.unifiedServicePatternModel?.id){
console.log('%c' + `${window.location.origin}/onestop/#/admin/processServices/modelConfig/templateDetail/designById?id=${agg.unifiedServicePatternModel.id}`, 'color: green;background: white;font-size: 14px');
console.log('%c' + `${window.location.origin}/wisdomSchool/#/designFormByUrl?id=${agg.unifiedServicePatternModel.id}`, 'color: green;background: white;font-size: 14px');
if (agg?.unifiedServicePatternModel?.id && getUrlInfo().test) {
console.log('%c' + `${window.location.origin}/onestop/#/admin/processServices/modelConfig/templateDetail/designById?id=${agg.unifiedServicePatternModel.id}&token=${getToken()}`, 'color: green;background: white;font-size: 14px');
console.log('%c' + `${window.location.origin}/wisdomSchool/#/designFormByUrl?id=${agg.unifiedServicePatternModel.id}&token=${getToken()}`, 'color: green;background: white;font-size: 14px');
}
let data = agg?.unifiedServicePatternModel?.content || content;
let g = !!data && isJSON(data) && JSON.parse(data)?.templateWillMount;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论