elcheckbox.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  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. <tr>
  120. <td class="editTableTitle">{{$.lp.useCache}}:</td>
  121. <td class="editTableValue">
  122. <input type="radio" name="dictUseCache" value="true" text{($.dictUseCache!==false)?'checked':''}/>{{$.lp.yes}}
  123. <input type="radio" name="dictUseCache" value="false" text{($.dictUseCache===false)?'checked':''}/>{{$.lp.no}}
  124. <div style="color:#999;">{{$.lp.useCacheNote}}</div>
  125. </td>
  126. </tr>
  127. </table>
  128. </div>
  129. <div id="text{$.pid}selectEditItemView" style="display: text{($.itemType=='view')?'block':'none'}" class="MWFQueryViewItemContainer">
  130. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  131. <tr>
  132. <td class="editTableTitle">{{$.lp.view}}:</td>
  133. <td class="editTableValue">
  134. <div class="MWFQueryViewNode" data-count=1 name="itemView"></div>
  135. </td>
  136. </tr>
  137. <tr>
  138. <td class="editTableTitle">{{$.lp.valueColumn}}:</td>
  139. <td class="editTableValue">
  140. <select class="MWFViewColumnSelect" name="viewValueColumn" style="max-width: 270px;"></select>
  141. </td>
  142. </tr>
  143. <tr>
  144. <td class="editTableTitle">{{$.lp.textColumn}}:</td>
  145. <td class="editTableValue">
  146. <select class="MWFViewColumnSelect" name="viewTextColumn" style="max-width: 270px;"></select>
  147. </td>
  148. </tr>
  149. </table>
  150. <div style="background-color: #eeeeee; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
  151. <div class="MWFViewFilterWithTemplate"></div>
  152. </div>
  153. <div id="text{$.pid}selectEditItemStatement" style="display: text{($.itemType=='statement')?'block':'none'}" class="MWFQueryStatementItemContainer">
  154. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  155. <tr>
  156. <td class="editTableTitle">{{$.lp.statement}}:</td>
  157. <td class="editTableValue">
  158. <div class="MWFQueryStatementNode" data-count=1 name="itemStatement"></div>
  159. </td>
  160. </tr>
  161. <tr>
  162. <td class="editTableTitle">{{$.lp.valueColumn}}:</td>
  163. <td class="editTableValue">
  164. <select class="MWFStatementItemSelect" name="statementValueColumn" style="max-width: 270px;"></select>
  165. </td>
  166. </tr>
  167. <tr>
  168. <td class="editTableTitle">{{$.lp.textColumn}}:</td>
  169. <td class="editTableValue">
  170. <select class="MWFStatementItemSelect" name="statementTextColumn" style="max-width: 270px;"></select>
  171. </td>
  172. </tr>
  173. </table>
  174. <div style="background-color: #eeeeee; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
  175. <div class="MWFStatementFilterWithTemplate" data-statement="itemStatement"></div>
  176. </div>
  177. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  178. <tr>
  179. <td class="editTableTitle">{{$.lp.el_buttonRadio}}:</td>
  180. <td class="editTableValue">
  181. <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}}
  182. <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}}
  183. </td>
  184. </tr>
  185. </table>
  186. <div id="text{$.pid}radioBaseAttrArea" style="display: text{($.buttonRadio==true)?'none':'block'}">
  187. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  188. <tr>
  189. <td class="editTableTitle">{{$.lp.el_border}}:</td>
  190. <td class="editTableValue">
  191. <input type="radio" name="border" value="true" text{($.border==true)?'checked':''}/>{{$.lp.yes}}
  192. <input type="radio" name="border" value="false" text{($.border!=true)?'checked':''}/>{{$.lp.no}}
  193. </td>
  194. </tr>
  195. </table>
  196. </div>
  197. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  198. <tr>
  199. <td class="editTableTitle">{{$.lp.size}}:</td>
  200. <td class="editTableValue">
  201. <input type="radio" name="size" value="medium" text{($.size==='medium')?'checked':''}/>medium
  202. <input type="radio" name="size" value="small" text{($.size==='small')?'checked':''}/>small
  203. <input type="radio" name="size" value="mini" text{($.size==='mini')?'checked':''}/>mini
  204. <input type="radio" name="size" value="default" text{($.size!=='medium' && $.size!=='small' && $.size!=='mini')?'checked':''}/>default
  205. </td>
  206. </tr>
  207. </table>
  208. <div id="text{$.pid}buttonBaseAttrArea" style="display: text{($.buttonRadio!=true)?'none':'block'}">
  209. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  210. <tr>
  211. <td class="editTableTitle">{{$.lp.el_radioColor}}:</td>
  212. <td class="editTableValue">
  213. <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>
  214. <!-- <input type="color" name="textColor" value="text{$.textColor}" class="editTableInput"/>-->
  215. </td>
  216. </tr>
  217. <tr>
  218. <td class="editTableTitle">{{$.lp.el_radioFillColor}}:</td>
  219. <td class="editTableValue">
  220. <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>
  221. <!-- <input type="color" name="fillColor" value="text{$.fillColor}" class="editTableInput"/>-->
  222. </td>
  223. </tr>
  224. </table>
  225. </div>
  226. <hr/>
  227. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  228. <tr>
  229. <td class="editTableTitle">{{$.lp.compute}}:</td>
  230. <td class="editTableValue">
  231. <input type="radio" name="compute" value="create" text{($.compute.indexOf('create')!=-1)?'checked':''}/>{{$.lp.create}}
  232. <input type="radio" name="compute" value="save" text{($.compute.indexOf('save')!=-1)?'checked':''}/>{{$.lp.save}}
  233. <input type="radio" name="compute" value="show" text{($.compute.indexOf('show')!=-1)?'checked':''}/>{{$.lp.show}}
  234. </td>
  235. </tr>
  236. </table>
  237. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  238. <div class="MWFMaplist" name="elStyles" title="{{$.lp.style}}"></div>
  239. <div class="MWFMaplist" name="elProperties" title="{{$.lp.attribute}}"></div>
  240. <div class="MWFMaplist" name="elGroupStyles" title="{{$.lp.elGroupStyles}}"></div>
  241. <div class="MWFMaplist" name="elGroupProperties" title="{{$.lp.elGroupProperties}}"></div>
  242. <div class="MWFValidation" name="validationConfig"></div>
  243. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  244. </div>
  245. <div title="{{$.lp.section}}" class="MWFTab">
  246. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  247. <tr>
  248. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  249. <td class="editTableValue">
  250. <input onclick="if (this.checked){
  251. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  252. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  253. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  254. <input onclick="if (this.checked){
  255. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  256. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  257. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  258. </td>
  259. </tr>
  260. </table>
  261. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  262. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  263. <tr>
  264. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  265. <td class="editTableValue">
  266. <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/>
  267. <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/>
  268. <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/>
  269. <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/>
  270. <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/>
  271. </td>
  272. </tr>
  273. </table>
  274. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  275. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  276. </div>
  277. </div>
  278. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  279. </div>
  280. <div title="Vue" class="MWFTab">
  281. <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>
  282. <div style="display: text{($.vueData && $.vueData.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueData" title="Vue Data (S)"></div>
  283. <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>
  284. <div div style="display: text{($.vueMethods && $.vueMethods.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueMethods" title="Vue Methods (S)"></div>
  285. <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>
  286. <div div style="display: text{($.vueCss && $.vueCss.code) ? 'block': 'none'}" class="MWFCssArea" name="vueCss" title="Vue Css (S)"></div>
  287. </div>
  288. <div title="{{$.lp.event}}" class="MWFTab">
  289. <div class="MWFEventsArea" name="events"></div>
  290. </div>
  291. <div title="HTML" class="MWFTab">
  292. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  293. </div>
  294. <div title="JSON" class="MWFTab">
  295. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  296. </div>
  297. </div>