SubmissionEquipmentModalFK.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <j-modal
  3. :title="title"
  4. :width="width"
  5. :visible="visible"
  6. switchFullscreen
  7. @ok="handleOk"
  8. :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
  9. @cancel="handleCancel"
  10. cancelText="关闭">
  11. <SubmissionEquipmentFormFK ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></SubmissionEquipmentFormFK>
  12. </j-modal>
  13. </template>
  14. <script>
  15. import SubmissionEquipmentFormFK from './SubmissionEquipmentFormFK'
  16. export default {
  17. name: 'SubmissionEquipmentModalFK',
  18. components: {
  19. SubmissionEquipmentFormFK
  20. },
  21. data () {
  22. return {
  23. title:'',
  24. width:1200,
  25. visible: false,
  26. disableSubmit: false,
  27. cmmsSubmissionId:''
  28. }
  29. },
  30. methods: {
  31. fankui(id){
  32. this.visible=true
  33. this.$nextTick(()=>{
  34. this.$refs.realForm.getSJSBOptions(id);
  35. })
  36. },
  37. // add () {
  38. // this.visible=true
  39. // this.$nextTick(()=>{
  40. // this.$refs.realForm.add();
  41. // })
  42. // },
  43. // edit (record) {
  44. // this.visible=true
  45. // this.$nextTick(()=>{
  46. // this.$refs.realForm.edit(record);
  47. // })
  48. // },
  49. close () {
  50. this.$emit('close');
  51. this.visible = false;
  52. },
  53. handleOk () {
  54. this.$refs.realForm.submitForm();
  55. },
  56. submitCallback(){
  57. this.$emit('ok');
  58. this.visible = false;
  59. },
  60. handleCancel () {
  61. this.close()
  62. }
  63. }
  64. }
  65. </script>