list.html.vm 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>${comments}</title>
  5. #set($header='#parse("sys/header.html")')
  6. #set($save='#if($shiro.hasPermission("'+${pathName}+':save"))')
  7. #set($update='#if($shiro.hasPermission("'+${pathName}+':update"))')
  8. #set($delete='#if($shiro.hasPermission("'+${pathName}+':delete"))')
  9. #set($end='#end')
  10. $header
  11. </head>
  12. <body>
  13. <div id="rrapp" v-cloak>
  14. <div v-show="showList">
  15. <Row :gutter="16">
  16. <div class="search-group">
  17. <i-col span="4">
  18. <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
  19. </i-col>
  20. <i-button @click="query">查询</i-button>
  21. <i-button @click="reloadSearch">重置</i-button>
  22. </div>
  23. <div class="buttons-group">
  24. $save
  25. <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
  26. $end
  27. $update
  28. <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
  29. $end
  30. $delete
  31. <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
  32. $end
  33. </div>
  34. </Row>
  35. <table id="jqGrid"></table>
  36. <div id="jqGridPager"></div>
  37. </div>
  38. <Card v-show="!showList">
  39. <p slot="title">{{title}}</p>
  40. <i-form ref="formValidate" :model="${classname}" :rules="ruleValidate" :label-width="80">
  41. #foreach($column in $columns)
  42. #if($column.columnName != $pk.columnName)
  43. <Form-item label="${column.comments}" prop="${column.attrname}">
  44. <i-input v-model="${classname}.${column.attrname}" placeholder="${column.comments}"/>
  45. </Form-item>
  46. #end
  47. #end
  48. <Form-item>
  49. <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
  50. <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
  51. <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
  52. </Form-item>
  53. </i-form>
  54. </Card>
  55. </div>
  56. <script src="${rc.contextPath}/js/shop/${pathName}.js?_${date.systemTime}"></script>
  57. </body>
  58. </html>