exploitDemoPage.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <view class="exploitDemoPage">
  3. <view @click="checkItemModuleButton('open')">开启</view>
  4. <checkItemModule :propsData="propsData" v-if="checkItemModuleType"></checkItemModule>
  5. </view>
  6. </template>
  7. <script>
  8. import {
  9. checkItemModule
  10. } from '@/pages/checkItemModule.vue'
  11. export default {
  12. name: "exploitDemoPage",
  13. components: {
  14. checkItemModule
  15. },
  16. data() {
  17. return {
  18. pageType:1,
  19. checkItemModuleType:false,
  20. propsData:{
  21. infoType:0,
  22. manageId:'1839113478692855815',
  23. checkType:0,
  24. planId:'',
  25. planSetId:'',
  26. subId:'',
  27. searchValue:'',
  28. },
  29. }
  30. },
  31. onLoad(option) {
  32. },
  33. onShow() {
  34. },
  35. mounted() {
  36. },
  37. methods: {
  38. checkItemModuleButton(type,item){
  39. if(type == 'open'){
  40. this.$set(this,'propsData',{
  41. infoType:0,
  42. manageId:'1839113478692855815',
  43. checkType:0,
  44. planId:'',
  45. planSetId:'',
  46. subId:'',
  47. searchValue:'',
  48. });
  49. this.$set(this,'checkItemModuleType',true);
  50. }else if(type == 'out'){
  51. this.$set(this,'checkItemModuleType',false);
  52. this.$set(this,'propsData',{});
  53. }else if(type == 'submit'){
  54. console.log('已选中-item', item)
  55. }
  56. },
  57. }
  58. }
  59. </script>
  60. <style lang="stylus" scoped>
  61. </style>