|
@@ -1,21 +1,21 @@
|
|
|
<@w.workFlow javascripts=['/FlowContract/js/apply.js','/flow/js/formCommon.js']
|
|
|
styles=[ '/flow/css/formCommon.css' ]>
|
|
|
- <div class="z-position form-boss" name="flow-form">
|
|
|
+ <div class="z-position form-boss ow-tab" name="flow-form">
|
|
|
<div class="oa_tabBox">
|
|
|
<ul class="z-tab-bar">
|
|
|
- <li z-tabindex="0" class="on"><a href="#test1">基础信息A</a></li>
|
|
|
- <li z-tabindex="1"><a href="#test2">基础信息B</a></li>
|
|
|
+ <li z-tabindex="0" class="ow-tab-item on" data-name="test1">基础信息A</li>
|
|
|
+ <li z-tabindex="1" class="ow-tab-item" data-name="test2">基础信息B</li>
|
|
|
<#if WORKFLOW.MATERIALS! != "">
|
|
|
- <li z-tabindex="2"><a>收件材料</a></li>
|
|
|
+ <li z-tabindex="2">收件材料</li>
|
|
|
</#if>
|
|
|
<#if WORKFLOW.OPINION! != "">
|
|
|
- <li z-tabindex="3"><a>意见内容</a></li>
|
|
|
+ <li z-tabindex="3">意见内容</li>
|
|
|
</#if>
|
|
|
</ul>
|
|
|
</div>
|
|
|
|
|
|
- <div class="z-tab-scroll">
|
|
|
- <div class="z-tab-content on" id="test1">
|
|
|
+ <div class="ow-tab-scroll">
|
|
|
+ <div class="ow-tab-content" name="test1">
|
|
|
<div class="z-form-row" style="display: none;">
|
|
|
<input type="text" value="${formEntity.instanceId!}" name="contract$instanceId">
|
|
|
<input type="text" value="${formEntity.id!}" name="contract$id">
|
|
@@ -677,7 +677,7 @@ styles=[ '/flow/css/formCommon.css' ]>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="z-tab-content on" id="test2">
|
|
|
+ <div class="ow-tab-content" name="test2">
|
|
|
<div class="z-form-row" style="display: none;">
|
|
|
<input type="text" value="${formEntity.instanceId!}" name="contract$instanceId">
|
|
|
<input type="text" value="${formEntity.id!}" name="contract$id">
|
|
@@ -1243,29 +1243,6 @@ styles=[ '/flow/css/formCommon.css' ]>
|
|
|
</#if>
|
|
|
</div>
|
|
|
<style type="text/css">
|
|
|
- .oa_tabBox {
|
|
|
- border-bottom: 2px solid #E1E9F5;
|
|
|
- }
|
|
|
- .oa_tabBox>.z-tab-bar {
|
|
|
- border-bottom: 0px;
|
|
|
- }
|
|
|
- .oa_tabBox>.z-tab-bar .on {
|
|
|
- border-bottom: 0px;
|
|
|
- }
|
|
|
- .oa_tabBox>.z-tab-bar a {
|
|
|
- font-size: 18px;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
- .oa_tabBox>.z-tab-bar .on>a {
|
|
|
- border-bottom: 3px solid #2E77E6;
|
|
|
- color: #2E77E6;
|
|
|
- }
|
|
|
- .z-tab-scroll {
|
|
|
- padding: 15px;
|
|
|
- border: 1px solid #f00;
|
|
|
- height: 400px;
|
|
|
- overflow-y: auto;
|
|
|
- }
|
|
|
.jbxx-box-flex .th {
|
|
|
width: 160px !important;
|
|
|
}
|
|
@@ -1280,4 +1257,35 @@ styles=[ '/flow/css/formCommon.css' ]>
|
|
|
flex: 1;
|
|
|
}
|
|
|
</style>
|
|
|
+ <script language="javascript">
|
|
|
+ ;(function(_g){
|
|
|
+ function TabScroll(){
|
|
|
+ if(!$) throw new Error("$未定义,请先引入jQuery库!");
|
|
|
+ $(".ow-tab-content").hide(0);
|
|
|
+ var dataName = $(".ow-tab-item").removeClass('on').eq(0).addClass("on").attr("data-name")
|
|
|
+ $("[name='"+dataName+"']").show();
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+ TabScroll.prototype = {
|
|
|
+ init: function(handle){
|
|
|
+ $(".ow-tab-item").click(function(){
|
|
|
+ $(".ow-tab-item").removeClass('on')
|
|
|
+ var dataName = $(this).addClass("on").attr('data-name');
|
|
|
+ $(".ow-tab-content").hide(0);
|
|
|
+ $("[name='"+dataName+"']").show();
|
|
|
+ if(handle){
|
|
|
+ handle($(this))
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ _g.tabScroll = TabScroll;
|
|
|
+ })(window);
|
|
|
+ setTimeout(function(){
|
|
|
+
|
|
|
+ new tabScroll().init(function(dom){
|
|
|
+ console.log(dom)
|
|
|
+ })
|
|
|
+ }, 4000)
|
|
|
+ </script>
|
|
|
</@w.workFlow>
|