发布移动端调整/修复代码丢失/发布打包

This commit is contained in:
zhal 2022-09-20 21:25:12 +08:00
parent c03990bcf0
commit 398d8a43f6
4 changed files with 80 additions and 0 deletions

View File

@ -2146,6 +2146,27 @@ public class ProcessPublishWeb extends ActionWeb {
}
/**
* 根据当前许可环境获取当前wsid
* @return
*/
public String queryMaPublishGetWsId(){
ResponseObject ro = ResponseObject.newOkResponse();
String wsId = null;
boolean dev = Quota.isDEV();
if(dev==true){
wsId="0285ff6a-e418-4d8b-a5b1-22240296f769";
}
boolean prd=Quota.isPRD();
if(prd==true){
wsId="7d3ca852-a0bd-42e6-80b1-3dcea6f55083";
}
boolean qas=Quota.isQAS();
if(qas==true){
wsId="7d3ca852-a0bd-42e6-80b1-3dcea6f55083";
}
return wsId;
}
/**
* 单个文件发布查询当前已发布文件

View File

@ -33,6 +33,7 @@ var stopPageSetting = {
}
var isHighSecurity;
$(document).ready(function(){
getWsId();
$('td,th').css('padding-top','0px');
$('td,th').css('padding-bottom','0px');
// $('#alertMsg').css('background', '#fff');
@ -51,6 +52,32 @@ $(document).ready(function(){
// listenCloseEvent();// 关闭窗口执行,关闭窗口/刷新都会造成流程实例被删除,注释掉
})
//获取wsid
function getWsId() {
var param = {
sid : $("#sid").val(),
cmd : "com.actionsoft.apps.coe.pal.publisher_publish_getWsId"
}
$.ajax({
url : "./jd",
type : "POST",
dataType : "JSON",
data : param,
async: false,
success : function(r) {
if (r.result == 'ok') {
var wsId=$("#WSID").val();
if(wsId==""){
$("#WSID").val(r.data.wsId);
}
}
}
});
}
var paginationSetting = {
pageLimit: pageLimit,
showItem: 10,

View File

@ -3,10 +3,40 @@ var pageLimit = 10;
var newTemp;
var changeTemp;
var stopTemp;
/**
* 获取地址参数
* @param name
* @returns {*}
* @constructor
*/
function GetQueryString(name) {
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if(r!=null)return unescape(r[2]); return null;
}
/**
* 初始移动端明细数据
*/
function initMobileData() {
/**
* 获取访问地址得到参数判断
* @type {*}
*/
var getUrl=GetQueryString("openState");
if(getUrl !=null && getUrl.toString().length>1) {
var openState=GetQueryString("openState");
if(openState=="11"){
$("#BTN_ADHOC_TASK_OK").text("批准");
$("#BTN_ADHOC_TASK").text("加签");
$("#saveButtons").children()[0].remove();
$("#saveButtons").children()[0].remove();
}
}
$("table[id^='AWS-MobileGrid-Zone']").empty();
$("table[id^='AWS-MobileGrid-Zone']").html('<div id="contentDiv1" style="display: none;" border="0"></div><div id="contentDiv2" style="display: none;" border="0"></div><div id="contentDiv3" style="display: none;" border="0"></div>');
@ -76,6 +106,8 @@ function initMobileData() {
}
// 主体内容显示与隐藏
function dealPublishCheck(isCheck, type) {
if (type == 'new') {