elrate.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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.readonly}}:</td>
  14. <td class="editTableValue">
  15. <input type="radio" name="isReadonly" value="true" text{($.isReadonly)?'checked':''}/>{{$.lp.yes}}
  16. <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>{{$.lp.no}}
  17. </td>
  18. </tr>
  19. <tr>
  20. <td class="editTableTitle">{{$.lp.disabled}}:</td>
  21. <td class="editTableValue">
  22. <input type="radio" name="disabled" value="true" text{($.disabled)?'checked':''}/>{{$.lp.yes}}
  23. <input type="radio" name="disabled" value="false" text{(!$.disabled)?'checked':''}/>{{$.lp.no}}
  24. </td>
  25. </tr>
  26. </table>
  27. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  28. <tr>
  29. <td class="editTableValue"><b>{{$.lp.allowHalf}}:</b></td>
  30. <td>
  31. <input type="radio" name="allowHalf" value="true" text{($.allowHalf===true)?'checked':''}/>{{$.lp.yes}}
  32. <input type="radio" name="allowHalf" value="false" text{($.allowHalf!==true)?'checked':''}/>{{$.lp.no}}
  33. </td>
  34. </tr>
  35. <tr>
  36. <td class="editTableTitle">{{$.lp.max}}:</td>
  37. <td class="editTableValue"><input type="number" name="max" value="text{$.max}" class="editTableInput"/></td>
  38. </tr>
  39. <tr>
  40. <td class="editTableTitle">{{$.lp.lowThreshold}}:</td>
  41. <td class="editTableValue">
  42. <div style="color:#999;">{{$.lp.lowThresholdNote}}</div>
  43. <input type="number" name="lowThreshold" value="text{$.lowThreshold}" class="editTableInput"/>
  44. </td>
  45. </tr>
  46. <tr>
  47. <td class="editTableTitle">{{$.lp.highThreshold}}:</td>
  48. <td class="editTableValue">
  49. <div style="color:#999;">{{$.lp.highThresholdNote}}</div>
  50. <input type="number" name="highThreshold" value="text{$.highThreshold}" class="editTableInput"/>
  51. </td>
  52. </tr>
  53. <tr>
  54. <td class="editTableTitle">{{$.lp.lowColor}}:</td>
  55. <td class="editTableValue">
  56. <div class="o2_vue MWFElementColor" name="lowColor"><el-color-picker v-model="lowColor" @change="change" size="mini" style="box-sizing: border-box!important;"></el-color-picker></div>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td class="editTableTitle">{{$.lp.mediumColor}}:</td>
  61. <td class="editTableValue">
  62. <div class="o2_vue MWFElementColor" name="mediumColor"><el-color-picker v-model="mediumColor" @change="change" size="mini" style="box-sizing: border-box!important;"></el-color-picker></div>
  63. </td>
  64. </tr>
  65. <tr>
  66. <td class="editTableTitle">{{$.lp.highColor}}:</td>
  67. <td class="editTableValue">
  68. <div class="o2_vue MWFElementColor" name="highColor"><el-color-picker v-model="highColor" @change="change" size="mini" style="box-sizing: border-box!important;"></el-color-picker></div>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td class="editTableTitle">{{$.lp.voidColor}}:</td>
  73. <td class="editTableValue">
  74. <div class="o2_vue MWFElementColor" name="voidColor"><el-color-picker v-model="voidColor" @change="change" size="mini" style="box-sizing: border-box!important;"></el-color-picker></div>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td class="editTableTitle">{{$.lp.disabledVoidColor}}:</td>
  79. <td class="editTableValue">
  80. <div class="o2_vue MWFElementColor" name="disabledVoidColor"><el-color-picker v-model="disabledVoidColor" @change="change" size="mini" style="box-sizing: border-box!important;"></el-color-picker></div>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td class="editTableTitle">{{$.lp.showAfter}}:</td>
  85. <td class="editTableValue">
  86. <input type="radio" name="showAfter" value="none" text{(!$.allowHalf || $.showAfter==='none')?'checked':''}
  87. onclick="if (this.checked){
  88. $('text{$.pid}showAfterDiv').setStyle('display', 'none');
  89. }"/>{{$.lp.none}}
  90. <input type="radio" name="showAfter" value="text" text{($.showAfter==='text')?'checked':''}
  91. onclick="if (this.checked){
  92. $('text{$.pid}showAfterDiv').setStyle('display', '');
  93. $('text{$.pid}textTable').setStyle('display', '');
  94. }"/>{{$.lp.showText}}
  95. <input type="radio" name="showAfter" value="score" text{($.showAfter==='score')?'checked':''}
  96. onclick="if (this.checked){
  97. $('text{$.pid}showAfterDiv').setStyle('display', '');
  98. $('text{$.pid}textTable').setStyle('display', 'none');
  99. }"/>{{$.lp.showScore}}
  100. </td>
  101. </tr>
  102. </table>
  103. <div id="text{$.pid}showAfterDiv" style="display: text{(!$.showAfter || $.showAfter==='none') ? 'none':''};">
  104. <table>
  105. <tr>
  106. <td class="editTableTitle">{{$.lp.textColor}}:</td>
  107. <td class="editTableValue">
  108. <div class="o2_vue MWFElementColor" name="textColor"><el-color-picker v-model="textColor" @change="change" size="mini" style="box-sizing: border-box!important;"></el-color-picker></div>
  109. </td>
  110. </tr>
  111. </table>
  112. <table id="text{$.pid}textTable" style="display: text{($.showAfter==='text') ? '':'none'};">
  113. <tr>
  114. <td class="editTableTitle">{{$.lp.textContent}}:</td>
  115. <td class="editTableValue">
  116. <input type="text" name="texts" value="text{$.texts}" class="editTableInput"/>
  117. </td>
  118. </tr>
  119. </table>
  120. </div>
  121. <div class="MWFMaplist" name="elStyles" title="{{$.lp.style}}"></div>
  122. <div class="MWFMaplist" name="elProperties" title="{{$.lp.attribute}}"></div>
  123. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  124. <tr>
  125. <td class="editTableTitle">{{$.lp.compute}}:</td>
  126. <td class="editTableValue">
  127. <input type="radio" name="compute" value="create" text{(!$.compute || $.compute=='create')?'checked':''}/>{{$.lp.create}}
  128. <input type="radio" name="compute" value="save" text{($.compute=='save')?'checked':''}/>{{$.lp.save}}
  129. <input type="radio" name="compute" value="show" text{($.compute=='show')?'checked':''}/>{{$.lp.show}}
  130. </td>
  131. </tr>
  132. </table>
  133. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  134. <div class="MWFValidation" name="validationConfig"></div>
  135. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  136. </div>
  137. <div title="Vue" class="MWFTab">
  138. <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>
  139. <div style="display: text{($.vueData && $.vueData.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueData" title="Vue Data (S)"></div>
  140. <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>
  141. <div div style="display: text{($.vueMethods && $.vueMethods.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueMethods" title="Vue Methods (S)"></div>
  142. <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>
  143. <div div style="display: text{($.vueCss && $.vueCss.code) ? 'block': 'none'}" class="MWFCssArea" name="vueCss" title="Vue Css (S)"></div>
  144. <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 Slots</div>
  145. <div style="display: text{($.vueSlot) ? 'block' : 'none'}">
  146. <div class="MWFHtmlEditorArea" name="vueSlot" title="Input Slot (HTML)"></div>
  147. </div>
  148. </div>
  149. <div title="{{$.lp.section}}" class="MWFTab">
  150. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  151. <tr>
  152. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  153. <td class="editTableValue">
  154. <input onclick="if (this.checked){
  155. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  156. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  157. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  158. <input onclick="if (this.checked){
  159. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  160. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  161. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  162. </td>
  163. </tr>
  164. </table>
  165. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  166. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  167. <tr>
  168. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  169. <td class="editTableValue">
  170. <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/>
  171. <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/>
  172. <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/>
  173. <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/>
  174. <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/>
  175. </td>
  176. </tr>
  177. </table>
  178. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  179. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  180. </div>
  181. </div>
  182. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  183. </div>
  184. <div title="{{$.lp.event}}" class="MWFTab">
  185. <div class="MWFEventsArea" name="events"></div>
  186. </div>
  187. <div title="HTML" class="MWFTab">
  188. <div class="MWFHTMLArea" style="width:100%; height:400px; border:0px;font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  189. </div>
  190. <div title="JSON" class="MWFTab">
  191. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  192. </div>
  193. </div>