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

打印表单id 方便快速开发

上级 7f35243c
...@@ -5,6 +5,7 @@ import { deepCopy } from '@/webPublic/one_stop_public/utils/myutils'; ...@@ -5,6 +5,7 @@ import { deepCopy } from '@/webPublic/one_stop_public/utils/myutils';
import { getMessage, getModal } from '@/webPublic/one_stop_public/utils/utils'; import { getMessage, getModal } from '@/webPublic/one_stop_public/utils/utils';
import moment from 'moment'; import moment from 'moment';
import { giveSmartFormGlobalProps } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps'; import { giveSmartFormGlobalProps } from '@/webPublic/one_stop_public/Table/giveSmartFormGlobalProps';
import { getToken } from '@/webPublic/one_stop_public/utils/token';
const Modal = getModal(); const Modal = getModal();
const message = getMessage(); const message = getMessage();
...@@ -22,6 +23,9 @@ export default function prepareShow(postData = {}, content = '') { ...@@ -22,6 +23,9 @@ export default function prepareShow(postData = {}, content = '') {
window.Modal = Modal; window.Modal = Modal;
window.moment = moment; window.moment = moment;
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if(agg?.unifiedServicePatternModel.id){
console.log('%c' + `/admin/processServices/modelConfig/templateDetail/designById?id=${agg.unifiedServicePatternModel.id}&token=${getToken()}`, 'color: green;background: yellow;font-size: 15px');
}
let data = agg?.unifiedServicePatternModel?.content || content; let data = agg?.unifiedServicePatternModel?.content || content;
let g = !!data && isJSON(data) && JSON.parse(data)?.templateWillMount; let g = !!data && isJSON(data) && JSON.parse(data)?.templateWillMount;
if (g && typeof g === 'string' && g.length > 10) { if (g && typeof g === 'string' && g.length > 10) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论