定制封皮选择代码优化
This commit is contained in:
parent
ce2a1403be
commit
aebc289d97
@ -486,7 +486,6 @@
|
|||||||
if (methodId == 'data.form') {
|
if (methodId == 'data.form') {
|
||||||
$('#bar_importPolicyFile').css('display','none')
|
$('#bar_importPolicyFile').css('display','none')
|
||||||
}
|
}
|
||||||
debugger;
|
|
||||||
//新增 打开wps文件逻辑
|
//新增 打开wps文件逻辑
|
||||||
if(methodId === 'control.policy' || methodId ==='engineering.standard' || methodId ==='process.scheme'){
|
if(methodId === 'control.policy' || methodId ==='engineering.standard' || methodId ==='process.scheme'){
|
||||||
//执行切换显示按钮
|
//执行切换显示按钮
|
||||||
@ -502,7 +501,6 @@
|
|||||||
}
|
}
|
||||||
$("#upfile").on('click',openUpFile);//附件上传页面
|
$("#upfile").on('click',openUpFile);//附件上传页面
|
||||||
if(processOutput) { // 导出流程手册菜单控制
|
if(processOutput) { // 导出流程手册菜单控制
|
||||||
// debugger;
|
|
||||||
if (methodId == 'data.form') {
|
if (methodId == 'data.form') {
|
||||||
$('#export_report').text('导出表单手册');
|
$('#export_report').text('导出表单手册');
|
||||||
} else if (methodId == 'control.policy') {
|
} else if (methodId == 'control.policy') {
|
||||||
@ -546,17 +544,24 @@
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
url: "./jd?sid=" + sid + "&cmd=com.awspaas.user.apps.output.template.getCoverTpl",
|
url: "./jd?sid=" + sid + "&cmd=com.awspaas.user.apps.output.template.getCoverTpl",
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
|
data: {
|
||||||
|
palId: ruuid
|
||||||
|
},
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
debugger;
|
debugger;
|
||||||
console.log(data);
|
console.log(data);
|
||||||
var opt = {
|
//如果defaultJson不为空增加赋默认值的逻辑
|
||||||
width : 100,
|
//如果defaultJson不为空增加赋默认值的逻辑
|
||||||
data : data
|
var defaultJson = data.data.defaultJson;
|
||||||
};
|
if (defaultJson!== null && defaultJson !== undefined){
|
||||||
|
$("#tpl_list").attr("value",defaultJson.id);
|
||||||
|
$("#tpl_list").text("文件封面:"+defaultJson.text);
|
||||||
|
}
|
||||||
|
|
||||||
$("#tpl_list").popBox({
|
$("#tpl_list").popBox({
|
||||||
cache:false,
|
cache:false,
|
||||||
title:'请选择模版',
|
title:'请选择模版',
|
||||||
content: initContentHtml(data),
|
content: initContentHtml(data.data.list),
|
||||||
position:'bottom-left',
|
position:'bottom-left',
|
||||||
callback:function(item){
|
callback:function(item){
|
||||||
debugger;
|
debugger;
|
||||||
@ -576,7 +581,7 @@
|
|||||||
},
|
},
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$("#tpl_list").attr("value",$(historyRadioBoxArr[0]).attr("id"));
|
$("#tpl_list").attr("value",$(historyRadioBoxArr[0]).attr("id"));
|
||||||
$("#tpl_list").text("封皮模版:"+$(historyRadioBoxArr[0]).attr("showText"));
|
$("#tpl_list").text("文件封面:"+$(historyRadioBoxArr[0]).attr("showText"));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -614,7 +619,6 @@
|
|||||||
|
|
||||||
|
|
||||||
function isGetHidden(){
|
function isGetHidden(){
|
||||||
debugger;
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "./jd?sid=" + sid + "&cmd=com.actionsoft.apps.bpa.IsHidden_Modeling_Guidance",
|
url: "./jd?sid=" + sid + "&cmd=com.actionsoft.apps.bpa.IsHidden_Modeling_Guidance",
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
@ -891,7 +895,6 @@
|
|||||||
}
|
}
|
||||||
async function switchWpsDisplay(flag){
|
async function switchWpsDisplay(flag){
|
||||||
if(flag){//显示wps页面,隐藏其余页面
|
if(flag){//显示wps页面,隐藏其余页面
|
||||||
debugger;
|
|
||||||
$("#wpsPage").css('display','block');
|
$("#wpsPage").css('display','block');
|
||||||
$("#wpsPage").height($('#designer_viewport').height());
|
$("#wpsPage").height($('#designer_viewport').height());
|
||||||
$("#shape_panel").css('display','none');
|
$("#shape_panel").css('display','none');
|
||||||
@ -929,7 +932,6 @@
|
|||||||
//保存wps内容
|
//保存wps内容
|
||||||
async function saveWps() {
|
async function saveWps() {
|
||||||
try {
|
try {
|
||||||
debugger;
|
|
||||||
await jssdk.ready();
|
await jssdk.ready();
|
||||||
await jssdk.save();
|
await jssdk.save();
|
||||||
}catch (e) {
|
}catch (e) {
|
||||||
@ -938,7 +940,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function openWpsUrl(){
|
function openWpsUrl(){
|
||||||
debugger;
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "./jd?sid=" + sid + "&cmd=com.awspaas.user.apps.yiliwps.previewUrl&palId=" + ruuid +"&fileName="+updatedPolicyFileList,
|
url: "./jd?sid=" + sid + "&cmd=com.awspaas.user.apps.yiliwps.previewUrl&palId=" + ruuid +"&fileName="+updatedPolicyFileList,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
@ -1034,7 +1035,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<div id="saving_tip"></div>
|
<div id="saving_tip"></div>
|
||||||
<div id="tpl_list" value="" style="display:inline-block; float: left;margin-left: 10px;line-height: 28px;">
|
<div id="tpl_list" value="" style="display:inline-block; float: left;margin-left: 10px;line-height: 28px;">
|
||||||
封皮模版:默认
|
文件封面:默认
|
||||||
</div>
|
</div>
|
||||||
<!-- 倒计时显示 -->
|
<!-- 倒计时显示 -->
|
||||||
<div id="autoSave_countdown"></div>
|
<div id="autoSave_countdown"></div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user