|
本帖最后由 szjazz 于 2024-10-27 09:06 编辑
内容管理和流程管理的API Service接口均有FormAction的get获取表单内容,但得到的结果里,其中:data.data的值有许多\\\,这样就不是Json对象格式了,是否还要将该符号替换成空了,还有为什么要显示出\\\而不是直接的json对象好解析呢?
数值:
{"data":"{\\\"json\\\":{\\\"id\\\":\\\"199c919f-df8f-4224-8f47-7f77f0b4beb7\\\",\\\"name\\\":\\\"费用报销单\\\",\\\"type\\\":\\\"Form\\\",\\\"mode\\\":\\\"PC\\\",\\\"application\\\":\\\"8e178f65-2516-415c-8b5b-76f2242e3768\\\",\\\"applicationName\\\":\\\"报销申请\\\",\\\"styles\\\":{\\\"background-color\\\":\\\"#f0f0f0\\\"},\\\"cssLinks\\\":[],\\\"scriptSrc\\\":[],\\\"moduleList\\\":{\\\"label_11\\\":{\\\"id\\\":\\\"label_11\\\",\\\"type\\\":\\\"Label\\\",\\\"valueType\\\":\\\"script\\\",\\\"script\\\":{\\\"code\\\":\\\"return this.workContext.getWork().processName\\\",\\\"html\\\":\\\"return this.workContext.getWork().processName\\\"},\\\"moduleName\\\":\\\"label\\\",\\\"templateType\\\":\\\"banner\\\",\\\"isSaved\\\":true,\\\"recoveryStyles\\\":{\\\"background-color\\\":\\\"#3c76b7\\\",\\\"height\\\":\\\"40px\\\",\\\"line-height\\\":\\\"40px\\\",\\\"color\\\":\\\"#ffffff\\\",\\\"font-size\\\":\\\"18px\\\",\\\"padding\\\":\\\"0px 10px\\\",\\\"font-weight\\\":\\\"bold\\\"},\\\"preprocessing\\\":\\\"y\\\",\\\"pid\\\":\\\"PC199c919f-df8f-4224-8f47-7f77f0b4beb7label_11\\\"},\\\"div\\\":{\\\"id\\\":\\\"div\\\",\\\"type\\\":\\\"Div\\\",\\\"defaultValue\\\":{\\\"code\\\":\\\"\\\",\\\"html\\\":\\\"\\\"},\\\"moduleName\\\":\\\"div\\\",\\\"isSaved\\\":true,\\\"pid\\\":\\\"PC199c919f-df8f-4224-8f47-7f77f0b4beb7div\\\",\\\"recoveryStyles\\\":{\\\"width\\\":\\\"1200px\\\",\\\"margin\\\":\\\"auto\\\"},\\\"preprocessing\\\":\\\"y\\\"},\\\"label\\\":{\\\"id\\\":\\\"label\\\",\\\"type\\\":\\\"Label\\\",\\\"valueType\\\":\\\"script\\\",\\\"script\\\":{\\\"code\\\":\\\"return this.workContext.getWork().processName\\\",\\\"html\\\":\\\"return this.workContext.getWork().processName\\\"},\\\"moduleName\\\":\\\"label\\\",\\\"templateType\\\":\\\"title\\\",\\\"isSaved\\\":true,\\\"recoveryStyles\\\":{\...
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|