edbHasUsedDia.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <el-dialog
  3. :modal-append-to-body='false'
  4. :title="$t('Edb.MsgPrompt.del_failed')"
  5. :visible.sync="show"
  6. :close-on-click-modal="false"
  7. @close="cancelHandle"
  8. custom-class="dateDialog"
  9. width="650px">
  10. <div class="dialog-main">
  11. <div class="main-title">
  12. <i class="el-icon-error" style="color: #F56C6C;"></i>
  13. <span>{{ $t('Edb.MsgPrompt.del_edb_use_table') }}</span>
  14. </div>
  15. <div class="main-list">
  16. <div class="used-item" v-for="(data,index) in dataList" :key="data.id">
  17. <span>{{ index+1 }}、</span><span @click="navigateTo(data.routeUrl)">{{ data.ExcelName }}</span>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="dia-bot">
  22. <el-button @click="cancelHandle" type="primary" style="width: 120px;"><!-- 知道了 -->{{$t('Dialog.known')}}</el-button>
  23. </div>
  24. </el-dialog>
  25. </template>
  26. <script>
  27. export default {
  28. name:"",
  29. props:{
  30. show:{
  31. type:Boolean,
  32. default:false
  33. },
  34. dataList:{
  35. type:Array,
  36. default:()=>[]
  37. }
  38. },
  39. methods:{
  40. navigateTo(url){
  41. console.log(url);
  42. if(!url) return
  43. window.open(url, '_blank');
  44. },
  45. cancelHandle(){
  46. this.$emit('update:show',false)
  47. }
  48. }
  49. }
  50. </script>
  51. <style lang="scss" scoped>
  52. .main-title{
  53. display: flex;
  54. align-items: center;
  55. font-size: 15px;
  56. i{
  57. font-size: 20px;
  58. margin-right: 10px
  59. }
  60. }
  61. .main-list{
  62. margin: 20px 0 0 30px;
  63. max-height: 420px;
  64. overflow: auto;
  65. .used-item{
  66. span{
  67. color:#333333 ;
  68. cursor: pointer;
  69. &:hover{
  70. text-decoration: underline
  71. }
  72. }
  73. }
  74. }
  75. .dia-bot{
  76. display: flex;
  77. justify-content: flex-end
  78. }
  79. </style>