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