elselect.html 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  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. <div style="text-align: center; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #ccc; border-top: 1px solid #999;font-weight:bold;">{{$.lp.options}}</div>
  32. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  33. <tr>
  34. <td class="editTableTitle">{{$.lp.optionsGroup}}:</td>
  35. <td class="editTableValue">
  36. <input class="editTableRadio" onclick="if (this.checked){ var node = this.getParent('table').getNext(); node.hide(); node.getNext().show();}" name="itemsGroup" text{($.itemsGroup===true)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
  37. <input class="editTableRadio" onclick="if (this.checked){ var node = this.getParent('table').getNext(); node.show(); node.getNext().hide();}" name="itemsGroup" text{($.itemsGroup!==true)?'checked':''} type="radio" value="false"/>{{$.lp.no}}
  38. </td>
  39. </tr>
  40. </table>
  41. <div style="display: text{($.itemsGroup===true) ? 'none' : 'block'}">
  42. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  43. <tr>
  44. <td class="editTableTitle">{{$.lp.options}}:</td>
  45. <td class="editTableValue">
  46. <input class="editTableRadio" onclick="if (this.checked){
  47. $('text{$.pid}selectEditItemValues').setStyle('display', 'block');
  48. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  49. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  50. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  51. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  52. $('text{$.pid}selectFirstOption').setStyle('display', 'none');
  53. }" name="itemType" text{(!$.itemType || $.itemType=='values')?'checked':''} type="radio" value="values"/>{{$.lp.textValue}}
  54. <input class="editTableRadio" onclick="if (this.checked){
  55. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  56. $('text{$.pid}selectEditItemScript').setStyle('display', 'block');
  57. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  58. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  59. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  60. $('text{$.pid}selectFirstOption').setStyle('display', 'none');
  61. }" name="itemType" text{($.itemType=='script')?'checked':''} type="radio" value="script"/>{{$.lp.script}}
  62. <input class="editTableRadio" onclick="if (this.checked){
  63. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  64. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  65. $('text{$.pid}selectEditItemDict').setStyle('display', 'block');
  66. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  67. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  68. $('text{$.pid}selectFirstOption').setStyle('display', 'block');
  69. }" name="itemType" text{($.itemType=='dict')?'checked':''} type="radio" value="dict"/>{{$.lp.dict}}
  70. <input class="editTableRadio" onclick="if (this.checked){
  71. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  72. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  73. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  74. $('text{$.pid}selectEditItemView').setStyle('display', 'block');
  75. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  76. $('text{$.pid}selectFirstOption').setStyle('display', 'block');
  77. }" name="itemType" text{($.itemType=='view')?'checked':''} type="radio" value="view"/>{{$.lp.view}}
  78. <input class="editTableRadio" onclick="if (this.checked){
  79. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  80. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  81. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  82. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  83. $('text{$.pid}selectEditItemStatement').setStyle('display', 'block');
  84. $('text{$.pid}selectFirstOption').setStyle('display', 'block');
  85. }" name="itemType" text{($.itemType=='statement')?'checked':''} type="radio" value="statement"/>{{$.lp.statement}}
  86. </td>
  87. </tr>
  88. </table>
  89. <div id="text{$.pid}selectEditItemValues" style="display: text{(!$.itemType || $.itemType=='values')?'block':'none'}" class="MWFArraylist" name="itemValues" title="{{$.lp.options}}"></div>
  90. <div id="text{$.pid}selectEditItemScript" style="display: text{($.itemType=='script')?'block':'none'}; border-bottom: 1px solid #cccccc">
  91. <div class="MWFFormulaArea" name="itemScript" title="{{$.lp.optionScript}} (S)"></div>
  92. <div style="padding: 5px">{{$.lp.selectItemScriptInfo}}</div>
  93. </div>
  94. <div id="text{$.pid}selectFirstOption" style="display: text{(['dict','view','statement'].contains($.itemType))?'block':'none'}">
  95. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  96. <tr>
  97. <td class="editTableTitle">{{$.lp.firstOptionEnable}}:</td>
  98. <td class="editTableValue">
  99. <input class="editTableRadio" onclick="if (this.checked){
  100. $('text{$.pid}firstOptionTextTr').setStyle('display', '');
  101. }" name="firstOptionEnable" text{($.firstOptionEnable)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
  102. <input class="editTableRadio" onclick="if (this.checked){
  103. $('text{$.pid}firstOptionTextTr').setStyle('display', 'none');
  104. }" name="firstOptionEnable" text{(!$.firstOptionEnable)?'checked':''} type="radio" value="false"/>{{$.lp.no}}
  105. </td>
  106. </tr>
  107. <tr id="text{$.pid}firstOptionTextTr" style="display: text{($.firstOptionEnable)?'':'none'}">
  108. <td class="editTableTitle">{{$.lp.firstOption}}:</td>
  109. <td class="editTableValue"><input type="text" name="firstOption" value="text{$.firstOption}" class="editTableInput"/></td>
  110. </tr>
  111. </table>
  112. </div>
  113. <div id="text{$.pid}selectEditItemDict" style="display: text{($.itemType=='dict')?'block':'none'}" class="MWFDictionaryItemContainer">
  114. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  115. <tr>
  116. <td class="editTableTitle">{{$.lp.dict}}:</td>
  117. <td class="editTableValue">
  118. <div class="MWFDictionaryNode" data-count=1 name="itemDict"></div>
  119. </td>
  120. </tr>
  121. <tr>
  122. <td class="editTableTitle">{{$.lp.dictPath}}:</td>
  123. <td class="editTableValue">
  124. <div class="MWFDictionaryItemNode" name="itemDictPath" data-dict="itemDict" title="{{$.lp.dict}}{{$.lp.dictPath}}"></div>
  125. </td>
  126. </tr>
  127. <tr>
  128. <td class="editTableValue" colspan="2">{{$.lp.dictKeyNote}}:</td>
  129. </tr>
  130. <tr>
  131. <td class="editTableTitle">{{$.lp.valueKey}}:</td>
  132. <td class="editTableValue">
  133. <input type="text" name="dictValueKey" value="text{$.dictValueKey}" class="editTableInput"/>
  134. </td>
  135. </tr>
  136. <tr>
  137. <td class="editTableTitle">{{$.lp.textKey}}:</td>
  138. <td class="editTableValue">
  139. <input type="text" name="dictTextKey" value="text{$.dictTextKey}" class="editTableInput"/>
  140. </td>
  141. </tr>
  142. <tr>
  143. <td class="editTableTitle">{{$.lp.useCache}}:</td>
  144. <td class="editTableValue">
  145. <input type="radio" name="dictUseCache" value="true" text{($.dictUseCache!==false)?'checked':''}/>{{$.lp.yes}}
  146. <input type="radio" name="dictUseCache" value="false" text{($.dictUseCache===false)?'checked':''}/>{{$.lp.no}}
  147. <div style="color:#999;">{{$.lp.useCacheNote}}</div>
  148. </td>
  149. </tr>
  150. </table>
  151. </div>
  152. <div id="text{$.pid}selectEditItemView" style="display: text{($.itemType=='view')?'block':'none'}" class="MWFQueryViewItemContainer">
  153. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  154. <tr>
  155. <td class="editTableTitle">{{$.lp.view}}:</td>
  156. <td class="editTableValue">
  157. <div class="MWFQueryViewNode" data-count=1 name="itemView"></div>
  158. </td>
  159. </tr>
  160. <tr>
  161. <td class="editTableTitle">{{$.lp.valueColumn}}:</td>
  162. <td class="editTableValue">
  163. <select class="MWFViewColumnSelect" name="viewValueColumn" style="max-width: 270px;"></select>
  164. </td>
  165. </tr>
  166. <tr>
  167. <td class="editTableTitle">{{$.lp.textColumn}}:</td>
  168. <td class="editTableValue">
  169. <select class="MWFViewColumnSelect" name="viewTextColumn" style="max-width: 270px;"></select>
  170. </td>
  171. </tr>
  172. </table>
  173. <div style="background-color: #eeeeee; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
  174. <div class="MWFViewFilterWithTemplate"></div>
  175. </div>
  176. <div id="text{$.pid}selectEditItemStatement" style="display: text{($.itemType=='statement')?'block':'none'}" class="MWFQueryStatementItemContainer">
  177. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  178. <tr>
  179. <td class="editTableTitle">{{$.lp.statement}}:</td>
  180. <td class="editTableValue">
  181. <div class="MWFQueryStatementNode" data-count=1 name="itemStatement"></div>
  182. </td>
  183. </tr>
  184. <tr>
  185. <td class="editTableTitle">{{$.lp.valueColumn}}:</td>
  186. <td class="editTableValue">
  187. <select class="MWFStatementItemSelect" name="statementValueColumn" style="max-width: 270px;"></select>
  188. </td>
  189. </tr>
  190. <tr>
  191. <td class="editTableTitle">{{$.lp.textColumn}}:</td>
  192. <td class="editTableValue">
  193. <select class="MWFStatementItemSelect" name="statementTextColumn" style="max-width: 270px;"></select>
  194. </td>
  195. </tr>
  196. </table>
  197. <div style="background-color: #eeeeee; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
  198. <div class="MWFStatementFilterWithTemplate" data-statement="itemStatement"></div>
  199. </div>
  200. </div>
  201. <div style="display: text{($.itemsGroup!==true) ? 'none' : 'block'}; border-bottom: 1px solid #cccccc">
  202. <div class="MWFFormulaArea" name="itemGroupScript" title="{{$.lp.optionScript}} (S)"></div>
  203. <div style="padding: 5px">{{$.lp.selectItemScriptInfo}}</div>
  204. <!-- <div style="padding: 5px; border-bottom: 1px solid #cccccc">-->
  205. <!-- <div>return {</div>-->
  206. <!-- <div><span>&nbsp;&nbsp;&nbsp;&nbsp;</span>options: [{</div>-->
  207. <!-- <div><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;&nbsp;</span>label: '热门城市',</div>-->
  208. <!-- <div><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;&nbsp;</span>options: [{value: 'Shanghai', label: '上海'}, {value: 'Beijing', label: '北京'}]</div>-->
  209. <!-- <div><span>&nbsp;&nbsp;&nbsp;&nbsp;</span>}, {</div>-->
  210. <!-- <div><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;&nbsp;</span>label: '城市名',</div>-->
  211. <!-- <div><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;&nbsp;</span>options: [{value: 'Chengdu', label: '成都'}, {value: 'Shenzhen', label: '深圳'}, {value: 'Guangzhou', label: '广州'}]</div>-->
  212. <!-- <div><span>&nbsp;&nbsp;&nbsp;&nbsp;</span>}]</div>-->
  213. <!-- <div>}</div>-->
  214. <!-- </div>-->
  215. </div>
  216. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  217. <tr>
  218. <td class="editTableTitle">{{$.lp.size}}:</td>
  219. <td class="editTableValue">
  220. <input type="radio" name="size" value="default" text{(!$.size || $.size==='default')?'checked':''}/>default
  221. <input type="radio" name="size" value="medium" text{($.size==='medium')?'checked':''}/>medium
  222. <input type="radio" name="size" value="small" text{($.size==='small')?'checked':''}/>small
  223. <input type="radio" name="size" value="mini" text{($.size==='mini')?'checked':''}/>mini
  224. </td>
  225. </tr>
  226. <tr>
  227. <td class="editTableTitle">{{$.lp.clearable}}:</td>
  228. <td class="editTableValue">
  229. <input type="radio" name="clearable" value="true" text{($.clearable===true)?'checked':''}/>{{$.lp.yes}}
  230. <input type="radio" name="clearable" value="false" text{($.clearable!==true)?'checked':''}/>{{$.lp.no}}
  231. </td>
  232. </tr>
  233. <tr>
  234. <td class="editTableTitle">{{$.lp.popperClass}}:</td>
  235. <td class="editTableValue">
  236. <input type="text" name="popperClass" value="text{$.popperClass}" class="editTableInput"/>
  237. </td>
  238. </tr>
  239. <tr>
  240. <td class="editTableTitle">{{$.lp.multiple}}:</td>
  241. <td class="editTableValue">
  242. <input onclick="if (this.checked){ this.getParent('table').getNext().show();}" type="radio" name="multiple" value="true" text{($.multiple===true)?'checked':''}/>{{$.lp.yes}}
  243. <input onclick="if (this.checked){ this.getParent('table').getNext().hide();}" type="radio" name="multiple" value="false" text{($.multiple!==true)?'checked':''}/>{{$.lp.no}}
  244. </td>
  245. </tr>
  246. </table>
  247. <div style="display: text{($.multiple===true) ? 'block' : 'none'}">
  248. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  249. <tr>
  250. <td class="editTableTitle">{{$.lp.collapseTags}}:</td>
  251. <td class="editTableValue">
  252. <input type="radio" name="collapseTags" value="true" text{($.collapseTags===true)?'checked':''}/>{{$.lp.yes}}
  253. <input type="radio" name="collapseTags" value="false" text{($.collapseTags!==true)?'checked':''}/>{{$.lp.no}}
  254. </td>
  255. </tr>
  256. <tr>
  257. <td class="editTableTitle">{{$.lp.multipleLimit}}:</td>
  258. <td class="editTableValue">
  259. <input type="number" name="multipleLimit" value="text{$.multipleLimit || 0}" class="editTableInput"/>
  260. </td>
  261. </tr>
  262. </table>
  263. </div>
  264. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  265. <tr>
  266. <td class="editTableTitle">{{$.lp.filterable}}:</td>
  267. <td class="editTableValue">
  268. <input type="radio" onclick="if (this.checked){ this.getParent('table').getNext().show();}" name="filterable" value="true" text{($.filterable===true)?'checked':''}/>{{$.lp.yes}}
  269. <input type="radio" onclick="if (this.checked){ this.getParent('table').getNext().hide();}" name="filterable" value="false" text{($.filterable!==true)?'checked':''}/>{{$.lp.no}}
  270. </td>
  271. </tr>
  272. </table>
  273. <div style="display: text{($.filterable===true) ? 'block' : 'none'}">
  274. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  275. <tr>
  276. <td class="editTableTitle">{{$.lp.allowCreate}}:</td>
  277. <td class="editTableValue">
  278. <input type="radio" name="allowCreate" value="true" text{($.allowCreate===true)?'checked':''}/>{{$.lp.yes}}
  279. <input type="radio" name="allowCreate" value="false" text{($.allowCreate!==true)?'checked':''}/>{{$.lp.no}}
  280. </td>
  281. </tr>
  282. <tr>
  283. <td class="editTableTitle">{{$.lp.noMatchText}}:</td>
  284. <td class="editTableValue">
  285. <input type="text" name="noMatchText" value="text{$.noMatchText}" class="editTableInput"/>
  286. </td>
  287. </tr>
  288. <tr>
  289. <td class="editTableTitle">{{$.lp.noDataText}}:</td>
  290. <td class="editTableValue">
  291. <input type="text" name="noDataText" value="text{$.noDataText}" class="editTableInput"/>
  292. </td>
  293. </tr>
  294. </table>
  295. <!-- <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; border-bottom: 1px solid #999;font-weight:bold;">{{$.lp.filterMethod}}</div>-->
  296. <div class="MWFFormulaArea" name="filterMethod" title="{{$.lp.filterMethod}}"></div>
  297. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  298. <tr>
  299. <td class="editTableTitle">{{$.lp.filterRemote}}:</td>
  300. <td class="editTableValue">
  301. <input type="radio" onclick="if (this.checked){ this.getParent('table').getNext().show();}" name="remote" value="true" text{($.remote===true)?'checked':''}/>{{$.lp.yes}}
  302. <input type="radio" onclick="if (this.checked){ this.getParent('table').getNext().hide();}" name="remote" value="false" text{($.remote!==true)?'checked':''}/>{{$.lp.no}}
  303. </td>
  304. </tr>
  305. </table>
  306. <div style="display: text{($.remote===true) ? 'block' : 'none'}">
  307. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  308. <tr>
  309. <td class="editTableTitle">{{$.lp.loadingText}}:</td>
  310. <td class="editTableValue">
  311. <input type="text" name="loadingText" value="text{$.loadingText}" class="editTableInput"/>
  312. </td>
  313. </tr>
  314. </table>
  315. <!-- <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; border-top: 1px solid #999; font-weight:bold;">{{$.lp.remoteMethod}}</div>-->
  316. <div class="MWFFormulaArea" name="remoteMethod" title="{{$.lp.remoteMethod}} (S)"></div>
  317. </div>
  318. </div>
  319. <div class="MWFMaplist" name="elStyles" collapse="true" title="Select {{$.lp.style}}"></div>
  320. <div class="MWFMaplist" name="elProperties" collapse="true" title="Select {{$.lp.attribute}}"></div>
  321. <div class="MWFMaplist" name="elOptionStyles" collapse="true" title="Option {{$.lp.style}}"></div>
  322. <div class="MWFMaplist" name="elOptionProperties" collapse="true" title="Option {{$.lp.attribute}}"></div>
  323. <div class="MWFMaplist" name="elGroupStyles" collapse="true" title="Group {{$.lp.style}}"></div>
  324. <div class="MWFMaplist" name="elGroupProperties" collapse="true" title="Group {{$.lp.attribute}}"></div>
  325. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  326. <tr>
  327. <td class="editTableTitle">{{$.lp.compute}}:</td>
  328. <td class="editTableValue">
  329. <input type="radio" name="compute" value="create" text{(!$.compute || $.compute=='create')?'checked':''}/>{{$.lp.create}}
  330. <input type="radio" name="compute" value="save" text{($.compute=='save')?'checked':''}/>{{$.lp.save}}
  331. <input type="radio" name="compute" value="show" text{($.compute=='show')?'checked':''}/>{{$.lp.show}}
  332. </td>
  333. </tr>
  334. </table>
  335. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  336. <div class="MWFValidation" name="validationConfig"></div>
  337. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  338. </div>
  339. <div title="Vue" class="MWFTab">
  340. <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>
  341. <div style="display: text{($.vueData && $.vueData.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueData" title="Vue Data (S)"></div>
  342. <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>
  343. <div div style="display: text{($.vueMethods && $.vueMethods.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueMethods" title="Vue Methods (S)"></div>
  344. <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>
  345. <div div style="display: text{($.vueCss && $.vueCss.code) ? 'block': 'none'}" class="MWFCssArea" name="vueCss" title="Vue Css (S)"></div>
  346. <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>
  347. <div style="display: text{($.vueSlot) ? 'block' : 'none'}">
  348. <div class="MWFHtmlEditorArea" name="vueSlot" title="Input Slot (HTML)"></div>
  349. </div>
  350. <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;">{{$.lp.selectTemplete}}</div>
  351. <div style="display: text{($.customTemplete) ? 'block' : 'none'}">
  352. <div class="MWFHtmlEditorArea" name="customTemplete" title="{{$.lp.selectTemplete}} (HTML)"></div>
  353. </div>
  354. </div>
  355. <div title="{{$.lp.section}}" class="MWFTab">
  356. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  357. <tr>
  358. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  359. <td class="editTableValue">
  360. <input onclick="if (this.checked){
  361. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  362. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  363. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  364. <input onclick="if (this.checked){
  365. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  366. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  367. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  368. </td>
  369. </tr>
  370. </table>
  371. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  372. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  373. <tr>
  374. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  375. <td class="editTableValue">
  376. <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/>
  377. <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/>
  378. <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/>
  379. <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/>
  380. <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/>
  381. </td>
  382. </tr>
  383. </table>
  384. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  385. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  386. </div>
  387. </div>
  388. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  389. </div>
  390. <div title="{{$.lp.event}}" class="MWFTab">
  391. <div class="MWFEventsArea" name="events"></div>
  392. </div>
  393. <div title="HTML" class="MWFTab">
  394. <div class="MWFHTMLArea" style="width:100%; height:400px; border:0px;font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  395. </div>
  396. <div title="JSON" class="MWFTab">
  397. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  398. </div>
  399. </div>