Guest User

Untitled

a guest
Apr 26th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <template>
  2. <!-- 添加图像的dialog -->
  3. <el-dialog
  4. title="上传X线片"
  5. :visible.sync="addDiagnoseDialogVisible"
  6. width="30%"
  7. center>
  8. <span slot="footer" class="dialog-footer">
  9. <el-button @click="addDiagnoseDialogVisible = false">取 消</el-button>
  10. <el-button type="primary" @click="saveXRay">确 定</el-button>
  11. </span>
  12. </el-dialog>
  13. </template>
  14.  
  15. <script>
  16. export default {
  17. name: 'imgUploadDialog',
  18. data () {
  19. return {
  20. addDiagnoseDialogVisible: false
  21. }
  22. },
  23. props: ['visiable'],
  24. watch: {
  25. visiable: function (newVal, oldVal) {
  26. this.addDiagnoseDialogVisible = this.visiable
  27. }
  28. }
  29. }
  30. </script>
Add Comment
Please, Sign In to add comment