backTips.vue 823 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <el-dialog title="提示" :visible.sync="dialogVis" width="500px" id="tipsDialog" :close-on-click-modal='false'>
  3. <el-row>
  4. <div style="line-height:32px;">上传图片未保存,退出后上传图片将失效。是否确认退出?</div>
  5. </el-row>
  6. <span slot="footer" class="dialog-footer">
  7. <el-button size="small" @click="dialogVis=false">取消</el-button>
  8. <el-button size="small" type="primary" @click="confirm">确认</el-button>
  9. </span>
  10. </el-dialog>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. dialogVis: false,
  17. scaleInput: '',
  18. item: '', // 当前修改的item
  19. }
  20. },
  21. methods: {
  22. showDialog(v) {
  23. this.dialogVis = true
  24. },
  25. confirm() {
  26. this.dialogVis = false;
  27. this.$emit('back');
  28. }
  29. }
  30. }
  31. </script>