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