elswitch.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <div style="background-color: #FFF; overflow: hidden">
  2. <div title="{{$.lp.base}}" class="MWFTab">
  3. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  4. <tr>
  5. <td class="editTableTitle">{{$.lp.id}}:</td>
  6. <td class="editTableValue"><input type="text" name="id" value="text{$.id}" class="editTableInput"/></td>
  7. </tr>
  8. <tr>
  9. <td class="editTableTitle">{{$.lp.name}}:</td>
  10. <td class="editTableValue"><input type="text" name="name" value="text{$.name}" class="editTableInput"/></td>
  11. </tr>
  12. <tr>
  13. <td class="editTableTitle">{{$.lp.description}}:</td>
  14. <td class="editTableValue"><input type="text" name="description" value="text{$.description}" class="editTableInput"/></td>
  15. </tr>
  16. <tr>
  17. <td class="editTableTitle">{{$.lp.readonly}}:</td>
  18. <td class="editTableValue">
  19. <input type="radio" name="isReadonly" value="true" text{($.isReadonly)?'checked':''}/>{{$.lp.yes}}
  20. <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>{{$.lp.no}}
  21. </td>
  22. </tr>
  23. <tr>
  24. <td class="editTableTitle">{{$.lp.el_disabled}}:</td>
  25. <td class="editTableValue">
  26. <input type="radio" name="disabled" value="true" text{($.disabled)?'checked':''}/>{{$.lp.yes}}
  27. <input type="radio" name="disabled" value="false" text{(!$.disabled)?'checked':''}/>{{$.lp.no}}
  28. </td>
  29. </tr>
  30. </table>
  31. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  32. <tr>
  33. <td class="editTableTitle">{{$.lp.width}}:</td>
  34. <td class="editTableValue"><input type="number" name="width" value="text{$.width||40}" class="editTableInput"/></td>
  35. </tr>
  36. <tr>
  37. <td class="editTableTitle">{{$.lp.activeText}}:</td>
  38. <td class="editTableValue"><input type="text" name="activeText" value="text{$.activeText}" class="editTableInput"/></td>
  39. </tr>
  40. <tr>
  41. <td class="editTableTitle">{{$.lp.inactiveText}}:</td>
  42. <td class="editTableValue"><input type="text" name="inactiveText" value="text{$.inactiveText}" class="editTableInput"/></td>
  43. </tr>
  44. <tr>
  45. <td class="editTableTitle">{{$.lp.activeColor}}:</td>
  46. <td class="editTableValue">
  47. <div class="o2_vue MWFElementColor" name="activeColor"><el-color-picker v-model="activeColor" @change="change" size="mini"></el-color-picker></div>
  48. </td>
  49. </tr>
  50. <tr>
  51. <td class="editTableTitle">{{$.lp.inactiveColor}}:</td>
  52. <td class="editTableValue">
  53. <div class="o2_vue MWFElementColor" name="inactiveColor"><el-color-picker v-model="inactiveColor" @change="change" size="mini"></el-color-picker></div>
  54. </td>
  55. </tr>
  56. </table>
  57. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  58. <tr>
  59. <td class="editTableTitle">{{$.lp.valueType}}:</td>
  60. <td class="editTableValue">
  61. <input type="radio" onclick="if (this.checked) this.getParent('table').getNext().hide();" name="valueType" value="boolean" text{(!$.valueType || $.valueType=='boolean')?'checked':''}/>boolean
  62. <input type="radio" onclick="if (this.checked) this.getParent('table').getNext().show();" name="valueType" value="string" text{($.valueType=='string')?'checked':''}/>string
  63. <input type="radio" onclick="if (this.checked) this.getParent('table').getNext().show();" name="valueType" value="number" text{($.valueType=='number')?'checked':''}/>number
  64. </td>
  65. </tr>
  66. </table>
  67. <div style="display: text{($.valueType=='string' || $.valueType=='number')?'block':'none'}">
  68. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  69. <tr>
  70. <td class="editTableTitle">{{$.lp.activeValue}}:</td>
  71. <td class="editTableValue">
  72. <input type="text" name="activeValue" value="text{$.activeValue}" class="editTableInput"/>
  73. </td>
  74. </tr>
  75. <tr>
  76. <td class="editTableTitle">{{$.lp.inactiveValue}}:</td>
  77. <td class="editTableValue">
  78. <input type="text" name="inactiveValue" value="text{$.inactiveValue}" class="editTableInput"/>
  79. </td>
  80. </tr>
  81. </table>
  82. </div>
  83. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;font-weight:bold;">{{$.lp.activeIconClass}}</div>
  84. <div style="display: text{($.prefixIcon)?'block':'none'}" class="MWFElIcon" name="activeIconClass"></div>
  85. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;font-weight:bold;">{{$.lp.inactiveIconClass}}</div>
  86. <div style="display: text{($.suffixIcon)?'block':'none'}" class="MWFElIcon" name="inactiveIconClass"></div>
  87. <div class="MWFMaplist" name="elStyles" title="{{$.lp.style}}"></div>
  88. <div class="MWFMaplist" name="elProperties" title="{{$.lp.attribute}}"></div>
  89. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  90. <tr>
  91. <td class="editTableTitle">{{$.lp.compute}}:</td>
  92. <td class="editTableValue">
  93. <input type="radio" name="compute" value="create" text{(!$.compute || $.compute=='create')?'checked':''}/>{{$.lp.create}}
  94. <input type="radio" name="compute" value="save" text{($.compute=='save')?'checked':''}/>{{$.lp.save}}
  95. <input type="radio" name="compute" value="show" text{($.compute=='show')?'checked':''}/>{{$.lp.show}}
  96. </td>
  97. </tr>
  98. </table>
  99. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  100. <div class="MWFValidation" name="validationConfig"></div>
  101. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  102. </div>
  103. <div title="Vue" class="MWFTab">
  104. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue Data</div>
  105. <div style="display: text{($.vueData && $.vueData.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueData" title="Vue Data (S)"></div>
  106. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue Method</div>
  107. <div div style="display: text{($.vueMethods && $.vueMethods.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueMethods" title="Vue Methods (S)"></div>
  108. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue CSS</div>
  109. <div div style="display: text{($.vueCss && $.vueCss.code) ? 'block': 'none'}" class="MWFCssArea" name="vueCss" title="Vue Css (S)"></div>
  110. </div>
  111. <div title="{{$.lp.section}}" class="MWFTab">
  112. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  113. <tr>
  114. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  115. <td class="editTableValue">
  116. <input onclick="if (this.checked){
  117. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  118. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  119. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  120. <input onclick="if (this.checked){
  121. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  122. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  123. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  124. </td>
  125. </tr>
  126. </table>
  127. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  128. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  129. <tr>
  130. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  131. <td class="editTableValue">
  132. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{(($.sectionBy=='person') || ($.sectionBy!='unit' && $.sectionBy!='activity' && $.sectionBy!='script'))?'checked':''} type="radio" value="person"/>{{$.lp.handler}}<br/>
  133. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='unit')?'checked':''} type="radio" value="unit"/>{{$.lp.handlerUnit}}<br/>
  134. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='activity')?'checked':''} type="radio" value="activity"/>{{$.lp.activityId}}<br/>
  135. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='splitValue')?'checked':''} type="radio" value="splitValue"/>{{$.lp.splitValue}}<br/>
  136. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'block');}" name="sectionBy" text{($.sectionBy=='script')?'checked':''} type="radio" value="script"/>{{$.lp.script}}<br/>
  137. </td>
  138. </tr>
  139. </table>
  140. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  141. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  142. </div>
  143. </div>
  144. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  145. </div>
  146. <div title="{{$.lp.event}}" class="MWFTab">
  147. <div class="MWFEventsArea" name="events"></div>
  148. </div>
  149. <div title="HTML" class="MWFTab">
  150. <div class="MWFHTMLArea" style="width:100%; height:400px; border:0px;font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  151. </div>
  152. <div title="JSON" class="MWFTab">
  153. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  154. </div>
  155. </div>