提交 bef955f2 编写于 作者: U unknown

问题修改

上级 a5ca69e1
......@@ -193,7 +193,20 @@ MWF.xScript.Environment = function(ev){
* 获取当前流程实例对象:work对象或workCompleted对象。
* @method getWork
* @static
* @return {(Work|WorkCompleted)} 流程实例对象;如果流程已结束,返回已结束的流程实例对象.
* @return {(Work|WorkCompleted)} 流程实例对象;如果流程已结束,返回已结束的流程实例对象。
* <div><br/>
* 下面的Work对象和WorkCompleted对象为后台返回的数据,脚本中我们对这两个对象进行了修改和补充,如下:
* </div>
* <pre><code class='language-js'>{
* "creatorPersonDn": "张三@zhangsan@P", //创建人,可能为空,如果由系统创建.
* "creatorPerson": "张三", //创建人姓名
* "creatorIdentityDn": "张三@481c9edc-5fb5-41f1-b5c2-6ea609082cdb@I", //创建人Identity,可能为空,如果由系统创建.
* "creatorIdentity": "张三" //创建人姓名
* "creatorUnitDn": "开发部@c448d8bb-98b8-4305-9d3f-12537723cfcc@U", //创建人组织全称,如果由系统创建。
* "creatorUnit": "开发部", //创建人组织名称
* "creatorDepartment": "开发部", //创建人组织名称,同creatorUnit
* "creatorCompany": "xx公司" //创建人组织公司名称,creatorUnitLevel的第一段
* }</code></pre>
* @o2ActionOut x_processplatform_assemble_surface.WorkAction.manageGet|example=Work|ignoreNoDescr=true|ignoreProps=[properties]|Work对象:
* @o2ActionOut x_processplatform_assemble_surface.WorkCompletedAction.get|example=WorkCompleted|ignoreProps=[properties]|WorkCompleted对象:
* @o2syntax
......@@ -223,10 +236,22 @@ MWF.xScript.Environment = function(ev){
/**
* 当前流程实例正在流转中,并且当前用户有待办,则返回当前用户的待办对象,否则返回null。
* @summary 获取当前流程与当前用户相关的待办对象:task对象。
* @o2ActionOut x_processplatform_assemble_surface.TaskAction.get|example=Task
* @o2ActionOut x_processplatform_assemble_surface.TaskAction.get|example=Task|Task对象:
* @method getTask
* @static
* @return {(Task|Null)} 当前用户的待办任务对象:task。当前用户没有对此流程实例的待办时,或流程实例已经流转结束,返回null.
* @return {(Task|Null)} 当前用户的待办任务对象:task。当前用户没有对此流程实例的待办时,或流程实例已经流转结束,返回null。
* <div><br/>
* 下面的Task对象为后台返回的数据,脚本中我们对这它进行了修改和补充,如下:
* </div>
* <pre><code class='language-js'>{
* "personDn": "张三@zhangsan@P", //创建人,可能为空,如果由系统创建.
* "person": "张三", //创建人姓名
* "identityDn": "张三@481c9edc-5fb5-41f1-b5c2-6ea609082cdb@I", //创建人Identity,可能为空,如果由系统创建.
* "identity": "张三" //创建人姓名
* "unitDn": "开发部@c448d8bb-98b8-4305-9d3f-12537723cfcc@U", //创建人组织全称,如果由系统创建。
* "unit": "开发部", //创建人组织名称
* "department": "开发部", //创建人组织名称,unit
* }</code></pre>
* @o2syntax
* var task = this.workContext.getTask();
*/
......@@ -518,24 +543,24 @@ MWF.xScript.Environment = function(ev){
* var routeList = this.workContext.getRouteList();
*/
"getRouteList": function(){return (ev.task) ? ev.task.routeNameList: null;},
"getInquiredRouteList": function(){return null;},
/**
* @summary 重新设置流程实例标题。。
* @method setTitle
* @static
* @param {String} title - 标题字符串.
* @o2syntax
* this.workContext.setTitle(title);
* @example
* this.workContext.setTitle("标题");
*/
"setTitle": function(title){
if (!this.workAction){
MWF.require("MWF.xScript.Actions.WorkActions", null, false);
this.workAction = new MWF.xScript.Actions.WorkActions();
}
this.workAction.setTitle(ev.work.id, {"title": title});
}
"getInquiredRouteList": function(){return null;}
// /**
// * @summary 重新设置流程实例标题。。
// * @method setTitle
// * @static
// * @param {String} title - 标题字符串.
// * @o2syntax
// * this.workContext.setTitle(title);
// * @example
// * this.workContext.setTitle("标题");
// */
// "setTitle": function(title){
// if (!this.workAction){
// MWF.require("MWF.xScript.Actions.WorkActions", null, false);
// this.workAction = new MWF.xScript.Actions.WorkActions();
// }
// this.workAction.setTitle(ev.work.id, {"title": title});
// }
};
this.workContent = this.workContext;
var _redefineWorkProperties = function(work){
......
......@@ -356,6 +356,7 @@
}, {
type: "hbox",
widths: ["100%"],
hidden: !d.config.base64Encode,
children: [{
id: "base64enable",
type: "checkbox",
......
......@@ -724,6 +724,7 @@
}, {
type: "hbox",
widths: ["100%"],
hidden: !editor.config.base64Encode,
children: [{
id: "base64enable",
type: "checkbox",
......
......@@ -96,6 +96,7 @@ MWF.xApplication.cms.Xform.Htmleditor = MWF.CMSHtmleditor = new Class({
// _self.selectCloudFilesImage( e, callback );
//};
editorConfig.base64Encode = (this.json.base64Encode === "y");
editorConfig.localImageMaxWidth = 800;
editorConfig.reference = this.form.businessData.document.id;
editorConfig.referenceType = "cmsDocument";
......
......@@ -21,6 +21,13 @@
</td>
</tr>
<tr>
<td class="editTableTitle">图片Base64编码:</td>
<td class="editTableValue">
<input class="editTableRadio" name="base64Encode" text{($.ecnet=='y')?'checked':''} type="radio" value="y"/>启用
<input class="editTableRadio" name="base64Encode" text{($.ecnet!='y')?'checked':''} type="radio" value="n"/>禁用
</td>
</tr>
</table>
<div class="MWFMaplist" name="editorProperties" title="属性"></div>
......
......@@ -94,6 +94,7 @@ MWF.xApplication.process.Xform.Htmleditor = MWF.APPHtmleditor = new Class(
}
}
editorConfig.base64Encode = (this.json.base64Encode === "y");
editorConfig.localImageMaxWidth = 800;
editorConfig.reference = this.form.businessData.work.job;
editorConfig.referenceType = "processPlatformJob";
......
......@@ -386,13 +386,13 @@ MWF.xApplication.query.Query.Viewer = MWF.QViewer = new Class({
// return true;
// }
if( this.options && this.options.select ){
return this.options.select === "none";
return this.options.select === "none" || this.options.select === "no";
}
if( this.json && this.json.select ){
return this.json.select === "none";
return this.json.select === "none" || this.json.select === "no";
}
if( this.viewJson && this.viewJson.select ){
return this.viewJson.select === "none";
return this.viewJson.select === "none" || this.viewJson.select === "no";
}
return true;
// if( this.json.select === "single" || this.json.select === "multi" || this.json.defaultSelectedScript || this.viewJson.defaultSelectedScript ){
......
......@@ -609,6 +609,9 @@ MWF.xApplication.service.InvokeDesigner.Main = new Class({
node = new Element("div", {"styles": this.css.propertyItemTitleNode, "text": this.lp.invokeMethod+":"}).inject(this.propertyContentArea);
this.propertyInvokeMethodNode = new Element("div", {"styles": this.css.propertyTextNode, "text": "POST"}).inject(this.propertyContentArea);
node = new Element("div", {"styles": this.css.propertyItemTitleNode, "text": this.lp.invokeHead+":"}).inject(this.propertyContentArea);
this.propertyInvokeHeadTextNode = new Element("div", {"styles": this.css.propertyTextNode, "text": "Content-Type:application/json; charset=utf-8"}).inject(this.propertyContentArea);
},
loadPropertyResize: function(){
// var size = this.propertyNode.getSize();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册