apps/com.actionsoft.apps.coe.pal/template/page/pal.ws.import.htm
2022-06-27 23:38:56 +08:00

99 lines
3.8 KiB
HTML
Executable File

<!Doctype html>
<html style="background:none;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>资产库导入</title>
<!--coe css -->
<link href="../commons/css/awsui.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="../<I18N#COEPATH>/css/public.css">
<script type="text/javascript" src="../commons/js/jquery/scripts/jquery.js"></script>
<script type="text/javascript" src="../commons/js/awsui.js"></script>
<script type="text/javascript" src="../commons/js/jquery/scripts/ui/aws.util.js"></script>
</head>
<body style="overflow-x:hidden;background:none;">
<div class="team_create_content">
<table class="awsui-ux" cellpadding="3px" style="margin-bottom:-20px;">
<tbody>
<tr id="wayTr" style="display:block;">
<td width="15%">文件来源</td>
<td width="70%" id="fileSource">
<input class="awsui-radio" checked="checked" name="wayrio" id="wayrio1" value="local" type="radio""/>
<label class="awsui-radio-label" for="wayrio1">本地文件上传</label>
<input class="awsui-radio" name="wayrio" id="wayrio2" value="remote" type="radio"" />
<label class="awsui-radio-label" for="wayrio2">服务器文件上传</label>
</td>
<td></td>
</tr>
</tbody>
</table>
<!-- 本地文件上传 -->
<table class="awsui-ux" cellpadding="3px" id="localUpload">
<tbody>
<tr>
<td width="15%">文件</td>
<td width="57%">
<input class="awsui-textbox" type="text" name="wsFileName" disabled="disabled" value="" id="wsFileName" >
</td>
<td>
<span style="cursor:pointer;margin-left:20px;" id="uploadButton" class="button green">上传</span>
</td>
</tr>
</tbody>
</table>
<!-- 服务器文件上传 -->
<table class="awsui-ux" cellpadding="3px" id="remoteUpload" style="display:none;">
<tbody>
<tr>
<td width="15%">文件</td>
<td width="80%">
<select id="selectRemote"></select>
</td>
<td>
</td>
</tr>
</tbody>
</table>
<div id="replaceDiv" style="margin-left:20px;display:none;"><span style="background-color: #FCFDD9;">导入的流程资产在资产库中已经存在,请选择遇到相同文件时采取的策略</span></div>
<!-- 本地文件选项 -->
<table id="replaceTr" class="awsui-ux" cellpadding="3px" style="display:none;">
<tbody>
<tr>
<td width="15%">请选择</td>
<td width="40%">
<input class="awsui-radio" checked="checked" name="radiox1" id="rdo1" value="replace" type="radio" />
<label class="awsui-radio-label" for="rdo1">替换</label>
<input class="awsui-radio" name="radiox1" id="rdo2" value="skip" type="radio" />
<label class="awsui-radio-label" for="rdo2">跳过</label>
</td>
<td></td>
</tr>
</tbody>
</table>
<!-- 服务器文件选项 -->
<table id="rm_replaceTr" class="awsui-ux" cellpadding="3px" style="display:none;">
<tbody>
<tr>
<td width="15%">请选择</td>
<td width="40%">
<input class="awsui-radio" checked="checked" name="rm_radiox1" id="rm_rdo1" value="replace" type="radio" />
<label class="awsui-radio-label" for="rm_rdo1">替换</label>
<input class="awsui-radio" name="rm_radiox1" id="rm_rdo2" value="skip" type="radio" />
<label class="awsui-radio-label" for="rm_rdo2">跳过</label>
</td>
<td></td>
</tr>
</tbody>
</table>
<input type="hidden" id="wsName" name="wsName" />
</div>
<script type="text/javascript">
var appId = "<#appId>";
var sid = "<#sid>";
var wsNameList = <#wsNameList>;
var impRepositorys = <#impRepositorys>; //服务器文件
</script>
<script type="text/javascript" src="../<I18N#COEPATH>/js/coe.ws.import.js"></script>
<script type="text/javascript" src="../<I18N#COEPATH>/js/coe.plugs.js"></script>
</body>
</html>