点击新增,为啥报错404?
本帖最后由 messi 于 2023-8-6 17:18 编辑这个是一个门户页面,您找到这个页面,看一下这个按钮的点击事件脚本,写的什么, 论坛管理员 发表于 2023-8-7 10:27
这个是一个门户页面,您找到这个页面,看一下这个按钮的点击事件脚本,写的什么, ...
debugger;
if(this.session.user.identityList){
var data = {};
data["title"] = "办公用品";
data["categoryId"] = "2432b5f6-5937-47ac-9dd8-99a383e3249b";
data["identity"] = this.session.user.identityList.distinguishedName;
var action = this.Actions.load("x_cms_assemble_control");
action.DocumentAction.persist_save(//平台封装好的方法
data,//body请求参数
function( json ){ //服务调用成功的回调函数, json为服务传回的数据
data = json.data; //为变量data赋值
debugger;
var hp = this.Actions.getHost();
var url = hp+"/x_desktop/app.html?app=cms.Document&status={%22documentId%22:%22"+data.id+"%22,%22readonly%22:false,%22autoSave%22:true,%22saveOnClose%22:true,%22appId%22:%22cms.Document"+data.id+"%22}"
view_pending_window_open(url,this.form.get("view"));
}.bind(this),
function( json ){ //服务调用失败的回调函数, json为服务传回的数据
data = json.data; //为变量data赋值
}.bind(this),
false //同步执行
);
/*
this.form.createDocument("办公用品管理", "办公用品信息", {"subject": "办公用品信息"}, this.session.user.identityList.distinguishedName, function(json){
this.form.notice("创建成功!", "success");
this.form.get("view").reload();
}.bind(this));
*/
}else{
this.form.notice("当前登录人没有身份!", "error");
}
function view_pending_window_open(url,dom) {
var pendingTimer;
window_pending_handle = window.open(url);
if (pendingTimer) {
clearInterval(pendingTimer);
}
pendingTimer = setInterval(function() {
//console.log("检测中。。。")
if (window_pending_handle.closed) {
//刷新
dom.reload();
clearInterval(pendingTimer);
}
}, 500);
} 可能是端口的问题,您把端口改为8888试试看 本帖最后由 messi 于 2023-8-9 09:42 编辑
论坛管理员 发表于 2023-8-7 15:42
可能是端口的问题,您把端口改为8888试试看我的端口就是8888
这里改为8888试试看,如果不行,您把这个完整的地址发出来看看
论坛管理员 发表于 2023-8-9 13:18
这里改为8888试试看,如果不行,您把这个完整的地址发出来看看
可以正常显示了,谢谢
页:
[1]