handleDetailXq.vue 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <a-drawer
  3. :title="title"
  4. :width="width"
  5. placement="right"
  6. :closable="true"
  7. @close="close"
  8. destroyOnClose
  9. :visible="visible">
  10. <!-- <div class="drawer-footer">
  11. <a-button @click="handleCancel" style="margin-bottom: 0;">关闭</a-button>
  12. <a-button v-if="!disableSubmit" @click="handleOk" type="primary" style="margin-bottom: 0;">提交</a-button>
  13. </div> -->
  14. </a-drawer>
  15. </template>
  16. <script>
  17. import {getAction, httpAction} from "@api/manage";
  18. export default {
  19. name: 'handleDetailXq',
  20. data () {
  21. return {
  22. title:"",
  23. width:800,
  24. visible: false,
  25. disableSubmit: false,
  26. url: {
  27. queryById: "/cmmsSubmission/cmmsSubmission/queryById",
  28. },
  29. }
  30. },
  31. methods: {
  32. findHandle(id){
  33. // 获取送检详情
  34. getAction(this.url.queryById, {id:id}).then((res) => {
  35. console.log(77,res)
  36. // this.formModel.submissionEquipmentList = res.result.submissionEquipmentList
  37. // const b = res.result.uploadFileList.map((res) => {
  38. // return res.url
  39. // })
  40. // this.formModel.uploadFileList = b.join(',')
  41. })
  42. this.visible = true
  43. },
  44. // add () {
  45. // this.visible=true
  46. // // this.$nextTick(()=>{
  47. // // this.$refs.realForm.add();
  48. // // })
  49. // },
  50. // edit (record) {
  51. // this.visible=true
  52. // // this.$nextTick(()=>{
  53. // // this.$refs.realForm.edit(record);
  54. // // });
  55. // },
  56. close () {
  57. this.$emit('close');
  58. this.visible = false;
  59. },
  60. submitCallback(){
  61. // this.$emit('ok');
  62. this.visible = false;
  63. },
  64. handleOk () {
  65. // this.$refs.realForm.submitForm();
  66. },
  67. handleCancel () {
  68. this.close()
  69. }
  70. }
  71. }
  72. </script>
  73. <style lang="less" scoped>
  74. /** Button按钮间距 */
  75. .ant-btn {
  76. margin-left: 30px;
  77. margin-bottom: 30px;
  78. float: right;
  79. }
  80. .drawer-footer{
  81. position: absolute;
  82. bottom: -8px;
  83. width: 100%;
  84. border-top: 1px solid #e8e8e8;
  85. padding: 10px 16px;
  86. text-align: right;
  87. left: 0;
  88. background: #fff;
  89. border-radius: 0 0 2px 2px;
  90. }
  91. </style>