edit.vue 683B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <div class="subPage">
  3. 1
  4. </div>
  5. </template>
  6. <script>
  7. import { mapState } from 'vuex'
  8. export default {
  9. name: '',
  10. data () {
  11. return {}
  12. },
  13. mounted () {
  14. this.$nextTick(function () {})
  15. },
  16. computed: {
  17. ...mapState({
  18. cases: x => x.app.cases.list,
  19. defaultCaseId: x => x.app.cases.default
  20. }),
  21. CaseId: {
  22. get () {
  23. return this.postData.caseid || this.defaultCaseId
  24. },
  25. set (val) {
  26. this.postData.caseid = val
  27. }
  28. }
  29. },
  30. methods: {
  31. }
  32. }
  33. </script>
  34. <!-- Add "scoped" attribute to limit CSS to this component only -->
  35. <style lang="scss" scoped>
  36. </style>