You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

select_dataset_train.tmpl 11 kB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <div class="dataset-repolink" id="dataset-repolink-init" style="display: none;" data-repolink="{{.RepoLink}}" data-cloudranin-type="{{.cloudbraintype}}"></div>
  2. <div class="inline required unite min_title field" id="dataset-base" style="margin-bottom: 0 !important;">
  3. {{if or (.benchmarkMode) (.newInference)}}
  4. <label style="font-weight: normal;">{{if .benchmarkMode}}{{.i18n.Tr "repo.model_manager"}}</label><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>{{else}}{{.i18n.Tr "dataset.dataset"}}</label>&nbsp;&nbsp;&nbsp;&nbsp;{{end}}
  5. {{else}}
  6. <label style="font-weight: normal;">{{.i18n.Tr "dataset.dataset"}}</label>&nbsp;&nbsp;&nbsp;
  7. {{end}}
  8. <input type="hidden" name="attachment" :value="dataset_uuid">
  9. <input class="disabled" type="text" :value="dataset_name" required onfocus="this.blur();" style="width: 48.5%;">
  10. <el-button type="text" @click="dialogVisible = true" icon="el-icon-plus" style="color: #0366d6;"> {{if .benchmarkMode}}{{.i18n.Tr "repo.modelarts.infer_job.select_model"}}{{else}}{{.i18n.Tr "dataset.select_dataset"}}{{end}}</el-button>
  11. {{if .benchmarkMode}}
  12. <span class="tooltips" style="display: block;padding-left: 0.5rem;">说明:先使用数据集功能上传模型,然后从数据集列表选模型。</span>
  13. {{end}}
  14. <el-dialog
  15. title="{{.i18n.Tr "dataset.select_dataset"}}"
  16. :visible.sync="dialogVisible"
  17. width="50%"
  18. >
  19. <div class="ui icon input" style="z-index: 9999;position: absolute;right: 50px;height:30px;">
  20. <i class="search icon"></i>
  21. <input type="text" placeholder="{{.i18n.Tr "dataset.search_dataset"}}" v-model="searchDataItem">
  22. </div>
  23. <el-tabs v-model="activeName" @tab-click="handleClick('{{.RepoLink}}',activeName,{{.cloudbraintype}})">
  24. <el-tab-pane label="{{.i18n.Tr "dataset.current_project"}}" name="first">
  25. <div style="display: flex;align-items: center;justify-content: space-between;padding: 1rem 0;border-bottom:1px solid #F5F5F5" v-for="(dataset,index) in currentRepoDataset" :key="index">
  26. <div style="width: 90%;">
  27. <div style="display: flex;align-items: center;"><span class="panel_creator_reponam">${dataset.Repo.OwnerName}/${dataset.Repo.Alias} </span><img v-if="dataset.Recommend" src="/img/jian.svg" style="margin-left: 0.5rem;"><span class="panel_dataset_name">${dataset.Name} </span></div>
  28. <div style="margin-top: 8px;display: flex;">
  29. <a :title="dataset.UserName" style="cursor: default;">
  30. <img class="ui avatar mini image" style="width: 20px;height: 20px;" :src="dataset.RelAvatarLink">
  31. </a>
  32. <span class="panel_datset_desc">${dataset.Description}</span>
  33. </div>
  34. </div>
  35. <div>
  36. <button v-if="dataset.DecompressState===1" class="ui primary basic button mini" @click.stop.prevent="selectDataset(dataset.UUID,dataset.Name)">{{.i18n.Tr "dataset.use"}}</button>
  37. <span v-if="dataset.DecompressState===2" style="display: flex;align-items: center;">
  38. <i class="CREATING"></i>
  39. <span style="margin-left: 0.4em;font-size: 12px;color: #5A5A5A;" data-tooltip="{{$.i18n.Tr "dataset.unzip_tooltips"}}" data-inverted="" data-variation="mini" data-position="left center">解压中</span>
  40. </span>
  41. <span v-if="dataset.DecompressState===3" style="display: flex;align-items: center;">
  42. <i class="FAILED"></i>
  43. <span style="margin-left: 0.4em;font-size: 12px;color:red;" data-tooltip="{{$.i18n.Tr "dataset.zip_failed"}}" data-inverted="" data-variation="mini" data-position="left center">解压失败</span>
  44. </span>
  45. </div>
  46. </div>
  47. {{if not .benchmarkMode}}
  48. </el-tab-pane>
  49. <el-tab-pane label="{{.i18n.Tr "dataset.owner_dataset"}}" name="second">
  50. <div style="display: flex;align-items: center;justify-content: space-between;padding: 1rem 0;border-bottom:1px solid #F5F5F5" v-for="(dataset,index) in myDataset" :key="index">
  51. <div style="width: 90%;">
  52. <div style="display: flex;align-items: center;"><span class="panel_creator_reponam">${dataset.Repo.OwnerName}/${dataset.Repo.Alias}</span><img v-if="dataset.Recommend" src="/img/jian.svg" style="margin-left: 0.5rem;"><span class="panel_dataset_name">${dataset.Name}</span></div>
  53. <div style="margin-top: 8px;display: flex;">
  54. <a :title="dataset.UserName" style="cursor: default;">
  55. <img class="ui avatar mini image" style="width: 20px;height: 20px;" :src="dataset.RelAvatarLink">
  56. </a>
  57. <span class="panel_datset_desc">${dataset.Description}</span>
  58. </div>
  59. </div>
  60. <div>
  61. <button v-if="dataset.DecompressState===1" class="ui primary basic button mini" @click.stop.prevent="selectDataset(dataset.UUID,dataset.Name)">{{.i18n.Tr "dataset.use"}}</button>
  62. <span v-if="dataset.DecompressState===2" style="display: flex;align-items: center;">
  63. <i class="CREATING"></i>
  64. <span style="margin-left: 0.4em;font-size: 12px;color: #5A5A5A;" data-tooltip="{{$.i18n.Tr "dataset.unzip_tooltips"}}" data-inverted="" data-variation="mini" data-position="left center">解压中</span>
  65. </span>
  66. <span v-if="dataset.DecompressState===3" style="display: flex;align-items: center;">
  67. <i class="FAILED"></i>
  68. <span style="margin-left: 0.4em;font-size: 12px;color:red;" data-tooltip="{{$.i18n.Tr "dataset.zip_failed"}}" data-inverted="" data-variation="mini" data-position="left center">解压失败</span>
  69. </span>
  70. </div>
  71. </div>
  72. </el-tab-pane>
  73. <el-tab-pane label="{{.i18n.Tr "dataset.public_dataset"}}" name="third">
  74. <div style="display: flex;align-items: center;justify-content: space-between;padding: 1rem 0;border-bottom:1px solid #F5F5F5" v-for="(dataset,index) in publicDataset" :key="index">
  75. <div style="width: 90%;">
  76. <div style="display: flex;align-items: center;"><span class="panel_creator_reponam">${dataset.Repo.OwnerName}/${dataset.Repo.Alias}</span><img v-if="dataset.Recommend" src="/img/jian.svg" style="margin-left: 0.5rem;"><span class="panel_dataset_name">${dataset.Name}</span></div>
  77. <div style="margin-top: 8px;display: flex;">
  78. <a :title="dataset.UserName" style="cursor: default;">
  79. <img class="ui avatar mini image" style="width: 20px;height: 20px;" :src="dataset.RelAvatarLink">
  80. </a>
  81. <span class="panel_datset_desc">${dataset.Description}</span>
  82. </div>
  83. </div>
  84. <div>
  85. <button v-if="dataset.DecompressState===1" class="ui primary basic button mini" @click.stop.prevent="selectDataset(dataset.UUID,dataset.Name)">{{.i18n.Tr "dataset.use"}}</button>
  86. <span v-if="dataset.DecompressState===2" style="display: flex;align-items: center;">
  87. <i class="CREATING"></i>
  88. <span style="margin-left: 0.4em;font-size: 12px;color: #5A5A5A;" data-tooltip="{{$.i18n.Tr "dataset.unzip_tooltips"}}" data-inverted="" data-variation="mini" data-position="left center">解压中</span>
  89. </span>
  90. <span v-if="dataset.DecompressState===3" style="display: flex;align-items: center;">
  91. <i class="FAILED"></i>
  92. <span style="margin-left: 0.4em;font-size: 12px;color:red;" data-tooltip="{{$.i18n.Tr "dataset.zip_failed"}}" data-inverted="" data-variation="mini" data-position="left center">解压失败</span>
  93. </span>
  94. </div>
  95. </div>
  96. </el-tab-pane>
  97. <el-tab-pane label="{{.i18n.Tr "dataset.I_liked"}}" name="fourth">
  98. <div style="display: flex;align-items: center;justify-content: space-between;padding: 1rem 0;border-bottom:1px solid #F5F5F5" v-for="(dataset,index) in myFavoriteDataset" :key="index">
  99. <div style="width: 90%;">
  100. <div style="display: flex;align-items: center;"><span class="panel_creator_reponam">${dataset.Repo.OwnerName}/${dataset.Repo.Alias}</span><img v-if="dataset.Recommend" src="/img/jian.svg" style="margin-left: 0.5rem;"><span class="panel_dataset_name">${dataset.Name}</span></div>
  101. <div style="margin-top: 8px;display: flex;">
  102. <a :title="dataset.UserName" style="cursor: default;">
  103. <img class="ui avatar mini image" style="width: 20px;height: 20px;" :src="dataset.RelAvatarLink">
  104. </a>
  105. <span class="panel_datset_desc">${dataset.Description}</span>
  106. </div>
  107. </div>
  108. <div>
  109. <button v-if="dataset.DecompressState===1" class="ui primary basic button mini" @click.stop.prevent="selectDataset(dataset.UUID,dataset.Name)">{{.i18n.Tr "dataset.use"}}</button>
  110. <span v-if="dataset.DecompressState===2" style="display: flex;align-items: center;">
  111. <i class="CREATING"></i>
  112. <span style="margin-left: 0.4em;font-size: 12px;color: #5A5A5A;" data-tooltip="{{$.i18n.Tr "dataset.unzip_tooltips"}}" data-inverted="" data-variation="mini" data-position="left center">解压中</span>
  113. </span>
  114. <span v-if="dataset.DecompressState===3" style="display: flex;align-items: center;">
  115. <i class="FAILED"></i>
  116. <span style="margin-left: 0.4em;font-size: 12px;color:red;" data-tooltip="{{$.i18n.Tr "dataset.zip_failed"}}" data-inverted="" data-variation="mini" data-position="left center">解压失败</span>
  117. </span>
  118. </div>
  119. </div>
  120. </el-tab-pane>
  121. {{end}}
  122. </el-tabs>
  123. <div class="center">
  124. <el-pagination
  125. background
  126. @current-change="handleCurrentChange"
  127. :current-page="page"
  128. :page-size="5"
  129. layout="total,prev, pager, next"
  130. :total="totalnums">
  131. </el-pagination>
  132. </div>
  133. </el-dialog>
  134. </div>