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.

referenceDataset.vue 24 kB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747
  1. <template>
  2. <div>
  3. <template v-if="showFlag">
  4. <div v-loading="loadingLinkPage">
  5. <div class="ui container">
  6. <div class="ui mobile reversed stackable grid">
  7. <div class="row" style="justify-content: space-between">
  8. <div class="ui blue small menu compact selectcloudbrain">
  9. <a class="item" :href="`${repoLink}/datasets`">{{
  10. i18n.current_dataset
  11. }}</a>
  12. <a
  13. class="active item"
  14. :href="`${repoLink}/datasets/reference_datasets`"
  15. >{{ i18n.linked_datasets }}</a
  16. >
  17. </div>
  18. <button
  19. style="margin-right: 2rem"
  20. class="ui green button"
  21. :class="{ disabled: !canWrite }"
  22. @click="openDataset()"
  23. >
  24. {{ i18n.linked_datasets }}
  25. </button>
  26. </div>
  27. <div class="row">
  28. <div class="ui two cards" style="width: 100%">
  29. <div
  30. class="ui card refer-dataset-card"
  31. v-for="(item, index) in datasetList"
  32. :key="index"
  33. @click="gotoDataset(item)"
  34. >
  35. <div class="content" style="border-bottom: none">
  36. <div class="refer-dataset-card-content">
  37. <div class="refer-dataset-card-title">
  38. <span
  39. :title="item.Title"
  40. class="nowrap"
  41. style="display: inline-block; max-width: 90%"
  42. >{{ item.Title }}</span
  43. ><img
  44. v-if="item.Recommend"
  45. src="/img/jian.svg"
  46. style="margin-left: 0.5rem"
  47. />
  48. </div>
  49. <template v-if="item.IsStaring">
  50. <div style="display: flex">
  51. <button
  52. class="ui mini basic button dataset-card-flavor"
  53. @click.stop="postStar(item, isSigned)"
  54. >
  55. <i class="ri-heart-fill" style="color: #fa8c16"></i>
  56. <span style="margin-left: 0.3rem">{{
  57. i18n.unfavorite
  58. }}</span>
  59. </button>
  60. <a class="ui mini basic button card-flavor-num">
  61. {{ item.NumStars }}
  62. </a>
  63. </div>
  64. </template>
  65. <template v-else>
  66. <div style="display: flex">
  67. <button
  68. class="ui mini basic button dataset-card-flavor"
  69. @click.stop="postStar(item, isSigned)"
  70. >
  71. <i class="ri-heart-line"></i>
  72. <span style="margin-left: 0.3rem">{{
  73. i18n.favorite
  74. }}</span>
  75. </button>
  76. <a class="ui mini basic button card-flavor-num">
  77. {{ item.NumStars }}
  78. </a>
  79. </div>
  80. </template>
  81. </div>
  82. <div style="font-size: 12px; margin-top: 5px">
  83. <a
  84. v-if="item.Category"
  85. :href="'/explore/datasets?category=' + item.Category"
  86. class="ui repo-topic label topic"
  87. @click.stop
  88. >{{ i18n[item.Category] || item.Category }}</a
  89. >
  90. <a
  91. v-if="item.Task"
  92. :href="'/explore/datasets?task=' + item.Task"
  93. class="ui repo-topic label topic"
  94. @click.stop
  95. >{{ i18n[item.Task] || item.Task }}</a
  96. >
  97. <a
  98. v-if="item.License"
  99. :href="'/explore/datasets?license=' + item.License"
  100. class="ui repo-topic label topic"
  101. @click.stop
  102. >{{ item.License }}</a
  103. >
  104. </div>
  105. <div class="description card-flavor-desc">
  106. <p>{{ item.Description }}</p>
  107. </div>
  108. </div>
  109. <div
  110. class="extra content"
  111. style="border-top: none !important"
  112. >
  113. <div style="display: flex; align-items: center">
  114. <a
  115. :href="'/' + item.Repo.OwnerName"
  116. :title="item.Repo.OwnerName"
  117. @click.stop
  118. >
  119. <img
  120. class="ui avatar image"
  121. style="width: 22px; height: 22px"
  122. :src="'/user/avatar/' + item.Repo.OwnerName + '/-1'"
  123. />
  124. </a>
  125. <span
  126. style="
  127. color: #999999;
  128. font-size: 12px;
  129. margin-left: 0.5rem;
  130. "
  131. >{{ item.CreatedUnix | transformTimestamp }}</span
  132. >
  133. <span
  134. style="
  135. display: flex;
  136. align-items: center;
  137. justify-content: center;
  138. margin: 0 1rem;
  139. "
  140. :title="i18n.citations"
  141. >
  142. <i class="ri-link"></i>
  143. <span
  144. style="
  145. color: #101010;
  146. font-size: 12px;
  147. margin-left: 0.2rem;
  148. "
  149. >{{ item.UseCount }}</span
  150. >
  151. </span>
  152. <span
  153. style="display: flex; align-items: center; flex: 1"
  154. :title="i18n.downloads"
  155. >
  156. <i class="ri-download-line"></i>
  157. <span
  158. style="
  159. color: #101010;
  160. font-size: 12px;
  161. margin-left: 0.2rem;
  162. "
  163. >{{ item.DownloadTimes }}</span
  164. >
  165. </span>
  166. <button
  167. class="ui mini button"
  168. :class="{ disabled1: !canWrite }"
  169. @click.stop="
  170. cancelReferData(item.ID, item.Title, canWrite)
  171. "
  172. >
  173. {{ i18n.disassociate }}
  174. </button>
  175. </div>
  176. </div>
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. </template>
  184. <template v-else>
  185. <div class="ui container">
  186. <div class="ui mobile reversed stackable grid">
  187. <div class="row" style="justify-content: space-between">
  188. <div class="ui blue small menu compact selectcloudbrain">
  189. <a class="item" :href="`${repoLink}/datasets`">{{
  190. i18n.current_dataset
  191. }}</a>
  192. <a
  193. class="active item"
  194. :href="`${repoLink}/datasets/reference_datasets`"
  195. >{{ i18n.linked_datasets }}</a
  196. >
  197. </div>
  198. <button class="ui green button" @click="openDataset()">
  199. {{ i18n.linked_datasets }}
  200. </button>
  201. </div>
  202. </div>
  203. <div class="ui placeholder segment bgtask-none">
  204. <div class="ui icon header bgtask-header-pic"></div>
  205. <div class="bgtask-content-header">{{ i18n.not_link_dataset }}</div>
  206. <div class="bgtask-content">
  207. <div class="bgtask-content-txt">
  208. {{ i18n.no_link_dataset_tips1 }}
  209. </div>
  210. <div class="bgtask-content-txt">
  211. {{ i18n.dataset_instructions_for_use
  212. }}<a href="https://openi.pcl.ac.cn/zeizei/OpenI_Learning">{{
  213. i18n.dataset_camp_course
  214. }}</a>
  215. </div>
  216. </div>
  217. </div>
  218. </div>
  219. </template>
  220. <el-dialog
  221. :title="i18n.linked_datasets"
  222. :visible.sync="dialogVisible"
  223. :width="dialogWidth"
  224. @closed="refreshData"
  225. >
  226. <div class="ui icon input dataset-search-vue">
  227. <i
  228. class="search icon"
  229. style="cursor: pointer; pointer-events: auto"
  230. @click="searchName"
  231. ></i>
  232. <input
  233. type="text"
  234. :placeholder="i18n.search_dataset"
  235. v-model="search"
  236. @keydown.enter.stop.prevent="searchName"
  237. />
  238. </div>
  239. <el-row>
  240. <el-col
  241. :span="17"
  242. style="
  243. padding-right: 1rem;
  244. border-right: 1px solid #f5f5f6;
  245. position: relative;
  246. "
  247. >
  248. <el-tabs v-model="activeName">
  249. <el-tab-pane :label="i18n.public_dataset" name="first">
  250. <el-row v-loading="loadingPublicPage" style="min-height: 50px">
  251. <el-checkbox-group
  252. v-model="checkList"
  253. style="font-size: 14px; line-height: 1"
  254. >
  255. <div
  256. v-for="(item, index) in publicDatasetList"
  257. :key="index"
  258. class="select-data-wrap"
  259. >
  260. <div class="dataset-header-vue">
  261. <el-checkbox
  262. :label="item.ID"
  263. @change="(checked) => changeCheckbox(checked, item)"
  264. :title="item.Title"
  265. class="select-data-title"
  266. style="display: flex; align-items: end"
  267. ><span class="ref-data-title">
  268. <span
  269. style="overflow: hidden; text-overflow: ellipsis"
  270. >
  271. {{ item.Title }}
  272. </span>
  273. <img
  274. v-if="item.Recommend"
  275. src="/img/jian.svg"
  276. style="margin-left: 0.5rem"
  277. /> </span
  278. ></el-checkbox>
  279. <a
  280. class="select-data-title select-data-href"
  281. :href="`/${item.Repo.OwnerName}/${item.Repo.Name}/datasets`"
  282. :title="`${item.Repo.OwnerName}/${item.Repo.Alias}`"
  283. style="font-size: 12px"
  284. target="_blank"
  285. >{{ item.Repo.OwnerName }}/{{ item.Repo.Alias }}</a
  286. >
  287. </div>
  288. <div class="data-multiple-wrap" :title="item.Description">
  289. {{ item.Description }}
  290. </div>
  291. </div>
  292. </el-checkbox-group>
  293. </el-row>
  294. <div
  295. class="ui container"
  296. style="margin-top: 25px; text-align: center"
  297. >
  298. <el-pagination
  299. background
  300. @current-change="currentChange"
  301. :current-page="currentPage"
  302. :page-size="5"
  303. layout="total, prev, pager, next"
  304. :total="totalNum"
  305. >
  306. </el-pagination>
  307. </div>
  308. </el-tab-pane>
  309. </el-tabs>
  310. </el-col>
  311. <el-col
  312. :span="7"
  313. style="
  314. display: flex;
  315. flex-direction: column;
  316. height: 100%;
  317. right: 0;
  318. position: absolute;
  319. padding: 0 1.5rem;
  320. "
  321. >
  322. <div
  323. style="
  324. font-size: 14px;
  325. height: 40px;
  326. text-align: left;
  327. color: #0066ff;
  328. line-height: 40px;
  329. "
  330. >
  331. {{ i18n.selected_data_file }}
  332. </div>
  333. <div
  334. style="
  335. flex: 1;
  336. margin-top: 1.5rem;
  337. margin-bottom: 1rem;
  338. overflow-y: auto;
  339. "
  340. >
  341. <el-checkbox
  342. v-for="(item, index) in selectDatasetArray"
  343. :key="index"
  344. :label="item.ID"
  345. :title="item.Title"
  346. :value="item.isChecked"
  347. @change="(checked) => changeCheckSelected(checked, item)"
  348. style="display: flex; margin: 0.5rem 0"
  349. ><span class="select-data-right">{{
  350. item.Title
  351. }}</span></el-checkbox
  352. >
  353. </div>
  354. <div style="text-align: end">
  355. <el-button
  356. @click.native="confirmDataset"
  357. size="small"
  358. style="
  359. background: #389e0d;
  360. color: #fff;
  361. border: 1px solid #389e0d;
  362. "
  363. >{{ i18n.sure }}</el-button
  364. >
  365. </div>
  366. </el-col>
  367. </el-row>
  368. </el-dialog>
  369. </div>
  370. </template>
  371. <script>
  372. const { _AppSubUrl, _StaticUrlPrefix, csrf } = window.config;
  373. export default {
  374. components: {},
  375. data() {
  376. return {
  377. dialogWidth: "65%",
  378. dialogVisible: false,
  379. activeName: "first",
  380. repoLink: "",
  381. datasetList: [],
  382. test: false,
  383. checkList: [],
  384. publicDatasetList: [],
  385. showFlag: true,
  386. search: "",
  387. selectDatasetArray: [],
  388. paramsPublics: { page: 1, q: "" },
  389. i18n: {},
  390. totalNum: 0,
  391. currentPage: 1,
  392. loadingLinkPage: false,
  393. loadingPublicPage: false,
  394. canWrite: true,
  395. isSigned: false,
  396. maxReferenceNum: 20,
  397. isCurrentUrl: true,
  398. };
  399. },
  400. methods: {
  401. openDataset() {
  402. this.checkList = this.datasetList.map((item) => {
  403. this.selectDatasetArray.push({
  404. ID: item.ID,
  405. Title: item.Title,
  406. isChecked: true,
  407. });
  408. return item.ID;
  409. });
  410. this.dialogVisible = true;
  411. this.getDatasetList();
  412. },
  413. refreshData() {
  414. this.checkList = [];
  415. this.selectDatasetArray = [];
  416. },
  417. gotoDataset(item) {
  418. window.open(`/${item.Repo.OwnerName}/${item.Repo.Name}/datasets`);
  419. },
  420. currentChange(page) {
  421. this.paramsPublics.page = page;
  422. this.getDatasetList();
  423. },
  424. searchName() {
  425. this.paramsPublics.q = this.search;
  426. this.paramsPublics.page = 1;
  427. this.getDatasetList();
  428. },
  429. cancelReferData(id, name, canWrite) {
  430. if (!canWrite) {
  431. return;
  432. }
  433. let url = `${this.repoLink}/datasets/reference_datasets/${id}`;
  434. this.$axios
  435. .delete(url)
  436. .then((res) => {
  437. if (res.data.Code === 0) {
  438. this.$message.success(this.i18n.cancel_link_dataset.format(name));
  439. let index = this.datasetList.findIndex((item) => {
  440. return item.ID === id;
  441. });
  442. this.datasetList.splice(index, 1);
  443. if (this.datasetList.length === 0) {
  444. this.showFlag = false;
  445. }
  446. } else {
  447. this.$message.error(res.data.Message);
  448. }
  449. })
  450. .catch((err) => {
  451. this.$message.error(this.i18n.dataset_link_failed);
  452. console.log(err);
  453. });
  454. },
  455. confirmDataset() {
  456. this.submitReferDataset();
  457. this.dialogVisible = false;
  458. },
  459. changeCheckbox(checked, item) {
  460. if (this.checkList.length > this.maxReferenceNum) {
  461. this.checkList.pop();
  462. this.$message.error(
  463. this.i18n.dataset_over_nums.format(this.maxReferenceNum)
  464. );
  465. return;
  466. }
  467. if (this.checkList.length === this.maxReferenceNum && !checked) {
  468. this.$message.error(
  469. this.i18n.dataset_over_nums.format(this.maxReferenceNum)
  470. );
  471. return;
  472. }
  473. if (checked) {
  474. this.selectDatasetArray.push({
  475. ID: item.ID,
  476. Title: item.Title,
  477. isChecked: true,
  478. });
  479. } else {
  480. let index = this.selectDatasetArray.findIndex((element) => {
  481. return element.ID === item.ID;
  482. });
  483. this.selectDatasetArray.splice(index, 1);
  484. }
  485. },
  486. changeCheckSelected(checked, item) {
  487. let index = this.selectDatasetArray.findIndex((element) => {
  488. return element.ID === item.ID;
  489. });
  490. this.selectDatasetArray.splice(index, 1);
  491. this.checkList.splice(index, 1);
  492. },
  493. postStar(item, isSigned) {
  494. if (!isSigned) {
  495. return;
  496. }
  497. if (item.IsStaring) {
  498. let url = `${this.repoLink}/datasets/${item.ID}/unstar`;
  499. this.$axios.put(url).then((res) => {
  500. if (res.data.Code === 0) {
  501. this.datasetList.forEach((element, i) => {
  502. if (element.ID === item.ID) {
  503. this.datasetList[i].NumStars -= 1;
  504. this.datasetList[i].IsStaring = !this.datasetList[i].IsStaring;
  505. }
  506. });
  507. }
  508. });
  509. } else {
  510. let url = `${this.repoLink}/datasets/${item.ID}/star`;
  511. this.$axios.put(url).then((res) => {
  512. if (res.data.Code === 0) {
  513. this.datasetList.forEach((element, i) => {
  514. if (element.ID === item.ID) {
  515. this.datasetList[i].NumStars += 1;
  516. this.datasetList[i].IsStaring = !this.datasetList[i].IsStaring;
  517. }
  518. });
  519. }
  520. });
  521. }
  522. },
  523. getSelectDatasetList() {
  524. this.loadingLinkPage = true;
  525. let url = `${this.repoLink}/datasets/reference_datasets_data`;
  526. this.$axios.get(url).then((res) => {
  527. this.loadingLinkPage = false;
  528. if (!res.data) {
  529. this.showFlag = false;
  530. this.datasetList = [];
  531. return;
  532. } else {
  533. this.datasetList = res.data;
  534. this.datasetList.length
  535. ? (this.showFlag = true)
  536. : (this.showFlag = false);
  537. }
  538. });
  539. },
  540. getDatasetList() {
  541. this.loadingPublicPage = true;
  542. let url = `${this.repoLink}/datasets/reference_datasets_available`;
  543. this.$axios
  544. .get(url, {
  545. params: this.paramsPublics,
  546. })
  547. .then((res) => {
  548. this.publicDatasetList = JSON.parse(res.data.data);
  549. this.totalNum = parseInt(res.data.count);
  550. this.loadingPublicPage = false;
  551. });
  552. },
  553. submitReferDataset() {
  554. if (this.checkList.length > this.maxReferenceNum) {
  555. this.$message.error(
  556. this.i18n.dataset_over_nums.format(this.maxReferenceNum)
  557. );
  558. return;
  559. }
  560. let url = `${this.repoLink}/datasets/reference_datasets`;
  561. let data = this.qs.stringify(
  562. {
  563. _csrf: csrf,
  564. dataset_id: this.checkList,
  565. },
  566. { arrayFormat: "repeat" }
  567. );
  568. this.$axios
  569. .post(url, data)
  570. .then((res) => {
  571. if (res.data.Code === 0) {
  572. this.$message.success(this.i18n.dataset_link_success);
  573. this.getSelectDatasetList();
  574. } else {
  575. this.$message.error(res.data.Message);
  576. }
  577. })
  578. .catch((err) => {
  579. this.$message.error(this.i18n.dataset_link_failed);
  580. console.log(err);
  581. });
  582. },
  583. },
  584. filters: {
  585. transformTimestamp(timestamp) {
  586. const date = new Date(parseInt(timestamp) * 1000);
  587. const Y = date.getFullYear() + "-";
  588. const M =
  589. (date.getMonth() + 1 < 10
  590. ? "0" + (date.getMonth() + 1)
  591. : date.getMonth() + 1) + "-";
  592. const D =
  593. (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " ";
  594. const dateString = Y + M + D;
  595. return dateString;
  596. },
  597. },
  598. watch: {
  599. search(val) {
  600. if (!val) {
  601. this.searchName();
  602. }
  603. },
  604. showFlag(val) {
  605. if (!val || this.isCurrentUrl) {
  606. document
  607. .getElementById("header-dataset")
  608. .setAttribute("href", this.repoLink + "/datasets");
  609. } else {
  610. document
  611. .getElementById("header-dataset")
  612. .setAttribute("href", this.repoLink + "/datasets/reference_datasets");
  613. }
  614. },
  615. },
  616. mounted() {
  617. this.getSelectDatasetList();
  618. },
  619. created() {
  620. this.repoLink = $(".reference-dataset").data("repolink") || "";
  621. this.canWrite = $(".reference-dataset").data("canwrite");
  622. this.isSigned = $(".reference-dataset").data("is-sign");
  623. this.maxReferenceNum = $(".reference-dataset").data("max-reference-num");
  624. this.isCurrentUrl = $(".reference-dataset").data("address");
  625. if (document.documentElement.attributes["lang"].nodeValue == "en-US") {
  626. this.i18n = this.$locale.US;
  627. } else {
  628. this.i18n = this.$locale.CN;
  629. }
  630. },
  631. beforeDestroy() {},
  632. };
  633. </script>
  634. <style scoped>
  635. .dataset-search-vue {
  636. z-index: 9999;
  637. position: absolute;
  638. right: 31%;
  639. height: 30px;
  640. top: 60px;
  641. }
  642. .refer-dataset-card {
  643. cursor: pointer;
  644. box-shadow: 0px 4px 4px 0px rgba(232, 232, 232, 0.6);
  645. border: 1px solid rgba(232, 232, 232, 1);
  646. }
  647. .refer-dataset-card .refer-dataset-card-content {
  648. font-size: 16px;
  649. color: #0366d6;
  650. font-family: SourceHanSansSC-medium;
  651. height: 34px;
  652. font-weight: bold;
  653. display: flex;
  654. align-items: center;
  655. justify-content: space-between;
  656. }
  657. .refer-dataset-card-title {
  658. display: flex;
  659. align-items: center;
  660. max-width: 80%;
  661. width: 100%;
  662. }
  663. .dataset-card-flavor {
  664. display: flex;
  665. align-items: center;
  666. padding: 0.3rem 0.5rem;
  667. border: #888888;
  668. border-top-right-radius: 0 !important;
  669. border-bottom-right-radius: 0 !important;
  670. margin-right: -1px;
  671. }
  672. .card-flavor-num {
  673. padding: 0.5rem;
  674. border: #888888;
  675. border-top-left-radius: 0 !important;
  676. border-bottom-left-radius: 0 !important;
  677. cursor: default !important;
  678. }
  679. .card-flavor-desc {
  680. -webkit-box-orient: vertical;
  681. -webkit-line-clamp: 2;
  682. display: -webkit-box;
  683. overflow: hidden;
  684. color: #999999;
  685. font-size: 14px;
  686. margin-top: 10px;
  687. }
  688. .select-data-wrap {
  689. padding: 1rem 0;
  690. border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  691. }
  692. .select-data-title {
  693. flex: 1;
  694. overflow: hidden;
  695. }
  696. .select-data-title .ref-data-title {
  697. font-size: 18px;
  698. color: #454545;
  699. font-weight: 700;
  700. display: flex;
  701. align-items: baseline;
  702. max-width: 100%;
  703. }
  704. .select-data-href {
  705. text-align: right;
  706. text-overflow: ellipsis;
  707. max-width: 35%;
  708. word-break: initial;
  709. margin-left: 1rem;
  710. white-space: nowrap;
  711. }
  712. /deep/ .el-checkbox-group .el-checkbox .el-checkbox__label {
  713. display: flex;
  714. max-width: 90%;
  715. }
  716. .select-data-right {
  717. overflow: hidden;
  718. vertical-align: middle;
  719. text-overflow: ellipsis;
  720. max-width: 100%;
  721. display: inline-block;
  722. }
  723. .data-multiple-wrap {
  724. -webkit-line-clamp: 3;
  725. -webkit-box-orient: vertical;
  726. display: -webkit-box;
  727. max-width: 100%;
  728. overflow: hidden;
  729. padding-top: 1rem;
  730. color: #888888;
  731. font: 12px;
  732. line-height: 20px;
  733. margin-left: 2rem;
  734. }
  735. .disabled1 {
  736. opacity: 0.45 !important;
  737. }
  738. </style>