elautocomplete.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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.options}}:</td>
  25. <td class="editTableValue">
  26. <input class="editTableRadio" onclick="if (this.checked){
  27. $('text{$.pid}selectEditItemValues').setStyle('display', 'block');
  28. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  29. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  30. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  31. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  32. }" name="itemType" text{(!$.itemType || $.itemType==='values')?'checked':''} type="radio" value="values"/>{{$.lp.textValue}}
  33. <input class="editTableRadio" onclick="if (this.checked){
  34. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  35. $('text{$.pid}selectEditItemScript').setStyle('display', 'block');
  36. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  37. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  38. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  39. }" name="itemType" text{($.itemType=='script')?'checked':''} type="radio" value="script"/>{{$.lp.script}}
  40. <input class="editTableRadio" onclick="if (this.checked){
  41. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  42. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  43. $('text{$.pid}selectEditItemDict').setStyle('display', 'block');
  44. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  45. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  46. }" name="itemType" text{($.itemType=='dict')?'checked':''} type="radio" value="dict"/>{{$.lp.dict}}
  47. <input class="editTableRadio" onclick="if (this.checked){
  48. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  49. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  50. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  51. $('text{$.pid}selectEditItemView').setStyle('display', 'block');
  52. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  53. }" name="itemType" text{($.itemType=='view')?'checked':''} type="radio" value="view"/>{{$.lp.view}}
  54. <input class="editTableRadio" onclick="if (this.checked){
  55. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  56. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  57. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  58. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  59. $('text{$.pid}selectEditItemStatement').setStyle('display', 'block');
  60. }" name="itemType" text{($.itemType=='statement')?'checked':''} type="radio" value="statement"/>{{$.lp.statement}}
  61. </td>
  62. </tr>
  63. </table>
  64. <div id="text{$.pid}selectEditItemValues" style="display: text{(!$.itemType || $.itemType=='values')?'block':'none'}" class="MWFArraylist" name="itemValues" title="{{$.lp.options}}"></div>
  65. <div id="text{$.pid}selectEditItemScript" style="display: text{($.itemType=='script')?'block':'none'}; border-bottom: 1px solid #cccccc">
  66. <div class="MWFScriptArea" name="itemScript" title="{{$.lp.optionScript}} (S)"></div>
  67. <div style="padding: 5px">{{$.lp.itemScriptInfo}}</div>
  68. <div style="padding: 5px">
  69. <div>return function(queryString, callback){</div>
  70. <div><span>&nbsp;&nbsp;&nbsp;&nbsp;</span>var list = [{"value": "value1"},{"value": "value2"},{"value": "value3"}];</div>
  71. <div><span>&nbsp;&nbsp;&nbsp;&nbsp;</span>callback(list);</div>
  72. <div>}</div>
  73. </div>
  74. </div>
  75. <div id="text{$.pid}selectEditItemDict" style="display: text{($.itemType=='dict')?'block':'none'}" class="MWFDictionaryItemContainer">
  76. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  77. <tr>
  78. <td class="editTableTitle">{{$.lp.dict}}:</td>
  79. <td class="editTableValue">
  80. <div class="MWFDictionaryNode" data-count=1 name="itemDict"></div>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td class="editTableTitle">{{$.lp.dictPath}}:</td>
  85. <td class="editTableValue">
  86. <div class="MWFDictionaryItemNode" name="itemDictPath" data-dict="itemDict" title="{{$.lp.dict}}{{$.lp.dictPath}}"></div>
  87. </td>
  88. </tr>
  89. <tr>
  90. <td class="editTableValue" colspan="2">{{$.lp.dictKeyNote}}:</td>
  91. </tr>
  92. <tr>
  93. <td class="editTableTitle">{{$.lp.textKey}}:</td>
  94. <td class="editTableValue">
  95. <input type="text" name="dictTextKey" value="text{$.dictTextKey}" class="editTableInput"/>
  96. </td>
  97. </tr>
  98. </table>
  99. </div>
  100. <div id="text{$.pid}selectEditItemView" style="display: text{($.itemType=='view')?'block':'none'}" class="MWFQueryViewItemContainer">
  101. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  102. <tr>
  103. <td class="editTableTitle">{{$.lp.view}}:</td>
  104. <td class="editTableValue">
  105. <div class="MWFQueryViewNode" data-count=1 name="itemView"></div>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td class="editTableTitle">{{$.lp.textColumn}}:</td>
  110. <td class="editTableValue">
  111. <select class="MWFViewColumnSelect" name="viewTextColumn" style="max-width: 270px;"></select>
  112. </td>
  113. </tr>
  114. </table>
  115. <div style="background-color: #eeeeee; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
  116. <div class="MWFViewFilterWithTemplate"></div>
  117. </div>
  118. <div id="text{$.pid}selectEditItemStatement" style="display: text{($.itemType=='statement')?'block':'none'}" class="MWFQueryStatementItemContainer">
  119. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  120. <tr>
  121. <td class="editTableTitle">{{$.lp.statement}}:</td>
  122. <td class="editTableValue">
  123. <div class="MWFQueryStatementNode" data-count=1 name="itemStatement"></div>
  124. </td>
  125. </tr>
  126. <tr>
  127. <td class="editTableTitle">{{$.lp.textColumn}}:</td>
  128. <td class="editTableValue">
  129. <select class="MWFStatementItemSelect" name="statementTextColumn" style="max-width: 270px;"></select>
  130. </td>
  131. </tr>
  132. </table>
  133. <div style="background-color: #eeeeee; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
  134. <div class="MWFStatementFilterWithTemplate" data-statement="itemStatement"></div>
  135. </div>
  136. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  137. <tr>
  138. <td class="editTableTitle">{{$.lp.el_placement}}:</td>
  139. <td class="editTableValue">
  140. <div style="width: 140px; float: left"><input type="radio" name="placement" value="top" text{($.placement=='top')?'checked':''}/>top</div>
  141. <div style="width: 140px; float: left"><input type="radio" name="placement" value="top-start" text{($.placement=='top-start')?'checked':''}/>top-start</div>
  142. <div style="width: 140px; float: left"><input type="radio" name="placement" value="top-end" text{($.placement=='top-end')?'checked':''}/>top-end</div>
  143. <div style="width: 140px; float: left"><input type="radio" name="placement" value="bottom" text{($.placement=='bottom')?'checked':''}/>bottom</div>
  144. <div style="width: 140px; float: left"><input type="radio" name="placement" value="bottom-start" text{(!$.placement || $.placement=='bottom-start')?'checked':''}/>bottom-start</div>
  145. <div style="width: 140px; float: left"><input type="radio" name="placement" value="bottom-end" text{($.placement=='bottom-end')?'checked':''}/>bottom-end</div>
  146. <!-- <div style="width: 140px; float: left"><input type="radio" name="inputType" value="search" text{($.inputType=='search')?'checked':''}/>{{$.lp.search}}(search)</div>-->
  147. <!-- <div style="width: 140px; float: left"><input type="radio" name="inputType" value="color" text{($.inputType=='color')?'checked':''}/>{{$.lp.color}}(color)</div>-->
  148. <!-- <div style="width: 140px; float: left"><input type="radio" name="inputType" value="email" text{($.inputType=='email')?'checked':''}/>{{$.lp.email}}(email)</div>-->
  149. <!-- <div style="width: 140px; float: left"><input type="radio" name="inputType" value="date" text{($.inputType=='date')?'checked':''}/>{{$.lp.date}}(date)</div>-->
  150. <!-- <div style="width: 140px; float: left"><input type="radio" name="inputType" value="month" text{($.inputType=='month')?'checked':''}/>{{$.lp.month}}(month)</div>-->
  151. <!-- <div style="width: 140px; float: left"><input type="radio" name="inputType" value="time" text{($.inputType=='time')?'checked':''}/>{{$.lp.time}}(time)</div>-->
  152. <!-- <div style="width: 140px; float: left"><input type="radio" name="inputType" value="datetime-local" text{($.inputType=='datetime-local')?'checked':''}/>{{$.lp["datetime-local"]}}(datetime-local)</div>-->
  153. <!-- <div style="width: 140px; float: left"><input type="radio" name="inputType" value="week" text{($.inputType=='week')?'checked':''}/>{{$.lp.week}}(week)</div>-->
  154. </td>
  155. </tr>
  156. <tr>
  157. <td class="editTableTitle">{{$.lp.size}}:</td>
  158. <td class="editTableValue">
  159. <input type="radio" name="size" value="default" text{(!$.size || $.size==='default')?'checked':''}/>default
  160. <input type="radio" name="size" value="medium" text{($.size==='medium')?'checked':''}/>medium
  161. <input type="radio" name="size" value="small" text{($.size==='small')?'checked':''}/>small
  162. <input type="radio" name="size" value="mini" text{($.size==='mini')?'checked':''}/>mini
  163. </td>
  164. </tr>
  165. <tr>
  166. <td class="editTableTitle">{{$.lp.popperClass}}:</td>
  167. <td class="editTableValue"><input type="text" name="popperClass" value="text{$.popperClass}" class="editTableInput"/></td>
  168. </tr>
  169. <tr>
  170. <td class="editTableValue" colspan="2"><b>{{$.lp.triggerOnFocus}}:</b>
  171. <input type="radio" name="triggerOnFocus" value="true" text{($.showWordLimit!==false)?'checked':''}/>{{$.lp.yes}}
  172. <input type="radio" name="triggerOnFocus" value="false" text{($.showWordLimit===false)?'checked':''}/>{{$.lp.no}}
  173. </td>
  174. </tr>
  175. </table>
  176. <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.prefixIcon}}</div>
  177. <div style="display: text{($.prefixIcon)?'block':'none'}" class="MWFElIcon" name="prefixIcon"></div>
  178. <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.suffixIcon}}</div>
  179. <div style="display: text{($.suffixIcon)?'block':'none'}" class="MWFElIcon" name="suffixIcon"></div>
  180. <div class="MWFMaplist" name="elStyles" title="{{$.lp.style}}"></div>
  181. <div class="MWFMaplist" name="elProperties" title="{{$.lp.attribute}}"></div>
  182. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  183. <tr>
  184. <td class="editTableTitle">{{$.lp.compute}}:</td>
  185. <td class="editTableValue">
  186. <input type="radio" name="compute" value="create" text{(!$.compute || $.compute=='create')?'checked':''}/>{{$.lp.create}}
  187. <input type="radio" name="compute" value="save" text{($.compute=='save')?'checked':''}/>{{$.lp.save}}
  188. <input type="radio" name="compute" value="show" text{($.compute=='show')?'checked':''}/>{{$.lp.show}}
  189. </td>
  190. </tr>
  191. </table>
  192. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  193. <div class="MWFValidation" name="validationConfig"></div>
  194. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  195. </div>
  196. <div title="Vue" class="MWFTab">
  197. <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>
  198. <div style="display: text{($.vueData && $.vueData.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueData" title="Vue Data (S)"></div>
  199. <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>
  200. <div div style="display: text{($.vueMethods && $.vueMethods.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueMethods" title="Vue Methods (S)"></div>
  201. <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>
  202. <div div style="display: text{($.vueCss && $.vueCss.code) ? 'block': 'none'}" class="MWFCssArea" name="vueCss" title="Vue Css (S)"></div>
  203. <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>
  204. <div style="display: text{($.vueSlot) ? 'block' : 'none'}">
  205. <div class="MWFHtmlEditorArea" name="vueSlot" title="Input Slot (HTML)"></div>
  206. </div>
  207. </div>
  208. <div title="{{$.lp.section}}" class="MWFTab">
  209. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  210. <tr>
  211. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  212. <td class="editTableValue">
  213. <input onclick="if (this.checked){
  214. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  215. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  216. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  217. <input onclick="if (this.checked){
  218. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  219. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  220. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  221. </td>
  222. </tr>
  223. </table>
  224. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  225. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  226. <tr>
  227. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  228. <td class="editTableValue">
  229. <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/>
  230. <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/>
  231. <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/>
  232. <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/>
  233. <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/>
  234. </td>
  235. </tr>
  236. </table>
  237. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  238. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  239. </div>
  240. </div>
  241. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  242. </div>
  243. <div title="{{$.lp.event}}" class="MWFTab">
  244. <div class="MWFEventsArea" name="events"></div>
  245. </div>
  246. <div title="HTML" class="MWFTab">
  247. <div class="MWFHTMLArea" style="width:100%; height:400px; border:0px;font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  248. </div>
  249. <div title="JSON" class="MWFTab">
  250. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  251. </div>
  252. </div>