elcheckbox.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  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. $('text{$.pid}selectFirstOption').setStyle('display', 'none');
  33. }" name="itemType" text{(!$.itemType || $.itemType=='values')?'checked':''} type="radio" value="values"/>{{$.lp.textValue}}
  34. <input class="editTableRadio" onclick="if (this.checked){
  35. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  36. $('text{$.pid}selectEditItemScript').setStyle('display', 'block');
  37. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  38. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  39. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  40. $('text{$.pid}selectFirstOption').setStyle('display', 'none');
  41. }" name="itemType" text{($.itemType=='script')?'checked':''} type="radio" value="script"/>{{$.lp.script}}
  42. <input class="editTableRadio" onclick="if (this.checked){
  43. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  44. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  45. $('text{$.pid}selectEditItemDict').setStyle('display', 'block');
  46. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  47. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  48. $('text{$.pid}selectFirstOption').setStyle('display', 'block');
  49. }" name="itemType" text{($.itemType=='dict')?'checked':''} type="radio" value="dict"/>{{$.lp.dict}}
  50. <input class="editTableRadio" onclick="if (this.checked){
  51. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  52. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  53. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  54. $('text{$.pid}selectEditItemView').setStyle('display', 'block');
  55. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  56. $('text{$.pid}selectFirstOption').setStyle('display', 'block');
  57. }" name="itemType" text{($.itemType=='view')?'checked':''} type="radio" value="view"/>{{$.lp.view}}
  58. <input class="editTableRadio" onclick="if (this.checked){
  59. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  60. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  61. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  62. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  63. $('text{$.pid}selectEditItemStatement').setStyle('display', 'block');
  64. $('text{$.pid}selectFirstOption').setStyle('display', 'block');
  65. }" name="itemType" text{($.itemType=='statement')?'checked':''} type="radio" value="statement"/>{{$.lp.statement}}
  66. </td>
  67. </tr>
  68. </table>
  69. <div id="text{$.pid}selectEditItemValues" style="display: text{(!$.itemType || $.itemType=='values')?'block':'none'}" class="MWFArraylist" name="itemValues" title="{{$.lp.options}}"></div>
  70. <div id="text{$.pid}selectEditItemScript" style="display: text{($.itemType=='script')?'block':'none'}" class="MWFScriptArea" name="itemScript" title="{{$.lp.optionScript}} (S)"></div>
  71. <div id="text{$.pid}selectFirstOption" style="display: text{(['dict','view','statement'].contains($.itemType))?'block':'none'}">
  72. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  73. <tr>
  74. <td class="editTableTitle">{{$.lp.firstOptionEnable}}:</td>
  75. <td class="editTableValue">
  76. <input class="editTableRadio" onclick="if (this.checked){
  77. $('text{$.pid}firstOptionTextTr').setStyle('display', '');
  78. }" name="firstOptionEnable" text{($.firstOptionEnable)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
  79. <input class="editTableRadio" onclick="if (this.checked){
  80. $('text{$.pid}firstOptionTextTr').setStyle('display', 'none');
  81. }" name="firstOptionEnable" text{(!$.firstOptionEnable)?'checked':''} type="radio" value="false"/>{{$.lp.no}}
  82. </td>
  83. </tr>
  84. <tr id="text{$.pid}firstOptionTextTr" style="display: text{($.firstOptionEnable)?'':'none'}">
  85. <td class="editTableTitle">{{$.lp.firstOption}}:</td>
  86. <td class="editTableValue"><input type="text" name="firstOption" value="text{$.firstOption}" class="editTableInput"/></td>
  87. </tr>
  88. </table>
  89. </div>
  90. <div id="text{$.pid}selectEditItemDict" style="display: text{($.itemType=='dict')?'block':'none'}" class="MWFDictionaryItemContainer">
  91. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  92. <tr>
  93. <td class="editTableTitle">{{$.lp.dict}}:</td>
  94. <td class="editTableValue">
  95. <div class="MWFDictionaryNode" data-count=1 name="itemDict"></div>
  96. </td>
  97. </tr>
  98. <tr>
  99. <td class="editTableTitle">{{$.lp.dictPath}}:</td>
  100. <td class="editTableValue">
  101. <div class="MWFDictionaryItemNode" name="itemDictPath" data-dict="itemDict" title="{{$.lp.dict}}{{$.lp.dictPath}}"></div>
  102. </td>
  103. </tr>
  104. <tr>
  105. <td class="editTableValue" colspan="2">{{$.lp.dictKeyNote}}:</td>
  106. </tr>
  107. <tr>
  108. <td class="editTableTitle">{{$.lp.valueKey}}:</td>
  109. <td class="editTableValue">
  110. <input type="text" name="dictValueKey" value="text{$.dictValueKey}" class="editTableInput"/>
  111. </td>
  112. </tr>
  113. <tr>
  114. <td class="editTableTitle">{{$.lp.textKey}}:</td>
  115. <td class="editTableValue">
  116. <input type="text" name="dictTextKey" value="text{$.dictTextKey}" class="editTableInput"/>
  117. </td>
  118. </tr>
  119. </table>
  120. </div>
  121. <div id="text{$.pid}selectEditItemView" style="display: text{($.itemType=='view')?'block':'none'}" class="MWFQueryViewItemContainer">
  122. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  123. <tr>
  124. <td class="editTableTitle">{{$.lp.view}}:</td>
  125. <td class="editTableValue">
  126. <div class="MWFQueryViewNode" data-count=1 name="itemView"></div>
  127. </td>
  128. </tr>
  129. <tr>
  130. <td class="editTableTitle">{{$.lp.valueColumn}}:</td>
  131. <td class="editTableValue">
  132. <select class="MWFViewColumnSelect" name="viewValueColumn" style="max-width: 270px;"></select>
  133. </td>
  134. </tr>
  135. <tr>
  136. <td class="editTableTitle">{{$.lp.textColumn}}:</td>
  137. <td class="editTableValue">
  138. <select class="MWFViewColumnSelect" name="viewTextColumn" style="max-width: 270px;"></select>
  139. </td>
  140. </tr>
  141. </table>
  142. <div style="background-color: #eeeeee; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
  143. <div class="MWFViewFilterWithTemplate"></div>
  144. </div>
  145. <div id="text{$.pid}selectEditItemStatement" style="display: text{($.itemType=='statement')?'block':'none'}" class="MWFQueryStatementItemContainer">
  146. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  147. <tr>
  148. <td class="editTableTitle">{{$.lp.statement}}:</td>
  149. <td class="editTableValue">
  150. <div class="MWFQueryStatementNode" data-count=1 name="itemStatement"></div>
  151. </td>
  152. </tr>
  153. <tr>
  154. <td class="editTableTitle">{{$.lp.valueColumn}}:</td>
  155. <td class="editTableValue">
  156. <select class="MWFStatementItemSelect" name="statementValueColumn" style="max-width: 270px;"></select>
  157. </td>
  158. </tr>
  159. <tr>
  160. <td class="editTableTitle">{{$.lp.textColumn}}:</td>
  161. <td class="editTableValue">
  162. <select class="MWFStatementItemSelect" name="statementTextColumn" style="max-width: 270px;"></select>
  163. </td>
  164. </tr>
  165. </table>
  166. <div style="background-color: #eeeeee; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
  167. <div class="MWFStatementFilterWithTemplate" data-statement="itemStatement"></div>
  168. </div>
  169. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  170. <tr>
  171. <td class="editTableTitle">{{$.lp.el_buttonRadio}}:</td>
  172. <td class="editTableValue">
  173. <input type="radio" name="buttonRadio" onclick="if (this.checked){ $('text{$.pid}radioBaseAttrArea').setStyle('display', 'none'); $('text{$.pid}buttonBaseAttrArea').setStyle('display', 'block')}" value="true" text{($.buttonRadio==true)?'checked':''}/>{{$.lp.yes}}
  174. <input type="radio" name="buttonRadio" onclick="if (this.checked){ $('text{$.pid}radioBaseAttrArea').setStyle('display', 'block'); $('text{$.pid}buttonBaseAttrArea').setStyle('display', 'none')}" value="false" text{($.buttonRadio!=true)?'checked':''}/>{{$.lp.no}}
  175. </td>
  176. </tr>
  177. </table>
  178. <div id="text{$.pid}radioBaseAttrArea" style="display: text{($.buttonRadio==true)?'none':'block'}">
  179. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  180. <tr>
  181. <td class="editTableTitle">{{$.lp.el_border}}:</td>
  182. <td class="editTableValue">
  183. <input type="radio" name="border" value="true" text{($.border==true)?'checked':''}/>{{$.lp.yes}}
  184. <input type="radio" name="border" value="false" text{($.border!=true)?'checked':''}/>{{$.lp.no}}
  185. </td>
  186. </tr>
  187. </table>
  188. </div>
  189. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  190. <tr>
  191. <td class="editTableTitle">{{$.lp.size}}:</td>
  192. <td class="editTableValue">
  193. <input type="radio" name="size" value="medium" text{($.size==='medium')?'checked':''}/>medium
  194. <input type="radio" name="size" value="small" text{($.size==='small')?'checked':''}/>small
  195. <input type="radio" name="size" value="mini" text{($.size==='mini')?'checked':''}/>mini
  196. <input type="radio" name="size" value="default" text{($.size!=='medium' && $.size!=='small' && $.size!=='mini')?'checked':''}/>default
  197. </td>
  198. </tr>
  199. </table>
  200. <div id="text{$.pid}buttonBaseAttrArea" style="display: text{($.buttonRadio!=true)?'none':'block'}">
  201. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  202. <tr>
  203. <td class="editTableTitle">{{$.lp.el_radioColor}}:</td>
  204. <td class="editTableValue">
  205. <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>
  206. <!-- <input type="color" name="textColor" value="text{$.textColor}" class="editTableInput"/>-->
  207. </td>
  208. </tr>
  209. <tr>
  210. <td class="editTableTitle">{{$.lp.el_radioFillColor}}:</td>
  211. <td class="editTableValue">
  212. <div class="o2_vue MWFElementColor" name="fillColor"><el-color-picker v-model="fillColor" @change="change" size="mini" style="box-sizing: border-box!important;"></el-color-picker></div>
  213. <!-- <input type="color" name="fillColor" value="text{$.fillColor}" class="editTableInput"/>-->
  214. </td>
  215. </tr>
  216. </table>
  217. </div>
  218. <hr/>
  219. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  220. <tr>
  221. <td class="editTableTitle">{{$.lp.compute}}:</td>
  222. <td class="editTableValue">
  223. <input type="radio" name="compute" value="create" text{($.compute.indexOf('create')!=-1)?'checked':''}/>{{$.lp.create}}
  224. <input type="radio" name="compute" value="save" text{($.compute.indexOf('save')!=-1)?'checked':''}/>{{$.lp.save}}
  225. <input type="radio" name="compute" value="show" text{($.compute.indexOf('show')!=-1)?'checked':''}/>{{$.lp.show}}
  226. </td>
  227. </tr>
  228. </table>
  229. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  230. <div class="MWFMaplist" name="elStyles" title="{{$.lp.style}}"></div>
  231. <div class="MWFMaplist" name="elProperties" title="{{$.lp.attribute}}"></div>
  232. <div class="MWFMaplist" name="elGroupStyles" title="{{$.lp.elGroupStyles}}"></div>
  233. <div class="MWFMaplist" name="elGroupProperties" title="{{$.lp.elGroupProperties}}"></div>
  234. <div class="MWFValidation" name="validationConfig"></div>
  235. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  236. </div>
  237. <div title="{{$.lp.section}}" class="MWFTab">
  238. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  239. <tr>
  240. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  241. <td class="editTableValue">
  242. <input onclick="if (this.checked){
  243. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  244. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  245. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  246. <input onclick="if (this.checked){
  247. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  248. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  249. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  250. </td>
  251. </tr>
  252. </table>
  253. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  254. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  255. <tr>
  256. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  257. <td class="editTableValue">
  258. <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/>
  259. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='department')?'checked':''} type="radio" value="unit"/>{{$.lp.handlerUnit}}<br/>
  260. <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/>
  261. <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/>
  262. <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/>
  263. </td>
  264. </tr>
  265. </table>
  266. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  267. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  268. </div>
  269. </div>
  270. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  271. </div>
  272. <div title="Vue" class="MWFTab">
  273. <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>
  274. <div style="display: text{($.vueData && $.vueData.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueData" title="Vue Data (S)"></div>
  275. <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>
  276. <div div style="display: text{($.vueMethods && $.vueMethods.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueMethods" title="Vue Methods (S)"></div>
  277. <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>
  278. <div div style="display: text{($.vueCss && $.vueCss.code) ? 'block': 'none'}" class="MWFCssArea" name="vueCss" title="Vue Css (S)"></div>
  279. </div>
  280. <div title="{{$.lp.event}}" class="MWFTab">
  281. <div class="MWFEventsArea" name="events"></div>
  282. </div>
  283. <div title="HTML" class="MWFTab">
  284. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  285. </div>
  286. <div title="JSON" class="MWFTab">
  287. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  288. </div>
  289. </div>