mkcentermenu.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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="!showViewList">
  10. <Row :gutter="16">
  11. <div class="search-group">
  12. <i-col span="4">
  13. <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
  14. </i-col>
  15. <i-button @click="query">查询</i-button>
  16. <i-button @click="reloadSearch">重置</i-button>
  17. </div>
  18. <div class="buttons-group">
  19. #if($shiro.hasPermission("mkcentermenu:save"))
  20. <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增菜单</i-button>
  21. #end
  22. #if($shiro.hasPermission("mkcentermenustorereal:save"))
  23. <i-button type="info" @click="addMenuStoreReal"><i class="fa fa-plus"></i>&nbsp;新增门店营销菜单</i-button>
  24. #end
  25. <!--#if($shiro.hasPermission("mkcentermenu: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("mkcentermenu:delete"))-->
  29. <!--<i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>-->
  30. <!--#end-->
  31. #if($shiro.hasPermission("mkcentermenu:delete"))
  32. <i-button type="error" @click="delMenuStoreReal"><i class="fa fa-trash-o"></i>&nbsp;删除门店营销菜单</i-button>
  33. #end
  34. </div>
  35. </Row>
  36. <table id="jqGrid"></table>
  37. <div id="jqGridPager"></div>
  38. </div>
  39. <Card v-show="!showList">
  40. <p slot="title">{{title}}</p>
  41. <i-form ref="formValidate" :model="mkCenterMenu" :rules="ruleValidate" :label-width="100">
  42. <Form-item label="菜单名称" prop="menuName">
  43. <i-input v-model="mkCenterMenu.menuName" placeholder="菜单名称"/>
  44. </Form-item>
  45. <Form-item label="菜单描述" prop="menuDetail">
  46. <i-input v-model="mkCenterMenu.menuDetail" placeholder="菜单描述"/>
  47. </Form-item>
  48. <Form-item label="菜单图片链接" prop="picUrl">
  49. <i-input v-model="mkCenterMenu.picUrl" placeholder="菜单图片链接"/>
  50. </Form-item>
  51. <Form-item label="菜单跳转url" prop="menuUrl">
  52. <i-input v-model="mkCenterMenu.menuUrl" placeholder="菜单跳转url"/>
  53. </Form-item>
  54. <Form-item label="是否有效" prop="isValid">
  55. <Radio-group v-model="mkCenterMenu.isValid">
  56. <Radio label="1">
  57. <span>无效</span>
  58. </Radio>
  59. <Radio label="0">
  60. <span>有效</span>
  61. </Radio>
  62. </Radio-group>
  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. <Card v-show="!showInfoList">
  72. <p slot="title">{{title}}</p>
  73. <i-form ref="formValidate" :model="mkCenterMenuStoreReal" :rules="ruleValidate" :label-width="100">
  74. <Form-item label="所属三方商户" prop="thirdMerchSn">
  75. <i-select v-model="mkCenterMenuStoreReal.thirdMerchSn" placeholder="所属三方商户" @on-change="changeStore" style="width: 268px;">
  76. <i-option v-for="thirdMerchant in thirdMerchantBizList" :value="thirdMerchant.thirdMerchSn" :key="thirdMerchant.thirdMerchSn">{{thirdMerchant.thirdPartyMerchName}}</i-option>
  77. </i-select>
  78. </Form-item>
  79. <!--<Form-item label="所属门店" prop="storeId">-->
  80. <!--<i-select v-model="mkCenterMenuStoreReal.storeId" placeholder="所属门店" style="width: 268px;">-->
  81. <!--<i-option v-for="store in storeList" :value="store.id" :key="store.id">{{store.storeName}}-->
  82. <!--</i-option>-->
  83. <!--</i-select>-->
  84. <!--</Form-item>-->
  85. <Form-item label="营销菜单">
  86. <div style="overflow-y: auto; max-height: 250px; border: 1px solid #cccccc;">
  87. <ul id="menuTree" class="ztree"></ul>
  88. </div>
  89. </Form-item>
  90. <Form-item label="是否有效" prop="isValid">
  91. <Radio-group v-model="mkCenterMenuStoreReal.isValid">
  92. <Radio label="1">
  93. <span>无效</span>
  94. </Radio>
  95. <Radio label="0">
  96. <span>有效</span>
  97. </Radio>
  98. </Radio-group>
  99. </Form-item>
  100. <Form-item>
  101. <i-button type="primary" @click="handleSubmitMenuStoreReal('formValidate')">提交</i-button>
  102. <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
  103. </Form-item>
  104. </i-form>
  105. </Card>
  106. </div>
  107. <script src="${rc.contextPath}/js/mk/mkcentermenu.js?_${date.systemTime}"></script>
  108. </body>
  109. </html>