wokePopup.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <ele-modal
  3. title="工艺文件"
  4. :visible.sync="visible"
  5. :before-close="handleClose"
  6. :close-on-click-modal="false"
  7. :close-on-press-escape="false"
  8. append-to-body
  9. :maxable="true"
  10. width="80%"
  11. >
  12. <wokePopupList ref="wokePopupListRef"></wokePopupList>
  13. <template slot="footer">
  14. <el-button size="mini" @click="handleClose">取 消</el-button>
  15. <el-button size="mini" type="primary" @click="handleClose"
  16. >确 定</el-button
  17. >
  18. </template>
  19. </ele-modal>
  20. </template>
  21. <script>
  22. import wokePopupList from './wokePopupList.vue';
  23. export default {
  24. components: { wokePopupList },
  25. props: {},
  26. data() {
  27. return {
  28. visible: false
  29. };
  30. },
  31. watch: {},
  32. methods: {
  33. open(ids) {
  34. this.visible = true;
  35. this.$nextTick(() => {
  36. this.$refs.wokePopupListRef.open(ids);
  37. });
  38. },
  39. openTwo(req) {
  40. this.visible = true;
  41. this.$nextTick(() => {
  42. this.$refs.wokePopupListRef.openTwo(req);
  43. });
  44. },
  45. handleClose() {
  46. this.visible = false;
  47. }
  48. }
  49. };
  50. </script>
  51. <style lang="scss" scoped></style>