1006210397_edit.jsp 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <html>
  2. <head>
  3. </head>
  4. <body class="body-bg-white">
  5. <div id="space-content">
  6. <div class="content-wrap">
  7. <!-- 搜索 -->
  8. <div class="main-search">
  9. <van-search v-model="obj.content" @search="space.plugin.search.submit();"
  10. @clear="space.plugin.search.submit();" placeholder="搜索" clearable></van-search>
  11. <div class="main-list-icon-group">
  12. <!-- 新增按钮 -->
  13. <div class="main-AdSearch-icon">
  14. <i class="spaceicon icon-add3" onclick='@service{ type: `appLayer`, refresh:`true`, page:`custom_phrase_add` }@'></i>
  15. </div>
  16. </div>
  17. </div>
  18. <!-- 列表 -->
  19. <div id="mescroll" class="mescroll">
  20. <div class="main-contacts-list">
  21. <ul>
  22. <li v-for="item in personCustomPhraseList" :key="item.pcphraseid" @click="personCustomPhraseChange(item.pcphraseid)" >
  23. <a href="javascript:;">
  24. <!-- 左边 -->
  25. <div class="contacts-list-left">
  26. <van-icon name="comment-o" />
  27. </div>
  28. <!-- 右边 -->
  29. <div class="contacts-list-right">
  30. <div class="contacts-list-title">
  31. {{item.content}}
  32. </div>
  33. </div>
  34. </a>
  35. </li>
  36. </ul>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </body>
  42. <script type="text/javascript">
  43. space.vue = new Vue({
  44. el: space.appContent,
  45. data: function () {
  46. return {
  47. obj:
  48. {
  49. content: ''
  50. },
  51. personCustomPhraseList: [],
  52. }
  53. },
  54. mounted: function () {
  55. this.initData();
  56. },
  57. methods: {
  58. initData: function () {
  59. var that = this;
  60. space.plugin.paging.init({
  61. url: '@service{name: "personnel.personCustomPhrase_list" }@',
  62. data: that.obj,
  63. up: function (resp) {
  64. that.personCustomPhraseList.push.apply(that.personCustomPhraseList, resp.personCustomPhraseList);
  65. },
  66. down: function () {
  67. that.personCustomPhraseList = [];
  68. },
  69. });
  70. },
  71. personCustomPhraseChange: function(pcpid) {
  72. space.plugin.layer.open({
  73. url: '@service{ name:`personCustomPhrase_info`, page:`custom_phrase_change` }@',
  74. refresh: true,
  75. param: {
  76. "pcphraseid": pcpid
  77. }
  78. });
  79. }
  80. }
  81. })
  82. </script>
  83. </html>