wokePopup.vue 1.2 KB

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