1
0

merch.html 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. #parse("sys/header.html")
  6. </head>
  7. <body>
  8. <div id="rrapp" v-cloak>
  9. <div v-show="showList">
  10. <Row :gutter="16">
  11. <div class="search-group">
  12. <i-col span="3">
  13. <i-input v-model="q.merchName" @on-enter="query" placeholder="商户名称"/>
  14. </i-col>
  15. <i-col span="3">
  16. <i-input v-model="q.merchSn" @on-enter="query" placeholder="商户编号"/>
  17. </i-col>
  18. <i-button @click="query">查询</i-button>
  19. <i-button @click="reloadSearch">重置</i-button>
  20. </div>
  21. <div class="buttons-group">
  22. #if($shiro.hasPermission("merch:save"))
  23. <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
  24. #end
  25. #if($shiro.hasPermission("merch:update"))
  26. <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
  27. #end
  28. #if($shiro.hasPermission("merch:delete"))
  29. <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
  30. #end
  31. </div>
  32. </Row>
  33. <table id="jqGrid"></table>
  34. <div id="jqGridPager"></div>
  35. </div>
  36. <Card v-show="!showList">
  37. <p slot="title">{{title}}</p>
  38. <i-form ref="formValidate" :model="merch" :rules="ruleValidate" :label-width="80">
  39. <Form-item label="商户编号" prop="merchSn">
  40. <i-input v-model="merch.merchSn" placeholder="商户编号"/>
  41. </Form-item>
  42. <Form-item label="商户名称" prop="merchName">
  43. <i-input v-model="merch.merchName" placeholder="商户名称"/>
  44. </Form-item>
  45. <Form-item label="商户简称" prop="merchShortName">
  46. <i-input v-model="merch.merchShortName" placeholder="商户简称"/>
  47. </Form-item>
  48. <Form-item label="排序" prop="sortOrder">
  49. <i-input v-model="merch.sortOrder" placeholder="排序"/>
  50. </Form-item>
  51. <Form-item label="显示" prop="isShow">
  52. <Radio-group v-model="merch.isShow">
  53. <Radio label="1">
  54. <span>是</span>
  55. </Radio>
  56. <Radio label="0">
  57. <span>否</span>
  58. </Radio>
  59. </Radio-group>
  60. </Form-item>
  61. <Form-item label="备注" prop="remark">
  62. <i-input v-model="merch.remark" placeholder="备注"/>
  63. </Form-item>
  64. <Form-item>
  65. <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
  66. <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
  67. <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
  68. </Form-item>
  69. </i-form>
  70. </Card>
  71. </div>
  72. <script src="${rc.contextPath}/js/shop/merch.js?_${date.systemTime}"></script>
  73. </body>
  74. </html>