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 23 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
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
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
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
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
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
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718
  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="引用次数"
  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="下载次数"
  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">还未关联过数据集</div>
  202. <div class="bgtask-content">
  203. <div class="bgtask-content-txt">
  204. 您可以通过单击新建关联数据集按钮,将平台上公开数据集展示在这里。
  205. </div>
  206. <div class="bgtask-content-txt">
  207. 使用说明可以参考启智AI协作平台<a
  208. href="https://git.openi.org.cn/zeizei/OpenI_Learning"
  209. >小白训练营课程</a
  210. >
  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. {{ item.Title }}
  265. </span></el-checkbox
  266. >
  267. <a
  268. class="select-data-title select-data-href"
  269. :href="`/${item.Repo.OwnerName}/${item.Repo.Name}/datasets`"
  270. :title="`${item.Repo.OwnerName}/${item.Repo.Alias}`"
  271. style="font-size: 12px"
  272. >{{ item.Repo.OwnerName }}/{{ item.Repo.Alias }}</a
  273. >
  274. </div>
  275. <div class="data-multiple-wrap" :title="item.Description">
  276. {{ item.Description }}
  277. </div>
  278. </div>
  279. </el-checkbox-group>
  280. </el-row>
  281. <div
  282. class="ui container"
  283. style="margin-top: 25px; text-align: center"
  284. >
  285. <el-pagination
  286. background
  287. @current-change="currentChange"
  288. :current-page="currentPage"
  289. :page-size="5"
  290. layout="total, prev, pager, next"
  291. :total="totalNum"
  292. >
  293. </el-pagination>
  294. </div>
  295. </el-tab-pane>
  296. </el-tabs>
  297. </el-col>
  298. <el-col
  299. :span="7"
  300. style="
  301. display: flex;
  302. flex-direction: column;
  303. height: 100%;
  304. right: 0;
  305. position: absolute;
  306. padding: 0 1.5rem;
  307. "
  308. >
  309. <div
  310. style="
  311. font-size: 14px;
  312. height: 40px;
  313. text-align: left;
  314. color: #0066ff;
  315. line-height: 40px;
  316. "
  317. >
  318. {{ i18n.selected_data_file }}
  319. </div>
  320. <div
  321. style="
  322. flex: 1;
  323. margin-top: 1.5rem;
  324. margin-bottom: 1rem;
  325. overflow-y: auto;
  326. "
  327. >
  328. <el-checkbox-group v-model="checkList">
  329. <el-checkbox
  330. v-for="(item, index) in selectDatasetArray"
  331. :key="index"
  332. :label="item.ID"
  333. :title="item.Title"
  334. @change="(checked) => changeCheckSelected(checked, item)"
  335. style="display: flex; margin: 0.5rem 0"
  336. ><span class="select-data-right">{{
  337. item.Title
  338. }}</span></el-checkbox
  339. >
  340. </el-checkbox-group>
  341. </div>
  342. <div style="text-align: end">
  343. <el-button
  344. @click.native="confirmDataset"
  345. size="small"
  346. style="
  347. background: #389e0d;
  348. color: #fff;
  349. border: 1px solid #389e0d;
  350. "
  351. >{{ i18n.sure }}</el-button
  352. >
  353. </div>
  354. </el-col>
  355. </el-row>
  356. </el-dialog>
  357. </div>
  358. </template>
  359. <script>
  360. const { _AppSubUrl, _StaticUrlPrefix, csrf } = window.config;
  361. export default {
  362. components: {},
  363. data() {
  364. return {
  365. dialogWidth: "65%",
  366. dialogVisible: false,
  367. activeName: "first",
  368. repoLink: "",
  369. datasetList: [],
  370. test: false,
  371. checkList: [],
  372. publicDatasetList: [],
  373. showFlag: true,
  374. search: "",
  375. selectDatasetArray: [],
  376. paramsPublics: { page: 1, q: "" },
  377. i18n: {},
  378. totalNum: 0,
  379. currentPage: 1,
  380. loadingLinkPage: false,
  381. loadingPublicPage: false,
  382. canWrite: true,
  383. isSigned: false,
  384. maxReferenceNum: 20,
  385. };
  386. },
  387. methods: {
  388. openDataset() {
  389. this.checkList = this.datasetList.map((item) => {
  390. this.selectDatasetArray.push({ ID: item.ID, Title: item.Title });
  391. return item.ID;
  392. });
  393. this.dialogVisible = true;
  394. this.getDatasetList();
  395. },
  396. refreshData() {
  397. this.checkList = [];
  398. this.selectDatasetArray = [];
  399. },
  400. gotoDataset(item) {
  401. location.href = `/${item.Repo.OwnerName}/${item.Repo.Name}/datasets`;
  402. },
  403. currentChange(page) {
  404. this.paramsPublics.page = page;
  405. this.getDatasetList();
  406. },
  407. searchName() {
  408. this.paramsPublics.q = this.search;
  409. this.paramsPublics.page = 1;
  410. this.getDatasetList();
  411. },
  412. cancelReferData(id, name, canWrite) {
  413. if (!canWrite) {
  414. return;
  415. }
  416. let url = `${this.repoLink}/datasets/reference_datasets/${id}`;
  417. this.$axios
  418. .delete(url)
  419. .then((res) => {
  420. if (res.data.Code === 0) {
  421. this.$message.success(`取消${name}关联数据集成功!`);
  422. let index = this.datasetList.findIndex((item) => {
  423. return item.ID === id;
  424. });
  425. this.datasetList.splice(index, 1);
  426. if (this.datasetList.length === 0) {
  427. this.showFlag = false;
  428. }
  429. } else {
  430. this.$message.error(res.data.Message);
  431. }
  432. })
  433. .catch((err) => {
  434. this.$message.error(`取消关联数据集失败!`);
  435. console.log(err);
  436. });
  437. },
  438. confirmDataset() {
  439. this.submitReferDataset();
  440. this.dialogVisible = false;
  441. },
  442. changeCheckbox(checked, item) {
  443. if (this.checkList.length > this.maxReferenceNum) {
  444. this.checkList.pop();
  445. this.$message.error("关联超过20个数据集");
  446. return;
  447. }
  448. if (this.checkList.length === this.maxReferenceNum && !checked) {
  449. this.$message.error("关联超过20个数据集");
  450. return;
  451. }
  452. if (checked) {
  453. this.selectDatasetArray.push({ ID: item.ID, Title: item.Title });
  454. } else {
  455. let index = this.selectDatasetArray.findIndex((element) => {
  456. return element.ID === item.ID;
  457. });
  458. this.selectDatasetArray.splice(index, 1);
  459. }
  460. },
  461. changeCheckSelected(checked, item) {
  462. if (!checked) {
  463. let index = this.selectDatasetArray.findIndex((element) => {
  464. return element.ID === item.ID;
  465. });
  466. this.selectDatasetArray.splice(index, 1);
  467. }
  468. },
  469. postStar(item, isSigned) {
  470. if (!isSigned) {
  471. return;
  472. }
  473. if (item.IsStaring) {
  474. let url = `${this.repoLink}/datasets/${item.ID}/unstar`;
  475. this.$axios.put(url).then((res) => {
  476. if (res.data.Code === 0) {
  477. this.datasetList.forEach((element, i) => {
  478. if (element.ID === item.ID) {
  479. this.datasetList[i].NumStars -= 1;
  480. this.datasetList[i].IsStaring = !this.datasetList[i].IsStaring;
  481. }
  482. });
  483. }
  484. });
  485. } else {
  486. let url = `${this.repoLink}/datasets/${item.ID}/star`;
  487. this.$axios.put(url).then((res) => {
  488. if (res.data.Code === 0) {
  489. this.datasetList.forEach((element, i) => {
  490. if (element.ID === item.ID) {
  491. this.datasetList[i].NumStars += 1;
  492. this.datasetList[i].IsStaring = !this.datasetList[i].IsStaring;
  493. }
  494. });
  495. }
  496. });
  497. }
  498. },
  499. getSelectDatasetList() {
  500. this.loadingLinkPage = true;
  501. let url = `${this.repoLink}/datasets/reference_datasets_data`;
  502. this.$axios.get(url).then((res) => {
  503. this.loadingLinkPage = false;
  504. if (!res.data) {
  505. this.showFlag = false;
  506. this.datasetList = [];
  507. return;
  508. } else {
  509. this.datasetList = res.data;
  510. this.datasetList.length
  511. ? (this.showFlag = true)
  512. : (this.showFlag = false);
  513. }
  514. });
  515. },
  516. getDatasetList() {
  517. this.loadingPublicPage = true;
  518. let url = `${this.repoLink}/datasets/reference_datasets_available`;
  519. this.$axios
  520. .get(url, {
  521. params: this.paramsPublics,
  522. })
  523. .then((res) => {
  524. this.publicDatasetList = JSON.parse(res.data.data);
  525. this.totalNum = parseInt(res.data.count);
  526. this.loadingPublicPage = false;
  527. });
  528. },
  529. submitReferDataset() {
  530. if (this.checkList.length > this.maxReferenceNum) {
  531. this.$message.error("关联超过20个数据集");
  532. return;
  533. }
  534. let url = `${this.repoLink}/datasets/reference_datasets`;
  535. let data = this.qs.stringify(
  536. {
  537. _csrf: csrf,
  538. dataset_id: this.checkList,
  539. },
  540. { arrayFormat: "repeat" }
  541. );
  542. this.$axios
  543. .post(url, data)
  544. .then((res) => {
  545. if (res.data.Code === 0) {
  546. this.$message.success(`关联数据集成功!`);
  547. this.getSelectDatasetList();
  548. } else {
  549. this.$message.error(res.data.Message);
  550. }
  551. })
  552. .catch((err) => {
  553. this.$message.error(`关联数据集失败!`);
  554. console.log(err);
  555. });
  556. },
  557. },
  558. filters: {
  559. transformTimestamp(timestamp) {
  560. const date = new Date(parseInt(timestamp) * 1000);
  561. const Y = date.getFullYear() + "-";
  562. const M =
  563. (date.getMonth() + 1 < 10
  564. ? "0" + (date.getMonth() + 1)
  565. : date.getMonth() + 1) + "-";
  566. const D =
  567. (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " ";
  568. const dateString = Y + M + D;
  569. return dateString;
  570. },
  571. },
  572. watch: {
  573. search(val) {
  574. if (!val) {
  575. this.searchName();
  576. }
  577. },
  578. showFlag(val) {
  579. if (!val) {
  580. document
  581. .getElementById("header-dataset")
  582. .setAttribute("href", this.repoLink + "/datasets");
  583. } else {
  584. document
  585. .getElementById("header-dataset")
  586. .setAttribute("href", this.repoLink + "/reference_datasets");
  587. }
  588. },
  589. },
  590. mounted() {
  591. this.getSelectDatasetList();
  592. },
  593. created() {
  594. this.repoLink = $(".reference-dataset").data("repolink") || "";
  595. this.canWrite = $(".reference-dataset").data("canwrite");
  596. this.isSigned = $(".reference-dataset").data("is-sign");
  597. this.maxReferenceNum = $(".reference-dataset").data("max-reference-num");
  598. if (document.documentElement.attributes["lang"].nodeValue == "en-US") {
  599. this.i18n = this.$locale.US;
  600. } else {
  601. this.i18n = this.$locale.CN;
  602. }
  603. },
  604. beforeDestroy() {},
  605. };
  606. </script>
  607. <style scoped>
  608. .dataset-search-vue {
  609. z-index: 9999;
  610. position: absolute;
  611. right: 31%;
  612. height: 30px;
  613. top: 60px;
  614. }
  615. .refer-dataset-card {
  616. cursor: pointer;
  617. box-shadow: 0px 4px 4px 0px rgba(232, 232, 232, 0.6);
  618. border: 1px solid rgba(232, 232, 232, 1);
  619. }
  620. .refer-dataset-card .refer-dataset-card-content {
  621. font-size: 16px;
  622. color: #0366d6;
  623. font-family: SourceHanSansSC-medium;
  624. height: 34px;
  625. font-weight: bold;
  626. display: flex;
  627. align-items: center;
  628. justify-content: space-between;
  629. }
  630. .refer-dataset-card-title {
  631. display: flex;
  632. align-items: center;
  633. max-width: 80%;
  634. width: 100%;
  635. }
  636. .dataset-card-flavor {
  637. display: flex;
  638. align-items: center;
  639. padding: 0.3rem 0.5rem;
  640. border: #888888;
  641. border-top-right-radius: 0 !important;
  642. border-bottom-right-radius: 0 !important;
  643. margin-right: -1px;
  644. }
  645. .card-flavor-num {
  646. padding: 0.5rem;
  647. border: #888888;
  648. border-top-left-radius: 0 !important;
  649. border-bottom-left-radius: 0 !important;
  650. cursor: default !important;
  651. }
  652. .card-flavor-desc {
  653. -webkit-box-orient: vertical;
  654. -webkit-line-clamp: 2;
  655. display: -webkit-box;
  656. overflow: hidden;
  657. color: #999999;
  658. font-size: 14px;
  659. margin-top: 10px;
  660. }
  661. .select-data-wrap {
  662. padding: 1rem 0;
  663. border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  664. }
  665. .select-data-title {
  666. flex: 1;
  667. overflow: hidden;
  668. }
  669. .select-data-title .ref-data-title {
  670. font-size: 18px;
  671. color: #454545;
  672. font-weight: 700;
  673. overflow: hidden;
  674. text-overflow: ellipsis;
  675. }
  676. .select-data-href {
  677. text-align: right;
  678. text-overflow: ellipsis;
  679. max-width: 35%;
  680. word-break: initial;
  681. margin-left: 1rem;
  682. }
  683. /deep/ .el-checkbox-group .el-checkbox .el-checkbox__label {
  684. display: flex;
  685. max-width: 90%;
  686. }
  687. .select-data-right {
  688. overflow: hidden;
  689. vertical-align: middle;
  690. text-overflow: ellipsis;
  691. max-width: 100%;
  692. display: inline-block;
  693. }
  694. .data-multiple-wrap {
  695. -webkit-line-clamp: 3;
  696. -webkit-box-orient: vertical;
  697. display: -webkit-box;
  698. max-width: 100%;
  699. overflow: hidden;
  700. padding-top: 1rem;
  701. color: #888888;
  702. font: 12px;
  703. line-height: 20px;
  704. margin-left: 2rem;
  705. }
  706. .disabled1 {
  707. opacity: 0.45 !important;
  708. }
  709. </style>