importChannelShowErrorData.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <div id="importChannelShowErrorData" v-loading="isLoging">
  3. <el-dialog
  4. title="导入通道数据成功,但数据存在重复"
  5. width="30rem"
  6. top="2rem"
  7. :append-to-body="true"
  8. :close-on-click-modal="false"
  9. :visible.sync="showDialog"
  10. :destroy-on-close="true"
  11. @close="close()"
  12. >
  13. <div >
  14. 重复国标ID:
  15. <el-button style="float: right;" type="primary" size="mini" icon="el-icon-document-copy" title="点击拷贝" v-clipboard="gbIds.join(',')" @success="$message({type:'success', message:'成功拷贝到粘贴板'})">复制</el-button>
  16. <ul class="errDataBox">
  17. <li v-for="id in gbIds" >
  18. {{ id }}
  19. </li>
  20. </ul>
  21. </div>
  22. <div >
  23. 重复App/stream:
  24. <el-button style="float: right;" type="primary" size="mini" icon="el-icon-document-copy" title="点击拷贝" v-clipboard="streams.join(',')" @success="$message({type:'success', message:'成功拷贝到粘贴板'})">复制</el-button>
  25. <ul class="errDataBox">
  26. <li v-for="id in streams" >
  27. {{ id }}
  28. </li>
  29. </ul>
  30. </div>
  31. </el-dialog>
  32. </div>
  33. </template>
  34. <script>
  35. export default {
  36. name: "importChannelShowErrorData",
  37. computed: {},
  38. created() {},
  39. props: ['gbIds', 'streams'],
  40. data() {
  41. return {
  42. isLoging: false,
  43. showDialog: false,
  44. };
  45. },
  46. methods: {
  47. openDialog: function () {
  48. this.showDialog = true;
  49. },
  50. close: function () {
  51. this.showDialog = false;
  52. },
  53. },
  54. };
  55. </script>
  56. <style>
  57. .errDataBox{
  58. max-height: 15rem;
  59. overflow: auto;
  60. }
  61. </style>